|
|
@ -38,8 +38,7 @@ |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="8"> |
|
|
|
<a-col :span="8"> |
|
|
|
<a-form-item label="关联出库流程" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<a-form-item label="关联出库流程" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<h-delivery v-model="processOutflowId" code="demo" field="name" orgFields="name" destFields="name" |
|
|
|
<h-delivery v-decorator="['processOutflowId',validatorRules.processOutflowId]" code="demo" field="name" orgFields="name" @mounted="getPlanList" @callType="getcallType" destFields="name":multi="true"/> |
|
|
|
@callType="getcallType" :multi="true"/> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="8"> |
|
|
|
<a-col :span="8"> |
|
|
@ -59,7 +58,7 @@ |
|
|
|
:columns="processSmaterialsScrapListTable.columns" |
|
|
|
:columns="processSmaterialsScrapListTable.columns" |
|
|
|
:dataSource="processSmaterialsScrapListTable.dataSource" |
|
|
|
:dataSource="processSmaterialsScrapListTable.dataSource" |
|
|
|
:maxHeight="300" |
|
|
|
:maxHeight="300" |
|
|
|
:disabled="this.heid" |
|
|
|
:disabled="formDisabled" |
|
|
|
:rowNumber="true" |
|
|
|
:rowNumber="true" |
|
|
|
:rowSelection="true" |
|
|
|
:rowSelection="true" |
|
|
|
:actionButton="true"/> |
|
|
|
:actionButton="true"/> |
|
|
@ -244,6 +243,7 @@ |
|
|
|
add: '/hy/processSmaterialsScrap/add', |
|
|
|
add: '/hy/processSmaterialsScrap/add', |
|
|
|
edit: '/hy/processSmaterialsScrap/edit', |
|
|
|
edit: '/hy/processSmaterialsScrap/edit', |
|
|
|
queryById: '/hy/processSmaterialsScrap/queryById', |
|
|
|
queryById: '/hy/processSmaterialsScrap/queryById', |
|
|
|
|
|
|
|
list:"/hy/processMaterialsDelivery/queryProcessMaterialsDeliveryListByMainId", |
|
|
|
processSmaterialsScrapList: { |
|
|
|
processSmaterialsScrapList: { |
|
|
|
list: '/hy/processSmaterialsScrap/queryProcessSmaterialsScrapListByMainId' |
|
|
|
list: '/hy/processSmaterialsScrap/queryProcessSmaterialsScrapListByMainId' |
|
|
|
} |
|
|
|
} |
|
|
@ -251,10 +251,10 @@ |
|
|
|
btndisabled: false, |
|
|
|
btndisabled: false, |
|
|
|
validatorRules: { |
|
|
|
validatorRules: { |
|
|
|
// 'blur'是鼠标失去焦点的时候会触发验证 |
|
|
|
// 'blur'是鼠标失去焦点的时候会触发验证 |
|
|
|
materialType: { rules: [{ required: true, message: '请选择物资类型!' }] }, |
|
|
|
processOutflowId: {rules: [{ required: true, message: '关联出库流程不能为空!' }]}, |
|
|
|
processReturnId: { rules: [{ required: true, message: '关联归还流程不能为空!' }] }, |
|
|
|
processReturnId: {rules:[{ required: true, message: '关联归还流程不能为空!' }]}, |
|
|
|
processPlan: { rules: [{ required: true, message: '请选择流程计划!' }] } |
|
|
|
processPlan: {rules:[ { required: true, message: '请选择流程计划!'}]} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -350,6 +350,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getPlanList(id){ |
|
|
|
|
|
|
|
let params={} |
|
|
|
|
|
|
|
params.id=id; |
|
|
|
|
|
|
|
this.requestSubTableData(this.url.list, params, this.processSmaterialsScrapListTable) |
|
|
|
|
|
|
|
}, |
|
|
|
close() { |
|
|
|
close() { |
|
|
|
//todo 关闭后的回调 |
|
|
|
//todo 关闭后的回调 |
|
|
|
this.$emit('close') |
|
|
|
this.$emit('close') |
|
|
@ -372,11 +377,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
let formData = this.classifyIntoFormData(allValues) |
|
|
|
let formData = this.classifyIntoFormData(allValues) |
|
|
|
formData.fileId = getStringArry(formData.fileId) |
|
|
|
formData.fileId = getStringArry(formData.fileId) |
|
|
|
formData.processOutflowId = this.processOutflowId |
|
|
|
|
|
|
|
if (formData.processOutflowId === null || formData.processOutflowId === '' || formData.processOutflowId === undefined) { |
|
|
|
|
|
|
|
this.$message.error('关联的出库流程不能为空') |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.form.validateFields((err, values) => { |
|
|
|
this.form.validateFields((err, values) => { |
|
|
|
if (!err) { |
|
|
|
if (!err) { |
|
|
|
formData.procDefId = this.processData.id |
|
|
|
formData.procDefId = this.processData.id |
|
|
@ -408,11 +408,10 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
getcallType(type) { |
|
|
|
getcallType(type){ |
|
|
|
let param = {} |
|
|
|
this.data.materialType = type.materialType; |
|
|
|
param.materialType = type |
|
|
|
this.data.processOutflowId=type.id |
|
|
|
this.data = param |
|
|
|
let fieldval =pick(this.data,'materialType','processOutflowId') |
|
|
|
let fieldval = pick(this.data, 'materialType') |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.form.setFieldsValue(fieldval) |
|
|
|
this.form.setFieldsValue(fieldval) |
|
|
|
}) |
|
|
|
}) |
|
|
|