Commit 667b44de authored by 张海景's avatar 张海景

update:生产报工最后一道工序显示指令列表和size列表

parent acc19762
......@@ -222,7 +222,7 @@
</u-row>
</view>
</u-form>
<view>
<view v-if="feedback.isLastProcess">
<u-tabs :list="listTabPro" :is-scroll="false" :show-bar="false" :current="feedback.currentTabPro" @change="handleChangeTabPro($event, feedback)"></u-tabs>
<!-- 指令列表 -->
<view v-show="feedback.currentTabPro === 0" class="feedback-card">
......@@ -1320,9 +1320,11 @@ export default {
row.tableSizeData = []
return;
} else {
if (row.isLastProcess) {
this.getWorkorderDirectiveList(id, index)
this.getWorkorderSizeList(id, index)
}
}
row.workorderId = id;
const items = row.workorderList.find((item) => item.workorderId === id);
row.workorderCode = items.workorderCode;
......@@ -1383,8 +1385,10 @@ export default {
item.printContents = res.rows[0].workorderCode
item.workorderId = res.rows[0].workorderId;
item.workorderCode = res.rows[0].workorderCode;
if (item.isLastProcess) {
this.getWorkorderDirectiveList(res.rows[0].workorderId, index)
this.getWorkorderSizeList(res.rows[0].workorderId, index)
}
if(res.rows[0].sizeList2!=null){
item.sizeList = res.rows[0].sizeList2.map(temp2=>{
return {
......
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