From fe7ac1ca4e17db22417d1d61c084a0ab9857b77f Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 12 四月 2024 10:46:21 +0800
Subject: [PATCH] mrshi

---
 wx/unpackage/dist/dev/mp-weixin/pages/report_details/report_details.js |  289 +++++++++++++++------------------------------------------
 1 files changed, 78 insertions(+), 211 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 da3627d..5205312 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
@@ -112,7 +112,7 @@
       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 */ 509))
+      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) {
@@ -136,13 +136,7 @@
   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
+  var l0 = _vm.info
     ? []
         .concat(_vm.info.outpatientFileList)
         .concat(_vm.info.hospitalFileList)
@@ -152,14 +146,39 @@
     _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 = _vm.info.settleClaimsLogList.length
-          var g3 = item.content ? _vm.info.settleClaimsLogList.length : null
+          var g2 = item.content ? _vm.info.settleClaimsLogList.length : null
+          var g3 =
+            item.content && item.objType === 3
+              ? JSON.parse(item.afterContent)
+              : null
+          var g4 =
+            item.content && item.objType === 3
+              ? JSON.parse(item.afterContent)
+              : null
+          var g5 =
+            item.content && item.objType === 3
+              ? JSON.parse(item.afterContent)
+              : null
+          var g6 =
+            item.content && item.objType === 3
+              ? JSON.parse(item.afterContent)
+              : null
+          var g7 =
+            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,
           }
         })
       : null
@@ -172,7 +191,6 @@
     {},
     {
       $root: {
-        g0: g0,
         l0: l0,
         l1: l1,
       },
@@ -213,205 +231,15 @@
 "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 {
@@ -425,16 +253,55 @@
     };
   },
   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: {
+    // 涓婁紶鏉愭枡
+    upload: function upload(type) {
+      var that = this;
+      uni.chooseMedia({
+        count: 1,
+        maxDuration: 60,
+        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();
+              });
+            }
+          });
+        }
+      });
+    },
     openBC: function openBC() {
       this.value = '';
       this.show = true;
     },
     confirm: function confirm() {
-      var _this = this;
+      var _this2 = this;
       if (!this.value) return uni.showToast({
         title: '璇疯緭鍏ュ唴瀹�',
         icon: 'none'
@@ -445,8 +312,8 @@
         supplement: this.value
       }).then(function (res) {
         if (res.code === 200) {
-          _this.show = false;
-          _this.getDetails();
+          _this2.show = false;
+          _this2.getDetails();
         }
       });
     },
@@ -456,11 +323,11 @@
       });
     },
     getDetails: function getDetails() {
-      var _this2 = this;
+      var _this3 = this;
       this.$u.api.settleClaimsById(this.id).then(function (res) {
         if (res.code === 200) {
           console.log(res);
-          _this2.info = res.data;
+          _this3.info = res.data;
         }
       });
     },

--
Gitblit v1.9.3