Merge branch 'wn' of http://192.168.5.5:10010/r/web/crm-web into dev
| | |
| | | { label: "销售单价", prop: "price" }, |
| | | { label: "成本单价", prop: "cost" }, |
| | | { label: "毛利", prop: "profit" }, |
| | | { label: "毛利率", prop: "margin",}, |
| | | { label: "价税合计", prop: "valorem", price: true } |
| | | { label: "毛利率(%)", prop: "margin",}, |
| | | { label: "价税合计", prop: "total", price: true } |
| | | ] |
| | | return { |
| | | tableList: {}, |
| | |
| | | { label: "销售负责人", prop: "member_name" }, // 销售负责人 |
| | | { label: "有效期", prop: "validity_date", min: 100 }, // 修改时间 |
| | | // { label: "小计", prop: "subTotal" }, // 小计 |
| | | // { label: "合计", prop: "total" }, // 合计 |
| | | { label: "合计", prop: "amountTotal", price:true}, // 合计 |
| | | { label: "客戶名称", prop: "client_name",min: 120,}, |
| | | { label: "状态", prop: "quotationStatus",} |
| | | ], |
| | | showCol: ["报价单号", "报价单名称", "销售负责人", "有效期", "客戶名称","状态"], |
| | | showCol: ["报价单号", "报价单名称", "销售负责人", "有效期", "客戶名称",'合计',"状态"], |
| | | selectRow: {}, |
| | | loading:false, |
| | | // 增加 产品信息列表 |
| | |
| | | showBottomCol: [], |
| | | productTableList: {}, |
| | | productColumn: productColumn, |
| | | showProductCol: ["产品编号", "产品名称", "数量", "单位", "销售单价", "成本单价", "毛利", "毛利率", "价税合计"], |
| | | showProductCol: ["产品编号", "产品名称", "数量", "单位", "销售单价", "成本单价", "毛利", "毛利率(%)", "价税合计"], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | 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 |