gaoluyang
2025-11-26 1c4ff7adf79cd9abc1ea644a3161780a623b9f5c
src/views/productionManagement/productionReporting/index.vue
@@ -31,6 +31,7 @@
      <div class="table_list">
         <div style="text-align: right" class="mb10">
            <el-button type="primary" @click="openForm('add')">生产报工</el-button>
            <el-button @click="handleOut">导出</el-button>
         </div>
         <PIMTable
            rowKey="id"
@@ -148,12 +149,9 @@
const data = reactive({
   searchForm: {
      staffName: "",
      entryDate: [
         dayjs().format("YYYY-MM-DD"),
         dayjs().add(1, "day").format("YYYY-MM-DD"),
      ], // 录入日期
      entryDateStart: dayjs().format("YYYY-MM-DD"),
      entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
      entryDate: null, // 录入日期
      entryDateStart: undefined,
      entryDateEnd: undefined,
   },
});
const { searchForm } = toRefs(data);
@@ -199,26 +197,6 @@
      prop: "schedulingUserName",
   },
   {
      label: "合同号",
      prop: "salesContractNo",
      width: 200,
   },
   {
      label: "客户合同号",
      prop: "customerContractNo",
      width: 200,
   },
   {
      label: "客户名称",
      prop: "customerName",
      width: 200,
   },
   {
      label: "项目名称",
      prop: "projectName",
      width:300
   },
   {
      label: "产品大类",
      prop: "productCategory",
      width: 150,
@@ -237,6 +215,16 @@
      prop: "process",
   },
   {
      label: "口味分类",
      prop: "type",
      width: 150,
   },
   {
      label: "损耗",
      prop: "loss",
      width: 150,
   },
   {
      label: "排产数量",
      prop: "schedulingNum",
      width: 100,
@@ -250,6 +238,11 @@
      label: "待生产数量",
      prop: "pendingFinishNum",
      width: 100,
   },
   {
      label: "备注",
      prop: "remark",
      width: 200,
   },
]);
const tableData = ref([]);
@@ -416,7 +409,7 @@
      type: "warning",
   })
      .then(() => {
         proxy.download("/staff/staffJoinLeaveRecord/export", {staffState: 1}, "人员入职.xlsx");
         proxy.download("/salesLedger/work/export", {}, "生产报工.xlsx");
      })
      .catch(() => {
         proxy.$modal.msg("已取消");