gaoluyang
2025-12-04 0c5b607e028bd756079cb328dd0914db2c9093f5
src/views/productionManagement/operationScheduling/index.vue
@@ -32,6 +32,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"
@@ -60,12 +61,9 @@
   searchForm: {
      staffName: "",
      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);
@@ -92,6 +90,16 @@
            return 'warning';
         }
      },
   },
   {
      label: "产线",
      prop: "productionLineName",
      width: 120,
   },
   {
      label: "生产人",
      prop: "productionUserName",
      width: 120,
   },
   {
      label: "派工日期",
@@ -132,6 +140,11 @@
      prop: "specificationModel",
      width: 150,
   },
   // {
   //    label: "绑定机器",
   //    prop: "speculativeTradingName",
   //    width: 220,
   // },
   {
      label: "单位",
      prop: "unit",
@@ -250,6 +263,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();
});