You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
8.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["component/serviceArchive/service-archive"],{489:function(e,t,r){"use strict";r.r(t);var n=r(490),i=r(492);for(var o in i)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r(494);var c,u=r(35),a=Object(u["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,"6cb5f3c8",null,!1,n["components"],c);a.options.__file="component/serviceArchive/service-archive.vue",t["default"]=a.exports},490:function(e,t,r){"use strict";r.r(t);var n=r(491);r.d(t,"render",(function(){return n["render"]})),r.d(t,"staticRenderFns",(function(){return n["staticRenderFns"]})),r.d(t,"recyclableRender",(function(){return n["recyclableRender"]})),r.d(t,"components",(function(){return n["components"]}))},491:function(e,t,r){"use strict";var n;r.r(t),r.d(t,"render",(function(){return i})),r.d(t,"staticRenderFns",(function(){return c})),r.d(t,"recyclableRender",(function(){return o})),r.d(t,"components",(function(){return n}));try{n={uPopup:function(){return r.e("uview-ui/components/u-popup/u-popup").then(r.bind(null,350))},uForm:function(){return r.e("uview-ui/components/u-form/u-form").then(r.bind(null,381))},uFormItem:function(){return Promise.all([r.e("common/vendor"),r.e("uview-ui/components/u-form-item/u-form-item")]).then(r.bind(null,388))},uInput:function(){return Promise.all([r.e("common/vendor"),r.e("uview-ui/components/u-input/u-input")]).then(r.bind(null,399))},uRadioGroup:function(){return Promise.all([r.e("common/vendor"),r.e("uview-ui/components/u-radio-group/u-radio-group")]).then(r.bind(null,437))},uRadio:function(){return r.e("uview-ui/components/u-radio/u-radio").then(r.bind(null,444))},uIcon:function(){return r.e("uview-ui/components/u-icon/u-icon").then(r.bind(null,374))},uButton:function(){return r.e("uview-ui/components/u-button/u-button").then(r.bind(null,329))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,r=(e._self._c,e.provinceList.map((function(e){return e.name}))),n=e.cityList.map((function(e){return e.name})),i=e.districtList.map((function(e){return e.name}));e.$mp.data=Object.assign({},{$root:{g0:r,g1:n,g2:i}})},o=!1,c=[];i._withStripped=!0},492:function(e,t,r){"use strict";r.r(t);var n=r(493),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},493:function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(30)),o=n(r(32)),c=n(r(11));function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,c.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={data:function(){var e=this;return{btnStyle:(0,c.default)({"background-image":"linear-gradient(-90deg, #e26165 0%, #c10d12 94%, #c10d12 100%)","font-weight":"500","font-size":"28rpx",color:"#fff",width:"436rpx",margin:"0 auto","letter-spacing":"2rpx"},"width","80%"),btnStyle1:(0,c.default)({"background-image":"linear-gradient(-90deg, #ddd 0%, #ccc 94%, #eee 100%)","font-weight":"500","font-size":"28rpx",color:"#fff",width:"436rpx",margin:"0 auto","letter-spacing":"2rpx"},"width","80%"),isShow:!1,form:{name:"",idcard:"",mobile:"",is_move:1,address:"",remark:"",province:"",province_id:"",city:"",city_id:"",district:"",district_id:""},rules:{name:[{required:!0,message:"请输入姓名",trigger:["blur","change"]}],idcard:[{required:!0,message:"请输入身份证号",trigger:["blur","change"]},{validator:function(t,r,n){return e.$u.test.idCard(r)},message:"身份证号不正确",trigger:["change","blur"]}],mobile:[{required:!0,message:"请输入手机号",trigger:["blur","change"]},{validator:function(t,r,n){return e.$u.test.mobile(r)},message:"手机号码不正确",trigger:["change","blur"]}],address:[{validator:function(t,r,n){e.form.province&&e.form.city&&e.form.district&&e.form.address?n():n(new Error("请完善地址信息"))},trigger:["blur","change"]}]},isShowArea:!1,areaColumns:[],areaData:[],provinceList:[],cityList:[],districtList:[],isShowProvince:!1,isShowCity:!1,isShowDistrict:!1,selectedProvinceIndex:0,selectedCityIndex:0}},watch:{mobile:{handler:function(e){console.log("mobile prop changed:",e)},immediate:!0}},onReady:function(){this.$refs.uForm1.setRules(this.rules),this.loadProvinceList()},methods:{loadProvinceList:function(){var e=this;return(0,o.default)(i.default.mark((function t(){var r;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.userArchiveArea({level:1});case 2:r=t.sent,e.provinceList=r.data;case 4:case"end":return t.stop()}}),t)})))()},save:function(){var t=this;this.$refs.uForm1.validate((function(r){var n=t;r?(console.log("验证通过"),console.log("form",t.form),console.log("that.$u.api.userArchiveSave",n.$u.api.userArchiveSave),console.log("this.$u.api.userArchiveSave",t.$u.api.userArchiveSave),t.$u.api.userArchiveSave(a(a({},n.form),{},{user_mobile:t.mobile})).then((function(t){e.showToast({title:"更新成功",icon:"none",success:function(){n.isShow=!1,n.$emit("addSuccess",!0)}})})).then((function(e){console.log("err",e)}))):console.log("验证失败")}))},cancel:function(){this.$refs.uForm1.resetFields(),this.form={name:"",idcard:"",mobile:"",is_move:1,address:"",remark:"",province:"",province_id:"",city:"",city_id:"",district:"",district_id:""},this.isShow=!1},openAreaPicker:function(){this.isShowArea=!0},onAreaColumnChange:function(e,t){this.areaData[e]=t},onAreaConfirm:function(){this.isShowArea=!1,this.form.address=this.areaData.join("")},onProvinceChange:function(e){var t=this;return(0,o.default)(i.default.mark((function r(){var n,o,c;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.detail.value,o=t.provinceList[n],t.form.province=o.name,t.form.province_id=o.code,r.next=6,t.$u.api.userArchiveArea({level:2,pcode:o.code});case 6:c=r.sent,t.cityList=c.data,t.form.city="",t.form.city_id="",t.form.district="",t.form.district_id="",t.districtList=[];case 13:case"end":return r.stop()}}),r)})))()},onCityChange:function(e){var t=this;return(0,o.default)(i.default.mark((function r(){var n,o,c;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.detail.value,o=t.cityList[n],t.form.city=o.name,t.form.city_id=o.code,r.next=6,t.$u.api.userArchiveArea({level:3,pcode:o.code});case 6:c=r.sent,t.districtList=c.data,t.form.district="",t.form.district_id="";case 10:case"end":return r.stop()}}),r)})))()},onDistrictChange:function(e){var t=e.detail.value,r=this.districtList[t];this.form.district=r.name,this.form.district_id=r.code}},props:{mobile:{type:String,default:""}}};t.default=s}).call(this,r(2)["default"])},494:function(e,t,r){"use strict";r.r(t);var n=r(495),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},495:function(e,t,r){}}]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/serviceArchive/service-archive.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'component/serviceArchive/service-archive-create-component',
{
'component/serviceArchive/service-archive-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('2')['createComponent'](__webpack_require__(489))
})
},
[['component/serviceArchive/service-archive-create-component']]
]);