周宾
2025-12-11 e98ab2c9d515bf14648f2ef1e0b91cb923be9803
src/views/productionManagement/productionDispatching/index.vue
@@ -38,18 +38,33 @@
               clearable
               prefix-icon="Search"
            />
            <span class="search_title ml10">项目名称:</span>
            <span class="search_title ml10">合同号:</span>
            <el-input
               v-model="searchForm.projectName"
               v-model="searchForm.salesContractNo"
               style="width: 240px"
               placeholder="请输入"
               @change="handleQuery"
               clearable
               prefix-icon="Search"
            />
<!--            <span class="search_title ml10">项目名称:</span>-->
<!--            <el-input-->
<!--               v-model="searchForm.projectName"-->
<!--               style="width: 240px"-->
<!--               placeholder="请输入"-->
<!--               @change="handleQuery"-->
<!--               clearable-->
<!--               prefix-icon="Search"-->
<!--            />-->
            <span class="search_title ml10">录入日期:</span>
            <el-date-picker v-model="searchForm.entryDate" value-format="YYYY-MM-DD" format="YYYY-MM-DD" type="daterange"
                              placeholder="请选择" clearable @change="changeDaterange" />
            <el-checkbox
               style="margin-left: 10px"
               v-model="searchForm.status"
               label="不显示待排数量为0"
               @change="handleQuery"
            />
            <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
         </div>
         <div>
@@ -87,10 +102,12 @@
const data = reactive({
   searchForm: {
      customerName: "",
      salesContractNo: "",
      projectName: "",
      entryDate: null, // 录入日期
      entryDateStart: undefined,
      entryDateEnd: undefined,
      status: true,
      entryDate: [dayjs().format("YYYY-MM-DD"), dayjs().format("YYYY-MM-DD")], // 录入日期,默认当天
      entryDateStart: dayjs().format("YYYY-MM-DD"),
      entryDateEnd: dayjs().format("YYYY-MM-DD"),
   },
});
const { searchForm } = toRefs(data);
@@ -100,21 +117,21 @@
      prop: "salesContractNo",
      width: 220,
   },
   {
      label: "客户合同号",
      prop: "customerContractNo",
      width: 250,
   },
   // {
   //    label: "客户合同号",
   //    prop: "customerContractNo",
   //    width: 250,
   // },
   {
      label: "客户名称",
      prop: "customerName",
      width: 250,
   },
   {
      label: "项目名称",
      prop: "projectName",
      width:300
   },
   // {
   //    label: "项目名称",
   //    prop: "projectName",
   //    width:300
   // },
   {
      label: "产品大类",
      prop: "productCategory",
@@ -153,6 +170,7 @@
      label: "待排数量",
      prop: "pendingQuantity",
      width: 100,
      fixed: 'right',
   },
]);
const tableData = ref([]);