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/new_report/new_report.js | 1052 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 746 insertions(+), 306 deletions(-)
diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/new_report/new_report.js b/wx/unpackage/dist/dev/mp-weixin/pages/new_report/new_report.js
index f80f07d..c57ad58 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/new_report/new_report.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/new_report/new_report.js
@@ -102,8 +102,8 @@
var components
try {
components = {
- 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))
+ 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))
},
"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 */ 439))
@@ -113,9 +113,6 @@
},
"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 */ 453))
- },
- 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))
},
"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))
@@ -128,6 +125,12 @@
},
uPicker: function () {
return Promise.all(/*! import() | node-modules/uview-ui/components/u-picker/u-picker */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-picker/u-picker.vue */ 468))
+ },
+ 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))
+ },
+ 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 */ 492))
},
}
} catch (e) {
@@ -151,46 +154,56 @@
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
- var g0 = !_vm.id ? _vm.model.memberName && _vm.columns2.length > 0 : null
+ var g0 = _vm.list.length
+ var g1 = _vm.i === 0 ? _vm.model.memberName && _vm.columns2.length > 0 : null
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
- _vm.show = false
- }
- _vm.e1 = function ($event) {
- _vm.show1 = true
- }
- _vm.e2 = function ($event) {
_vm.show2 = true
}
- _vm.e3 = function ($event) {
- _vm.model.inHospital = 0
- }
- _vm.e4 = function ($event) {
- _vm.model.inHospital = 1
- }
- _vm.e5 = function ($event) {
- _vm.model.medicalInsurance = 0
- }
- _vm.e6 = function ($event) {
- _vm.model.medicalInsurance = 1
- }
- _vm.e7 = function ($event) {
+ _vm.e1 = function ($event) {
_vm.show3 = true
}
+ _vm.e2 = function ($event) {
+ _vm.model.inHospital = 0
+ }
+ _vm.e3 = function ($event) {
+ _vm.model.inHospital = 1
+ }
+ _vm.e4 = function ($event) {
+ _vm.model.hurtType = 0
+ }
+ _vm.e5 = function ($event) {
+ _vm.model.hurtType = 1
+ }
+ _vm.e6 = function ($event) {
+ _vm.model.hurtType = 2
+ }
+ _vm.e7 = function ($event) {
+ _vm.model.medicalInsurance = 0
+ }
_vm.e8 = function ($event) {
- _vm.show1 = false
+ _vm.model.medicalInsurance = 1
}
_vm.e9 = function ($event) {
- _vm.show2 = false
+ _vm.i--
}
_vm.e10 = function ($event) {
- _vm.show3 = false
+ _vm.show1 = false
}
_vm.e11 = function ($event) {
- _vm.show4 = false
+ _vm.show2 = false
}
_vm.e12 = function ($event) {
+ _vm.show3 = false
+ }
+ _vm.e13 = function ($event) {
+ _vm.show4 = false
+ }
+ _vm.e14 = function ($event) {
_vm.show5 = false
+ }
+ _vm.e15 = function ($event) {
+ _vm.show6 = false
}
}
_vm.$mp.data = Object.assign(
@@ -198,6 +211,7 @@
{
$root: {
g0: g0,
+ g1: g1,
},
}
)
@@ -242,8 +256,249 @@
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
+var _methods;
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; }
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
+//
//
//
//
@@ -359,13 +614,17 @@
data: function data() {
return {
id: null,
+ i: 0,
show: false,
show1: false,
show2: false,
show3: false,
show4: false,
show5: false,
+ show6: false,
date: Number(new Date()),
+ minDate: '',
+ maxDate: '',
columns: [[{
name: '宸ヤ綔鏈熼棿鍙椾激',
id: 0
@@ -379,6 +638,14 @@
name: '鎰忓鍙椾激',
id: 3
}]],
+ list: [{
+ name: '濉啓鍑洪櫓淇℃伅'
+ }, {
+ name: '涓婁紶鐞嗚禂鏉愭枡'
+ }, {
+ name: '瀹屾垚鎶ユ'
+ }],
+ scheme: null,
columns1: [],
columns2: [],
columns3: [],
@@ -403,9 +670,40 @@
content: '',
areaId: '',
areaInfo: '',
- reportFileList: []
+ reportFileList: [],
+ idcardNo: '',
+ hurtType: 0,
+ address: '',
+ receiveBank: '',
+ receiveUserName: '',
+ receiveAccount: '',
+ applyDetailId: '',
+ insuranceApplyId: '',
+ relationFileList: [],
+ outpatientFileList: [],
+ hospitalFileList: [],
+ disabilityFileList: [],
+ otherFileList: []
},
rules: {
+ 'receiveAccount': {
+ type: 'string',
+ required: true,
+ message: '璇峰~鍐欐敹娆捐处鍙�',
+ trigger: ['blur']
+ },
+ 'receiveUserName': {
+ type: 'string',
+ required: true,
+ message: '璇峰~鍐欐敹娆句汉',
+ trigger: ['blur']
+ },
+ 'receiveBank': {
+ type: 'string',
+ required: true,
+ message: '璇峰~鍐欐敹娆鹃摱琛�',
+ trigger: ['blur']
+ },
'memberName': {
type: 'string',
required: true,
@@ -447,6 +745,18 @@
required: true,
message: '璇疯緭鍏ヤ簨鏁呮弿杩�',
trigger: ['blur']
+ },
+ 'idcardNo': {
+ type: 'string',
+ required: true,
+ message: '璇疯緭鍏ヨ瘉浠跺彿鐮�',
+ trigger: ['blur']
+ },
+ 'typeName': {
+ type: 'string',
+ required: true,
+ message: '璇疯緭鍏ヤ簨鏁呯被鍨�',
+ trigger: ['blur']
}
},
fileList: []
@@ -460,302 +770,432 @@
});
this.getDetails();
this.getArea();
- this.getUser();
+ // this.getUser()
return;
}
- this.show = true;
this.getArea();
- this.getUser();
+ // this.getUser()
+ this.model.informantName = this.$store.state.userInfo.realname;
},
- methods: {
- clickItem: function clickItem(item) {
- this.model.memberName = item.name;
- this.model.memberId = item.id;
- this.columns2 = [];
- },
- // 鎼滅储
- changeSearch: function changeSearch(name) {
- var _this2 = this;
- this.columns2 = [];
- this.$u.api.memberFindListByDTO({
- name: name
- }).then(function (res) {
- if (res.code === 200) {
- _this2.columns2 = res.data;
- }
+ methods: (_methods = {
+ jixu: function jixu() {
+ uni.navigateTo({
+ url: "/pages/report_details/report_details?id=".concat(this.id)
});
- },
- getDetails: function getDetails() {
- var _this3 = this;
- this.$u.api.settleClaimsById(this.id).then(function (res) {
- if (res.code === 200) {
- _this3.model.memberName = res.data.memberName;
- _this3.model.memberId = res.data.memberId;
- _this3.model.solutionName = res.data.solutionName;
- _this3.model.solutionId = res.data.solutionId;
- _this3.model.worktypeId = res.data.worktypeId;
- _this3.model.worktypeName = res.data.worktypeName;
- _this3.model.duId = res.data.duId;
- _this3.model.duName = res.data.duName;
- _this3.model.content = res.data.content;
- _this3.model.reportFileList = res.data.reportFileList;
- _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.type = res.data.type;
- if (res.data.type === 0) {
- _this3.model.typeName = '宸ヤ綔鏈熼棿鍙椾激';
- } else if (res.data.type === 1) {
- _this3.model.typeName = '涓婁笅鐝�斾腑鍙椾激';
- } else if (res.data.type === 2) {
- _this3.model.typeName = '闈炲伐浣滄椂闂村彈浼�';
- } else if (res.data.type === 3) {
- _this3.model.typeName = '鎰忓鍙椾激';
+ }
+ }, (0, _defineProperty2.default)(_methods, "jixu", function jixu() {
+ this.scheme = null;
+ this.model = {
+ memberId: '',
+ memberName: '',
+ solutionId: '',
+ solutionName: '',
+ informantName: '',
+ informantPhone: '',
+ hospital: '',
+ happenTime: '',
+ type: '',
+ duId: '',
+ duName: '',
+ worktypeId: '',
+ worktypeName: '',
+ typeName: '',
+ inHospital: 0,
+ medicalInsurance: 0,
+ content: '',
+ areaId: '',
+ areaInfo: '',
+ reportFileList: [],
+ idcardNo: '',
+ hurtType: 0,
+ address: '',
+ receiveBank: '',
+ receiveUserName: '',
+ receiveAccount: '',
+ applyDetailId: '',
+ insuranceApplyId: '',
+ relationFileList: [],
+ outpatientFileList: [],
+ hospitalFileList: [],
+ disabilityFileList: [],
+ otherFileList: []
+ };
+ this.i = 0;
+ }), (0, _defineProperty2.default)(_methods, "clickItem", function clickItem(item) {
+ this.model.memberName = item.name;
+ this.model.memberId = item.id;
+ this.columns2 = [];
+ }), (0, _defineProperty2.default)(_methods, "changeSearch", function changeSearch(name) {
+ var _this2 = this;
+ this.columns2 = [];
+ this.scheme = null;
+ this.columns3 = [];
+ this.model.solutionId = '';
+ this.model.solutionName = '';
+ this.model.duId = '';
+ this.model.duName = '';
+ this.model.worktypeId = '';
+ this.model.worktypeName = '';
+ this.model.applyDetailId = '';
+ this.model.insuranceApplyId = '';
+ this.$u.api.memberFindListByDTO({
+ name: name
+ }).then(function (res) {
+ if (res.code === 200) {
+ _this2.columns2 = res.data;
+ }
+ });
+ }), (0, _defineProperty2.default)(_methods, "getDetails", function getDetails() {
+ var _this3 = this;
+ this.$u.api.settleClaimsById(this.id).then(function (res) {
+ if (res.code === 200) {
+ _this3.model.memberName = res.data.memberName;
+ _this3.model.memberId = res.data.memberId;
+ _this3.model.solutionName = res.data.solutionName;
+ _this3.model.solutionId = res.data.solutionId;
+ _this3.model.worktypeId = res.data.worktypeId;
+ _this3.model.worktypeName = res.data.worktypeName;
+ _this3.model.duId = res.data.duId;
+ _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 = '宸ヤ綔鏈熼棿鍙椾激';
+ } else if (res.data.type === 1) {
+ _this3.model.typeName = '涓婁笅鐝�斾腑鍙椾激';
+ } else if (res.data.type === 2) {
+ _this3.model.typeName = '闈炲伐浣滄椂闂村彈浼�';
+ } else if (res.data.type === 3) {
+ _this3.model.typeName = '鎰忓鍙椾激';
+ }
+ _this3.model.inHospital = res.data.inHospital;
+ _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);
+ }
+ });
}
- _this3.model.inHospital = res.data.inHospital;
- _this3.model.medicalInsurance = res.data.medicalInsurance;
- _this3.model.areaInfo = res.data.areaInfo;
- _this3.model.areaId = res.data.areaId;
- }
- });
- },
- // 鎻愪氦鎶ユ
- submit: function submit() {
- var _this4 = this;
- this.$refs.uForm.validate().then(function (res) {
- if (_this4.id) {
- _this4.$u.api.settleClaimsUpdateById(_objectSpread({
- id: _this4.id
- }, _this4.model)).then(function (res) {
- if (res.code === 200) {
- uni.showToast({
- title: '鎻愪氦鎴愬姛',
- icon: 'success'
- });
- uni.$emit('update');
- setTimeout(function () {
- uni.navigateBack({
- delta: 1
- });
- }, 1500);
- }
- });
- } else {
- _this4.$u.api.settleClaimsCreate(_this4.model).then(function (res) {
- if (res.code === 200) {
- uni.showToast({
- title: '鎻愪氦鎴愬姛',
- icon: 'success'
- });
- setTimeout(function () {
- uni.navigateBack({
- delta: 1
- });
- }, 1500);
- }
- });
- }
- }).catch(function (errors) {});
- },
- openFA: function openFA() {
- var _this5 = this;
- if (!this.model.memberId) return uni.showToast({
- title: '璇峰厛閫夋嫨鍑洪櫓浜�',
- icon: 'none'
- });
- this.$u.api.memberInsuranceFindList({
- status: 1,
- memberId: this.model.memberId
- }).then(function (res) {
- if (res.code === 200) {
- res.data.forEach(function (item) {
- item.solutionName = '(' + item.startTime.substring(5, 10).replace('-', '.') + '-' + item.endTime.substring(5, 10).replace('-', '.') + ')' + item.solutionName;
- });
- _this5.columns3 = [res.data];
- _this5.show5 = true;
- }
- });
- },
- getUser: function getUser() {
- var _this6 = this;
- this.$u.api.memberFindListByDTO().then(function (res) {
- if (res.code === 200) {
- res.data.forEach(function (item) {
- item.label = item.name + ' - ' + item.idcardNo;
- });
- _this6.columns2 = [res.data];
- }
- });
- },
- changeHandler: function changeHandler(e) {
- var columnIndex = e.columnIndex,
- value = e.value,
- values = e.values,
- index = e.index,
- _e$picker = e.picker,
- picker = _e$picker === void 0 ? this.$refs.uPicker : _e$picker;
- if (columnIndex === 0) {
- picker.setColumnValues(1, this.columns1[0][index].childAreasList);
- picker.setColumnValues(2, this.columns1[0][index].childAreasList[0].childAreasList);
+ });
}
- if (columnIndex === 1) {
- picker.setColumnValues(2, value[columnIndex].childAreasList);
- }
- },
- getArea: function getArea() {
- var _this7 = this;
- this.$u.api.findTreeList().then(function (res) {
+ });
+ }), (0, _defineProperty2.default)(_methods, "next", function next() {
+ var _this4 = this;
+ this.$refs.uForm.validate().then(function (res) {
+ _this4.i++;
+ }).catch(function (errors) {});
+ }), (0, _defineProperty2.default)(_methods, "submit", function submit(saveType) {
+ var _this5 = this;
+ this.$refs.uForm.validate().then(function (res) {
+ _this5.$u.api.saveSettleClaims(_objectSpread(_objectSpread({}, _this5.model), {}, {
+ saveType: saveType,
+ id: _this5.id
+ })).then(function (res) {
if (res.code === 200) {
- _this7.columns1 = [res.data, res.data[0].childAreasList, res.data[0].childAreasList[0].childAreasList];
- _this7.area = res.data;
+ _this5.id = res.data;
+ if (saveType === 0) {
+ uni.navigateBack({
+ delta: 1
+ });
+ } else {
+ _this5.i++;
+ }
}
});
- },
- upload: function upload() {
- 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);
- console.log(res);
- that.fileList.push(_objectSpread({}, res.data));
+ }).catch(function (errors) {});
+ }), (0, _defineProperty2.default)(_methods, "openFA", function openFA() {
+ var _this6 = this;
+ if (!this.model.memberId) return uni.showToast({
+ title: '璇峰厛閫夋嫨鍑洪櫓浜�',
+ icon: 'none'
+ });
+ this.$u.api.findList({
+ memberId: this.model.memberId
+ }).then(function (res) {
+ if (res.code === 200) {
+ res.data.forEach(function (item) {
+ item.solutionName = '(' + item.startTime.substring(5, 10).replace('-', '.') + '-' + item.endTime.substring(5, 10).replace('-', '.') + ')' + item.solutionName;
+ });
+ _this6.columns3 = [res.data];
+ _this6.show5 = true;
+ }
+ });
+ }), (0, _defineProperty2.default)(_methods, "getUser", function getUser() {
+ var _this7 = this;
+ this.$u.api.memberFindListByDTO().then(function (res) {
+ if (res.code === 200) {
+ res.data.forEach(function (item) {
+ item.label = item.name + ' - ' + item.idcardNo;
+ });
+ _this7.columns2 = [res.data];
+ }
+ });
+ }), (0, _defineProperty2.default)(_methods, "changeHandler", function changeHandler(e) {
+ var columnIndex = e.columnIndex,
+ value = e.value,
+ values = e.values,
+ index = e.index,
+ _e$picker = e.picker,
+ picker = _e$picker === void 0 ? this.$refs.uPicker : _e$picker;
+ if (columnIndex === 0) {
+ picker.setColumnValues(1, this.columns1[0][index].childAreasList);
+ picker.setColumnValues(2, this.columns1[0][index].childAreasList[0].childAreasList);
+ }
+ if (columnIndex === 1) {
+ picker.setColumnValues(2, value[columnIndex].childAreasList);
+ }
+ }), (0, _defineProperty2.default)(_methods, "getArea", function getArea() {
+ var _this8 = this;
+ this.$u.api.findTreeList().then(function (res) {
+ if (res.code === 200) {
+ _this8.columns1 = [res.data, res.data[0].childAreasList, res.data[0].childAreasList[0].childAreasList];
+ _this8.area = res.data;
+ }
+ });
+ }), (0, _defineProperty2.default)(_methods, "openChuxian", function openChuxian() {
+ if (!this.model.solutionId) return uni.showToast({
+ title: '璇峰厛閫夋嫨鏂规',
+ icon: 'none'
+ });
+ this.show1 = true;
+ }), (0, _defineProperty2.default)(_methods, "dateToTimestamp", function dateToTimestamp(dateStr) {
+ var date = new Date(dateStr);
+ return date.getTime();
+ }), (0, _defineProperty2.default)(_methods, "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(_objectSpread({}, res.data));
+ if (type === 6) {
that.model.reportFileList.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
});
- },
- complete: function complete() {
- if (i === res.tempFiles.length - 1) {
- uni.hideLoading();
- }
+ } else if (type === 1) {
+ that.model.relationFileList.push({
+ fileurl: res.data.imgaddr,
+ name: res.data.originname,
+ type: res.data.type,
+ 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,
+ 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,
+ 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,
+ 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,
+ fileurlFull: res.data.url
+ });
}
- });
- };
- for (var i = 0; i < res.tempFiles.length; i++) {
- _loop(i);
+ },
+ complete: function complete() {
+ if (i === res.tempFiles.length - 1) {
+ uni.hideLoading();
+ }
+ }
+ });
+ };
+ for (var i = 0; i < res.tempFiles.length; i++) {
+ _loop(i);
+ }
+ }
+ });
+ }), (0, _defineProperty2.default)(_methods, "afterRead", function afterRead(e) {
+ var _this9 = this;
+ uni.showLoading({
+ title: '涓婁紶涓�',
+ mask: true
+ });
+ var _loop2 = function _loop2(i) {
+ uni.uploadFile({
+ url: "".concat(_this9.$baseUrl, "public/upload"),
+ filePath: e.file[i].url,
+ name: 'file',
+ header: {
+ 'doumee-auth-token': _this9.$store.state.cookies
+ },
+ formData: {
+ folder: 'settle'
+ },
+ success: function success(uploadFileRes) {
+ var res = JSON.parse(uploadFileRes.data);
+ _this9.model.reportFileList.push({
+ fileurl: res.data.imgaddr,
+ name: res.data.originname,
+ type: res.data.type,
+ fileurlFull: res.data.url
+ });
+ },
+ complete: function complete() {
+ if (i === e.file.length - 1) {
+ uni.hideLoading();
}
}
});
- },
- afterRead: function afterRead(e) {
- var _this8 = this;
- uni.showLoading({
- title: '涓婁紶涓�',
- mask: true
- });
- var _loop2 = function _loop2(i) {
- uni.uploadFile({
- url: "".concat(_this8.$baseUrl, "public/upload"),
- filePath: e.file[i].url,
- name: 'file',
- header: {
- 'doumee-auth-token': _this8.$store.state.cookies
- },
- formData: {
- folder: 'settle'
- },
- success: function success(uploadFileRes) {
- var res = JSON.parse(uploadFileRes.data);
- _this8.model.reportFileList.push({
- fileurl: res.data.imgaddr,
- name: res.data.originname,
- type: res.data.type
- });
- },
- complete: function complete() {
- if (i === e.file.length - 1) {
- uni.hideLoading();
- }
- }
- });
- };
- for (var i = 0; i < e.file.length; i++) {
- _loop2(i);
- }
- },
- deletePic: function deletePic(index) {
- this.model.reportFileList.splice(index, 1);
- },
- getTreeName: function getTreeName(list, id) {
- var _this = this;
- for (var i = 0; i < list.length; i++) {
- var a = list[i];
- if (a.id === id) {
- return a.name;
- } else {
- if (a.childAreasList && a.childAreasList.length > 0) {
- var res = _this.getTreeName(a.childAreasList, id);
- if (res) {
- return res;
- }
- }
- }
- }
- },
- confirm4: function confirm4(e) {
- this.model.solutionId = e.value[0].solutionId;
- this.model.solutionName = e.value[0].solutionName;
- this.model.duId = e.value[0].duId;
- this.model.duName = e.value[0].duName;
- this.model.worktypeId = e.value[0].worktypeId;
- this.model.worktypeName = e.value[0].worktypeName;
- this.show5 = false;
- },
- confirm3: function confirm3(e) {
- this.model.memberId = e.value[0].id;
- this.model.memberName = e.value[0].label;
- this.model.solutionId = '';
- this.model.solutionName = '';
- this.model.duId = '';
- this.model.duName = '';
- this.model.worktypeId = '';
- this.model.worktypeName = '';
- this.show4 = false;
- },
- confirm2: function confirm2(e) {
- var _this9 = this;
- var info = '';
- e.value.forEach(function (item) {
- info += _this9.getTreeName(_this9.area, item.id);
- });
- this.model.areaId = e.value.map(function (item) {
- return item.id;
- }).join(',');
- this.model.areaInfo = info;
- this.show3 = false;
- },
- confirm1: function confirm1(e) {
- this.model.type = e.value[0].id;
- this.model.typeName = e.value[0].name;
- this.show2 = false;
- },
- confirm: function confirm(e) {
- this.model.happenTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
- this.show1 = false;
+ };
+ for (var i = 0; i < e.file.length; i++) {
+ _loop2(i);
}
- }
+ }), (0, _defineProperty2.default)(_methods, "deletePic", function deletePic(index, type) {
+ if (type === 6) {
+ this.model.reportFileList.splice(index, 1);
+ } else if (type === 1) {
+ this.model.relationFileList.splice(index, 1);
+ } else if (type === 2) {
+ this.model.outpatientFileList.splice(index, 1);
+ } else if (type === 3) {
+ this.model.hospitalFileList.splice(index, 1);
+ } else if (type === 4) {
+ this.model.disabilityFileList.splice(index, 1);
+ } else if (type === 5) {
+ this.model.otherFileList.splice(index, 1);
+ }
+ }), (0, _defineProperty2.default)(_methods, "getTreeName", function getTreeName(list, id) {
+ var _this = this;
+ for (var i = 0; i < list.length; i++) {
+ var a = list[i];
+ if (a.id === id) {
+ return a.name;
+ } else {
+ if (a.childAreasList && a.childAreasList.length > 0) {
+ var res = _this.getTreeName(a.childAreasList, id);
+ if (res) {
+ return res;
+ }
+ }
+ }
+ }
+ }), (0, _defineProperty2.default)(_methods, "openInfo", function openInfo(type) {
+ if (type === 1) {
+ this.show6 = true;
+ }
+ }), (0, _defineProperty2.default)(_methods, "confirm4", function confirm4(e) {
+ this.minDate = this.dateToTimestamp(e.value[0].parentStartTime);
+ this.maxDate = this.dateToTimestamp(e.value[0].parentEndTime);
+ this.date = this.dateToTimestamp(e.value[0].parentStartTime);
+ this.model.solutionId = e.value[0].solutionId;
+ this.model.solutionName = e.value[0].solutionName;
+ this.model.duId = e.value[0].duId;
+ this.model.duName = e.value[0].duName;
+ this.model.worktypeId = e.value[0].worktypeId;
+ this.model.worktypeName = e.value[0].worktypeName;
+ this.model.applyDetailId = e.value[0].id;
+ this.model.insuranceApplyId = e.value[0].applyId;
+ this.scheme = e.value[0];
+ this.show5 = false;
+ }), (0, _defineProperty2.default)(_methods, "confirm3", function confirm3(e) {
+ this.model.memberId = e.value[0].id;
+ this.model.memberName = e.value[0].label;
+ this.model.solutionId = '';
+ this.model.solutionName = '';
+ this.model.duId = '';
+ this.model.duName = '';
+ this.model.worktypeId = '';
+ this.model.worktypeName = '';
+ this.model.applyDetailId = '';
+ this.model.insuranceApplyId = '';
+ this.show4 = false;
+ }), (0, _defineProperty2.default)(_methods, "confirm2", function confirm2(e) {
+ var _this10 = this;
+ var info = '';
+ e.value.forEach(function (item) {
+ info += _this10.getTreeName(_this10.area, item.id);
+ });
+ this.model.areaId = e.value.map(function (item) {
+ return item.id;
+ }).join(',');
+ this.model.areaInfo = info;
+ this.show3 = false;
+ }), (0, _defineProperty2.default)(_methods, "confirm1", function confirm1(e) {
+ this.model.type = e.value[0].id;
+ this.model.typeName = e.value[0].name;
+ this.show2 = false;
+ }), (0, _defineProperty2.default)(_methods, "confirm", function confirm(e) {
+ this.model.happenTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM:ss');
+ this.show1 = false;
+ }), _methods)
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
--
Gitblit v1.9.3