From 6b5565022f0aa01f7ff0d0a0298834c6726e8c9d Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期一, 24 三月 2025 17:58:16 +0800 Subject: [PATCH] qx --- src/views/system/tijian/index.vue | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 4728be4..3548068 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -1225,11 +1225,9 @@ this.open1 = true; this.title = "娣诲姞浣撴鍗曚綅淇℃伅缁存姢"; }, - idFn1(value) { - if (value) { - // console.log(value); + idFn1() { + if (this.form.firmName) { const originalCompId = this.form.firmId; - this.form.firmName = value; this.CompanyList.forEach((item) => { if (item.cnName == this.form.firmName) { this.form.firmId = item.drugManufacturerId; @@ -1239,10 +1237,15 @@ if (this.form.firmId === originalCompId) { this.form.firmId = ""; } - if (this.form.firmId) { - this.form.tjType = this.dict.type.dict_team[2].value; - } + } + + if (this.form.firmName) { + this.form.tjType = this.dict.type.dict_team[1].value; + }else{ + this.form.tjType = this.dict.type.dict_team[0].value; + } + }, getCurrentDateTime() { const currentDate = new Date(); @@ -1703,6 +1706,9 @@ /** 鐧昏鎻愪氦鎸夐挳 */ submitForm() { let _this = this; + if(!this.form.cusPhone || !this.form.cusName){ + this.$message.warning("璇峰~閫夊繀濉」"); + }else{ this.$refs["form"].validate((valid) => { if (valid) { // 鍒涘缓琛ㄥ崟鏁版嵁鐨勫壇鏈苟鍘婚櫎绌烘牸 @@ -1735,6 +1741,7 @@ }); } }); +} }, getmailType() { -- Gitblit v1.8.0