k94314517
2025-05-28 a43f9d75a9e0ba2720b3c438a0c5ece7be0eb110
wx/unpackage/dist/dev/mp-weixin/pages/details_dispatch_unit/details_dispatch_unit.js
@@ -198,151 +198,10 @@
});
exports.default = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
var _vuex = __webpack_require__(/*! vuex */ 160);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _default = {
  data: function data() {
    return {
@@ -363,7 +222,8 @@
      code: '',
      num: 0,
      error: false,
      timer: null
      timer: null,
      loading: false
    };
  },
  onLoad: function onLoad(option) {
@@ -373,63 +233,92 @@
  onReachBottom: function onReachBottom() {
    this.getList();
  },
  computed: _objectSpread({}, (0, _vuex.mapState)(['userInfo'])),
  methods: {
    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);
    },
    // 签署
    confirm1: function confirm1() {
      var _this = this;
      if (!this.code) {
        this.error = 1;
        return;
      }
      var _this3 = this;
      // if (!this.code) {
      //    this.error = 1
      //    return
      // }
      this.loading = true;
      // 签署投保单
      if (this.type === 1) {
        this.$u.api.validateCode({
          code: this.code
        }).then(function (res) {
          if (res.code === 200) {
            _this.error = '';
            _this.show1 = false;
            _this.$u.api.getJiajianBaoSignLink({
              id: _this.info.id
            // this.error = ''
            // this.show1 = false
            _this3.$u.api.getJiajianBaoSignLink({
              id: _this3.info.id
            }).then(function (url) {
              _this3.loading = false;
              if (url.code === 200) {
                uni.navigateTo({
                  url: "/pages/webView/webView?url=".concat(encodeURIComponent(url.data))
                });
              }
            });
          } else {
            _this.error = 2;
          }
          //  else {
          //    this.error = 2
          // }
        });
        this.show1 = false;
        // this.show1 = false
        // 申请单
      } else if (this.type === 2) {
        this.$u.api.getChangeMemberListOnlineSignLink({
          businessId: this.info.id,
          code: this.code
        }).then(function (res) {
          _this3.loading = false;
          if (res.code === 200) {
            _this.error = '';
            _this.show1 = false;
            // this.error = ''
            // this.show1 = false
            uni.navigateTo({
              url: "/pages/webView/webView?url=".concat(encodeURIComponent(res.data))
            });
          } else {
            _this.error = 2;
          }
          //  else {
          //    this.error = 2
          // }
        });
      }
    },
    // 打开发送验证码弹窗
    openmessage: function openmessage(type) {
      this.code = '';
      clearInterval(this.timer);
      this.error = '';
      this.timer = null;
      this.num = 0;
      // this.code = ''
      // clearInterval(this.timer)
      // this.error = ''
      // this.timer = null
      // this.num = 0
      this.type = type;
      this.show1 = true;
      this.confirm1();
      // this.show1 = true
    },
    // 查看pdf
    seePdf: function seePdf(url) {
@@ -446,16 +335,16 @@
      });
    },
    getDetail: function getDetail() {
      var _this2 = this;
      var _this4 = this;
      this.$u.api.applyChangeById(this.id).then(function (res) {
        if (res.code === 200) {
          _this2.info = res.data;
          _this2.getList();
          _this4.info = res.data;
          _this4.getList();
        }
      });
    },
    getList: function getList() {
      var _this3 = this;
      var _this5 = this;
      if (this.next) return;
      this.$u.api.applyChagneDetailPage({
        capacity: 10,
@@ -467,24 +356,24 @@
      }).then(function (res) {
        if (res.code === 200) {
          if (res.data.records.length > 0) {
            var _this3$list;
            _this3.page++;
            (_this3$list = _this3.list).push.apply(_this3$list, (0, _toConsumableArray2.default)(res.data.records));
            var _this5$list;
            _this5.page++;
            (_this5$list = _this5.list).push.apply(_this5$list, (0, _toConsumableArray2.default)(res.data.records));
          } else {
            _this3.next = true;
            _this5.next = true;
          }
        }
      });
    },
    confirm: function confirm() {
      var _this4 = this;
      var _this6 = this;
      this.$u.api.applyChangeOpt({
        applyId: this.info.id,
        optType: 3
      }).then(function (res) {
        if (res.code === 200) {
          _this4.show = false;
          _this4.getDetail();
          _this6.show = false;
          _this6.getDetail();
        }
      });
    },
@@ -495,14 +384,14 @@
      this.show1 = false;
    },
    confirm2: function confirm2() {
      var _this5 = this;
      var _this7 = this;
      this.$u.api.applyChangeOpt({
        applyId: this.info.id,
        optType: 6
      }).then(function (res) {
        if (res.code === 200) {
          _this5.show2 = false;
          _this5.getDetail();
          _this7.show2 = false;
          _this7.getDetail();
        }
      });
    },
@@ -512,7 +401,7 @@
    returnStyle: function returnStyle(type) {
      if ([2].includes(type)) {
        return 'linear-gradient(#97DDC5 0%, #F7F7F7 100%);';
      } else if ([1, 0].includes(type)) {
      } else if ([1, 0, 7].includes(type)) {
        return 'linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);';
      } else if ([3, 4, 5, 8, 6].includes(type)) {
        return '';
@@ -521,7 +410,7 @@
    returnStyle1: function returnStyle1(type) {
      if ([2].includes(type)) {
        return 'linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)';
      } else if ([1, 0].includes(type)) {
      } else if ([1, 0, 7].includes(type)) {
        return 'linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);';
      } else if ([3, 4, 5, 8, 6].includes(type)) {
        return '#ffffff';