jiangping
2025-05-30 cc01607ad15fa69ad52bc0c81e8cfdc4b7effed8
wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js
@@ -111,6 +111,18 @@
    uModal: function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-modal/u-modal */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-modal/u-modal.vue */ 433))
    },
    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))
    },
    "u-Form": function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u--form/u--form */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u--form/u--form")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u--form/u--form.vue */ 449))
    },
    uFormItem: function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u-form-item/u-form-item */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-form-item/u-form-item.vue */ 455))
    },
    "u-Input": function () {
      return Promise.all(/*! import() | node-modules/uview-ui/components/u--input/u--input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u--input/u--input")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u--input/u--input.vue */ 463))
    },
  }
} catch (e) {
  if (
@@ -219,6 +231,9 @@
    _vm.e2 = function ($event) {
      _vm.show1 = false
    }
    _vm.e3 = function ($event) {
      _vm.show2 = false
    }
  }
  _vm.$mp.data = Object.assign(
    {},
@@ -297,10 +312,36 @@
      info: null,
      show: false,
      show1: false,
      show2: false,
      height: 'auto',
      height1: 'auto',
      height2: 'auto',
      fileList: []
      fileList: [],
      form: {
        receiveBank: '',
        receiveAccount: '',
        receiveUserName: ''
      },
      rules: {
        receiveBank: {
          type: 'string',
          required: true,
          message: '请输入开户银行',
          trigger: ['blur']
        },
        receiveAccount: {
          type: 'string',
          required: true,
          message: '请输入账号',
          trigger: ['blur']
        },
        receiveUserName: {
          type: 'string',
          required: true,
          message: '请输入户名',
          trigger: ['blur']
        }
      }
    };
  },
  onLoad: function onLoad(option) {
@@ -313,14 +354,35 @@
  },
  computed: _objectSpread({}, (0, _vuex.mapState)(['cookies'])),
  methods: {
    openInfo: function openInfo() {
      this.form.receiveBank = this.info.receiveBank;
      this.form.receiveAccount = this.info.receiveAccount;
      this.form.receiveUserName = this.info.receiveUserName;
      this.show2 = true;
    },
    submitInfo: function submitInfo() {
      var _this2 = this;
      this.$refs.uForm.validate().then(function (res) {
        _this2.$u.api.updReceiveInfo(_objectSpread(_objectSpread({}, _this2.form), {}, {
          id: _this2.id
        })).then(function (res) {
          _this2.show2 = false;
          uni.showToast({
            title: '修改成功',
            icon: 'success'
          });
          _this2.getDetails();
        });
      }).catch(function (errors) {});
    },
    queren: function queren() {
      this.show1 = true;
    },
    confirmPrice: function confirmPrice() {
      var _this2 = this;
      var _this3 = this;
      this.$u.api.confirmFee(this.id).then(function (res) {
        _this2.show1 = false;
        _this2.getDetails();
        _this3.show1 = false;
        _this3.getDetails();
      });
    },
    upload: function upload(type) {
@@ -395,10 +457,10 @@
    },
    // 删除附件
    deleFile: function deleFile(id, objId) {
      var _this3 = this;
      var _this4 = this;
      this.$u.api.delFile(objId, id).then(function (res) {
        if (res.code === 200) {
          _this3.getDetails();
          _this4.getDetails();
        }
      });
    },
@@ -441,7 +503,7 @@
      this.show = true;
    },
    confirm: function confirm() {
      var _this4 = this;
      var _this5 = this;
      if (this.fileList.length === 0) return uni.showToast({
        title: '请先上传材料',
        icon: 'none'
@@ -451,8 +513,8 @@
        supplementFileList: this.fileList
      }).then(function (res) {
        if (res.code === 200) {
          _this4.show = false;
          _this4.getDetails();
          _this5.show = false;
          _this5.getDetails();
        }
      });
    },
@@ -462,10 +524,10 @@
      });
    },
    getDetails: function getDetails() {
      var _this5 = this;
      var _this6 = this;
      this.$u.api.settleClaimsById(this.id).then(function (res) {
        if (res.code === 200) {
          _this5.info = res.data;
          _this6.info = res.data;
        }
      });
    },