|
@@ -98,34 +98,43 @@ var components
|
|
|
try {
|
|
|
components = {
|
|
|
uIcon: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-icon/u-icon */ "uni_modules/vk-uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-icon/u-icon.vue */ 251))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-icon/u-icon */ "uni_modules/vk-uview-ui/components/u-icon/u-icon").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-icon/u-icon.vue */ 259))
|
|
|
},
|
|
|
uTag: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-tag/u-tag */ "uni_modules/vk-uview-ui/components/u-tag/u-tag").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-tag/u-tag.vue */ 398))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-tag/u-tag */ "uni_modules/vk-uview-ui/components/u-tag/u-tag").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-tag/u-tag.vue */ 406))
|
|
|
},
|
|
|
uLine: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-line/u-line */ "uni_modules/vk-uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-line/u-line.vue */ 258))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-line/u-line */ "uni_modules/vk-uview-ui/components/u-line/u-line").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-line/u-line.vue */ 266))
|
|
|
},
|
|
|
uSteps: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-steps/u-steps */ "uni_modules/vk-uview-ui/components/u-steps/u-steps").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-steps/u-steps.vue */ 412))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-steps/u-steps */ "uni_modules/vk-uview-ui/components/u-steps/u-steps").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-steps/u-steps.vue */ 420))
|
|
|
},
|
|
|
uEmpty: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-empty/u-empty */ "uni_modules/vk-uview-ui/components/u-empty/u-empty").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-empty/u-empty.vue */ 272))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-empty/u-empty */ "uni_modules/vk-uview-ui/components/u-empty/u-empty").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-empty/u-empty.vue */ 280))
|
|
|
},
|
|
|
uTimeLine: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-time-line/u-time-line */ "uni_modules/vk-uview-ui/components/u-time-line/u-time-line").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-time-line/u-time-line.vue */ 419))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-time-line/u-time-line */ "uni_modules/vk-uview-ui/components/u-time-line/u-time-line").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-time-line/u-time-line.vue */ 427))
|
|
|
},
|
|
|
uTimeLineItem: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item */ "uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item.vue */ 426))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item */ "uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-time-line-item/u-time-line-item.vue */ 434))
|
|
|
},
|
|
|
uSkeleton: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton */ "uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton.vue */ 303))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton */ "uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-skeleton/u-skeleton.vue */ 311))
|
|
|
},
|
|
|
uPopup: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-popup/u-popup */ "uni_modules/vk-uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-popup/u-popup.vue */ 279))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-popup/u-popup */ "uni_modules/vk-uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-popup/u-popup.vue */ 287))
|
|
|
},
|
|
|
uButton: function() {
|
|
|
- return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-button/u-button */ "uni_modules/vk-uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-button/u-button.vue */ 244))
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-button/u-button */ "uni_modules/vk-uview-ui/components/u-button/u-button").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-button/u-button.vue */ 252))
|
|
|
+ },
|
|
|
+ uInput: function() {
|
|
|
+ return Promise.all(/*! import() | uni_modules/vk-uview-ui/components/u-input/u-input */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-input/u-input.vue */ 343))
|
|
|
+ },
|
|
|
+ uRadioGroup: function() {
|
|
|
+ return Promise.all(/*! import() | uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group")]).then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group.vue */ 364))
|
|
|
+ },
|
|
|
+ uRadio: function() {
|
|
|
+ return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-radio/u-radio */ "uni_modules/vk-uview-ui/components/u-radio/u-radio").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-radio/u-radio.vue */ 371))
|
|
|
}
|
|
|
}
|
|
|
} catch (e) {
|
|
@@ -150,6 +159,13 @@ var render = function() {
|
|
|
var _h = _vm.$createElement
|
|
|
var _c = _vm._self._c || _h
|
|
|
var m0 = _vm.detail.report_state == 1 ? Number(_vm.detail.report_step) : null
|
|
|
+
|
|
|
+ if (!_vm._isMounted) {
|
|
|
+ _vm.e0 = function($event) {
|
|
|
+ _vm.isInfoShow = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
_vm.$mp.data = Object.assign(
|
|
|
{},
|
|
|
{
|
|
@@ -297,12 +313,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
|
|
|
var that;
|
|
|
var QRCode = __webpack_require__(/*! ../../../utils/qrcode.js */ 119).default;var _default =
|
|
|
{
|
|
|
data: function data() {
|
|
|
return {
|
|
|
+ curRoles: '',
|
|
|
+ curName: '',
|
|
|
+ curSex: 'male',
|
|
|
+ isInfoShow: false,
|
|
|
curId: '',
|
|
|
commonRulesShow: false,
|
|
|
skeletonLoading: true,
|
|
@@ -348,9 +397,12 @@ var QRCode = __webpack_require__(/*! ../../../utils/qrcode.js */ 119).default;va
|
|
|
onLoad: function onLoad(params) {var _this = this;
|
|
|
var userInfo2 = uni.getStorageSync('MD_userInfo2');
|
|
|
this.userInfo = _objectSpread({}, userInfo2);
|
|
|
+ this.curRoles = userInfo2 ? userInfo2.roles : '';
|
|
|
this.curId = params.id;
|
|
|
uni.api.estate.apireport2detail({ id: params.id }).then(function (res) {
|
|
|
_this.detail = res || {};
|
|
|
+ _this.curName = res.name;
|
|
|
+ _this.curSex = res.sex;
|
|
|
_this.stepsLogList = res.report_flow || [];
|
|
|
_this.skeletonLoading = false;
|
|
|
|
|
@@ -371,31 +423,24 @@ var QRCode = __webpack_require__(/*! ../../../utils/qrcode.js */ 119).default;va
|
|
|
// that.QR = qrcode
|
|
|
|
|
|
});
|
|
|
- // if (!xxxxx.vuex.get('$app.systemConfig.use_skeleton')) {
|
|
|
- // that.skeletonLoading = false;
|
|
|
- // }
|
|
|
- // if (params.id !== undefined) {
|
|
|
- // vk.callFunction({
|
|
|
- // url: 'client/agent/kh/getRecommendLogInfo',
|
|
|
- // title: '请求中...',
|
|
|
- // data: {
|
|
|
- // _id: params.id,
|
|
|
- // agent_id: vk.vuex.get('$user.agentInfo._id')
|
|
|
- // }
|
|
|
- // }).then(res => {
|
|
|
- // that.detail = res.info;
|
|
|
- // // detail.current_step = res.info.status;
|
|
|
- // that.stepsLogList = res.info.stepsLogList;
|
|
|
- // that.skeletonLoading = false;
|
|
|
- // });
|
|
|
- // } else {
|
|
|
- // vk.toast('缺少必要参数');
|
|
|
- // setTimeout(() => {
|
|
|
- // vk.navigateBack();
|
|
|
- // }, 1500);
|
|
|
- // }
|
|
|
},
|
|
|
methods: {
|
|
|
+ openInfoPopup: function openInfoPopup(item) {
|
|
|
+ if (this.curRoles == 1 || this.curRoles == 5 || this.curRoles == 6) {
|
|
|
+ this.isInfoShow = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ closeInfoPopup: function closeInfoPopup() {var _this2 = this;
|
|
|
+ uni.api.estate.apireportedit({
|
|
|
+ id: this.detail.id,
|
|
|
+ name: this.curName,
|
|
|
+ sex: this.curSex }).
|
|
|
+ then(function (res) {
|
|
|
+ uni.$msg('修改成功');
|
|
|
+ _this2.isInfoShow = false;
|
|
|
+ _this2.getData();
|
|
|
+ });
|
|
|
+ },
|
|
|
openPopup: function openPopup() {
|
|
|
if (this.detail.report_code) {
|
|
|
uni.previewImage({
|
|
@@ -410,16 +455,16 @@ var QRCode = __webpack_require__(/*! ../../../utils/qrcode.js */ 119).default;va
|
|
|
this.commonRulesShow = true;
|
|
|
}
|
|
|
},
|
|
|
- getData: function getData() {var _this2 = this;
|
|
|
- uni.api.estate.apireportdetail({ id: this.curId }).then(function (res) {
|
|
|
- _this2.detail = res || {};
|
|
|
- _this2.stepsLogList = res.report_flow || [];
|
|
|
- _this2.skeletonLoading = false;
|
|
|
+ getData: function getData() {var _this3 = this;
|
|
|
+ uni.api.estate.apireport2detail({ id: this.curId }).then(function (res) {
|
|
|
+ _this3.detail = res || {};
|
|
|
+ _this3.stepsLogList = res.report_flow || [];
|
|
|
+ _this3.skeletonLoading = false;
|
|
|
});
|
|
|
},
|
|
|
- vHandle: function vHandle() {var _this3 = this;
|
|
|
+ vHandle: function vHandle() {var _this4 = this;
|
|
|
uni.api.cust.apireportvisit({ id: this.detail.id }).then(function (res) {
|
|
|
- _this3.getData();
|
|
|
+ _this4.getData();
|
|
|
uni.$msg('操作成功~');
|
|
|
});
|
|
|
},
|