From bc721423d62b0b8e8deedff6b97b5dbc8ca54a97 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 28 五月 2025 09:08:16 +0800
Subject: [PATCH] 提交

---
 wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js |   53 ++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 48 insertions(+), 5 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..e052ea3 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,24 @@
 //
 //
 //
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
 var _default = {
   data: function data() {
     return {
       id: null,
+      show: false,
       codeId: null,
+      fangan: {},
       code: null,
       startDate: null,
       cyclePrice: null,
@@ -329,6 +356,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) {
@@ -340,7 +374,12 @@
     // 鎬婚噾棰�
     totalPrice: function totalPrice() {
       // return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
-      return (this.cyclePrice * this.add.length - this.cyclePrice * this.del.length).toFixed(2);
+      var totalReductPrice = 0;
+      this.del.forEach(function (item) {
+        totalReductPrice = totalReductPrice + item.fee;
+      });
+      // return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
+      return (this.cyclePrice * this.add.length + totalReductPrice).toFixed(2);
     }
   },
   methods: {
@@ -370,13 +409,14 @@
       });
       var delDetailList = this.del.map(function (item) {
         return {
+          memberId: item.id,
           duId: item.pqId,
           duName: item.pqName,
           idcardNo: item.idCard,
           memberName: item.name,
           workTypeName: item.gzName,
           worktypeId: item.gzId,
-          fee: _this2.cyclePrice
+          fee: item.fee
         };
       });
       this.$u.api.applyChangeCreate({
@@ -429,9 +469,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