|
@@ -136,6 +136,9 @@ try {
|
|
|
uToast: function () {
|
|
|
return __webpack_require__.e(/*! import() | uni_modules/vk-uview-ui/components/u-toast/u-toast */ "uni_modules/vk-uview-ui/components/u-toast/u-toast").then(__webpack_require__.bind(null, /*! @/uni_modules/vk-uview-ui/components/u-toast/u-toast.vue */ 560))
|
|
|
},
|
|
|
+ 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 */ 462))
|
|
|
+ },
|
|
|
}
|
|
|
} catch (e) {
|
|
|
if (
|
|
@@ -158,6 +161,14 @@ var render = function () {
|
|
|
var _vm = this
|
|
|
var _h = _vm.$createElement
|
|
|
var _c = _vm._self._c || _h
|
|
|
+ if (!_vm._isMounted) {
|
|
|
+ _vm.e0 = function ($event) {
|
|
|
+ _vm.curPopupShow = false
|
|
|
+ }
|
|
|
+ _vm.e1 = function ($event) {
|
|
|
+ _vm.curPopupShow = false
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
var recyclableRender = false
|
|
|
var staticRenderFns = []
|
|
@@ -193,10 +204,62 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
"use strict";
|
|
|
/* WEBPACK VAR INJECTION */(function(uni, wx) {
|
|
|
|
|
|
+var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
value: true
|
|
|
});
|
|
|
exports.default = void 0;
|
|
|
+var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
|
|
|
+var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
|
|
|
+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; }
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
//
|
|
|
//
|
|
|
//
|
|
@@ -289,8 +352,12 @@ var _default = {
|
|
|
data: function data() {
|
|
|
var userInfo = uni.getStorageSync('MD_userInfo2');
|
|
|
return {
|
|
|
+ curPopupShow: false,
|
|
|
+ curPopupKeyword: '',
|
|
|
+ popupDataList: [],
|
|
|
brokerage_img: '',
|
|
|
dealAtShow: false,
|
|
|
+ birthdayShow: false,
|
|
|
calendarMode: 'date',
|
|
|
isEdit: false,
|
|
|
form: {
|
|
@@ -438,6 +505,26 @@ var _default = {
|
|
|
this.$refs.uForm.setRules(this.rules);
|
|
|
},
|
|
|
methods: {
|
|
|
+ listItemHandle: function listItemHandle(item) {
|
|
|
+ var form = this.form;
|
|
|
+ form.customer_name = "".concat(item.name).concat(item.sex === 'male' ? '女士' : '先生');
|
|
|
+ form.customer_phone = item.phone;
|
|
|
+ this.form = _objectSpread({}, form);
|
|
|
+ },
|
|
|
+ getCurDataList: function getCurDataList() {
|
|
|
+ var _this = this;
|
|
|
+ uni.api.cust.apicustomerlist({
|
|
|
+ page_size: 100,
|
|
|
+ phone: this.curPopupKeyword
|
|
|
+ }).then(function (res) {
|
|
|
+ var list = res.list || [];
|
|
|
+ _this.popupDataList = (0, _toConsumableArray2.default)(list);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ openCustPopup: function openCustPopup() {
|
|
|
+ this.curPopupShow = true;
|
|
|
+ this.getCurDataList();
|
|
|
+ },
|
|
|
uploadImgHandle: function uploadImgHandle(bc) {
|
|
|
uni.chooseImage({
|
|
|
count: 1,
|
|
@@ -466,11 +553,11 @@ var _default = {
|
|
|
},
|
|
|
// 选择、验证、上传正面照片
|
|
|
uploadbrokerageImgImage: function uploadbrokerageImgImage() {
|
|
|
- var _this = this;
|
|
|
+ var _this2 = this;
|
|
|
this.uploadImgHandle(function (d) {
|
|
|
- _this.form.brokerage_img = d.url;
|
|
|
+ _this2.form.brokerage_img = d.url;
|
|
|
// this.brokerage_img = d.pub_url
|
|
|
- _this.brokerage_img = d.url;
|
|
|
+ _this2.brokerage_img = d.url;
|
|
|
});
|
|
|
},
|
|
|
openDealAtPopoup: function openDealAtPopoup() {
|
|
@@ -480,16 +567,22 @@ var _default = {
|
|
|
dealAtChange: function dealAtChange(e) {
|
|
|
this.form.deal_at = e.result || '';
|
|
|
},
|
|
|
+ openbirthdayPopoup: function openbirthdayPopoup() {
|
|
|
+ this.birthdayShow = true;
|
|
|
+ },
|
|
|
+ birthdayChange: function birthdayChange(e) {
|
|
|
+ this.form.birthday = e.result || '';
|
|
|
+ },
|
|
|
// 选择所属项目回调
|
|
|
propertySelectConfirm: function propertySelectConfirm(e) {
|
|
|
- var _this2 = this;
|
|
|
+ var _this3 = this;
|
|
|
e.map(function (val, index) {
|
|
|
- _this2.form.estate_id = val.value;
|
|
|
- _this2.form.estate_name = val.label;
|
|
|
+ _this3.form.estate_id = val.value;
|
|
|
+ _this3.form.estate_name = val.label;
|
|
|
});
|
|
|
},
|
|
|
submitHandle: function submitHandle() {
|
|
|
- var _this3 = this;
|
|
|
+ var _this4 = this;
|
|
|
var that = this;
|
|
|
this.$refs.uForm.validate(function (valid) {
|
|
|
if (valid) {
|
|
@@ -512,6 +605,7 @@ var _default = {
|
|
|
brokerage: that.form.brokerage,
|
|
|
rebate: that.form.rebate,
|
|
|
brokerage_img: that.form.brokerage_img,
|
|
|
+ birthday: that.form.birthday,
|
|
|
remark: that.form.remark
|
|
|
};
|
|
|
if (that.isEdit) {
|
|
@@ -536,7 +630,7 @@ var _default = {
|
|
|
});
|
|
|
}, function () {
|
|
|
var userInfo = uni.getStorageSync('MD_userInfo2');
|
|
|
- _this3.form = {
|
|
|
+ _this4.form = {
|
|
|
deal_item: '',
|
|
|
house_no: '',
|
|
|
house_type: '1',
|
|
@@ -544,6 +638,7 @@ var _default = {
|
|
|
deal_type: '1',
|
|
|
store_type: '其它',
|
|
|
deal_at: '',
|
|
|
+ birthday: '',
|
|
|
customer_name: '',
|
|
|
customer_phone: '',
|
|
|
area: '',
|