From 058a40c60af7d3823845d8f4ab24b0abb48576d1 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 29 五月 2025 18:20:56 +0800
Subject: [PATCH] git ch

---
 wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction/addition_subtraction.js |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 50 insertions(+), 7 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..3015977 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
@@ -103,10 +103,16 @@
 try {
   components = {
     uTabs: function () {
-      return Promise.all(/*! import() | node-modules/uview-ui/components/u-tabs/u-tabs */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-tabs/u-tabs.vue */ 431))
+      return Promise.all(/*! import() | node-modules/uview-ui/components/u-tabs/u-tabs */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-tabs/u-tabs.vue */ 441))
     },
     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))
+      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 */ 416))
+    },
+    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 */ 495))
+    },
+    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 */ 502))
     },
   }
 } catch (e) {
@@ -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