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.

2 lines
280 KiB

(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0012":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{form:{type:"3",employeeId:"",buildId:"",floorNo:"",deviceId:"",longidute:"",latidute:"",planTypeId:"",planTypeName:""},positionType:1,position:null,planTypeList:[],userInfo:{},locationInfo:{}}},onShow:function(){var e=uni.getStorageSync("mobileInfo"),t=uni.getStorageSync("locationInfo");e&&(this.userInfo=JSON.parse(e),this.form.employeeId=this.userInfo.employeeId,this.form.deviceId=this.userInfo.employeeId),t&&1==this.positionType&&(this.locationInfo=JSON.parse(t),this.form.planTypeId=this.locationInfo.planTypeId,this.form.planTypeName=this.locationInfo.planTypeName,this.form.buildId=this.locationInfo.buildId,this.form.floorNo=this.locationInfo.floorNo,this.form.latidute=this.locationInfo.latidute,this.form.longidute=this.locationInfo.longidute)},onUnload:function(){e("log","\u91ca\u653e\u76d1\u542c"," at pages/positionRecord/report.vue:82"),uni.$off("mapData")},onLoad:function(){var t=this;uni.$on("mapData",(function(n){var i=JSON.parse(n.data[0].detail);e("log","\u76d1\u542c\u5230\u4e8b\u4ef6\u6765\u81ea\u8fd4\u56de\u7684\u53c2\u6570\uff1a",i," at pages/positionRecord/report.vue:88"),t.position=i,t.form.buildId=i.buildId,t.form.floorNo=i.floorNo&&i.floorNo>3?i.floorNo-3:i.floorNo&&i.floorNo<4?i.floorNo-4:"",t.form.latidute=i.y,t.form.longidute=i.x})),this.queryPlanTypeList()},methods:{goSetOther:function(){uni.navigateTo({url:"/pages/setting/other"})},goMap:function(){e("log","\u9875\u9762\u8df3\u8f6c"," at pages/positionRecord/report.vue:106"),uni.navigateTo({url:"/pages/map/map"})},switchPositionType:function(){this.positionType=1==this.positionType?0:1,this.form.buildId=1==this.positionType?this.locationInfo.buildId:this.position?this.position.buildId:"";var e="";e=1==this.positionType?this.locationInfo.floorNo:this.position.floorNo&&this.position.floorNo>3?this.position.floorNo-3:this.position.floorNo&&this.position.floorNo<4?this.position.floorNo-4:"",this.form.floorNo=e,this.form.latidute=1==this.positionType?this.locationInfo.latidute:this.position?this.position.y:"",this.form.longidute=1==this.positionType?this.locationInfo.longidute:this.position?this.position.x:""},queryPlanTypeList:function(){var e=this;uni.request({url:getApp().globalData.mobileUrl+"/GetAllPlanInfo",success:function(t){200==t.data.code&&(t.data.data.forEach((function(e){e.value=e.planId,e.text=e.planName})),e.planTypeList=t.data.data)}})},submit:function(){e("log",getApp().globalData.apiUrl,this.form," at pages/positionRecord/report.vue:144"),uni.showLoading({title:"\u8bf7\u6c42\u4e2d"}),uni.uploadFile({url:getApp().globalData.apiUrl+"/appData/putFile",filePath:"123",name:"file",formData:this.form,success:function(e){var t=JSON.parse(e.data);200==t.code?uni.redirectTo({url:"/pages/positionRecord/list"}):uni.showToast({title:t.msg,icon:"none"})},fail:function(t){e("log",t," at pages/positionRecord/report.vue:167")},complete:function(t){e("log",t," at pages/positionRecord/report.vue:170"),uni.hideLoading()}})}}};t.default=n}).call(this,n("0de9")["default"])},"03a2":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uniForms:n("184c").default,uniFormsItem:n("2fcd").default,uniEasyinput:n("4da6").default},r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:e._$s(0,"sc","container"),attrs:{_i:0}},[n("uni-forms",{ref:"form",staticClass:e._$s(1,"sc","padding-wrap"),attrs:{modelValue:e.form,rules:e.rules,"label-position":"top",_i:1}},[n("uni-forms-item",{attrs:{label:"\u8d26\u53f7",name:"employeeId","label-width":"200upx",_i:2}},[n("uni-easyinput",{attrs:{trim:"all",placeholder:"\u8bf7\u8f93\u5165\u8d26\u53f7",_i:3},model:{value:e._$s(3,"v-model",e.form.employeeId),callback:function(t){e.$set(e.form,"employeeId",t)},expression:"form.employeeId"}})],1),n("uni-forms-item",{attrs:{label:"\u540d\u79f0",name:"name","lab
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch($){f=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,a=Object.create(r.prototype),s=new O(i||[]);return o(a,"_invoke",{value:I(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch($){return{type:"throw",arg:$}}}t.wrap=d;var h={};function m(){}function v(){}function g(){}var _={};f(_,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==n&&a.call(b,c)&&(_=b);var w=g.prototype=m.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var n;o(this,"_invoke",{value:function(r,o){function s(){return new t((function(n,s){(function n(r,o,s,c){var u=p(e[r],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==i(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)})(r,o,n,s)}))}return n=n?n.then(s,s):s()}})}function I(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return P()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=p(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=p(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=f(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,f(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(k.prototype),f(k.prototype,u,(f