|
@@ -111,7 +111,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" type="selection" style="width: 3%;" :reserve-selection="true" />
|
|
|
+ <el-table-column align="center" type="selection" style="width: 3%;" :reserve-selection="true" :selectable="checkSel" />
|
|
|
<!-- 订单编号
|
|
|
<el-table-column prop="orderNo" :label='$t("runCenter.table.oder.orderNo")' :show-overflow-tooltip="true" style="width: 12%;"></el-table-column> -->
|
|
|
<!-- 订单名称 -->
|
|
@@ -190,12 +190,21 @@
|
|
|
>
|
|
|
<template slot-scope="{ row }">
|
|
|
<!-- 暂停-->
|
|
|
- <el-tooltip v-if="row.produceStatus == '1' || row.produceStatus == '2'" class="item" content='暂停' effect="dark" placement="top-start">
|
|
|
+ <el-tooltip v-if="row.produceStatus == '2'" class="item" content='暂停' effect="dark" placement="top-start">
|
|
|
<i
|
|
|
class="el-icon-video-pause table-operation"
|
|
|
style="color: #2db7f5;"
|
|
|
@click="orderOperateBtn(row,'stop')"
|
|
|
/>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip v-if="row.singleTaskFlag == '1'" class="item" :content="$t('resource.buttons.setting')"
|
|
|
+ effect="dark" placement="top-start"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-view table-operation"
|
|
|
+ style="color: #2db7f5"
|
|
|
+ @click="orderConf(row)"
|
|
|
+ />
|
|
|
</el-tooltip>
|
|
|
<el-tooltip v-if="row.produceStatus == '1' && row.singleTaskFlag == '1'" class="item" :content='$t("runCenter.buttons.prodNode")' effect="dark" placement="top-start">
|
|
|
<i
|
|
@@ -213,7 +222,7 @@
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
<!-- 排产预览 -->
|
|
|
- <el-tooltip v-if="row.produceStatus == '1'" class="item" content='排产预览' effect="dark" placement="top-start">
|
|
|
+ <el-tooltip v-if="row.produceStatus == '1' && row.singleTaskFlag == '0'" class="item" content='排产预览' effect="dark" placement="top-start">
|
|
|
<i
|
|
|
class="el-icon-view table-operation"
|
|
|
style="color: #87d068;"
|
|
@@ -360,6 +369,14 @@
|
|
|
:dialog-visible.sync="dyPriorityVisible"
|
|
|
@close="dyClose"
|
|
|
@success="editSuccess"
|
|
|
+ />
|
|
|
+ <!-- 生产资源资料 -->
|
|
|
+ <detail-conf
|
|
|
+ ref="detailConf"
|
|
|
+ :dialog-visible="dialogDetailConf.isVisible"
|
|
|
+ :title="dialogDetailConf.title"
|
|
|
+ @close="editDetailConfClose"
|
|
|
+ @success="editDetailConfSuccess"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -382,11 +399,12 @@
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
|
import { initQueryParams } from '@/utils/commons'
|
|
|
import DyPriority from './components/dyPriority.vue'
|
|
|
+ import DetailConf from "./../orderTask/components/DetailConf"
|
|
|
|
|
|
export default {
|
|
|
name: "DraftOrder",
|
|
|
directives: { elDragDialog },
|
|
|
- components: { Pagination, TenantEdit, TenantView, ProductionProgramme, checkCuttingTools, DyPriority},
|
|
|
+ components: { Pagination, TenantEdit, TenantView, ProductionProgramme, checkCuttingTools, DyPriority, DetailConf},
|
|
|
props: {
|
|
|
},
|
|
|
data () {
|
|
@@ -428,6 +446,10 @@
|
|
|
isVisible: false,
|
|
|
title: ""
|
|
|
},
|
|
|
+ dialogDetailConf: {
|
|
|
+ isVisible: false,
|
|
|
+ title: "",
|
|
|
+ },
|
|
|
preview: {
|
|
|
isVisible: false,
|
|
|
context: ''
|
|
@@ -503,7 +525,9 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ checkSel(row){
|
|
|
+ return row.singleTaskFlag == '0'
|
|
|
+ },
|
|
|
// 【全选】checkbox-事件
|
|
|
handleCheckAllChange(val) {
|
|
|
// 全选赋值
|
|
@@ -617,6 +641,21 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ orderConf(row){
|
|
|
+ let obj = {}
|
|
|
+ obj.id = row.orderId
|
|
|
+ this.$refs.detailConf.setTenant(obj, this.dicts)
|
|
|
+ this.$refs.detailConf.type = "view";
|
|
|
+ this.dialogDetailConf.title = "任务配置"
|
|
|
+ this.dialogDetailConf.isVisible = true
|
|
|
+ },
|
|
|
+ editDetailConfClose() {
|
|
|
+ this.dialogDetailConf.isVisible = false;
|
|
|
+ },
|
|
|
+ editDetailConfSuccess() {
|
|
|
+ //this.search();
|
|
|
+ },
|
|
|
+
|
|
|
// 【优先级】按钮-事件
|
|
|
prorityBtn(){
|
|
|
if(this.checkData()){
|
|
@@ -633,7 +672,9 @@
|
|
|
panseBtn(val, data){
|
|
|
let obj = { status: val }
|
|
|
if(data) {
|
|
|
- obj.id = data.id;
|
|
|
+ obj.id = data.orderId;
|
|
|
+ obj.planId = data.id;
|
|
|
+ obj.orderName = data.orderName;
|
|
|
if(val == '1'){
|
|
|
orderMgrApi.orderEnable(obj).then(res => {
|
|
|
res = res.data
|