|
|
@ -44,13 +44,13 @@ |
|
|
|
<a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<a-form-item label="物资类型" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<j-dict-select-tag type="list" @change="materialType" |
|
|
|
<j-dict-select-tag type="list" @change="materialType" |
|
|
|
v-decorator="['materialType',validatorRules.materialType]" :trigger-change="true" |
|
|
|
v-decorator="['materialType',validatorRules.materialType]" :trigger-change="true" |
|
|
|
dictCode="material_type" placeholder="请选择物资类型"/> |
|
|
|
dictCode="material_type" placeholder="请选择物资类型" :disabled="issh"/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="8" v-if="task"> |
|
|
|
<a-col :span="8" v-if="task"> |
|
|
|
<a-form-item label="被调拨部门" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<a-form-item label="被调拨部门" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<j-select-depart v-decorator="['beAllotDepartment',validatorRules.beAllotDepartment]" |
|
|
|
<j-select-depart v-decorator="['beAllotDepartment',validatorRules.beAllotDepartment]" |
|
|
|
@change='Department'/> |
|
|
|
@change='Department' /> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="8 |
|
|
|
<a-col :span="8 |
|
|
@ -94,8 +94,8 @@ |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</j-form-container> |
|
|
|
</j-form-container> |
|
|
|
<div class="div_process"> |
|
|
|
<div class="div_process"> |
|
|
|
<a-form-item v-if="!disabled" :wrapperCol="{ span: 24 }" style="text-align: center" > |
|
|
|
<a-form-item v-if="!disabled || !task" :wrapperCol="{ span: 24 }" style="text-align: center" > |
|
|
|
<a-button type="primary" :disabled="disabled||btndisabled" @click="handleSubmit">保存</a-button> |
|
|
|
<a-button type="primary" :disabled="disabled||btndisabled" @click="handleSubmit" >保存</a-button> |
|
|
|
<a-button style="margin-left: 8px" type="primary" :disabled="disabled||btndisabled" @click="applySubmit">提交申请 |
|
|
|
<a-button style="margin-left: 8px" type="primary" :disabled="disabled||btndisabled" @click="applySubmit">提交申请 |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
<a-button style="margin-left: 8px" :disabled="disabled" @click="close">取消</a-button> |
|
|
|
<a-button style="margin-left: 8px" :disabled="disabled" @click="close">取消</a-button> |
|
|
@ -174,6 +174,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
options: [] |
|
|
|
options: [] |
|
|
|
// props:{title: 'show title'} |
|
|
|
// props:{title: 'show title'} |
|
|
|
// scopedSlots: { customRender: 'edit' },//引入的插槽 |
|
|
|
// scopedSlots: { customRender: 'edit' },//引入的插槽 |
|
|
@ -189,6 +190,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
options: [] |
|
|
|
options: [] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -198,6 +200,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -207,6 +210,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -216,6 +220,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -249,6 +254,7 @@ |
|
|
|
type: FormTypes.inputNumber, |
|
|
|
type: FormTypes.inputNumber, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -257,6 +263,7 @@ |
|
|
|
type: FormTypes.inputNumber, |
|
|
|
type: FormTypes.inputNumber, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -265,6 +272,7 @@ |
|
|
|
type: FormTypes.date, |
|
|
|
type: FormTypes.date, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -274,6 +282,7 @@ |
|
|
|
dictCode: '', |
|
|
|
dictCode: '', |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -282,6 +291,7 @@ |
|
|
|
type: FormTypes.input, |
|
|
|
type: FormTypes.input, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
placeholder: '请输入${title}', |
|
|
|
|
|
|
|
disabled: this.disabled, |
|
|
|
defaultValue: '' |
|
|
|
defaultValue: '' |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
@ -305,6 +315,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
btndisabled: false, |
|
|
|
btndisabled: false, |
|
|
|
isHava:false, |
|
|
|
isHava:false, |
|
|
|
|
|
|
|
issh:false, |
|
|
|
describes: '', |
|
|
|
describes: '', |
|
|
|
assignees: '', |
|
|
|
assignees: '', |
|
|
|
validatorRules: { |
|
|
|
validatorRules: { |
|
|
@ -328,8 +339,10 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
/*是否新增*/ |
|
|
|
/*是否新增*/ |
|
|
|
isNew: { type: Boolean, default: false, required: false }, |
|
|
|
isNew: { type: Boolean, default: false, required: false }, |
|
|
|
/*是否处理流程*/ |
|
|
|
/*第一个处理理流程*/ |
|
|
|
task: { type: Boolean, default: false, required: false }, |
|
|
|
task: { type: Boolean, default: false, required: false }, |
|
|
|
|
|
|
|
/*是否处理流程*/ |
|
|
|
|
|
|
|
taskT: { type: Boolean, default: false, required: false }, |
|
|
|
//流程表单data |
|
|
|
//流程表单data |
|
|
|
formData: { |
|
|
|
formData: { |
|
|
|
type: Object, |
|
|
|
type: Object, |
|
|
@ -388,7 +401,9 @@ |
|
|
|
// console.log(record) |
|
|
|
// console.log(record) |
|
|
|
let isDB = true |
|
|
|
let isDB = true |
|
|
|
if (record.row.materialGroup !== '' && record.row.materialGroup !== undefined) { |
|
|
|
if (record.row.materialGroup !== '' && record.row.materialGroup !== undefined) { |
|
|
|
|
|
|
|
if (this.issh){ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
if (record.row.id !== '' && record.row.id !== undefined && this.materialGroupId !== record.row.materialGroup) { |
|
|
|
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) |
|
|
|
this.fetchMerchandiseNews(record.row.materialGroup, 1) |
|
|
@ -605,8 +620,38 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
/*回显数据*/ |
|
|
|
/*回显数据*/ |
|
|
|
init() { |
|
|
|
init() { |
|
|
|
|
|
|
|
this.taskT =true |
|
|
|
this.btndisabled = true |
|
|
|
this.btndisabled = true |
|
|
|
|
|
|
|
this.issh =true |
|
|
|
var r = this.processData |
|
|
|
var r = this.processData |
|
|
|
|
|
|
|
let userInfo=sessionStorage.getItem("USER_INFORMATION"); |
|
|
|
|
|
|
|
let res=JSON.parse(userInfo); |
|
|
|
|
|
|
|
let param={} |
|
|
|
|
|
|
|
param.id=r.procDefId; |
|
|
|
|
|
|
|
param.tableName=r.tableName; |
|
|
|
|
|
|
|
param.tableId=r.tableId; |
|
|
|
|
|
|
|
param.username =res.username |
|
|
|
|
|
|
|
this.getAction("/hy/processMaterialsAllot/getOne",param).then(res => { |
|
|
|
|
|
|
|
console.log("res>>>>>>>>>>>>>>>>>>>>>",res) |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
if (res.result){ |
|
|
|
|
|
|
|
this.heid = false |
|
|
|
|
|
|
|
getAction(this.url.unitWasteNameUrl, null).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
if (this.processMaterialsAllotListTable.columns[6].options.length > 0) { |
|
|
|
|
|
|
|
this.processMaterialsAllotListTable.columns[6].options = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
res.result.forEach(item => { |
|
|
|
|
|
|
|
this.processMaterialsAllotListTable.columns[6].options.push({ |
|
|
|
|
|
|
|
title: item.departName, |
|
|
|
|
|
|
|
value: item.libraryAssociationIdInvisible |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
this.getAssignees(r) |
|
|
|
this.getAssignees(r) |
|
|
|
// console.log("2323232323232323232323232323232323232323",r) |
|
|
|
// console.log("2323232323232323232323232323232323232323",r) |
|
|
|
if (!r.tableId){ |
|
|
|
if (!r.tableId){ |
|
|
@ -830,7 +875,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('value>>>>>>>>>>>>>>>>>>>>>>>>>>>>', this.libraryAssociationIdInvisible) |
|
|
|
console.log('value>>>>>>>>>>>>>>>>>>>>>>>>>>>>', this.libraryAssociationIdInvisible) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|