|
@@ -17,9 +17,7 @@
|
|
|
:total="total"
|
|
|
>
|
|
|
<div slot="titleButton">
|
|
|
- <Button @click="back" type="primary" ghost style="margin-right: 30px"
|
|
|
- >返回</Button
|
|
|
- >
|
|
|
+ <Button type="primary" @click="handleTotalPost" style="margin-right: 30px">一键下排产</Button>
|
|
|
<Dropdown trigger="click" transfer style="margin-right: 30px;
|
|
|
border: 1px solid rgb(45, 140, 240);
|
|
|
width: 75px;
|
|
@@ -73,6 +71,9 @@
|
|
|
>批量下生产排产</Button
|
|
|
>
|
|
|
<Button type="primary" ghost>批量打印订单</Button> -->
|
|
|
+ <Button @click="back" type="primary" ghost style="margin-right: 30px"
|
|
|
+ >返回</Button
|
|
|
+ >
|
|
|
</div>
|
|
|
|
|
|
<template slot="set" slot-scope="{ row }">
|
|
@@ -411,6 +412,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ unPrId:[],
|
|
|
options:{},
|
|
|
finishData:[],
|
|
|
basics_procedure_list:[],
|
|
@@ -995,6 +997,9 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleTotalPost(){
|
|
|
+ this.openModal(null,1);
|
|
|
+ },
|
|
|
timeFocus(e,row){
|
|
|
if(e){
|
|
|
let ids = [];
|
|
@@ -1018,6 +1023,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
finishDataTrue(){
|
|
|
+ console.log(this.planInfo.pr_id);
|
|
|
let arr = [];
|
|
|
this.basics_procedure_list.forEach(m=>{
|
|
|
let obj = {};
|
|
@@ -1130,6 +1136,9 @@ switch(e){
|
|
|
this.list[3].option = res.data.number_detail;
|
|
|
this.list[4].option = res.data.part;
|
|
|
this.list[9].option = res.data.img_number;
|
|
|
+ this.axios.post('/api/batch_orders_plan',{...row}).then(res=>{
|
|
|
+ this.unPrId = res.data;
|
|
|
+ })
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -1200,7 +1209,7 @@ switch(e){
|
|
|
back() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
- openModal(row) {
|
|
|
+ openModal(row,type) {
|
|
|
if (Array.isArray(row)) {
|
|
|
//批量下生产操作
|
|
|
if (row.length < 1) {
|
|
@@ -1239,8 +1248,14 @@ switch(e){
|
|
|
row.map((v) => result.push(v.pr_id));
|
|
|
this.planInfo.pr_id = result;
|
|
|
} else {
|
|
|
- //单个下生产
|
|
|
- this.planInfo.pr_id = [row.pr_id];
|
|
|
+
|
|
|
+ if(type){
|
|
|
+//一键下生产
|
|
|
+ this.planInfo.pr_id = this.unPrId;
|
|
|
+ }else{
|
|
|
+ //单个下生产
|
|
|
+ this.planInfo.pr_id = [row.pr_id];
|
|
|
+ }
|
|
|
}
|
|
|
this.axios.get('/api/basics_procedure_index').then(res=>{
|
|
|
this.basics_procedure_list = res.data.data.filter(v=>{
|