Commit 2f1a2708 authored by 沈翠玲's avatar 沈翠玲

领料申请

parent f49367bc
...@@ -2621,6 +2621,11 @@ export default { ...@@ -2621,6 +2621,11 @@ export default {
const t = this; const t = this;
// const items = this.curTaskInfo.workorderOption.find((item) => item.value === this.curTaskInfo.workorderCode); // const items = this.curTaskInfo.workorderOption.find((item) => item.value === this.curTaskInfo.workorderCode);
// console.log(this.curTaskInfo.workorderOption, this.curTaskInfo.workorderCode); // console.log(this.curTaskInfo.workorderOption, this.curTaskInfo.workorderCode);
let workorderCode = null
if(this.curTaskInfo.workorderOption) {
const finditem = this.curTaskInfo.workorderOption.find(v=>v.value === this.curTaskInfo.workorderCode)
if(finditem) workorderCode = finditem.text
}
this.materialRequestArrays.forEach((s) => { this.materialRequestArrays.forEach((s) => {
if (s.applyNum != null) { if (s.applyNum != null) {
rst.push({ rst.push({
...@@ -2629,7 +2634,7 @@ export default { ...@@ -2629,7 +2634,7 @@ export default {
workunitCode: this.curTaskInfo.workunitCode, workunitCode: this.curTaskInfo.workunitCode,
workunitName: this.curTaskInfo.workunitName, workunitName: this.curTaskInfo.workunitName,
taskWorkunitId: this.curTaskInfo.taskWorkunitId, taskWorkunitId: this.curTaskInfo.taskWorkunitId,
workorderCode: this.curTaskInfo.workorderCode, workorderCode: workorderCode,
taskId: taskInfo.taskId, taskId: taskInfo.taskId,
applyNum: s.applyNum, applyNum: s.applyNum,
applyType: 1 applyType: 1
......
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