12 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/repairDispatch-app/add"],{178:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26),t(27);i(t(25));var r=i(t(179));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},179:function(e,n,t){"use strict";t.r(n);var i=t(180),r=t(182);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(184),t(186);var c,a=t(46),u=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"ff61ca70",null,!1,i["components"],c);u.options.__file="pages/subPackages/repairDispatch-app/add.vue",n["default"]=u.exports},180:function(e,n,t){"use strict";t.r(n);var i=t(181);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},181:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,472))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,c=[];r._withStripped=!0},182:function(e,n,t){"use strict";t.r(n);var i=t(183),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},183:function(e,n,t){"use strict";(function(e){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(t(29)),o=i(t(18)),c=i(t(32)),a=t(67),u=function(){t.e("common/vendor").then(function(){return resolve(t(487))}.bind(null,t)).catch(t.oe)},s=function(){t.e("common/vendor").then(function(){return resolve(t(489))}.bind(null,t)).catch(t.oe)},l={components:{vanRadio:u,vanRadioGroup:s},data:function(){return{dic_SelectList:{},dic_key:["QUICK_SELECTION"],reportTypeSleced:"1",quickSleced:{},quickList:[],positionSleced:"1",positionList:[{val:"1",label:"室内"},{val:"2",label:"公区"}],fileUrlList:[],fileUrls:[],form:{groupId:"",companyId:"",companyName:"",type:"1",serviceType:"",description:"",position:"1",fileUrl:"",status:"unAcceptance"}}},onLoad:function(){this.getByCodes(this.dic_SelectList),this.form.userId=(0,a.getUserLocalStorageInfo)().user.truename+"-"+(0,a.getUserLocalStorageInfo)().user.phone},methods:{getByCodes:function(){var e=this;return(0,c.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,a.getByCodes)(JSON.stringify(e.dic_key));case 2:t=n.sent,e.dic_SelectList=e.$common.handleDicList(t);case 4:case"end":return n.stop()}}),n)})))()},quickSelect:function(e){this.quickSleced.value&&this.quickSleced.value===e.value?(this.quickSleced={},console.log(123)):(console.log(e),this.quickSleced=e,this.form.description="",this.form.description=this.form.description+e.label)},beforeDelete:function(e,n){var t=this;return t.fileUrlList.splice(n.index,1),function(e,i){var r=i.index;t.fileUrlList[n.index].splice(r,1)}},afterRead:function(n){var t=this,i=n.detail.file;console.log(i),e.uploadFile({url:t.$constant.BASE_URI+"/wx/fileController/upload",filePath:i[0].url,name:"file",formData:{user:"test"},success:function(e){var n=JSON.parse(e.data),i=n.data;console.log(i[0]),t.fileUrlList.push({id:i[0],url:t.$constant.BASE_URI+"/FileController/download/"+i[0],isImage:!0}),t.fileUrlList=(0,o.default)(t.fileUrlList),t.$forceUpdate(),console.log(t.fileUrlList)},fail:function(e){}})},submit:function(){var n=this;if(null!=n.quickSleced.value&&""!==n.quickSleced.value){var t=(0,a.getUserLocalStorageInfo)().user;n.form.groupId="870261874875170816";var i="";n.fileUrlList&&n.fileUrlList.length>0&&(i=n.fileUrlList.map((function(e){return e.id}))),n.form.fileUrl=i?i.join(","):[],n.form.userId=t.id+"-"+t.truename+"-"+t.phone,n.form.serviceType=this.quickSleced.value,n.form.createdBy=t.id,(0,a.addRepair)(n.form).then((function(t){n.$showToast("填报成功"),e.navigateBack({})}))}else this.$showToast("请选择服务类型")},changePosition:function(e){}}};n.default=l}).call(this,t(2)["default"])},184:function(e,n,t){"use strict";t.r(n);var i=t(185),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},185:function(e,n,t){},186:function(e,n,t){"use strict";t.r(n);var i=t(187),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},187:function(e,n,t){}},[[178,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/subPackages/repairDispatch-app/add.js.map
|