Commit 66a5f993 authored by 李驰骋's avatar 李驰骋

物料回退申请单调整

parent 29e320af
...@@ -1461,7 +1461,7 @@ export default { ...@@ -1461,7 +1461,7 @@ export default {
this.curTaskInfo.workorderOption = this.curTaskInfo.proWorkorderList.map((s) => { this.curTaskInfo.workorderOption = this.curTaskInfo.proWorkorderList.map((s) => {
return { value: s.workorderCode, text: s.workorderCode }; return { value: s.workorderCode, text: s.workorderCode };
}); });
this.$u.api.listMaterialReturn({ taskId: taskInfo.taskId }).then((res) => { this.$u.api.listMaterialReturn({ taskId: taskInfo.taskId, workorderCode: ''}).then((res) => {
if (res.code === 200) { if (res.code === 200) {
t.materialReturnList = res.data; t.materialReturnList = res.data;
} }
...@@ -1478,12 +1478,19 @@ export default { ...@@ -1478,12 +1478,19 @@ export default {
}, },
materialReturnWorkorderChange(s) { materialReturnWorkorderChange(s) {
this.materialReturnFormData.workorderCode = s; this.materialReturnFormData.workorderCode = s;
const t = this;
const taskInfo = this.tableSelectData[0];
this.$u.api.listMaterialReturn({ taskId: taskInfo.taskId, workorderCode: s}).then((res) => {
if (res.code === 200) {
t.materialReturnList = res.data;
}
});
}, },
materialReturnFormShow(line) { materialReturnFormShow(line) {
this.materialReturnFormVisible = true; this.materialReturnFormVisible = true;
this.materialReturnFormData = { this.materialReturnFormData = {
itemName: line.itemName, itemName: line.itemName,
orkorderCode: this.materialReturnFormData.workorderCode, workorderCode: this.materialReturnFormData.workorderCode,
isQualified: 1 isQualified: 1
}; };
this.materialReturnSelected = line; this.materialReturnSelected = line;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment