Browse Source

修改调拨页面显示

dev
caoyizhong 2 years ago
parent
commit
9d6b4285f8
  1. 3
      src/views/activiti/applyList.vue
  2. 2
      src/views/activiti/form/ProcessMaterialsAllot.vue
  3. 12
      src/views/activiti/form/ProcessMaterialsAllotForm.vue
  4. 7
      src/views/activiti/form/ProcessMaterialsDelivery.vue
  5. 15
      src/views/activiti/form/ProcessMaterialsDeliveryForm.vue
  6. 4
      src/views/activiti/historicDetail.vue

3
src/views/activiti/applyList.vue

@ -156,7 +156,8 @@
<a-modal :title="lcModa.title" v-model="lcModa.visible" :footer="null" :maskClosable="false" width="80%">
<component :disabled="lcModa.disabled" v-if="lcModa.visible" :is="lcModa.formComponent" :hieg ="lcModa.hieg"
:processData="lcModa.processData" :isNew = "lcModa.isNew" :procInstId="lcModa.procInstId" :pictureId="lcModa.pictureId"
@afterSubmit="afterSub" @close="lcModa.visible=false,lcModa.disabled = false"></component>
@close="lcModa.visible=false,lcModa.disabled = false"></component>
<!-- @afterSubmit="afterSub"-->
</a-modal>
<!--提交申请表单-->
<a-modal title="提交申请" v-model="modalVisible" :mask-closable="false" :width="500" :footer="null">

2
src/views/activiti/form/ProcessMaterialsAllot.vue

@ -25,7 +25,7 @@
components: {ProcessMaterialsAllotForm,historicPictrue, historicDetail},
data() {
return {
isNew:''
}
},
props: {

12
src/views/activiti/form/ProcessMaterialsAllotForm.vue

@ -42,7 +42,7 @@
dictCode="material_type" placeholder="请选择物资类型"/>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="8" v-if="task" >
<a-form-item label="被调拨部门" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-select-depart v-decorator="['beAllotDepartment',validatorRules.beAllotDepartment]" @change ='Department'/>
</a-form-item>
@ -367,7 +367,8 @@
}
let company = sessionStorage.getItem('PARENT_ID')
let userInfo = sessionStorage.getItem('USER_INFORMATION')
console.log(userInfo)
// console.log("userInfouserInfo",JSON.parse(userInfo));
// userInfo.company=company;
this.popupCallback(company, userInfo)
@ -379,7 +380,7 @@
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined){
if(record.row.id !== '' && record.row.id !== undefined && this.materialGroupId !== record.row.materialGroup ){
console.log("执行materialGroup")
// console.log("materialGroup")
this.fetchMerchandiseNews(record.row.materialGroup,1);
let value = [
{
@ -406,7 +407,7 @@
}
if(record.row.materialGroup !== '' && record.row.materialGroup !== undefined && record.row.equipment !== '' && record.row.allotNumber === '' && isDB ){
console.log("执行materialNumber")
// console.log("materialNumber")
let materialName = {}
this.bigIdMerchandiseNewsList.forEach(item => {
if (item.merchandiseNewsId === record.row.equipment) {
@ -596,8 +597,9 @@
init() {
this.btndisabled = true
var r = this.processData
// console.log("2323232323232323232323232323232323232323",r)
this.getAction(this.url.queryById, {
tableId: r.tableId,
id: r.tableId,
tableName: r.tableName
}).then((res) => {
if (res.success) {

7
src/views/activiti/form/ProcessMaterialsDelivery.vue

@ -3,7 +3,7 @@
<a-tabs style="text-align: center">
<a-tab-pane tab="流程正文" key="1" forceRender>
<process-materials-delivery-form :isNew="isNew" :processData="processData" :disabled="disabled" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask"/>
<process-materials-delivery-form :isNew="isNew" :hieg="hieg" :processData="processData" :disabled="disabled" @afterSubmit="afterSub" @close="close" :task="task" @passTask="passTask" @backTask="backTask"/>
</a-tab-pane>
<a-tab-pane tab="流程节点图" key="2" forceRender>
@ -50,6 +50,11 @@
type: Boolean,
default: false,
required: false
},
hieg: {
type: Boolean,
default: true,
required: false
}
},
methods: {

15
src/views/activiti/form/ProcessMaterialsDeliveryForm.vue

@ -65,7 +65,7 @@
:columns="processMaterialsDeliveryListTable.columns"
:dataSource="processMaterialsDeliveryListTable.dataSource"
:maxHeight="300"
:disabled="this.heid"
:disabled="hiegs"
@valueChange="onSelect"
:rowNumber="true"
:rowSelection="true"
@ -138,7 +138,7 @@
libraryAssociationIdInvisible: 'ZK',
rolePlay: false,
jiy: [],
heid: true,
// heid: true,
addId: '',
bigIdMerchandiseNewsList: [],
labelCol: {
@ -369,7 +369,14 @@
type: Boolean,
default: false,
required: false
},
//
hieg: {
type: Boolean,
default: false,
required: false
}
},
computed: {
formDisabled() {
@ -380,6 +387,8 @@
}
return true
}
// console.log("============================",this.hiegs=this.hieg);
this.hiegs = this.hieg;
return this.disabled
},
showFlowSubmitButton() {
@ -417,7 +426,7 @@
isMaterialType(val) {
if (val !== undefined) {
this.accountingAttributesVal = val
this.heid = false
this.hiegs = false
this.fetchData(val)
}

4
src/views/activiti/historicDetail.vue

@ -106,12 +106,12 @@ export default {
procInstId: {
type: String,
default: '',
required: true
required: false
},
pictureId: {
type: String,
default: '',
required: true
required: false
},
lcModa: {
type: Object,

Loading…
Cancel
Save