From c6caf8f6717f29458add16427d29ea391ce9a0fb Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期二, 25 三月 2025 17:41:52 +0800 Subject: [PATCH] qx --- src/views/system/tijian/index.vue | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 403a59a..25dd54c 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1710,6 +1710,7 @@ contactPhone: [ { required: true, + message: "", trigger: "blur", }, { @@ -1765,7 +1766,6 @@ }, /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete1(row) { - // console.log(row); let data = { cusCardId: row.cusId, proId: row.parentProId, @@ -1796,7 +1796,6 @@ .catch(() => {}); }, handleManualChange(row) { - console.log("杩欐槸涓诲姩鍑哄彂鐨�"); this.updateProPrice(row); }, validateDiscount(row) { @@ -1827,7 +1826,6 @@ (Math.floor((this.TotalPrice / this.TotalPrice1) * 100) / 100) * 10; }, updateProPrice1(row) { - console.log("杩涘叆浜�1"); const ordPrice = new Big(row.ordPrice); const discount = new Big(row.discount); const result = ordPrice.times(discount.div(10)); @@ -2358,11 +2356,11 @@ const newYsPrice = new Big(lastItem.nowPrice) .plus(diff) .toNumber(); - console.log( - "hhh", - this.tableData1[this.tableData1.length - 1].nowPrice, - newYsPrice - ); + // console.log( + // "hhh", + // this.tableData1[this.tableData1.length - 1].nowPrice, + // newYsPrice + // ); this.$set( this.tableData1[this.tableData1.length - 1], "nowPrice", @@ -2380,7 +2378,10 @@ /** 鐧昏鎻愪氦鎸夐挳 */ submitForm() { let _this = this; - this.$refs["form"].validate((valid) => { + if(!this.form.cusPhone || !this.form.cusName){ + this.$message.warning("璇峰~鍐欏繀濉」"); + }else{ + this.$refs["form"].validate((valid) => { if (valid) { // 鍒涘缓琛ㄥ崟鏁版嵁鐨勫壇鏈苟鍘婚櫎绌烘牸 const formData = { ...this.form }; @@ -2418,6 +2419,8 @@ }); } }); + } + }, getmailType() { @@ -3008,6 +3011,11 @@ Package() { this.activeNames = "first"; + if (this.form.cusSex == "鐢�") { + this.form.cusSex = 0; + } else if (this.form.cusSex == "濂�"){ + _this.form.cusSex = 1; + } let cusSex = this.form.cusSex; this.datekey = Date.now(); //鍏ㄩ儴濂楅 @@ -3622,7 +3630,6 @@ Price += item.nowPrice || 0; // 绱姞瀹炴敹閲戦 this.TotalPrice = Price.toFixed(2); }); - console.log(this.TotalPrice1, this.TotalPrice); // 璁$畻鎶樻墸 this.discount = this.TotalPrice1 > 0 @@ -3904,7 +3911,14 @@ }, listgetOrder(data) { + const loading = this.$loading({ + lock: true, + text: '姝e湪鍔犺浇涓紝璇风◢绛夛紒', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }); getOrder(data).then((res) => { + loading.close(); this.$modal.msgSuccess("鎻愪氦鎴愬姛"); //璋冩帴鍙f樉绀哄妫�鍗� const tjNumber = res.msg; -- Gitblit v1.8.0