From c140987b3ef6fd47e3b795fc3a2c6f880f49f9c2 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 12 三月 2025 13:41:28 +0800 Subject: [PATCH] qx --- src/views/system/Checkout/index.vue | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/views/system/Checkout/index.vue b/src/views/system/Checkout/index.vue index f5a6e55..dda798a 100644 --- a/src/views/system/Checkout/index.vue +++ b/src/views/system/Checkout/index.vue @@ -15,6 +15,7 @@ v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" @keyup.enter.native="handleQuery" + @input="queryParams.name = $event.replace(/\s/g, '')" /> </el-form-item> <el-form-item label="浣撴鍙�" prop="tjNum"> @@ -26,6 +27,7 @@ @blur="hb" style="width: 170px" clearable + @input="queryParams.tjNum = $event.replace(/\s/g, '')" /> </el-form-item> <el-form-item label="鐧昏鏃堕棿" prop="createTimeList"> @@ -120,9 +122,10 @@ :show-overflow-tooltip="true" > <template slot-scope="scope"> - <span v-if="scope.row.tjCustomerSex == '0'">鐢�</span> - <span v-if="scope.row.tjCustomerSex == '1'">濂�</span> - <span v-if="scope.row.tjCustomerSex == '2'">鏈煡</span> + <dict-tag + :options="dict.type.sys_user_sex" + :value="scope.row.tjCustomerSex" + /> </template> </el-table-column> <el-table-column @@ -251,7 +254,12 @@ </el-dialog> <!-- 娣诲姞鎴栦慨鏀逛綋妫�璁板綍瀵硅瘽妗� --> - <el-dialog :title="title" :visible.sync="open" width="660px" :close-on-click-modal="false"> + <el-dialog + :title="title" + :visible.sync="open" + width="660px" + :close-on-click-modal="false" + > <el-form :model="formIn" ref="queryForm" @@ -288,7 +296,8 @@ style="width: 116px" ref="inputName" v-model="formIn.tjCustomerSex" - /> + > + </el-input> </el-form-item> <el-form-item label="骞撮緞" prop="tjCustomerAge"> <el-input @@ -380,7 +389,7 @@ <!-- 寮冩2锛屽欢鏈�3 --> <div slot="footer" class="dialog-footer"> <!-- <el-button @click="cancel">寤舵湡</el-button> --> - <el-button @click="canaffirm">纭绛剧</el-button> + <el-button :loading = isLoading @click="canaffirm">纭绛剧</el-button> </div> </el-dialog> </div> @@ -405,7 +414,7 @@ components: { ViewPdf, }, - dicts: ["dict_pay_type"], + dicts: ["dict_pay_type","sys_user_sex"], name: "Order", data() { return { @@ -413,6 +422,7 @@ leave: false, checked: false, radioId1: false, + isLoading:false, createTimeList: [], cusId: "", payType: "0", @@ -810,7 +820,7 @@ // item.type3 = false // } // }) - + for (let i = 0; i <= this.numberList.length; i++) { if (val.proId == this.numberList[i].proId) { if (this.numberList[i].type2 === true) { @@ -819,7 +829,6 @@ this.tcShow = false; return; } else { - return; } } @@ -883,7 +892,8 @@ handleDelete() { this.title = "绛剧鐧昏"; this.numberList = []; - this.List.forEach((item) => { + let list = JSON.parse(JSON.stringify(this.List)) + list.forEach((item) => { this.formIn = item; if (this.formIn.tjCustomerSex === 0) { this.formIn.tjCustomerSex = "鐢�"; @@ -966,11 +976,13 @@ domainVos: this.DataList, tjNumber: this.tjNumber, }; + this.isLoading = true gettjGoOut(data).then((res) => { if (res.code === 200) { this.$modal.msgSuccess("鎿嶄綔鎴愬姛"); this.open = false; this.multiple = true; + this.isLoading = false this.getList(); } }); -- Gitblit v1.8.0