chenlu
2024-12-02 e50fa16b6dbc4e7c50d5fbdbc04d2a556ca01c4e
north-glass-erp/northglass-erp/src/views/pp/glassOptimize/page/ProjectDetail.vue
@@ -6,13 +6,11 @@
  Plus,
  Setting,
  Operation,
  Tickets,
  DocumentCopy,
  Grid,
  Edit,
  Printer,
  DocumentAdd, Minus, Menu, Checked, Upload, Suitcase, Refresh, CircleCloseFilled, Sort, Link,
} from "@element-plus/icons-vue";
import OptimizeCompute from "@/views/pp/glassOptimize/page/OptimizeCompute.vue";
import SetAmount from "@/views/pp/glassOptimize/page/SetAmount.vue";
import SetTrimming from "@/views/pp/glassOptimize/page/SetTrimming.vue";
import CheckInventory from "@/views/pp/glassOptimize/page/CheckInventory.vue";
const {t} = useI18n()
@@ -67,8 +65,8 @@
  },*/
  columns: [
    {title: '订序', width: 70},
    {field: 'state', width: 150, title: t('order.width'), filters: [{data: ''}], slots: {filter: 'num2_filter'}},
    {type: 'seq', width: 150, title: t('order.height')},
    {field: 'state', width: 100, title: t('order.width'), filters: [{data: ''}], slots: {filter: 'num2_filter'}},
    {field: 'seq', width: 100, title: t('order.height'),filters: [{data: ''}],slots: {filter: 'num2_filter'}},
    {
      field: 'id',
      width: 150,
@@ -172,6 +170,13 @@
  await emit('changeDialog', command)
}
//优化计算
const dialogVisible = ref({});
const openDialog = (index) => {
  dialogVisible.value[index] = true;
};
</script>
<template>
@@ -215,13 +220,46 @@
            <span>工程编号:</span>
            <vxe-input disabled placeholder=""></vxe-input>&nbsp;
            <span>工程名称:</span>
            <vxe-input placeholder="" style="margin-right: 150px"></vxe-input>
            <el-button id="checkinventory" type="primary">查询库存</el-button>
            <el-button id="checkremnant" type="primary">查询余料</el-button>
            <el-button id="selectml" type="primary">设置磨量</el-button>
            <el-button id="selectxb" type="primary">设置修边</el-button>
            <el-button id="safe" type="primary">保存</el-button>
            <el-button id="optimize" type="primary">优化</el-button>
            <vxe-input placeholder="" style="margin-right: 270px"></vxe-input>
            <el-button id="checkinventory" type="primary" @click="openDialog(1)">查询库存</el-button>
            <el-dialog
                v-model="dialogVisible[1]"
                title="查询库存"
                destroy-on-close
                style="width: 35%;height:35%;">
              <check-inventory/>
            </el-dialog>
            <el-button id="button" type="primary" @click="openDialog(2)">设置磨量</el-button>
            <el-dialog
                v-model="dialogVisible[2]"
                title="设置磨量"
                destroy-on-close
                style="width: 35%;height:80%;margin-top: 3vh;">
               <set-amount/>
            </el-dialog>
            <el-button id="button" type="primary" @click="openDialog(3)">设置修边</el-button>
            <el-dialog
                v-model="dialogVisible[3]"
                title="设置修边"
                destroy-on-close
                style="width: 35%;height:80%;margin-top: 3vh;">
              <set-trimming/>
            </el-dialog>
            <el-button id="button" type="primary">保存</el-button>
            <el-button id="button" type="primary" @click="openDialog(4)">优化</el-button>
            <el-dialog
                v-model="dialogVisible[4]"
                title="优化计算"
                destroy-on-close
                style="width: 75%;height:90%;margin-top: 3vh;"
            >
              <optimize-compute/>
            </el-dialog>
          </div>
          <!--工程文件菜单-->
          <el-dropdown @command="handleCommand">
@@ -256,5 +294,8 @@
  margin-top: 8px;
}
#button{
  margin-left: 10px;
}
</style>