|
@@ -363,6 +363,7 @@
|
|
|
rateVal: 0
|
|
|
}
|
|
|
this.productDetails = []
|
|
|
+ this.workInfoDetails = []
|
|
|
this.visible = true
|
|
|
this.id = id || 0
|
|
|
this.display = display
|
|
@@ -384,8 +385,8 @@
|
|
|
})
|
|
|
}
|
|
|
// 任务单物料明细
|
|
|
- if (data.data.saleROrderProductParamsList) {
|
|
|
- data.data.saleROrderProductParamsList.forEach((item) => {
|
|
|
+ if (data.data.saleROrderProductList) {
|
|
|
+ data.data.saleROrderProductList.forEach((item) => {
|
|
|
this.addItem(item)
|
|
|
})
|
|
|
}
|
|
@@ -504,21 +505,21 @@
|
|
|
deleteProductHandle (recordId) {
|
|
|
this.productDetails.splice(this.productDetails.findIndex((item) => item.recordId === recordId), 1)
|
|
|
},
|
|
|
- // 添加任务工单
|
|
|
+ // 添加工单派发
|
|
|
addWorkItemHandle () {
|
|
|
this.worderListVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.worderList.init()
|
|
|
})
|
|
|
},
|
|
|
- // 编辑产品项
|
|
|
+ // 编辑工单派发项
|
|
|
updateWorkItemHandle (row) {
|
|
|
this.worderListVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.worderList.init(row.recordId, row)
|
|
|
})
|
|
|
},
|
|
|
- // 删除产品项
|
|
|
+ // 删除工单派发项
|
|
|
deleteWorkItemHandle (recordId) {
|
|
|
this.workInfoDetails.splice(this.workInfoDetails.findIndex((item) => item.recordId === recordId), 1)
|
|
|
},
|