|
@@ -32,6 +32,10 @@
|
|
|
align="right">
|
|
|
</el-date-picker>
|
|
|
</span>
|
|
|
+ <span style="margin-left: 15px;">
|
|
|
+ <span>{{$t("runCenter.searchForm.taskCode")}}:</span>
|
|
|
+ <el-input v-model="taskCode" style="width: 120px;" size="medium"/>
|
|
|
+ </span>
|
|
|
<!--<span style="margin-left: 15px;">
|
|
|
<el-button plain type="primary" icon="el-icon-search" size="medium" @click="search">
|
|
|
{{ $t("table.search") }}
|
|
@@ -71,7 +75,7 @@
|
|
|
<el-col>
|
|
|
<!-- 刀具校验 -->
|
|
|
<el-button type="primary" icon="el-icon-data-analysis" size="medium" v-has-permission="['order:checkCuttingTool']" @click="checkCuttingTool">{{$t("runCenter.buttons.checkCuttingTool")}}</el-button>
|
|
|
-
|
|
|
+ <el-button type="primary" icon="el-icon-data-analysis" size="medium" v-has-permission="['order:checkCuttingTool']" @click="clickMes">{{$t("runCenter.buttons.mes")}}</el-button>
|
|
|
<el-button type="primary" icon="el-icon-finished" size="medium" v-has-permission="['order:onebtn']" @click="viewPg">{{$t("runCenter.buttons.onebtn")}}</el-button>
|
|
|
<!--<el-button type="success" icon="el-icon-finished" size="medium" v-has-permission="['order:gostBtn']" @click="editOne">{{$t("runCenter.buttons.gostBtn")}}</el-button>-->
|
|
|
<el-button type="primary" icon="el-icon-finished" size="medium" v-has-permission="['order:onebtn']" @click="viewConf" v-show="false">高级排产配置</el-button>
|
|
@@ -384,6 +388,7 @@
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
|
import { initQueryParams } from '@/utils/commons'
|
|
|
import DyPriority from './components/dyPriority.vue'
|
|
|
+ import dispatchMgrApi from "@/api/Dispatch";
|
|
|
|
|
|
export default {
|
|
|
name: "DraftOrder",
|
|
@@ -439,6 +444,7 @@
|
|
|
queryParams: initQueryParams({}),
|
|
|
selection: [],
|
|
|
loading: false,
|
|
|
+ taskCode: '',
|
|
|
tableData: {
|
|
|
total: 0
|
|
|
},
|
|
@@ -1135,6 +1141,32 @@
|
|
|
checkCuttingToolsClose(){
|
|
|
this.checkCuttingToolsVisible = false
|
|
|
},
|
|
|
+ clickMes(){
|
|
|
+ console.log(this.taskCode)
|
|
|
+ // eslint-disable-next-line no-empty
|
|
|
+ if(this.taskCode!=''){
|
|
|
+ dispatchMgrApi.automationTask(this.taskCode).then((response)=>{
|
|
|
+ const res = response.data;
|
|
|
+ this.loading = false;
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.$message({
|
|
|
+ message:res.data,
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: this.$t("请输入MES订单编码"),
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|