|
|
@ -115,14 +115,14 @@
|
|
|
|
>导出
|
|
|
|
>导出
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button type="primary" plain icon="el-icon-guide" size="mini"
|
|
|
|
<el-button type="primary" plain icon="el-icon-guide" size="mini"
|
|
|
|
@click="handleAutoSplit"
|
|
|
|
@click="handleAutoSplit"
|
|
|
|
:disabled="single"
|
|
|
|
:disabled="single"
|
|
|
|
v-hasPermi="['mes:pro:order:edit']">辅助排产
|
|
|
|
v-hasPermi="['mes:pro:order:edit']">辅助排产
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -519,8 +519,8 @@
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="生产工艺" label-width="100px">
|
|
|
|
<el-form-item label="生产工艺" label-width="100px">
|
|
|
|
<el-select v-model="autoSplitform1.routeCode" placeholder="请选择工艺" style="width: 100%;">
|
|
|
|
<el-select v-model="autoSplitform1.routeCode" placeholder="请选择工艺" style="width: 100%;">
|
|
|
@ -530,15 +530,15 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="工单排序" label-width="100px">
|
|
|
|
<el-form-item label="工单排序" label-width="100px">
|
|
|
|
<el-input v-model="autoSplitform1.sortNo" type="Number" style="width: 100%;"></el-input>
|
|
|
|
<el-input v-model="autoSplitform1.sortNo" type="Number" style="width: 100%;"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<!--第二步-->
|
|
|
|
<!--第二步-->
|
|
|
@ -556,7 +556,7 @@
|
|
|
|
</el-checkbox>
|
|
|
|
</el-checkbox>
|
|
|
|
</el-checkbox-group>
|
|
|
|
</el-checkbox-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<!--第三步-->
|
|
|
|
<!--第三步-->
|
|
|
@ -1377,7 +1377,7 @@ export default {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.openAutoSplit = false;
|
|
|
|
this.openAutoSplit = false;
|
|
|
|
this.activeSplit = 0;
|
|
|
|
this.activeSplit = 0;
|
|
|
|
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {});
|
|
|
|
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 判空、空串
|
|
|
|
// 判空、空串
|
|
|
|
checkNull(entity) {
|
|
|
|
checkNull(entity) {
|
|
|
@ -1508,7 +1508,7 @@ export default {
|
|
|
|
getProRoutes(this.autoSplitList[0].prodCode).then(response => {
|
|
|
|
getProRoutes(this.autoSplitList[0].prodCode).then(response => {
|
|
|
|
this.routes = response.data;
|
|
|
|
this.routes = response.data;
|
|
|
|
this.autoSplitform1.routeCode = response.data[0].routeCode;
|
|
|
|
this.autoSplitform1.routeCode = response.data[0].routeCode;
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
//var ymd = moment(this.autoSplitform1.productDate).format('YYYY-MM-DD')
|
|
|
|
//var ymd = moment(this.autoSplitform1.productDate).format('YYYY-MM-DD')
|
|
|
|
// 获取工单生产顺序
|
|
|
|
// 获取工单生产顺序
|
|
|
@ -1562,7 +1562,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
next() {
|
|
|
|
next() {
|
|
|
|
if (this.activeSplit++ > 2) this.activeSplit = 0;
|
|
|
|
if (this.activeSplit++ > 2) this.activeSplit = 0;
|
|
|
|
//选完线体后的下一步,会进行模拟拆分
|
|
|
|
//选完线体后的下一步,会进行模拟拆分
|
|
|
|
if(this.activeSplit == 2){
|
|
|
|
if(this.activeSplit == 2){
|
|
|
|
autoSplitOrder(Object.assign({},this.autoSplitList[0],this.autoSplitform1,this.autoSplitform2)).then(response => {
|
|
|
|
autoSplitOrder(Object.assign({},this.autoSplitList[0],this.autoSplitform1,this.autoSplitform2)).then(response => {
|
|
|
|
this.workerLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
this.workerLoading = true // 设置加载状态为true,表示正在加载
|
|
|
@ -1578,15 +1578,15 @@ export default {
|
|
|
|
this.workerLoading = false // 设置加载状态为false,表示加载完成
|
|
|
|
this.workerLoading = false // 设置加载状态为false,表示加载完成
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
prev(){
|
|
|
|
prev(){
|
|
|
|
if (this.activeSplit-- > 2) this.activeSplit = 2;
|
|
|
|
if (this.activeSplit-- > 2) this.activeSplit = 2;
|
|
|
|
//会进行模拟拆分的取消
|
|
|
|
//会进行模拟拆分的取消
|
|
|
|
if(this.activeSplit == 1){
|
|
|
|
if(this.activeSplit == 1){
|
|
|
|
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {
|
|
|
|
autoSplitOrderCancel(Object.assign({},this.autoSplitList[0])).then(response => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
autoSplitCommit(){
|
|
|
|
autoSplitCommit(){
|
|
|
@ -1595,7 +1595,7 @@ export default {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.openAutoSplit = false;
|
|
|
|
this.openAutoSplit = false;
|
|
|
|
this.activeSplit = 0;
|
|
|
|
this.activeSplit = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|