From c1db2f08301d97e2bf04c7236fa981e5ec083dbb Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期二, 15 七月 2025 18:02:09 +0800
Subject: [PATCH] 1

---
 src/views/system/info/index.vue |  510 +++++++++++++++++++++++++++----------------------------
 1 files changed, 250 insertions(+), 260 deletions(-)

diff --git a/src/views/system/info/index.vue b/src/views/system/info/index.vue
index 775b407..f6db5f7 100644
--- a/src/views/system/info/index.vue
+++ b/src/views/system/info/index.vue
@@ -1,48 +1,21 @@
 <template>
   <div class="app-container">
-    <el-form
-      :model="queryParams"
-      ref="queryForm"
-      size="small"
-      :inline="true"
-      v-show="showSearch"
-      label-width="68px"
-    >
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
       <el-row>
         <el-col :span="11">
           <el-form-item label="鍗曚綅鍚嶇О" prop="company" style="display: flex">
-            <el-select
-              :remote-method="getRemoteData"
-              v-model="queryParams.company"
-              value-key="drugManufacturerId"
-              remote
-              filterable
-              placeholder="璇烽�夋嫨鍗曚綅鍚嶇О"
-              clearable
-              @change="searchSelect"
-            >
-              <el-option
-                v-for="dict in CompanyList"
-                :key="dict.drugManufacturerId"
-                :label="dict.cnName"
-                :value="dict.drugManufacturerId"
-              />
+            <el-select :remote-method="getRemoteData" v-model="queryParams.company" value-key="drugManufacturerId"
+              remote filterable placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" clearable @change="searchSelect">
+              <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName"
+                :value="dict.drugManufacturerId" />
             </el-select>
           </el-form-item>
         </el-col>
         <el-col :span="6">
           <el-form-item>
-            <el-button
-              type="primary"
-              icon="el-icon-search"
-              size="mini"
-              @click="handleQuery"
-              style="margin: 0 15px"
-              >鎼滅储</el-button
-            >
-            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-              >閲嶇疆</el-button
-            >
+            <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
+              style="margin: 0 15px">鏌ヨ</el-button>
+            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
           </el-form-item>
         </el-col>
       </el-row>
@@ -93,85 +66,56 @@
             <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         </el-row> -->
 
-    <el-table
-      id="sig"
-      v-loading="loading"
-      :data="infoList"
-      @selection-change="handleSelectionChange"
-      border
-      ref="tb"
-      max-height="260px"
-    >
+    <el-table id="sig" v-loading="loading" :data="infoList" @selection-change="handleSelectionChange" border ref="tb"
+      max-height="260px">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="閮ㄩ棬" align="center" prop="pacName" />
       <el-table-column label="棰勬浜烘暟" align="center" prop="count" />
       <el-table-column label="瀹炴浜烘暟" align="center" prop="sjCount" />
+      <el-table-column label="宸茬粨浜烘暟" align="center" prop="yjsrs" />
       <el-table-column label="搴旀敹閲戦" align="center" prop="copeWith" />
       <el-table-column label="绛剧害閲戦" align="center" prop="signingPrice">
       </el-table-column>
-      <el-table-column
-        label="宸蹭粯閲戦"
-        align="center"
-        prop="transactionAmount"
-      />
+      <el-table-column label="宸蹭粯閲戦" align="center" prop="transactionAmount" />
       <el-table-column label="宸" align="center" prop="difference" />
       <el-table-column label="绛剧害浜�" align="center" prop="payer" />
-      <el-table-column
-        label="棰勭害鏃堕棿"
-        align="center"
-        prop="createTime"
-        :formatter="formatDate"
-      />
+      <el-table-column label="棰勭害鏃堕棿" align="center" prop="createTime" :formatter="formatDate" />
     </el-table>
 
-    <el-form
-      :inline="true"
-      :model="formInline"
-      class="demo-form-inline"
-      style="margin: 12px 6px"
-      label-width="100px"
-    >
-      <el-row>
-        <el-col :span="5">
-          <el-form-item label="璐熻矗浜�" style="display: flex">
-            <el-input
-              v-model="formInline.payer"
-              placeholder="鍗曚綅璐熻矗浜�"
-            ></el-input>
-          </el-form-item>
-        </el-col>
-        <el-col :span="6">
-          <el-form-item label="浜ゆ槗閲戦" style="display: flex">
-            <el-input v-model="formInline.price" placeholder="閲戦"></el-input>
-          </el-form-item>
-        </el-col>
-        <el-col :span="6">
-          <el-form-item label="浜ゆ槗绫诲瀷" prop="payType" style="display: flex">
-            <el-select
-              v-model="formInline.payType"
-              placeholder="璇烽�夋嫨浜ゆ槗绫诲瀷"
-            >
-              <el-option
-                v-for="dict in dict.type.dict_pay_type"
-                :key="dict.value"
-                :label="dict.label"
-                :value="dict.value"
-              ></el-option>
-            </el-select>
-          </el-form-item>
-        </el-col>
-        <el-col :span="4">
-          <el-form-item style="display: flex">
-            <el-button
-              type="primary"
-              size="mini"
-              @click="SubmitEvent"
-              style="margin: 0 15px"
-              >鏀惰垂</el-button
-            >
-          </el-form-item>
-        </el-col>
-        <!-- <el-col :span="7">
+
+    <div style="display: flex; justify-content: space-between; flex-wrap: wrap;">
+      <el-radio-group v-model="jcStatus" @change="radioChange" style="margin-left: 10px; margin-top: 20px;flex-shrink: 1;">
+        <el-radio-button label="0">绛惧埌鏈粨璐︿汉鍛�</el-radio-button>
+        <el-radio-button label="1">鏈鍒颁汉鍛�</el-radio-button>
+        <el-radio-button label="2">鍏ㄩ儴浜哄憳</el-radio-button>
+      </el-radio-group>
+
+      <el-form :inline="true" :model="formInline" class="demo-form-inline" style="margin: 20px 20px; max-width: 50%; flex-shrink: 1;" label-width="300px">
+        <el-row>  
+          <el-col :span="6">
+            <el-form-item label="璐熻矗浜�" style="display: flex">
+              <el-input v-model="formInline.payer" placeholder="鍗曚綅璐熻矗浜�"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item label="浜ゆ槗閲戦" style="display: flex">
+              <el-input v-model="formInline.price" placeholder="閲戦"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="5">
+            <el-form-item label="浜ゆ槗绫诲瀷" prop="payType" style="display: flex">
+              <el-select v-model="formInline.payType" placeholder="璇烽�夋嫨浜ゆ槗绫诲瀷">
+                <el-option v-for="dict in dict.type.dict_pay_type" :key="dict.value" :label="dict.label"
+                  :value="dict.value"></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="4">
+            <el-form-item style="display: flex">
+              <el-button type="primary" size="mini" @click="SubmitEvent" style="margin: 0 15px">缁撹处</el-button>
+            </el-form-item>
+          </el-col>
+          <!-- <el-col :span="7">
           <el-form-item>
             <el-button
               type="primary"
@@ -185,68 +129,45 @@
             >
           </el-form-item>
         </el-col> -->
-      </el-row>
-    </el-form>
-
-    <div style="display: flex; justify-content: space-between;">
-      <el-radio-group
-        v-model="jcStatus"
-        @input="radioChange"
-        style="margin-left: 20px; margin-top: 20px"
-      >
-        <el-radio-button label="0">宸叉鏈粨璐︿汉鍛�</el-radio-button>
-        <el-radio-button label="1">鏈浜哄憳</el-radio-button>
-        <el-radio-button label="2">鍏ㄩ儴浜哄憳</el-radio-button>
-      </el-radio-group>
-
-      <el-form
-        :model="queryParams1"
-        ref="queryForm"
-        size="small"
-        :inline="true"
-        v-show="showSearch"
-        label-width="68px"
-        style="margin-top: 20px; margin-right: 22%;"
-      >
-        <el-form-item label="缁撹处鏃堕棿">
-            <el-date-picker clearable v-model="queryParams1.reservationTime" type="date" value-format="yyyy-MM-dd"
-              placeholder="璇烽�夋嫨缁撹处鏃堕棿">
-            </el-date-picker>
-          </el-form-item>
-        <el-form-item>
-            <el-button
-              type="primary"
-              icon="el-icon-search"
-              size="mini"
-              @click="handleQuery1"
-              style="margin: 0 15px"
-              >鎼滅储</el-button
-            >
-            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery1"
-              >閲嶇疆</el-button
-            >
-          </el-form-item>
+        </el-row>
       </el-form>
+
+
+
     </div>
 
     <el-row :gutter="20">
+      <!-- <el-form :model="queryParams1" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"
+        style="margin-top: 20px; margin-right: 22%;">
+        <el-form-item label="缁撹处鏃堕棿">
+          <el-date-picker clearable v-model="queryParams1.reservationTime" type="date" value-format="yyyy-MM-dd"
+            placeholder="璇烽�夋嫨缁撹处鏃堕棿">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery1"
+            style="margin: 0 15px">鏌ヨ</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery1">閲嶇疆</el-button>
+        </el-form-item>
+      </el-form> -->
       <el-col :span="12" :xs="24" style="padding: 0px 20px">
         <div class="tj">
           <span class="tj_txt">浣撴浜哄憳鎯呭喌琛�</span>
         </div>
 
-        <el-table
-          v-loading="loading"
-          :data="peopleList"
-          border
-          max-height="260px"
-        >
+        <el-table v-loading="loadings" :data="peopleList" border max-height="260px"
+          @selection-change="handlepeopleListChange">
           <el-table-column type="selection" width="55" align="center" />
-          <el-table-column label="搴忓彿" align="center" prop="newID" width="50" />
           <el-table-column label="濮撳悕" align="center" prop="name" width="100" />
-          <el-table-column label="鎬у埆" align="center" prop="sex" width="80" />
-          <el-table-column label="鐢佃瘽" align="center" prop="iphone" width="120" />
-          <el-table-column label="鐘舵��" align="center" prop="tjStatus" width="80"  />
+          <el-table-column label="鎬у埆" align="center" prop="xb" width="80">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.xb" />
+            </template>
+          </el-table-column>
+          <el-table-column label="鐢佃瘽" align="center" prop="dh" width="120" />
+          <el-table-column label="閲戦" align="center" prop="tjf" width="120" />
+
+          <el-table-column label="鐘舵��" align="center" prop="tjStatus" width="80" />
           <el-table-column label="浣撴鏃堕棿" align="center" prop="tjTime">
           </el-table-column>
         </el-table>
@@ -257,34 +178,59 @@
           <span class="tj_txt">宸茬粨璐﹁褰�</span>
         </div>
 
-        <el-table
-          v-loading="loading"
-          :data="dataList"
-          border
-          max-height="260px"
-        >
-          <el-table-column
-            label="浜ゆ槗閲戦"
-            align="center"
-            prop="transactionAmount"
-          />
-          <el-table-column
-            label="浜ゆ槗鏂瑰紡"
-            align="center"
-            prop="paymentMethod"
-          />
-          <el-table-column label="浜ゆ槗浜哄憳" align="center" prop="payer" />
+        <el-table v-loading="loading" :data="dataList" border max-height="260px">
+          <el-table-column label="浜ゆ槗閲戦" align="center" prop="paidIn" />
+          <el-table-column label="浜ゆ槗鏂瑰紡" align="center" prop="paymentMethod" width="90px">
+            <template slot-scope="scope">
+              <dict-tag :options="dict.type.dict_pay_type" :value="scope.row.paymentMethod" />
+            </template>
+
+          </el-table-column>
+          <el-table-column label="浜ゆ槗浜哄憳" align="center" prop="payer" width="90px" />
           <el-table-column label="鎿嶄綔浜哄憳" align="center" prop="payee">
           </el-table-column>
-          <el-table-column label="缁撹处鏃堕棿" align="center" prop="createTime" />
+          <el-table-column label="缁撹处鏃堕棿" align="center" prop="createTime">
+            <template slot-scope="scope">
+              <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
+            </template>
+          </el-table-column>
           <el-table-column label="鎿嶄綔" align="center">
-            <template>
-              <el-button type="primary">鎾ら攢缁撹处</el-button>
+            <template slot-scope="scope">
+              <el-button type="text" size="mini" title="鎾ら攢" @click.stop="handleDelete(scope.row)"
+                icon="el-icon-refresh-left"></el-button>
+              <el-button size="mini" title="璇︽儏" type="text" @click.stop="handleClick(scope.row)"
+                icon="el-icon-document-copy"></el-button>
             </template>
           </el-table-column>
         </el-table>
       </el-col>
     </el-row>
+
+
+    <el-dialog title="璇︽儏" :visible.sync="dialogVisible" width="40%" append-to-body>
+      <el-table id="sig" v-loading="loading" :data="dialogList" border ref="tb" max-height="260px">
+        <el-table-column label="濮撳悕" align="center" prop="name" width="100" />
+        <el-table-column label="浣撴鍙�" align="center" prop="tjh" width="120" />
+        <el-table-column label="璐熻矗浜�" align="center" prop="payer" width="120" />
+        <el-table-column label="閲戦" align="center" prop="transactionAmount" width="120" />
+
+        <el-table-column label="浜ゆ槗鏂瑰紡" align="center" prop="paymentMethod" width="90px">
+          <template slot-scope="scope">
+            <dict-tag :options="dict.type.dict_pay_type" :value="scope.row.paymentMethod" />
+          </template>
+
+        </el-table-column>
+        <el-table-column label="缁撹处鏃堕棿" align="center" prop="createTime">
+          <template slot-scope="scope">
+            <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span>
+          </template>
+        </el-table-column>
+      </el-table>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">鍙� 娑�</el-button>
+        <!-- <el-button type="primary" @click="dialogVisible = false">纭� 瀹�</el-button> -->
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -301,12 +247,12 @@
   getpay,
   delInfo,
   addInfo,
-  updateInfo,
+  getTjCompPay,
 } from "@/api/system/info";
 
 export default {
   name: "Info",
-  dicts: ["dict_pay_type"],
+  dicts: ["dict_pay_type", "sys_user_sex"],
   data() {
     let checkPhoneNum = (rule, value, callback) => {
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
@@ -324,10 +270,13 @@
       jcStatus: 0,
       formInline: {
         payer: "",
-        price: "",
+        price: null,
       },
       // 閬僵灞�
       loading: true,
+      // 閬僵灞�
+      loadings: false,
+      dialogVisible: false,
       // 閫変腑鏁扮粍
       ids: [],
       // 闈炲崟涓鐢�
@@ -342,10 +291,12 @@
       // 浣撴鍗曚綅缂磋垂鏄庣粏琛ㄦ牸鏁版嵁
       infoList: [],
       copeWith: "",
+      pacIds: "",
       transactionAmount: "",
       dataList: [],
       tableList: [],
       peopleList: [],
+      dialogList: [],
       // 寮瑰嚭灞傛爣棰�
       title: "",
       CompanyList: [],
@@ -355,6 +306,7 @@
       teamNo: "",
       // 鐧婚檰浜哄悕瀛�
       tollCollectorName: "",
+      tjhs: [],
       // 鏌ヨ鍙傛暟
       queryParams: {
         pageNum: 1,
@@ -366,8 +318,8 @@
         payer: null,
         payee: null,
       },
-      queryParams1:{
-        reservationTime:null
+      queryParams1: {
+        reservationTime: null
       },
       // 琛ㄥ崟鍙傛暟
       form: {},
@@ -416,7 +368,39 @@
       this.compId = val;
     },
 
-    radioChange(val) {},
+    radioChange(val) {
+      this.peopleList = []
+      this.loadings = true
+      let data = {
+        teamNo: this.teamNo,
+        pacId: this.pacIds
+      }
+      getTeamTjPeopleList(data).then((res) => {
+        if (res.data) {
+          if (this.jcStatus == 0) {
+            this.peopleList = res.data.yjwjzList;
+
+          } else if (this.jcStatus == 1) {
+            this.peopleList = res.data.wjList;
+          } else {
+            this.peopleList = res.data.syList;
+          }
+
+        }
+        this.loadings = false
+      });
+    },
+
+
+    handlepeopleListChange(selection) {
+      this.formInline.price = null
+      this.tjhs = []
+      selection.forEach(item => {
+        this.formInline.price += item.tjf
+        this.tjhs.push(item.tjh)
+      })
+
+    },
 
     // 浣撴鍏徃鎷奸煶鎼滅储
     getRemoteData(query) {
@@ -459,39 +443,13 @@
         } else {
           this.$refs.tb.clearSelection();
         }
-        this.infoList.forEach((item) => {
-          this.copeWith = item.copeWith;
-          this.transactionAmount = item.transactionAmount;
-          this.formInline.price = item.copeWith - item.transactionAmount;
-          if (item.payInfo != null) {
-            this.tjCompPayId = item.payInfo.tjCompPayId;
-          }
-
-          this.formInline.payer = item.payer;
-          if (item.payInfoList != null) {
-            this.dataList = item.payInfoList;
-            this.dataList.forEach((item) => {
-              if (item.paymentMethod === 0) {
-                item.paymentMethod = "鐜伴噾鏀粯";
-              } else if (item.paymentMethod === 1) {
-                item.paymentMethod = "鍒峰崱鏀粯";
-              } else if (item.paymentMethod === 2) {
-                item.paymentMethod = "鏀粯瀹�";
-              } else if (item.paymentMethod === 3) {
-                item.paymentMethod = "寰俊";
-              } else if (item.paymentMethod === 4) {
-                item.paymentMethod = "浜戦棯浠�";
-              }
-            });
-          }
-        });
         this.loading = false;
       });
     },
-    handleQuery1(){
+    handleQuery1() {
 
     },
-     resetQuery1() {
+    resetQuery1() {
       this.resetForm("queryForm1");
       this.handleQuery1();
     },
@@ -502,7 +460,6 @@
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      console.log(2222);
       if (selection.length > 1) {
         let del_row = selection.shift();
         this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑
@@ -512,43 +469,60 @@
       // this.multiple = !selection.length;
       this.tableList = selection;
       this.teamNo = "";
+      this.pacIds = "";
       this.tableList.forEach((item) => {
         this.teamNo = item.teamNo;
+        this.pacIds = item.pacId
         this.copeWith = item.copeWith;
+        this.difference = item.difference;
         this.transactionAmount = item.transactionAmount;
-        this.formInline.price = item.copeWith - item.transactionAmount;
         if (item.payInfo != null) {
           this.tjCompPayId = item.payInfo.tjCompPayId;
         }
-        if (item.payInfoList != null) {
-          this.dataList = item.payInfoList;
-          this.dataList.forEach((item) => {
-            if (item.paymentMethod === 0) {
-              item.paymentMethod = "鐜伴噾鏀粯";
-            } else if (item.paymentMethod === 1) {
-              item.paymentMethod = "鍒峰崱鏀粯";
-            } else if (item.paymentMethod === 2) {
-              item.paymentMethod = "鏀粯瀹�";
-            } else if (item.paymentMethod === 3) {
-              item.paymentMethod = "寰俊";
-            } else if (item.paymentMethod === 4) {
-              item.paymentMethod = "浜戦棯浠�";
-            }
-          });
-        }
+        // if (item.payInfoList != null) {
+        //   this.dataList = item.payInfoList;
+        //   this.dataList.forEach((item) => {
+        //     if (item.paymentMethod === 0) {
+        //       item.paymentMethod = "鐜伴噾鏀粯";
+        //     } else if (item.paymentMethod === 1) {
+        //       item.paymentMethod = "鍒峰崱鏀粯";
+        //     } else if (item.paymentMethod === 2) {
+        //       item.paymentMethod = "鏀粯瀹�";
+        //     } else if (item.paymentMethod === 3) {
+        //       item.paymentMethod = "寰俊";
+        //     } else if (item.paymentMethod === 4) {
+        //       item.paymentMethod = "浜戦棯浠�";
+        //     }
+        //   });
+        // }
       });
-      console.log(11111);
+      this.tongyong()
+    },
+
+    tongyong() {
+      this.loadings = true
       if (this.teamNo) {
-        getTeamTjPeopleList(this.teamNo).then((res) => {
+        let data = {
+          teamNo: this.teamNo,
+          pacId: this.pacIds
+        }
+        getTeamTjPeopleList(data).then((res) => {
           if (res.data) {
-            this.peopleList = res.data;
-            res.data.forEach((item, index) => {
-              item.newID =
-                (this.queryParams.pageNum - 1) * this.queryParams.pageSize +
-                index +
-                1;
-            });
+            if (this.jcStatus == 0) {
+              this.peopleList = res.data.yjwjzList;
+            } else if (s.jcStatus == 1) {
+              this.peopleList = res.data.wjList;
+            } else {
+              this.peopleList = res.data.syList
+                ;
+            }
           }
+          this.loadings = false
+        }).catch(error => {
+          this.loadings = false
+        });
+        getTjCompPay(data).then((res) => {
+          this.dataList = res.data
         });
       }
     },
@@ -559,22 +533,26 @@
     //   this.title = "娣诲姞浣撴鍗曚綅缂磋垂鏄庣粏";
     // },
 
-    // 鍗曢�夋寜閽�
-    radioChange(val) {},
-
     /** 鏀惰垂鎻愪氦鎸夐挳 */
     SubmitEvent() {
       if (this.formInline.price != 0) {
         let data = {
           paymentMethod: this.formInline.payType,
-          transactionAmount: this.formInline.price,
+          copeWith: this.formInline.price,
+          paidIn: this.formInline.price,
           payee: this.tollCollectorName, // 鏀舵浜�
           tjCompPayId: this.tjCompPayId,
           payer: this.formInline.payer,
+          tjhs: this.tjhs,
+          compId: this.compId,
+          pacId: this.pacIds,
+          teamNo: this.teamNo,
+          difference: this.difference
         };
         getpay(data).then((response) => {
           this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
-          this.handleQuery();
+          this.formInline.price = null
+          this.handleQuery()
           const tjnumber = this.waterId;
           const viewNum = this.mobanId;
           const params = { viewNum, tjnumber };
@@ -586,29 +564,41 @@
     },
 
     /** 閫�璐规寜閽搷浣� */
-    handleDelete() {
-      if (this.formInline.price != 0) {
-        if (this.formInline.price < this.transactionAmount) {
-          let data = {
-            paymentMethod: this.formInline.payType,
-            transactionAmount: this.formInline.price,
-            payee: this.tollCollectorName, // 鏀舵浜�
-            tjCompPayId: this.tjCompPayId,
-            payer: this.formInline.payer,
-          };
-          addInfo(data).then((response) => {
-            this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
-            this.handleQuery();
-          });
-        } else {
-          this.$message.error("瓒呭嚭宸蹭粯閲戦,閫�璐瑰け璐�");
-        }
-      } else {
-        this.$message.error("閫�璐归噾棰濅笉鑳戒负0");
+    handleDelete(row) {
+      this.tjhs = []
+      if (row.payInfo.length != 0) {
+        row.payInfo.forEach(item => {
+          this.tjhs.push(item.tjh)
+        })
       }
+
+      let data = {
+        paymentMethod: row.paymentMethod,
+        copeWith: row.copeWith,
+        paidIn: row.paidIn,
+        payee: row.payee, // 鏀舵浜�
+        payer: row.payer,
+        tjhs: this.tjhs,
+        compId: row.compId,
+        pacId: row.pacId,
+        teamNo: row.teamNo,
+        difference: row.difference,
+        serialNumber: row.serialNumber,
+        id: row.id
+      };
+      addInfo(data).then((response) => {
+        this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+        this.loadings = true
+        this.handleQuery()
+      });
+    },
+
+    handleClick(row) {
+      this.dialogVisible = true
+      this.dialogList = row.payInfo
     },
     /** 瀵煎嚭鎸夐挳鎿嶄綔 */
-    handleExport() {},
+    handleExport() { },
   },
 };
 </script>

--
Gitblit v1.8.0