|
@@ -933,10 +933,39 @@
|
|
|
})
|
|
|
},
|
|
|
viewPgRow(row){
|
|
|
- this.$refs.prodProg.setTenant(row)
|
|
|
- this.$refs.prodProg.type = "view"
|
|
|
- this.dialogPP.title = this.$t("runCenter.common.orderPg")
|
|
|
- this.dialogPP.isVisible = true
|
|
|
+ // this.$refs.prodProg.setTenant(row)
|
|
|
+ // this.$refs.prodProg.type = "view"
|
|
|
+ // this.dialogPP.title = this.$t("runCenter.common.orderPg")
|
|
|
+ // this.dialogPP.isVisible = true
|
|
|
+ const orderList = []
|
|
|
+ orderList.push(row)
|
|
|
+ console.log(orderList)
|
|
|
+ // 把选择的数据,给后台,
|
|
|
+ orderMgrApi.oneTouchSchedule({orderList: orderList}).then(res => {
|
|
|
+ res = res.data
|
|
|
+ console.log("【查看排产方案】按钮: ", res)
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.$message({
|
|
|
+ message: this.$t('tips.optionSuccess'),
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ // 组装planIds
|
|
|
+ let planIds = this.selection.map(item => item.id).join(",");
|
|
|
+ // 先关闭,前一个弹出页面
|
|
|
+ this.dialogVisible = false
|
|
|
+ // 给页面赋值,带到下一个子组件
|
|
|
+ // this.tenant = res.data
|
|
|
+ // 赋值给,下一个组件使用
|
|
|
+ // res.data.planIds = planIds;
|
|
|
+ this.$refs.prodProg.setTenant({ planIds: planIds });
|
|
|
+ // this.$refs.prodProg.setTenant(res.data)
|
|
|
+ // 给子页面,赋值,订单数据
|
|
|
+ this.$refs.prodProg.orderList = this.selection
|
|
|
+ this.$refs.prodProg.type = "productProg"
|
|
|
+ this.dialogPP.title = this.$t("runCenter.common.prodpg")
|
|
|
+ this.dialogPP.isVisible = true
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 【修改】表头上Btn-事件
|
|
|
editOne() {
|