Commit af93c3f6 authored by chenzj's avatar chenzj

领料申请bug修复

parent 2ee3cd83
......@@ -63,18 +63,6 @@ const install = (Vue, vm) => {
//生产报工
feedback: (params = {}) =>
vm.$u.post(config.adminPath + '/mobile/pro/protask/feedback', params),
// 生产指令列表
workOrderSoDirectiveApi: (params = {}) =>
vm.$u.get(
config.adminPath + '/mes/pro/workOrderSoDirective/list',
params
),
// SIZE列表
workOrderSoSizeItemApi: (params = {}) =>
vm.$u.get(
config.adminPath + '/mes/pro/workOrderSoSizeItem/listDynamic',
params
),
//增加检验
getTaskInfoByTaskCode: (params = {}) =>
vm.$u.get(
......@@ -223,10 +211,10 @@ const install = (Vue, vm) => {
params
),
getWproworkOrderProcessItem: (params = {}) =>
vm.$u.get(
vm.$u.postJson(
config.adminPath +
'/pro/materialRequest/selectworkorder/' +
params.workorderId
'/pro/materialRequest/selectworkorder',
params
),
//退料申请
......
......@@ -2005,13 +2005,18 @@ export default {
});
},
materialReturnWorkorderProcessItem(id) {
this.$u.api.getWproworkOrderProcessItem({ workorderId: Number(id)}).then((res) => {
if (res.code === 200) {
this.materialRequestArrays = this.materialRequestList.concat(res.rows)
}
});
},
if(!id){
this.materialRequestArrays = this.materialRequestList.concat([])
}else{
this.$u.api.getWproworkOrderProcessItem({ workorderId: id, processId: this.curTaskInfo.processId}).then((res) => {
if (res.code === 200) {
this.materialRequestArrays = this.materialRequestList.concat(res.rows)
}
});
}
},
materialReturnFormShow(line) {
this.materialReturnFormVisible = true;
this.materialReturnFormData = {
......
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