Commit 02628724 authored by 张海景's avatar 张海景

Merge branch 'dev' of http://git.local.topsunit.com/mes/mes-pad into dev

parents 963660d8 407ff920
...@@ -588,6 +588,7 @@ ...@@ -588,6 +588,7 @@
<zb-table :columns="tableDetailColumn" :stripe="true" :border="true" :data="tableDataDetail"></zb-table> <zb-table :columns="tableDetailColumn" :stripe="true" :border="true" :data="tableDataDetail"></zb-table>
</view> </view>
</u-modal> </u-modal>
//查询图片生产工单
<u-modal <u-modal
title="生产工单" title="生产工单"
@confirm="materialReturnSave()" @confirm="materialReturnSave()"
...@@ -1281,11 +1282,13 @@ export default { ...@@ -1281,11 +1282,13 @@ export default {
this.stopReason += e; this.stopReason += e;
}, },
workorderSelect(id, index) { workorderSelect(id, index) {
console.log(id, '9999')
const row = this.feedbackForms[index]; const row = this.feedbackForms[index];
if(!id){ if(!id){
row.sizeList = []; row.sizeList = [];
row.directiveList = []; row.directiveList = [];
row.workorderSoSizeItemId = ''; row.workorderSoSizeItemId = '';
row.printContents = row.arrangeCode
row.workorderSoDirectiveId = ''; row.workorderSoDirectiveId = '';
return; return;
} }
...@@ -1293,7 +1296,8 @@ export default { ...@@ -1293,7 +1296,8 @@ export default {
const items = row.workorderList.find((item) => item.workorderId === id); const items = row.workorderList.find((item) => item.workorderId === id);
row.workorderCode = items.workorderCode; row.workorderCode = items.workorderCode;
row.printName = items.workorderCode; row.printName = items.workorderCode;
row.printContents =row.arrangeCode+row.workorderCode //row.printContents =row.arrangeCode+row.workorderCode
row.printContents =row.workorderCode
row.sizeList = row.sizeData[id]; row.sizeList = row.sizeData[id];
row.directiveList = row.directiveData[id]; row.directiveList = row.directiveData[id];
row.packByDirective = items.packByDirective; row.packByDirective = items.packByDirective;
...@@ -1343,6 +1347,9 @@ export default { ...@@ -1343,6 +1347,9 @@ export default {
}) })
.then((res) => { .then((res) => {
item.workorderList = res.rows; item.workorderList = res.rows;
if(res.rows.length === 1) {
item.printContents = res.rows[0].workorderCode
}
//如果只关联一个订单,默认选中 //如果只关联一个订单,默认选中
if(res.rows.length==1){ if(res.rows.length==1){
item.workorderId = res.rows[0].workorderId; item.workorderId = res.rows[0].workorderId;
......
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