From 13a9015a85303de6e6dd4379f31621b0877672a3 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 27 二月 2024 09:08:55 +0800
Subject: [PATCH] qxtj

---
 src/views/system/tijian/index.vue |   66 +++++++++++++++++++++-----------
 1 files changed, 43 insertions(+), 23 deletions(-)

diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue
index 48b54d6..6ddedf0 100644
--- a/src/views/system/tijian/index.vue
+++ b/src/views/system/tijian/index.vue
@@ -202,6 +202,11 @@
               </el-form-item>
             </el-col>
             <el-col :span="7">
+              <el-form-item label="鏂囧寲绋嬪害" prop="wenHua" style="display: flex">
+                <el-input style="width: 100%" :disabled="isDisabled" v-model="form.wenHua" placeholder="璇疯緭鍏ユ枃鍖栫▼搴�" />
+              </el-form-item>
+            </el-col>
+            <el-col :span="7">
               <el-button v-show="lishi" type="primary" @click="cope" size="mini">涓�閿鍒�</el-button>
               <el-button type="primary" @click="inputChanges" v-show="lishi" size="mini"
                 :disabled="confirm">鍘嗗彶浣撴璁板綍</el-button>
@@ -896,7 +901,7 @@
         cusPhone: [
           { required: true, message: "", trigger: "change" },
         ],
-         cusBrithday: [
+        cusBrithday: [
           { required: true, message: "", trigger: "change" },
         ],
         // cusNational: [
@@ -1213,7 +1218,6 @@
 
     /** 鏌ヨ淇℃伅鍒楄〃 */
     getList() {
-      this.loading = true;
       // listCustomer(this.queryParams).then((response) => {
       //   this.customerList = response.rows;
       //   this.total = response.total;
@@ -1544,7 +1548,7 @@
               websocket.onclose = function () {
                 alert("璇诲崱鍣ㄨ繛鎺ュ叧闂�");
               };
-            } else  if (res.msg == "Y"){
+            } else if (res.msg == "Y") {
               this.$refs.aaa.open = true;
               this.$refs.aaa.getAllList();
               this.$refs.aaa.title = "璇佷欢瀛楀吀";
@@ -1556,15 +1560,15 @@
     },
 
     handleChanges(param1) {
-      if(this.form.pacCode == "涓嶈"){
+      if (this.form.pacCode == "涓嶈") {
         this.form.cusIdcard = param1[0].xh;
-      }else{
+      } else {
         this.form.cusIdcard = param1[0].pacCode;
       }
-      
+
       // this.form.cusName = param1[0].pacName;
       // this.form.cusPhone = param1[0].pacRemark;
-     
+
     },
 
     // selected(row, index) {
@@ -1688,6 +1692,7 @@
       let cusSex = this.form.cusSex;
       this.datekey = Date.now();
       //鍏ㄩ儴濂楅
+      this.loading = true;
       deptTreeSelect(cusSex).then((response) => {
         this.newpacName = response.rows;
         console.log(this.newpacName)
@@ -2068,6 +2073,21 @@
       }
     },
 
+    listgetOrder(data) {
+      getOrder(data).then((res) => {
+        this.$modal.msgSuccess("鎻愪氦鎴愬姛");
+        // this.dialogVisibles = true;
+        // this.url = window.webkitURL.createObjectURL(res); //灏嗗悗绔繑鍥炵殑blob鏂囦欢璇诲彇鍑簎rl
+        //璋冩帴鍙f樉绀哄妫�鍗�
+        const tjNumber = res.msg;
+        const viewNum = "792931586196398080";
+        const params = { viewNum, tjNumber };
+        this.$tab.openPage("瀵艰瘖鍗�", "/report/breDailyReport", params);
+        _this.confirm = true;
+      });
+      this.$tab.refreshPage();
+    },
+
     // 鏈�鍚庢彁浜ゆ寜閽�
     submitPrice() {
       let _this = this;
@@ -2114,7 +2134,7 @@
       this.tjFlowingWater = { copeWith, paidIn, discount };
 
       let data;
-      if (pacId) {
+      if (pacId || this.tjOrderList.length > 0) {
         data = {
           photo: this.srcUrl,
           pacId,
@@ -2122,30 +2142,26 @@
           tjFlowingWater: this.tjFlowingWater,
           userId,
           tjType,
-          tjCategory:this.tjCategory
+          tjCategory: this.tjCategory
         };
-      } else {
+        this.listgetOrder(data)
+      } else if (pacId || this.tjOrderList.length > 0) {
         data = {
           photo: this.srcUrl,
           tjOrderList: this.tjOrderList,
           tjFlowingWater: this.tjFlowingWater,
           userId,
           tjType,
-          tjCategory:this.tjCategory
+          tjCategory: this.tjCategory
         };
+        this.listgetOrder(data)
+      } else {
+        this.$message({
+          type: "warning ",
+          message: "璇烽�夋嫨濂楅!",
+        });
       }
-      getOrder(data).then((res) => {
-        this.$modal.msgSuccess("鎻愪氦鎴愬姛");
-        // this.dialogVisibles = true;
-        // this.url = window.webkitURL.createObjectURL(res); //灏嗗悗绔繑鍥炵殑blob鏂囦欢璇诲彇鍑簎rl
-        //璋冩帴鍙f樉绀哄妫�鍗�
-        const tjNumber = res.msg;
-        const viewNum = "792931586196398080";
-        const params = { viewNum, tjNumber };
-        this.$tab.openPage("瀵艰瘖鍗�", "/report/breDailyReport", params);
-        _this.confirm = true;
-      });
-      this.$tab.refreshPage();
+
     },
   },
 };
@@ -2153,6 +2169,10 @@
 
 
 <style >
+.el-form-item__error {
+  display: none;
+}
+
 .el-table__header-wrapper .el-checkbox {
   display: none;
 }

--
Gitblit v1.8.0