huminmin
11 小时以前 28edbc60ecab951a85c30efa5acea6c27646ca4b
对接生成核算接口
已修改2个文件
37 ■■■■ 文件已修改
src/api/productionManagement/productionCosting.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionCosting/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/productionManagement/productionCosting.js
@@ -22,3 +22,10 @@
// 右边表格的接口
//
export function salesLedgerProductionAccountingListProductionDetails(query) {
  return request({
    url: "/salesLedger/productionAccounting/listProductionDetails",
    method: "get",
    params: query,
  });
}
src/views/productionManagement/productionCosting/index.vue
@@ -41,18 +41,15 @@
<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,
    },
    {
@@ -65,29 +62,19 @@
        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,
    },
    {
@@ -102,7 +89,7 @@
    },
    {
        label: "生产数量",
        prop: "finishedNum",
        prop: "quantity",
    minWidth: 100,
    },
    {
@@ -114,7 +101,6 @@
        label: "工资",
        prop: "wages",
    minWidth: 100,
    },
]);
@@ -204,6 +190,12 @@
        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;
    });
};
// 构建左侧汇总台账(按生产人汇总产量、工资等)