From a43f9d75a9e0ba2720b3c438a0c5ece7be0eb110 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 28 五月 2025 18:23:45 +0800
Subject: [PATCH] git ch
---
wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js | 459 ++++++++++++++++++++++++++++++++------------------------
1 files changed, 261 insertions(+), 198 deletions(-)
diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js b/wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js
index 066a610..3566542 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js
@@ -102,8 +102,14 @@
var components
try {
components = {
+ uIcon: function () {
+ return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 459))
+ },
uButton: function () {
return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 406))
+ },
+ 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))
},
}
} catch (e) {
@@ -127,40 +133,116 @@
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
- var g0 =
- _vm.info &&
- _vm.info.outpatientFileList.concat(
- _vm.info.hospitalFileList,
- _vm.info.disabilityFileList
- ).length > 0
- var l0 = g0
- ? []
- .concat(_vm.info.outpatientFileList)
- .concat(_vm.info.hospitalFileList)
- .concat(_vm.info.disabilityFileList)
+ var g0 = _vm.info ? [13].includes(_vm.info.status) : null
+ var g1 = _vm.info ? [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 l1 =
- _vm.info && _vm.info.settleClaimsLogList
+ var g9 = _vm.info ? [6, 8].includes(_vm.info.status) : null
+ var g10 = _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 && _vm.info.settleClaimsLogList
? _vm.__map(_vm.info.settleClaimsLogList, function (item, index) {
var $orig = _vm.__get_orig(item)
- var g1 = _vm.info.settleClaimsLogList.length
- var g2 = _vm.info.settleClaimsLogList.length
- var g3 = item.content ? _vm.info.settleClaimsLogList.length : null
+ var g11 = _vm.info.settleClaimsLogList.length
+ var g12 = _vm.info.settleClaimsLogList.length
+ var g13 = item.content ? _vm.info.settleClaimsLogList.length : null
+ var g14 =
+ item.content && item.objType === 3
+ ? JSON.parse(item.afterContent)
+ : null
+ var g15 =
+ item.content && item.objType === 3
+ ? JSON.parse(item.afterContent)
+ : null
+ var g16 =
+ item.content && item.objType === 3
+ ? JSON.parse(item.afterContent)
+ : null
+ var g17 =
+ item.content && item.objType === 3
+ ? JSON.parse(item.afterContent)
+ : null
+ var g18 =
+ item.content && item.objType === 3
+ ? JSON.parse(item.afterContent)
+ : null
return {
$orig: $orig,
- g1: g1,
- g2: g2,
- g3: g3,
+ g11: g11,
+ g12: g12,
+ g13: g13,
+ g14: g14,
+ g15: g15,
+ g16: g16,
+ g17: g17,
+ g18: g18,
}
})
: null
+ var g19 = _vm.info
+ ? [1, 2, 3, 4, 5, 9, 7, 10].includes(_vm.info.status)
+ : null
+ var g20 = _vm.info
+ ? ([9].includes(_vm.info.status) && _vm.info.waitSupplement === 1) ||
+ [1, 2, 4, 5, 7].includes(_vm.info.status)
+ : null
+ var g21 = _vm.info
+ ? [9].includes(_vm.info.status) && _vm.info.waitSupplement === 1
+ : null
+ var g22 = _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,
+ g10: g10,
+ m0: m0,
+ m1: m1,
+ m2: m2,
l0: l0,
- l1: l1,
+ g19: g19,
+ g20: g20,
+ g21: g21,
+ g22: g22,
},
}
)
@@ -199,210 +281,191 @@
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
-//
+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 {
id: null,
info: null,
+ show: false,
+ show1: false,
height: 'auto',
height1: 'auto',
- height2: 'auto'
+ height2: 'auto',
+ fileList: []
};
},
onLoad: function onLoad(option) {
+ var _this = this;
this.id = option.id;
this.getDetails();
+ uni.$on('update', function (data) {
+ _this.getDetails();
+ });
},
+ computed: _objectSpread({}, (0, _vuex.mapState)(['cookies'])),
methods: {
+ queren: function queren() {
+ this.show1 = true;
+ },
+ confirmPrice: function confirmPrice() {
+ var _this2 = this;
+ this.$u.api.confirmFee(this.id).then(function (res) {
+ _this2.show1 = false;
+ _this2.getDetails();
+ });
+ },
+ upload: function upload(type) {
+ var that = this;
+ uni.chooseMedia({
+ count: 9,
+ mediaType: ['image', 'video'],
+ sourceType: ['album', 'camera'],
+ camera: 'back',
+ success: function success(res) {
+ 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 _this4 = this;
+ if (this.fileList.length === 0) return uni.showToast({
+ title: '璇峰厛涓婁紶鏉愭枡',
+ icon: 'none'
+ });
+ this.$u.api.saveSupplementFile({
+ id: this.id,
+ supplementFileList: this.fileList
+ }).then(function (res) {
+ if (res.code === 200) {
+ _this4.show = false;
+ _this4.getDetails();
+ }
+ });
+ },
edit: function edit() {
uni.navigateTo({
url: "/pages/new_report/new_report?id=".concat(this.info.id)
});
},
getDetails: function getDetails() {
- var _this = this;
+ var _this5 = this;
this.$u.api.settleClaimsById(this.id).then(function (res) {
if (res.code === 200) {
- console.log(res);
- _this.info = res.data;
+ _this5.info = res.data;
}
});
},
--
Gitblit v1.9.3