From caf1f99e718ca2ac07fa64e7a71a6d7fa88b8989 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 20 十二月 2023 17:57:18 +0800 Subject: [PATCH] 报价单列表和对应产品列表的数据调试 --- src/views/sales/quotation/index.vue | 31 ++++++++++--------------------- 1 files changed, 10 insertions(+), 21 deletions(-) diff --git a/src/views/sales/quotation/index.vue b/src/views/sales/quotation/index.vue index 0c98ff6..e4b68f6 100644 --- a/src/views/sales/quotation/index.vue +++ b/src/views/sales/quotation/index.vue @@ -79,9 +79,6 @@ import { getQuotationList, getDelQuotation } from "@/api/sales/quotation" import pageMixin from "@/components/makepager/pager/mixin/pageMixin" import DetailQuotation from "@/views/sales/quotation/DetailQuotation" -import { - getProductInventoryInfo, -} from "@/api/sales/salesDetails" export default { name: "QuotationView", props: { @@ -111,10 +108,10 @@ { label: "浜у搧鍚嶇О", prop: "name" }, { label: "鏁伴噺", prop: "amount" }, { label: "鍗曚綅", prop: "unit" }, - { label: "閿�鍞崟浠�", prop: "salePrice" }, - { label: "鎴愭湰鍗曚环", prop: "carrier" }, - { label: "姣涘埄", prop: "waybillNumber" }, - { label: "姣涘埄鐜�", prop: "salePrice", price: true }, + { label: "閿�鍞崟浠�", prop: "price" }, + { label: "鎴愭湰鍗曚环", prop: "cost" }, + { label: "姣涘埄", prop: "profit" }, + { label: "姣涘埄鐜�", prop: "margin",}, { label: "浠风◣鍚堣", prop: "valorem", price: true } ] return { @@ -167,12 +164,10 @@ { label: "鏈夋晥鏈�", prop: "validity_date", min: 100 }, // 淇敼鏃堕棿 // { label: "灏忚", prop: "subTotal" }, // 灏忚 // { label: "鍚堣", prop: "total" }, // 鍚堣 - { label: "瀹㈡埗鍚嶇О", prop: "client_name", }, - { label: "鏁伴噺", prop: "productNumber", isProductAmount: true }, - { label: "鍚堣", prop: "priceTax", isProductTotal: true }, - { label: "鐘舵��", prop: "priceTax",} + { label: "瀹㈡埗鍚嶇О", prop: "client_name",min: 120,}, + { label: "鐘舵��", prop: "quotationStatus",} ], - showCol: ["鎶ヤ环鍗曞彿", "鎶ヤ环鍗曞悕绉�", "閿�鍞礋璐d汉", "鏈夋晥鏈�", "瀹㈡埗鍚嶇О", "鏁伴噺", "鍚堣",'鐘舵��'], + showCol: ["鎶ヤ环鍗曞彿", "鎶ヤ环鍗曞悕绉�", "閿�鍞礋璐d汉", "鏈夋晥鏈�", "瀹㈡埗鍚嶇О","鐘舵��"], selectRow: {}, loading:false, // 澧炲姞 浜у搧淇℃伅鍒楄〃 @@ -209,14 +204,7 @@ }, // 鑾峰彇浜у搧/搴撳瓨淇℃伅 async getProductInventoryInfo(row) { - if (row.status === 1) { - this.productTableList.tableInfomation = row.products || [] - } else { - await getProductInventoryInfo(row.number).then((res) => { - console.log(res) - this.productTableList.tableInfomation = res.data?.length > 0 ? res.data : [] - }) - } + this.productTableList.tableInfomation = row.products || [] }, // top 琛岀偣鍑� tableRowClick(row) { @@ -300,7 +288,8 @@ ...item, client_name: item.client.name, contact_name: item.contact.name, - member_name: item.member.username + member_name: item.member.username, + quotationStatus:item.quotation_status.name, } }) this.tableList.tableInfomation = list || [] -- Gitblit v1.8.0