MrShi
2024-04-02 22271e641e4505ba906c3770905b7e84e3ad8d85
wx/unpackage/dist/dev/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js
@@ -146,12 +146,15 @@
  var g0 = _vm.info ? [2, 1, 5, 0].includes(_vm.info.status) : null
  if (!_vm._isMounted) {
    _vm.e0 = function ($event) {
      _vm.show2 = true
      _vm.show = true
    }
    _vm.e1 = function ($event) {
      _vm.show1 = true
      _vm.show2 = true
    }
    _vm.e2 = function ($event) {
      _vm.show = true
    }
    _vm.e3 = function ($event) {
      _vm.show2 = true
    }
  }
@@ -199,7 +202,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
@@ -207,6 +210,10 @@
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
//
//
//
//
//
//
//
@@ -383,7 +390,13 @@
      }, {
        name: '减保人员'
        // id: ['1']
      }]
      }],
      type: null,
      code: '',
      num: 0,
      error: false,
      timer: null
    };
  },
  onLoad: function onLoad(options) {
@@ -395,6 +408,52 @@
    this.getList();
  },
  methods: {
    // 查看pdf
    seePdf: function seePdf(url) {
      if (!url) return;
      uni.downloadFile({
        url: url,
        success: function success(res) {
          var filePath = res.tempFilePath;
          uni.openDocument({
            filePath: filePath,
            success: function success(res) {}
          });
        }
      });
    },
    send: function send() {
      var _this = this;
      this.$u.api.sendSms({
        phone: this.userInfo.mobile
      }).then(function (res) {
        if (res.code === 200) {
          _this.num = 60;
          _this.setTime();
        }
      });
    },
    setTime: function setTime() {
      var _this2 = this;
      this.timer = setInterval(function () {
        if (_this2.num === 0) {
          clearInterval(_this2.timer);
          _this2.timer = null;
          return;
        }
        _this2.num = _this2.num - 1;
      }, 1000);
    },
    // 打开发送验证码弹窗
    openmessage: function openmessage(type) {
      this.code = '';
      clearInterval(this.timer);
      this.error = '';
      this.timer = null;
      this.num = 0;
      this.type = type;
      this.show1 = true;
    },
    IdCard: function IdCard(UUserCard) {
      var idcard = UUserCard.toString();
      //获取年龄
@@ -415,16 +474,16 @@
      this.getList();
    },
    getInfo: function getInfo() {
      var _this = this;
      var _this3 = this;
      this.$u.api.applyChangeById(this.id).then(function (res) {
        if (res.code === 200) {
          _this.info = res.data;
          _this3.info = res.data;
        }
      });
    },
    // 加减保人员
    getList: function getList() {
      var _this2 = this;
      var _this4 = this;
      if (this.next) return;
      this.$u.api.applyChagneDetailPage({
        capacity: 10,
@@ -436,35 +495,81 @@
      }).then(function (res) {
        if (res.code === 200) {
          if (res.data.records.length > 0) {
            var _this2$list;
            _this2.page++;
            (_this2$list = _this2.list).push.apply(_this2$list, (0, _toConsumableArray2.default)(res.data.records));
            var _this4$list;
            _this4.page++;
            (_this4$list = _this4.list).push.apply(_this4$list, (0, _toConsumableArray2.default)(res.data.records));
          } else {
            _this2.next = true;
            _this4.next = true;
          }
        }
      });
    },
    // 申请退回
    confirm: function confirm() {
      this.show = false;
      var _this5 = this;
      this.$u.api.applyChangeOpt({
        applyId: this.info.id,
        optType: 3
      }).then(function (res) {
        if (res.code === 200) {
          _this5.show = false;
        }
      });
    },
    cancel: function cancel() {
      this.show = false;
    },
    // 签署
    confirm1: function confirm1() {
      this.show1 = false;
      var _this6 = this;
      if (!this.code) {
        this.error = 1;
        return;
      }
      // 签署申请单
      if (this.type === 1) {
        console.log('签署申请单');
        this.$u.api.validateCode({
          code: this.code
        }).then(function (res) {
          if (res.code === 200) {
            _this6.error = '';
            _this6.show1 = false;
            _this6.$u.api.getJiajianBaoSignLink({
              id: _this6.info.id
            }).then(function (url) {
              if (url.code === 200) {
                uni.navigateTo({
                  url: "/pages/webView/webView?url=".concat(url.data)
                });
              }
            });
          } else {
            _this6.error = 2;
          }
        });
        this.show1 = false;
      }
    },
    cancel1: function cancel1() {
      this.show1 = false;
    },
    // 关闭订单
    confirm2: function confirm2() {
      this.show2 = false;
      var _this7 = this;
      this.$u.api.applyChangeOpt({
        applyId: this.info.id,
        optType: 6
      }).then(function (res) {
        if (res.code === 200) {
          _this7.show2 = false;
        }
      });
    },
    cancel2: function cancel2() {
      this.show2 = false;
    },
    returnStyle: function returnStyle(type) {
      if (!type) return;
      if ([2].includes(type)) {
        return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);';
      } else if ([0, 1].includes(type)) {
@@ -474,7 +579,6 @@
      }
    },
    returnStyle1: function returnStyle1(type) {
      if (!type) return;
      if ([2].includes(type)) {
        return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)';
      } else if ([0, 1].includes(type)) {
@@ -486,6 +590,7 @@
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),