销售明细单 对应的产品信息获取数据的方式从请求接口修改为从明细单数据中取
| | |
| | | color: TabsIndex==1 ? '#fff' : '#666' |
| | | }" |
| | | > |
| | | 库存信息 |
| | | 发货信息 |
| | | </div> |
| | | <div |
| | | class="tab-pane" |
| | |
| | | { label: "产品名称", prop: "name" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "单位", prop: "unit" }, |
| | | { label: "发货单", prop: "invoice" }, |
| | | { label: "承运商", prop: "carrier" }, |
| | | { label: "运单号", prop: "waybillNumber" }, |
| | | { label: "销售单价", prop: "salePrice", price: true }, |
| | | { label: "价税合计", prop: "valorem", price: true } |
| | | { label: "成本单价", prop: "cost" }, |
| | | { label: "毛利", prop: "profit" }, |
| | | { label: "毛利率(%)", prop: "margin",}, |
| | | { label: "价税合计", prop: "total", price: true } |
| | | ] |
| | | // 库存信息 |
| | | const inventoryColumn = [ |
| | | { label: "产品编号", prop: "number", default: true }, |
| | | { label: "产品名称", prop: "name" }, |
| | | { label: "订单数量", prop: "orderAmount" }, |
| | | { label: "发货单", prop: "invoice" }, |
| | | { label: "承运商", prop: "carrier" }, |
| | | { label: "运单号", prop: "waybill" }, |
| | | { label: "仓库", prop: "warehouse" }, |
| | | { label: "在库数量", prop: "amount" }, |
| | | { label: "可用库存", prop: "availableNumber" }, |
| | |
| | | TabsIndex: "0", |
| | | productTableList: {}, |
| | | productColumn: productColumn, |
| | | showProductCol: ["产品编号", "产品名称", "数量", "单位", "发货单", "承运商", "运单号", "销售单价", "价税合计"], |
| | | showProductCol: ["产品编号", "产品名称", "数量", "单位", "销售单价","成本单价", "毛利", "毛利率(%)","价税合计"], |
| | | inventoryColumn: inventoryColumn, |
| | | showInventoryCol: ["产品编号", "产品名称", "订单数量", "仓库", "在库数量", "可用库存", "单位"], |
| | | showInventoryCol: ["产品编号", "产品名称", "订单数量", "发货单", "承运商", "运单号","仓库", "在库数量", "可用库存", "单位"], |
| | | makeColumn: makeColumn, |
| | | showMakeCol: ["生产订单", "产品名称", "订单状态", "工单编号", "工单状态", "计划开始时间", "计划结束时间"], |
| | | // 采购 |
| | |
| | | }, |
| | | // 获取产品/库存信息 |
| | | async getProductInventoryInfo(row) { |
| | | if (row.status === 1) { |
| | | if (this.TabsIndex == 0||row.status==1) { |
| | | this.productTableList.tableInfomation = row.products || [] |
| | | } else { |
| | | this.loading = true |