|  |  |  | 
|---|
|  |  |  | 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 */ 423)) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | "u-Textarea": function () { | 
|---|
|  |  |  | return Promise.all(/*! import() | node-modules/uview-ui/components/u--textarea/u--textarea */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u--textarea/u--textarea")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u--textarea/u--textarea.vue */ 516)) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } catch (e) { | 
|---|
|  |  |  | if ( | 
|---|
|  |  |  | 
|---|
|  |  |  | var _vm = this | 
|---|
|  |  |  | var _h = _vm.$createElement | 
|---|
|  |  |  | var _c = _vm._self._c || _h | 
|---|
|  |  |  | var g0 = _vm.info ? [13].includes(_vm.info.status) : null | 
|---|
|  |  |  | var g1 = _vm.info ? [10, 11, 12, 13].includes(_vm.info.status) : null | 
|---|
|  |  |  | var g2 = | 
|---|
|  |  |  | _vm.info && g1 | 
|---|
|  |  |  | ? [11].includes(_vm.info.status) && _vm.info.feeUpdate === 0 | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g3 = | 
|---|
|  |  |  | _vm.info && g1 | 
|---|
|  |  |  | ? [11].includes(_vm.info.status) && _vm.info.feeUpdate === 1 | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g4 = | 
|---|
|  |  |  | _vm.info && g1 && !g3 | 
|---|
|  |  |  | ? [11].includes(_vm.info.status) && _vm.info.feeUpdate === 0 | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g5 = _vm.info && g1 ? [11].includes(_vm.info.status) : null | 
|---|
|  |  |  | var g6 = _vm.info && g1 ? [11].includes(_vm.info.status) : null | 
|---|
|  |  |  | var g7 = _vm.info ? [10, 11, 12].includes(_vm.info.status) : null | 
|---|
|  |  |  | var g8 = _vm.info | 
|---|
|  |  |  | ? [9].includes(_vm.info.status) && _vm.info.waitSupplement === 1 | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g9 = _vm.info ? [4].includes(_vm.info.status) : null | 
|---|
|  |  |  | var m0 = _vm.info ? _vm.returnInHospital(_vm.info.inHospital) : null | 
|---|
|  |  |  | var m1 = _vm.info ? _vm.returnName(_vm.info.hurtType) : null | 
|---|
|  |  |  | var m2 = _vm.info ? _vm.returnName(_vm.info.medicalInsurance) : null | 
|---|
|  |  |  | var l0 = | 
|---|
|  |  |  | _vm.info && _vm.info.settleClaimsLogList | 
|---|
|  |  |  | _vm.info && _vm.info && _vm.info.settleClaimsLogList | 
|---|
|  |  |  | ? _vm.__map(_vm.info.settleClaimsLogList, function (item, index) { | 
|---|
|  |  |  | var $orig = _vm.__get_orig(item) | 
|---|
|  |  |  | var g0 = _vm.info.settleClaimsLogList.length | 
|---|
|  |  |  | var g1 = _vm.info.settleClaimsLogList.length | 
|---|
|  |  |  | var g2 = item.content ? _vm.info.settleClaimsLogList.length : null | 
|---|
|  |  |  | var g3 = | 
|---|
|  |  |  | var g10 = _vm.info.settleClaimsLogList.length | 
|---|
|  |  |  | var g11 = _vm.info.settleClaimsLogList.length | 
|---|
|  |  |  | var g12 = item.content ? _vm.info.settleClaimsLogList.length : null | 
|---|
|  |  |  | var g13 = | 
|---|
|  |  |  | item.content && item.objType === 3 | 
|---|
|  |  |  | ? JSON.parse(item.afterContent) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g4 = | 
|---|
|  |  |  | var g14 = | 
|---|
|  |  |  | item.content && item.objType === 3 | 
|---|
|  |  |  | ? JSON.parse(item.afterContent) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g5 = | 
|---|
|  |  |  | var g15 = | 
|---|
|  |  |  | item.content && item.objType === 3 | 
|---|
|  |  |  | ? JSON.parse(item.afterContent) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g6 = | 
|---|
|  |  |  | var g16 = | 
|---|
|  |  |  | item.content && item.objType === 3 | 
|---|
|  |  |  | ? JSON.parse(item.afterContent) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g7 = | 
|---|
|  |  |  | var g17 = | 
|---|
|  |  |  | item.content && item.objType === 3 | 
|---|
|  |  |  | ? JSON.parse(item.afterContent) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | $orig: $orig, | 
|---|
|  |  |  | g0: g0, | 
|---|
|  |  |  | g1: g1, | 
|---|
|  |  |  | g2: g2, | 
|---|
|  |  |  | g3: g3, | 
|---|
|  |  |  | g4: g4, | 
|---|
|  |  |  | g5: g5, | 
|---|
|  |  |  | g6: g6, | 
|---|
|  |  |  | g7: g7, | 
|---|
|  |  |  | g10: g10, | 
|---|
|  |  |  | g11: g11, | 
|---|
|  |  |  | g12: g12, | 
|---|
|  |  |  | g13: g13, | 
|---|
|  |  |  | g14: g14, | 
|---|
|  |  |  | g15: g15, | 
|---|
|  |  |  | g16: g16, | 
|---|
|  |  |  | g17: g17, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g18 = _vm.info | 
|---|
|  |  |  | ? [1, 2, 3, 4, 5, 9, 7, 10].includes(_vm.info.status) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g19 = _vm.info | 
|---|
|  |  |  | ? ([9].includes(_vm.info.status) && _vm.info.waitSupplement === 1) || | 
|---|
|  |  |  | [1, 2, 4, 5, 7].includes(_vm.info.status) | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g20 = _vm.info | 
|---|
|  |  |  | ? [9].includes(_vm.info.status) && _vm.info.waitSupplement === 1 | 
|---|
|  |  |  | : null | 
|---|
|  |  |  | var g21 = _vm.info ? [1, 2, 4, 5, 7].includes(_vm.info.status) : null | 
|---|
|  |  |  | if (!_vm._isMounted) { | 
|---|
|  |  |  | _vm.e0 = function ($event) { | 
|---|
|  |  |  | _vm.show = true | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _vm.e1 = function ($event) { | 
|---|
|  |  |  | _vm.show = false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _vm.e2 = function ($event) { | 
|---|
|  |  |  | _vm.show1 = false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _vm.$mp.data = Object.assign( | 
|---|
|  |  |  | {}, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | $root: { | 
|---|
|  |  |  | g0: g0, | 
|---|
|  |  |  | g1: g1, | 
|---|
|  |  |  | g2: g2, | 
|---|
|  |  |  | g3: g3, | 
|---|
|  |  |  | g4: g4, | 
|---|
|  |  |  | g5: g5, | 
|---|
|  |  |  | g6: g6, | 
|---|
|  |  |  | g7: g7, | 
|---|
|  |  |  | g8: g8, | 
|---|
|  |  |  | g9: g9, | 
|---|
|  |  |  | m0: m0, | 
|---|
|  |  |  | m1: m1, | 
|---|
|  |  |  | m2: m2, | 
|---|
|  |  |  | l0: l0, | 
|---|
|  |  |  | g18: g18, | 
|---|
|  |  |  | g19: g19, | 
|---|
|  |  |  | g20: g20, | 
|---|
|  |  |  | g21: g21, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | 
|---|
|  |  |  | id: null, | 
|---|
|  |  |  | info: null, | 
|---|
|  |  |  | show: false, | 
|---|
|  |  |  | show1: false, | 
|---|
|  |  |  | height: 'auto', | 
|---|
|  |  |  | height1: 'auto', | 
|---|
|  |  |  | height2: 'auto', | 
|---|
|  |  |  | value: '' | 
|---|
|  |  |  | fileList: [] | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad: function onLoad(option) { | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | computed: _objectSpread({}, (0, _vuex.mapState)(['cookies'])), | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | // 删除附件 | 
|---|
|  |  |  | deleFile: function deleFile(id, objId) { | 
|---|
|  |  |  | queren: function queren() { | 
|---|
|  |  |  | this.show1 = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | confirmPrice: function confirmPrice() { | 
|---|
|  |  |  | var _this2 = this; | 
|---|
|  |  |  | this.$u.api.delFile(objId, id).then(function (res) { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this2.getDetails(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.$u.api.confirmFee(this.id).then(function (res) { | 
|---|
|  |  |  | _this2.show1 = false; | 
|---|
|  |  |  | _this2.getDetails(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 上传材料 | 
|---|
|  |  |  | upload: function upload(type) { | 
|---|
|  |  |  | var that = this; | 
|---|
|  |  |  | uni.chooseMedia({ | 
|---|
|  |  |  | count: 1, | 
|---|
|  |  |  | maxDuration: 60, | 
|---|
|  |  |  | count: 9, | 
|---|
|  |  |  | mediaType: ['image', 'video'], | 
|---|
|  |  |  | sourceType: ['album', 'camera'], | 
|---|
|  |  |  | camera: 'back', | 
|---|
|  |  |  | success: function success(res) { | 
|---|
|  |  |  | uni.uploadFile({ | 
|---|
|  |  |  | url: that.$baseUrl + 'public/upload', | 
|---|
|  |  |  | filePath: res.tempFiles[0].tempFilePath, | 
|---|
|  |  |  | name: 'file', | 
|---|
|  |  |  | header: { | 
|---|
|  |  |  | 'doumee-auth-token': that.cookies | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | formData: { | 
|---|
|  |  |  | 'folder': 'settle' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | success: function success(uploadFileRes) { | 
|---|
|  |  |  | var data = JSON.parse(uploadFileRes.data).data; | 
|---|
|  |  |  | console.log(JSON.parse(uploadFileRes.data).data); | 
|---|
|  |  |  | that.$u.api.claimsUploadFile({ | 
|---|
|  |  |  | fileName: '', | 
|---|
|  |  |  | fileType: data.type, | 
|---|
|  |  |  | fileUrl: data.imgaddr, | 
|---|
|  |  |  | id: that.id, | 
|---|
|  |  |  | objType: type | 
|---|
|  |  |  | }).then(function (result) { | 
|---|
|  |  |  | that.getDetails(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.showLoading({ | 
|---|
|  |  |  | title: '上传中', | 
|---|
|  |  |  | mask: true | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | var _loop = function _loop(i) { | 
|---|
|  |  |  | uni.uploadFile({ | 
|---|
|  |  |  | url: "".concat(that.$baseUrl, "public/upload"), | 
|---|
|  |  |  | filePath: res.tempFiles[i].tempFilePath, | 
|---|
|  |  |  | name: 'file', | 
|---|
|  |  |  | header: { | 
|---|
|  |  |  | 'doumee-auth-token': that.$store.state.cookies | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | formData: { | 
|---|
|  |  |  | folder: 'settle' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | success: function success(uploadFileRes) { | 
|---|
|  |  |  | var res = JSON.parse(uploadFileRes.data); | 
|---|
|  |  |  | that.fileList.push({ | 
|---|
|  |  |  | fileurl: res.data.imgaddr, | 
|---|
|  |  |  | name: res.data.originname, | 
|---|
|  |  |  | type: res.data.type, | 
|---|
|  |  |  | fileurlFull: res.data.url | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | complete: function complete() { | 
|---|
|  |  |  | if (i === res.tempFiles.length - 1) { | 
|---|
|  |  |  | uni.hideLoading(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | for (var i = 0; i < res.tempFiles.length; i++) { | 
|---|
|  |  |  | _loop(i); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | jumpD: function jumpD() { | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: "/pages/compensationDetails/compensationDetails?id=".concat(this.id) | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | returnInHospital: function returnInHospital(type) { | 
|---|
|  |  |  | switch (type) { | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return '住院'; | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return '门诊'; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | returnName: function returnName(type) { | 
|---|
|  |  |  | switch (type) { | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return '是'; | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return '否'; | 
|---|
|  |  |  | case 2: | 
|---|
|  |  |  | return '待确定'; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return ''; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 删除附件 | 
|---|
|  |  |  | deleFile: function deleFile(id, objId) { | 
|---|
|  |  |  | var _this3 = this; | 
|---|
|  |  |  | this.$u.api.delFile(objId, id).then(function (res) { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this3.getDetails(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // // 上传材料 | 
|---|
|  |  |  | // upload(type) { | 
|---|
|  |  |  | //    var that = this | 
|---|
|  |  |  | //    uni.chooseMedia({ | 
|---|
|  |  |  | //       count: 1, | 
|---|
|  |  |  | //       maxDuration: 60, | 
|---|
|  |  |  | //       success(res) { | 
|---|
|  |  |  | //          uni.uploadFile({ | 
|---|
|  |  |  | //             url: that.$baseUrl + 'public/upload', | 
|---|
|  |  |  | //             filePath: res.tempFiles[0].tempFilePath, | 
|---|
|  |  |  | //             name: 'file', | 
|---|
|  |  |  | //             header: { | 
|---|
|  |  |  | //                'doumee-auth-token': that.cookies | 
|---|
|  |  |  | //             }, | 
|---|
|  |  |  | //             formData: { | 
|---|
|  |  |  | //                'folder': 'settle' | 
|---|
|  |  |  | //             }, | 
|---|
|  |  |  | //             success: (uploadFileRes) => { | 
|---|
|  |  |  | //                let data = JSON.parse(uploadFileRes.data).data | 
|---|
|  |  |  | //                console.log(JSON.parse(uploadFileRes.data).data) | 
|---|
|  |  |  | //                that.$u.api.claimsUploadFile({ | 
|---|
|  |  |  | //                   fileName: '', | 
|---|
|  |  |  | //                   fileType: data.type, | 
|---|
|  |  |  | //                   fileUrl: data.imgaddr, | 
|---|
|  |  |  | //                   id: that.id, | 
|---|
|  |  |  | //                   objType: type | 
|---|
|  |  |  | //                }).then(result => { | 
|---|
|  |  |  | //                   that.getDetails() | 
|---|
|  |  |  | //                }) | 
|---|
|  |  |  | //             } | 
|---|
|  |  |  | //          }); | 
|---|
|  |  |  | //       } | 
|---|
|  |  |  | //    }) | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | openBC: function openBC() { | 
|---|
|  |  |  | this.value = ''; | 
|---|
|  |  |  | this.show = true; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | confirm: function confirm() { | 
|---|
|  |  |  | var _this3 = this; | 
|---|
|  |  |  | if (!this.value) return uni.showToast({ | 
|---|
|  |  |  | title: '请输入内容', | 
|---|
|  |  |  | var _this4 = this; | 
|---|
|  |  |  | if (this.fileList.length === 0) return uni.showToast({ | 
|---|
|  |  |  | title: '请先上传材料', | 
|---|
|  |  |  | icon: 'none' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | this.$u.api.supplement({ | 
|---|
|  |  |  | this.$u.api.saveSupplementFile({ | 
|---|
|  |  |  | id: this.id, | 
|---|
|  |  |  | objType: 0, | 
|---|
|  |  |  | supplement: this.value | 
|---|
|  |  |  | supplementFileList: this.fileList | 
|---|
|  |  |  | }).then(function (res) { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this3.show = false; | 
|---|
|  |  |  | _this3.getDetails(); | 
|---|
|  |  |  | _this4.show = false; | 
|---|
|  |  |  | _this4.getDetails(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getDetails: function getDetails() { | 
|---|
|  |  |  | var _this4 = this; | 
|---|
|  |  |  | var _this5 = this; | 
|---|
|  |  |  | this.$u.api.settleClaimsById(this.id).then(function (res) { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this4.info = res.data; | 
|---|
|  |  |  | _this5.info = res.data; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }, | 
|---|