From 10c3bce9528daaf45682efa8b163e63c5006a72f Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 21 十二月 2023 18:36:05 +0800 Subject: [PATCH] 必填只能编辑数量,非必填编辑销售单价,成本单价,数量+成本单价不填写可以通过校验填写则需要校验大于0 --- src/views/other/commonDialog/SelectCommonDialog.vue | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue index e829aa8..aad1584 100644 --- a/src/views/other/commonDialog/SelectCommonDialog.vue +++ b/src/views/other/commonDialog/SelectCommonDialog.vue @@ -72,7 +72,12 @@ tableInfomation: [] } } - } + }, + // 鏍规嵁鎶ヤ环鍗曟煡璇骇鍝� + quotationNumber:{ + type:[String,Number], + default:'' + }, }, components: {}, computed: {}, @@ -352,8 +357,7 @@ // 閿�鍞槑缁嗗崟 async getSalesDetailsList() { await getSalesDetailsList({ - keyword: this.keyword, - keywordType: this.keywordType, + clientId:Number(this.editCommonConfig.clientId), page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { @@ -408,12 +412,17 @@ }, // 浜у搧鍚嶇О async getProductList() { - await getProductList({ + let params={ productName: this.keywordType === "浜у搧鍚嶇О" ? this.keyword : "", productNumber: this.keywordType === "浜у搧缂栧彿" ? this.keyword : "", page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize - }).then((res) => { + } + // 鏍规嵁鎶ヤ环鍗曟煡璇骇鍝� + if(this.quotationNumber){ + params.quotationNumber=this.quotationNumber + } + await getProductList(params).then((res) => { console.log(res.data) if (res.code === 200) { if (res.data.data && res.data.data.length > 0) { @@ -433,8 +442,7 @@ }, async getSalesReturnList() { await getSalesReturnList({ - keyword: this.keyword, - keywordType: this.keywordType, + clientId:Number(this.editCommonConfig.clientId), page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { -- Gitblit v1.8.0