From 872aed0fd757885e3a77f71f4fdfbc38de70a3a3 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期二, 05 十二月 2023 18:03:44 +0800
Subject: [PATCH] su

---
 src/views/system/tijianall/index.vue |  121 +++++++++++++++++++++++++++++++---------
 1 files changed, 93 insertions(+), 28 deletions(-)

diff --git a/src/views/system/tijianall/index.vue b/src/views/system/tijianall/index.vue
index 2426c75..5d40613 100644
--- a/src/views/system/tijianall/index.vue
+++ b/src/views/system/tijianall/index.vue
@@ -226,24 +226,24 @@
                 style="width: 190px"
               />
             </el-form-item>
-             <el-form-item
-                label="浣撴绫诲瀷"
-                prop="tjType"
-                style="margin-right: 20px"
+            <el-form-item
+              label="浣撴绫诲瀷"
+              prop="tjType"
+              style="margin-right: 20px"
+            >
+              <el-select
+                style="width: 145px"
+                v-model="form.tjType"
+                placeholder="璇烽�夋嫨浣撴绫诲瀷"
               >
-                <el-select
-                  style="width: 145px"
-                  v-model="form.tjType"
-                  placeholder="璇烽�夋嫨浣撴绫诲瀷"
-                >
-                  <el-option
-                    v-for="dict in dict.type.dict_team"
-                    :key="dict.value"
-                    :label="dict.label"
-                    :value="parseInt(dict.value)"
-                  ></el-option>
-                </el-select>
-              </el-form-item>
+                <el-option
+                  v-for="dict in dict.type.dict_team"
+                  :key="dict.value"
+                  :label="dict.label"
+                  :value="parseInt(dict.value)"
+                ></el-option>
+              </el-select>
+            </el-form-item>
           </el-form>
         </div>
       </el-col>
@@ -427,7 +427,6 @@
               label-width="75px"
               style="margin-left: 10px"
             >
-             
               <el-form-item label="搴旀敹閲戦" style="margin-right: 20px">
                 <el-input
                   placeholder="搴旀敹閲戦"
@@ -459,14 +458,23 @@
                   @click="submitPrice"
                   size="mini"
                   :disabled="confirm"
-                  >棰勭害鐧昏</el-button>
-                  <el-button
+                  >棰勭害鐧昏</el-button
+                >
+                <el-button
+                 v-show="lishi"
+                  type="primary"
+                  @click="cope"
+                  size="mini"
+                  >涓�閿鍒�</el-button
+                >
+                <el-button
                   type="primary"
                   @click="inputChange"
                   v-show="lishi"
                   size="mini"
                   :disabled="confirm"
-                  >鍘嗗彶浣撴璁板綍</el-button>
+                  >鍘嗗彶浣撴璁板綍</el-button
+                >
               </el-form-item>
             </el-form>
           </template>
@@ -631,14 +639,53 @@
         ></iframe>
       </div>
     </el-dialog>
-    <el-drawer title="鍘嗗彶浣撴璁板綍" :visible.sync="table" direction="rtl" size="50%">
-      <el-table :data="HistoryList" style="width:95%;margin-left:20px">
-        <el-table-column property="tjNum" label="浣撴鍙�" align="center" :show-overflow-tooltip="true"></el-table-column>
-        <el-table-column property="userName" label="濮撳悕" align="center" :show-overflow-tooltip="true"></el-table-column>
-        <el-table-column property="tjTime" label="浣撴鏃堕棿" align="center" :show-overflow-tooltip="true"></el-table-column>
-        <el-table-column property="tjProName" label="浣撴椤圭洰" align="center" :show-overflow-tooltip="true"></el-table-column>
+    <el-drawer
+      title="鍘嗗彶浣撴璁板綍"
+      :visible.sync="table"
+      direction="rtl"
+      size="50%"
+    >
+      <el-table :data="HistoryList" style="width: 95%; margin-left: 20px">
+        <el-table-column
+          property="tjNum"
+          label="浣撴鍙�"
+          align="center"
+          :show-overflow-tooltip="true"
+        ></el-table-column>
+        <el-table-column
+          property="userName"
+          label="濮撳悕"
+          align="center"
+          :show-overflow-tooltip="true"
+        ></el-table-column>
+        <el-table-column
+          property="tjTime"
+          label="浣撴鏃堕棿"
+          align="center"
+          :show-overflow-tooltip="true"
+        ></el-table-column>
+        <el-table-column
+          property="tjProName"
+          label="浣撴椤圭洰"
+          align="center"
+          :show-overflow-tooltip="true"
+        ></el-table-column>
       </el-table>
     </el-drawer>
+    <el-dialog
+      title="鎻愮ず"
+      :visible.sync="dialogVisiblese"
+      width="30%"
+      :before-close="handleClose"
+    >
+      <span>闇�瑕佸鍒舵渶杩戜竴娆$殑浣撴椤圭洰鍚楋紵</span>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisiblese = false">鍙� 娑�</el-button>
+        <el-button type="primary" @click="dialogVisiblese = false"
+          >纭� 瀹�</el-button
+        >
+      </span>
+    </el-dialog>
   </div>
 </template>
   
@@ -702,7 +749,8 @@
     //   }
     // };
     return {
-      lishi:false,
+      dialogVisiblese:false,
+      lishi: false,
       table: false,
       HistoryList: {},
       index: 0,
@@ -934,6 +982,23 @@
         // return this.$message.error("璇疯緭鍏ユ纭殑韬唤璇佸彿锛�");;
       }
     },
+    cope(){
+      let cusIdCard = this.form.cusIdcard;
+      getHistryTjOrderByCusIdCard(cusIdCard).then((res) => {
+            if(res.data.length != 0){
+              this.dialogVisiblese = true;
+            }else{
+              this.$message.warning('鏆傛棤鍘嗗彶浣撴璁板綍锛�');
+            }
+        });
+    },
+     handleClose(done) {
+        this.$confirm('纭鍏抽棴锛�')
+          .then(_ => {
+            done();
+          })
+          .catch(_ => {});
+      },
     getList1() {
       getInfo().then((response) => {
         this.getInfodis = response.user.discount;

--
Gitblit v1.8.0