gaoluyang
昨天 2a1585c218371490d328942b49257c5333739e5a
src/views/productionManagement/productionCosting/index.vue
@@ -7,7 +7,7 @@
                                    placeholder="请选择" clearable @change="changeDaterange" />
            <span class="search_title ml10">生产人:</span>
            <el-input
               v-model="searchForm.customerName"
               v-model="searchForm.schedulingUserName"
               style="width: 240px"
               placeholder="请输入"
               @change="handleQuery"
@@ -42,70 +42,71 @@
} from "@/api/basicData/customerFile.js";
import { ElMessageBox } from "element-plus";
import dayjs from "dayjs";
import {productionAccountingListPage} from "@/api/productionManagement/productionCosting.js";
const { proxy } = getCurrentInstance();
const tableColumn = ref([
   {
      label: "生产日期",
      prop: "customerName",
      prop: "schedulingDate",
      width: 120,
   },
   {
      label: "生产人",
      prop: "customerName",
      width: 120,
      prop: "schedulingUserName",
      width: 90,
   },
   {
      label: "合同号",
      prop: "taxpayerIdentificationNumber",
      prop: "salesContractNo",
      width: 220,
   },
   {
      label: "客户合同号",
      prop: "addressPhone",
      prop: "customerContractNo",
      width: 250,
   },
   {
      label: "客户名称",
      prop: "contactPerson",
      prop: "customerName",
      width: 250,
   },
   {
      label: "项目名称",
      prop: "contactPhone",
      width:150
      prop: "projectName",
      width:300
   },
   {
      label: "产品大类",
      prop: "basicBankAccount",
      width: 220,
      prop: "productCategory",
      width: 160,
   },
   {
      label: "规格型号",
      prop: "bankAccount",
      width: 220,
      prop: "specificationModel",
      width: 160,
   },
   {
      label: "单位",
      prop: "bankCode",
      width:220
      prop: "unit",
   },
   {
      label: "工序",
      prop: "maintainer",
      prop: "process",
   },
   {
      label: "生产数量",
      prop: "maintenanceTime",
      prop: "finishedNum",
      width: 100,
   },
   {
      label: "工时定额",
      prop: "maintenanceTime",
      prop: "workHours",
      width: 100,
   },
   {
      label: "工资",
      prop: "maintenanceTime",
      prop: "wages",
      width: 100,
   },
]);
@@ -119,7 +120,7 @@
const data = reactive({
   searchForm: {
      customerName: "",
      schedulingUserName: "",
      entryDate: [
         dayjs().format("YYYY-MM-DD"),
         dayjs().add(1, "day").format("YYYY-MM-DD"),
@@ -143,20 +144,22 @@
};
const changeDaterange = (value) => {
   if (value) {
      searchForm.entryDateStart = dayjs(value[0]).format("YYYY-MM-DD");
      searchForm.entryDateEnd = dayjs(value[1]).format("YYYY-MM-DD");
      searchForm.value.entryDateStart = dayjs(value[0]).format("YYYY-MM-DD");
      searchForm.value.entryDateEnd = dayjs(value[1]).format("YYYY-MM-DD");
   } else {
      searchForm.entryDateStart = undefined;
      searchForm.entryDateEnd = undefined;
      searchForm.value.entryDateStart = undefined;
      searchForm.value.entryDateEnd = undefined;
   }
   handleQuery();
};
const getList = () => {
   tableLoading.value = true;
   listCustomer({ ...searchForm.value, ...page }).then((res) => {
   const params = { ...searchForm.value, ...page };
   params.entryDate = undefined
   productionAccountingListPage(params).then((res) => {
      tableLoading.value = false;
      tableData.value = res.records;
      page.total = res.total;
      tableData.value = res.data.records;
      page.total = res.data.total;
   });
};