From fe7ac1ca4e17db22417d1d61c084a0ab9857b77f Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 12 四月 2024 10:46:21 +0800
Subject: [PATCH] mrshi

---
 wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
index 458a724..f361900 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js
@@ -108,6 +108,12 @@
     uButton: function () {
       return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 406))
     },
+    uToast: function () {
+      return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-toast/u-toast */ "node-modules/uview-ui/components/u-toast/u-toast").then(__webpack_require__.bind(null, /*! uview-ui/components/u-toast/u-toast.vue */ 485))
+    },
+    uPopup: function () {
+      return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 492))
+    },
   }
 } catch (e) {
   if (
@@ -145,6 +151,14 @@
   )
   var g0 = _vm.add.length
   var g1 = _vm.del.length
+  if (!_vm._isMounted) {
+    _vm.e0 = function ($event) {
+      _vm.show = true
+    }
+    _vm.e1 = function ($event) {
+      _vm.show = false
+    }
+  }
   _vm.$mp.data = Object.assign(
     {},
     {
@@ -301,11 +315,23 @@
 //
 //
 //
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
 var _default = {
   data: function data() {
     return {
       id: null,
+      show: false,
       codeId: null,
+      fangan: {},
       code: null,
       startDate: null,
       cyclePrice: null,
@@ -329,6 +355,13 @@
     this.cyclePrice = options.cyclePrice;
     this.getDetails();
     uni.$on('add', function (res) {
+      if (JSON.stringify(_this.add).indexOf(res.model.idCard) !== -1) {
+        _this.$refs.uToast.show({
+          type: 'default',
+          message: "[".concat(res.model.name, "]\u4EBA\u5458\u8EAB\u4EFD\u8BC1\u91CD\u590D")
+        });
+        return;
+      }
       _this.add.unshift(res.model);
     });
     uni.$on('del', function (res) {
@@ -370,6 +403,7 @@
       });
       var delDetailList = this.del.map(function (item) {
         return {
+          memberId: item.id,
           duId: item.pqId,
           duName: item.pqName,
           idcardNo: item.idCard,
@@ -429,9 +463,12 @@
       }
     },
     getDetails: function getDetails() {
-      var _this3 = this;
-      this.$u.api.insuranceApplyById(this.codeId).then(function (res) {
-        _this3.info = res.data;
+      var that = this;
+      that.$u.api.insuranceApplyById(that.codeId).then(function (res) {
+        that.info = res.data;
+        that.$u.api.solutionsById(res.data.newVersionSolutionId).then(function (data) {
+          that.fangan = data.data;
+        });
       });
     },
     jump: function jump() {

--
Gitblit v1.9.3