MrShi
2025-05-28 2d881f8c1b0675646329462225c9aa2f9095e90a
wx/unpackage/dist/dev/mp-weixin/pages/new_report/new_report.js
@@ -155,10 +155,7 @@
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var g0 = _vm.list.length
  var g1 =
    _vm.i === 0 && !_vm.id
      ? _vm.model.memberName && _vm.columns2.length > 0
      : null
  var g1 = _vm.i === 0 ? _vm.model.memberName && _vm.columns2.length > 0 : null
  if (!_vm._isMounted) {
    _vm.e0 = function ($event) {
      _vm.show2 = true
@@ -179,7 +176,7 @@
      _vm.model.hurtType = 1
    }
    _vm.e6 = function ($event) {
      _vm.model.hurtType = 1
      _vm.model.hurtType = 2
    }
    _vm.e7 = function ($event) {
      _vm.model.medicalInsurance = 0
@@ -617,7 +614,7 @@
  data: function data() {
    return {
      id: null,
      i: 1,
      i: 0,
      show: false,
      show1: false,
      show2: false,
@@ -773,11 +770,11 @@
      });
      this.getDetails();
      this.getArea();
      this.getUser();
      // this.getUser()
      return;
    }
    this.getArea();
    this.getUser();
    // this.getUser()
    this.model.informantName = this.$store.state.userInfo.realname;
  },
  methods: (_methods = {
@@ -787,6 +784,7 @@
      });
    }
  }, (0, _defineProperty2.default)(_methods, "jixu", function jixu() {
    this.scheme = null;
    this.model = {
      memberId: '',
      memberName: '',
@@ -861,10 +859,21 @@
        _this3.model.duName = res.data.duName;
        _this3.model.content = res.data.content;
        _this3.model.reportFileList = res.data.reportFileList;
        _this3.model.idcardNo = res.data.idcardNo;
        _this3.model.address = res.data.address;
        _this3.model.receiveBank = res.data.receiveBank;
        _this3.model.receiveUserName = res.data.receiveUserName;
        _this3.model.receiveAccount = res.data.receiveAccount;
        _this3.model.informantName = res.data.informantName;
        _this3.model.informantPhone = res.data.informantPhone;
        _this3.model.hospital = res.data.hospital;
        _this3.model.happenTime = res.data.happenTime;
        _this3.model.hurtType = res.data.hurtType;
        _this3.model.relationFileList = res.data.relationFileList;
        _this3.model.outpatientFileList = res.data.outpatientFileList;
        _this3.model.hospitalFileList = res.data.hospitalFileList;
        _this3.model.disabilityFileList = res.data.disabilityFileList;
        _this3.model.otherFileList = res.data.otherFileList;
        _this3.model.type = res.data.type;
        if (res.data.type === 0) {
          _this3.model.typeName = '工作期间受伤';
@@ -879,6 +888,28 @@
        _this3.model.medicalInsurance = res.data.medicalInsurance;
        _this3.model.areaInfo = res.data.areaInfo;
        _this3.model.areaId = res.data.areaId;
        _this3.model.solutionId = res.data.solutionId;
        _this3.model.solutionName = res.data.solutionName;
        _this3.model.duId = res.data.duId;
        _this3.model.duName = res.data.duName;
        _this3.model.worktypeId = res.data.worktypeId;
        _this3.model.worktypeName = res.data.worktypeName;
        _this3.model.applyDetailId = res.data.applyDetailId;
        _this3.model.insuranceApplyId = res.data.insuranceApplyId;
        _this3.$u.api.findList({
          memberId: _this3.model.memberId
        }).then(function (res) {
          if (res.code === 200) {
            res.data.forEach(function (item) {
              if (item.solutionId === _this3.model.solutionId) {
                _this3.scheme = item;
                _this3.minDate = _this3.dateToTimestamp(item.parentStartTime);
                _this3.maxDate = _this3.dateToTimestamp(item.parentEndTime);
                _this3.date = _this3.dateToTimestamp(item.parentStartTime);
              }
            });
          }
        });
      }
    });
  }), (0, _defineProperty2.default)(_methods, "next", function next() {
@@ -890,7 +921,8 @@
    var _this5 = this;
    this.$refs.uForm.validate().then(function (res) {
      _this5.$u.api.saveSettleClaims(_objectSpread(_objectSpread({}, _this5.model), {}, {
        saveType: saveType
        saveType: saveType,
        id: _this5.id
      })).then(function (res) {
        if (res.code === 200) {
          _this5.id = res.data;
@@ -993,42 +1025,48 @@
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              } else if (type === 1) {
                that.model.relationFileList.push({
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              } else if (type === 2) {
                that.model.outpatientFileList.push({
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              } else if (type === 3) {
                that.model.hospitalFileList.push({
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              } else if (type === 4) {
                that.model.disabilityFileList.push({
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              } else if (type === 5) {
                that.model.otherFileList.push({
                  fileurl: res.data.imgaddr,
                  name: res.data.originname,
                  type: res.data.type,
                  url: res.data.url
                  url: res.data.url,
                  fileurlFull: res.data.url
                });
              }
            },
@@ -1066,7 +1104,8 @@
          _this9.model.reportFileList.push({
            fileurl: res.data.imgaddr,
            name: res.data.originname,
            type: res.data.type
            type: res.data.type,
            fileurlFull: res.data.url
          });
        },
        complete: function complete() {