Merge remote-tracking branch 'origin/dev_New' into dev_New
| | |
| | | } |
| | | |
| | | // 右边表格的接口 |
| | | // |
| | | // |
| | | export function salesLedgerProductionAccountingListProductionDetails(query) { |
| | | return request({ |
| | | url: "/salesLedger/productionAccounting/listProductionDetails", |
| | | method: "get", |
| | | params: query, |
| | | }); |
| | | } |
| | |
| | | |
| | | <script setup> |
| | | import {onMounted, ref} from "vue"; |
| | | import { |
| | | listCustomer, |
| | | } from "@/api/basicData/customerFile.js"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import dayjs from "dayjs"; |
| | | import {productionAccountingListPage, salesLedgerProductionAccountingList} from "@/api/productionManagement/productionCosting.js"; |
| | | import {salesLedgerProductionAccountingListProductionDetails, salesLedgerProductionAccountingList} from "@/api/productionManagement/productionCosting.js"; |
| | | const { proxy } = getCurrentInstance(); |
| | | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "生产日期", |
| | | prop: "schedulingDate", |
| | | prop: "scheduleDate", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | |
| | | prop: "salesContractNo", |
| | | minWidth: 100, |
| | | }, |
| | | // { |
| | | // label: "客户合同号", |
| | | // prop: "customerContractNo", |
| | | // width: 250, |
| | | // }, |
| | | { |
| | | label: "客户名称", |
| | | prop: "customerName", |
| | | minWidth: 100, |
| | | }, |
| | | // { |
| | | // label: "项目名称", |
| | | // prop: "projectName", |
| | | // width:300 |
| | | // }, |
| | | { |
| | | label: "产品大类", |
| | | prop: "productCategory", |
| | | prop: "productName", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "specificationModel", |
| | | prop: "productModelName", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | label: "生产数量", |
| | | prop: "finishedNum", |
| | | prop: "quantity", |
| | | minWidth: 100, |
| | | }, |
| | | { |
| | |
| | | label: "工资", |
| | | prop: "wages", |
| | | minWidth: 100, |
| | | |
| | | }, |
| | | ]); |
| | | |
| | |
| | | page.total = res.data.total || 0; |
| | | // buildLeftTableData(records); |
| | | }); |
| | | |
| | | salesLedgerProductionAccountingListProductionDetails(params).then((res) => { |
| | | tableLoading.value = false; |
| | | tableData.value = res.data.records || [];; |
| | | page.total = res.data.total || 0; |
| | | }); |
| | | }; |
| | | |
| | | // 构建左侧汇总台账(按生产人汇总产量、工资等) |