周宾
12 小时以前 9afe58b2eece02fe7054aafdb71a5a9e50ba97a4
src/views/productionManagement/operationScheduling/index.vue
@@ -7,11 +7,16 @@
                              style="width: 200px;"
                              @change="handleQuery" />
            </el-form-item>
            <el-form-item label="项目名称:">
               <el-input v-model="searchForm.projectName" placeholder="请输入" clearable prefix-icon="Search"
            <el-form-item label="合同号:">
               <el-input v-model="searchForm.salesContractNo" placeholder="请输入" clearable prefix-icon="Search"
                              style="width: 200px;"
                              @change="handleQuery" />
            </el-form-item>
<!--            <el-form-item label="项目名称:">-->
<!--               <el-input v-model="searchForm.projectName" placeholder="请输入" clearable prefix-icon="Search"-->
<!--                              style="width: 200px;"-->
<!--                              @change="handleQuery" />-->
<!--            </el-form-item>-->
            <el-form-item label="派工日期:">
               <el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
                                       placeholder="请选择" clearable @change="changeDaterange" />
@@ -32,6 +37,7 @@
         <div style="text-align: right" class="mb10">
            <el-button type="primary" @click="openForm">工序排产</el-button>
            <el-button type="danger" @click="handleDelete" plain>取消排产</el-button>
            <el-button @click="handleOut">导出</el-button>
         </div>
         <PIMTable
            rowKey="id"
@@ -59,13 +65,12 @@
const data = reactive({
   searchForm: {
      staffName: "",
      customerName: "",
      salesContractNo: "",
      status: 1,
      entryDate: [
         dayjs().format("YYYY-MM-DD"),
         dayjs().add(1, "day").format("YYYY-MM-DD"),
      ], // 录入日期
      entryDate: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")], // 录入日期,默认当天
      entryDateStart: dayjs().format("YYYY-MM-DD"),
      entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
      entryDateEnd: dayjs().format("YYYY-MM-DD"),
   },
});
const { searchForm } = toRefs(data);
@@ -107,21 +112,21 @@
      prop: "salesContractNo",
      width: 200,
   },
   {
      label: "客户合同号",
      prop: "customerContractNo",
      width: 200,
   },
   // {
   //    label: "客户合同号",
   //    prop: "customerContractNo",
   //    width: 200,
   // },
   {
      label: "客户名称",
      prop: "customerName",
      width: 200,
   },
   {
      label: "项目名称",
      prop: "projectName",
      width:300
   },
   // {
   //    label: "项目名称",
   //    prop: "projectName",
   //    width:300
   // },
   {
      label: "产品大类",
      prop: "productCategory",
@@ -132,6 +137,16 @@
      prop: "specificationModel",
      width: 150,
   },
   {
      label: "绑定机器",
      prop: "speculativeTradingName",
      width: 220,
   },
   // {
   //    label: "产线",
   //    prop: "productionLine",
   //    width: 220,
   // },
   {
      label: "单位",
      prop: "unit",
@@ -250,6 +265,22 @@
         proxy.$modal.msg("已取消");
      });
};
// 导出
const handleOut = () => {
   ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", {
      confirmButtonText: "确认",
      cancelButtonText: "取消",
      type: "warning",
   })
      .then(() => {
         proxy.download("/salesLedger/scheduling/exportTwo", {}, "工序排产.xlsx");
      })
      .catch(() => {
         proxy.$modal.msg("已取消");
      });
};
onMounted(() => {
   getList();
});