From 4a63f03516cc177ad60ebbe28a65e80587846b3e Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 24 八月 2023 14:56:45 +0800 Subject: [PATCH] 新增销售退款单增加选择退货单及其他bug --- src/views/sales/salesReturn/AddSalesReturnDialog.vue | 49 +++++++++---------------------------------------- 1 files changed, 9 insertions(+), 40 deletions(-) diff --git a/src/views/sales/salesReturn/AddSalesReturnDialog.vue b/src/views/sales/salesReturn/AddSalesReturnDialog.vue index 90aae43..82ef2b7 100644 --- a/src/views/sales/salesReturn/AddSalesReturnDialog.vue +++ b/src/views/sales/salesReturn/AddSalesReturnDialog.vue @@ -46,28 +46,10 @@ <el-input v-model="editConfig.infomation.number"></el-input> </el-form-item> </el-col> - <!-- <el-col :span="12"> - <el-form-item label="閫夋嫨婧愬崟" prop="selSourceOrder"> - <el-select v-model="editConfig.infomation.selSourceOrder" size="mini" style="width: 63%"> - <el-option - v-for="item in selSourceOrderOptions" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> - </el-col> --> <el-col :span="12"> <el-form-item label="閫�鍏ヤ粨搴�" prop="repository"> <el-select v-model="editConfig.infomation.repository" size="mini" style="width: 63%"> - <el-option - v-for="item in repositoryOptions" - :key="item.value" - :label="item.label" - :value="item.value" - > + <el-option v-for="item in repositoryOptions" :key="item.id" :label="item.name" :value="item.name"> </el-option> </el-select> </el-form-item> @@ -253,7 +235,8 @@ infomation: {} }, productId: 1, - isNoProduct: true + isNoProduct: true, + clientId: this.editCommonConfig.infomation.clientId } }, created() { @@ -318,10 +301,6 @@ this.editConfig.visible = false if (res.code === 200) { this.$message.success("缂栬緫鎴愬姛") - this.$message({ - message: "缂栬緫鎴愬姛", - type: "success" - }) this.$parent.getData() } }) @@ -338,20 +317,10 @@ let params = { id: this.editConfig.title === "鏂板缓" ? 0 : data.id, salesReturn: { - clientId: data.clientId || 0, + clientId: this.clientId || 0, memberId: data.memberId || 0, number: data.number || "", - products: [ - { - amount: 0, - desc: "", - id: 0, - name: "", - number: "", - price: 0, - total: 0 - } - ], + products: this.tableData, reason: data.reason || "", repository: data.repository || "", returnDate: data.returnDate || "", @@ -375,7 +344,7 @@ } }, handleSelectClient(item) { - this.editConfig.infomation.client_id = item.id + this.clientId = item.id }, selClientClick() { this.editSelectClientConfig.editVisible = true @@ -383,19 +352,19 @@ selClient(row) { console.log(row) this.editConfig.infomation.client_name = row.name - this.editConfig.infomation.client_id = row.id + this.clientId = row.id }, // 娓呴櫎宸查�夋嫨鐢ㄦ埛 clearupClient() { this.editConfig.infomation.client_name = "" - this.editConfig.infomation.client_id = 0 + this.clientId = 0 }, // 娣诲姞闄勪欢 addAnnexClick() {}, // 璁剧疆鍏佽涓婁紶鏂囦欢鏍煎紡 setFormatClick() {}, setTableForm() { - if (this.editConfig.title === "鏂板缓") { + if (this.editConfig.title === "鏂板缓" || this.editConfig.infomation.products.length === 0) { this.tableData = [ { productId: this.productId, -- Gitblit v1.8.0