|
|
|
@ -305,6 +305,7 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
|
<el-button type="success" @click="handleRawInstock">板材入库</el-button>
|
|
|
|
|
<el-button type="success" @click="showFinish">{{ showTitle }}完工</el-button>
|
|
|
|
|
<el-button type="info" @click="handleViewSOP">SOP预览</el-button>
|
|
|
|
|
<el-button type="danger" @click="logout">退出</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
@ -472,7 +473,9 @@ export default {
|
|
|
|
|
//预览文件数据列表
|
|
|
|
|
fileListData: [],
|
|
|
|
|
rawOutstockData:[],
|
|
|
|
|
purchaseOrderData:[]
|
|
|
|
|
purchaseOrderData:[],
|
|
|
|
|
IS_SHOW_FINISH: "1",
|
|
|
|
|
showTitle: "显示"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
@ -486,7 +489,7 @@ export default {
|
|
|
|
|
// duration: 0
|
|
|
|
|
// });
|
|
|
|
|
// }, 60 * 1000)
|
|
|
|
|
const data = await getProductPlans({pageNum: 1, pageSize: 5}).then(e => {
|
|
|
|
|
const data = await getProductPlans({pageNum: 1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
this.$refs.table1.setCurrentRow(e.rows[0]);
|
|
|
|
@ -683,14 +686,14 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
next1() {
|
|
|
|
|
this.nowNum1 += 1
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
pre1() {
|
|
|
|
|
this.nowNum1 -= 1
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
@ -1092,7 +1095,7 @@ export default {
|
|
|
|
|
message: '已完成'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
let data = e.rows.find(v => v.planCode === this.form.planCode) || null
|
|
|
|
@ -1410,7 +1413,21 @@ export default {
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showFinish() {
|
|
|
|
|
if (this.IS_SHOW_FINISH === "1"){
|
|
|
|
|
this.showTitle = "隐藏";
|
|
|
|
|
this.IS_SHOW_FINISH = "";
|
|
|
|
|
} else {
|
|
|
|
|
this.showTitle = "显示";
|
|
|
|
|
this.IS_SHOW_FINISH = "1";
|
|
|
|
|
}
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5, incompleteFlag: this.IS_SHOW_FINISH}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|