(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25afeb27","chunk-5bb73842","chunk-352751a5","chunk-bb660846","chunk-67189526","chunk-2d230fe7","chunk-2d22d7e6","chunk-2d0e64e8","chunk-35058f9a","chunk-2620d8ef","chunk-5a0a1983","chunk-d150d8a0","chunk-7778ab62","chunk-3f5e2ac6","chunk-40ba4bb3","chunk-3e45d87d","chunk-32a4da6e","chunk-62cecca1","chunk-09d1c450","chunk-86e15c26","chunk-711db7a6","chunk-3dfc7367","chunk-5a565e17","chunk-1483d9b9","chunk-06ce4ff3","chunk-00884018","chunk-0825917c","chunk-19338f41","chunk-46647c1c","chunk-08b2476e","chunk-37072cda","chunk-5527f2ee","chunk-4c579a62","chunk-7bd0fbd7","chunk-7546d655","chunk-c1e7a890","chunk-1ae8f23e","chunk-3bc7e395","chunk-76741b4f","chunk-e6f4b6f4","chunk-9598585e","chunk-61179e5f","chunk-57cab3be","chunk-407cdc65","chunk-6fee7f9a","chunk-299640e1","chunk-a80eb4f6","chunk-b30fc9ac","chunk-2d2105d3","chunk-cc8a3952","chunk-306c626c","chunk-0a1e07a4","chunk-5c564d2a","chunk-04ce482c","chunk-eb9bb078","chunk-e12d3f04","chunk-106818c5","chunk-42627ebc","chunk-7a509419","chunk-4bf015fa","chunk-22a71f38","chunk-6c48fa9a","chunk-7a08b7a2","chunk-3504480b","chunk-ffd74c96","chunk-e3350e26","chunk-4b0d1d89","chunk-434b193a","chunk-fb9400d0","chunk-053084f0","chunk-4beb77b6","chunk-c787d1bc","chunk-89e24c3c","chunk-0eb47b9e","chunk-00b1e3a3","chunk-115cef7f","chunk-40ef04d7","chunk-5fcc42b3","chunk-7f9702fa","chunk-88bee8ea","chunk-729aa423","chunk-6ddcf9b0","chunk-004e11de","chunk-b10391a6","chunk-43e9ecd8","chunk-411866d4","chunk-7a6184df","chunk-1eea7300","chunk-1c9a8ee8","chunk-ce5d5238","chunk-5d23e54f","chunk-968b41d0","chunk-92e5b0d0","chunk-7679a1ce","chunk-1f1f0f92","chunk-3edc0d5c","chunk-1f36b22e","chunk-4dd11f2e","chunk-299d5891","chunk-943a1100","chunk-648c8a16","chunk-2d0e66d0","chunk-2d22234c","chunk-2d207d25","chunk-2d0b219b","chunk-2d22979b","chunk-2d207f67","chunk-2d0dd7e4","chunk-2d0db05b","chunk-2d0ab927","chunk-2d0aa195","chunk-2d0c9509","chunk-2d0e64e8","chunk-77346fba"],{"0048":function(e,t,r){},"00fd":function(e,t,r){var n=r("9e69"),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=n?n.toStringTag:void 0;function l(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var a=i.call(e);return n&&(t?e[s]=r:delete e[s]),a}e.exports=l},"0264":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"物品名称",prop:"goodsName"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入物品名称",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.goodsName,callback:function(t){e.$set(e.formData,"goodsName",t)},expression:"formData.goodsName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"物品分类",prop:"categoryId"}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",placeholder:"请选择物品分类",options:e.categoryList,props:{emitPath:!1,value:"id"}},model:{value:e.formData.categoryId,callback:function(t){e.$set(e.formData,"categoryId",t)},expression:"formData.categoryId"}})],1),e._v(" "),e._l(e.formData.models,(function(t,n){return r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"规格型号",prop:"models."+n+".modelName",rules:e.rules.modelName}},[r("el-input",{staticStyle:{width:"100%"},attrs:{disabled:!!e.setting.id,placeholder:"请输入规格型号名称",clearable:"",maxlength:"20","show-word-limit":""},model:{value:t.modelName,callback:function(r){e.$set(t,"modelName",r)},expression:"m.modelName"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:9}},[r("el-form-item",{attrs:{label:"单位",prop:"models."+n+".unit",rules:e.rules.unit}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入单位",clearable:"",maxlength:"20","show-word-limit":""},model:{value:t.unit,callback:function(r){e.$set(t,"unit",r)},expression:"m.unit"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:6}},[e.formData.models.length>1?r("my-button",{key:"d"+n,attrs:{name:"删除",type:"danger"},on:{click:function(t){return e.delCode(n)}}}):e._e(),e._v(" "),n===e.formData.models.length-1?r("my-button",{key:"a"+n,attrs:{name:"新增型号",type:""},on:{click:e.addCode}}):e._e()],1)],1)})),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"states"}},[r("el-radio-group",{model:{value:e.formData.states,callback:function(t){e.$set(e.formData,"states",t)},expression:"formData.states"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("启用")]),e._v(" "),r("el-radio",{attrs:{label:0,border:""}},[e._v("禁用")])],1)],1)],2),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("f76d"),i=r("f6e8"),s=r("f596"),l=r("c56b"),c=r("2f62");function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==u(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(u(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function f(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){f(o,n,a,i,s,"next",e)}function s(e){f(o,n,a,i,s,"throw",e)}i(void 0)}))}}function m(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=b(e,"string");return"symbol"==u(t)?t:t+""}function b(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={components:{winMd:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,categoryList:[],checkAll:!1,checkedList:[],formData:{goodsName:"",states:1,summary:"",categoryId:null,agencyId:"",agencyName:"",models:[{modelName:"",unit:""}]},rules:{goodsName:[{required:!0,message:"请输入物品名称",trigger:"blur"}],categoryId:[{required:!0,message:"请选择物品分类",trigger:"blur"}],modelName:[{required:!0,message:"请输入规格名称",trigger:"blur"}],unit:[{required:!0,message:"请输入单位",trigger:"blur"}]}}},computed:h({},Object(c["b"])(["userInfo"])),created:function(){var e=p(d().mark((function e(){var t=this;return d().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.setting.id){e.next=3;break}return e.next=3,Object(s["f"])({id:this.setting.id}).then((function(e){t.formData=e,t.formData.agencyId||(t.formData.agencyId=t.userInfo.tenantId,t.formData.agencyName=t.userInfo.tenantName)}));case 3:return e.next=5,this.tree_List();case 5:this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{tree_List:function(){var e=p(d().mark((function e(){var t=this;return d().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["b"])().then((function(e){e&&(t.categoryList=e)}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),addCode:function(){this.formData.models.push({modelName:"",unit:""})},delCode:function(e){this.formData.models.splice(e,1)},getEditInfo:function(e){},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);if(e.loading)return;e.loading=!0,e.setting.id?Object(s["e"])(r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})):(r.orgId=e.setting.orgId,Object(s["a"])(r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})))}else e.$message.error("校验未通过,请检查。")}))}}},w=y,_=r("2877"),x=Object(_["a"])(w,n,a,!1,null,null,null);t["default"]=x.exports},"0387":function(e,t,r){},"0676":function(e,t){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0915":function(e,t,r){"use strict";r("3fe4")},"0a3d":function(e,t,r){"use strict";r("b03a")},"0a8a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.detailSetting.show?r("detail",{attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("f5fa"),c=r("6f7e"),u=r("5f87"),d={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],detail:l["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate?tenantId=".concat(Object(u["c"])().tenantId)}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"departmentId",label:"部门",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all?tenantId=".concat(Object(u["c"])().tenantId),label:"name",value:"id"},defaultValue:"",options:[]},{type:"text",dataIndex:"createName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},editSetting:{title:"",id:"",orgId:"",show:!1},detailSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/l/wh/using/form/back/list/detail",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"物品名称",field:"baseGoodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"退回数量",field:"counts",align:"center"},{title:"部门",field:"departmentName",align:"left",minWidth:130},{title:"创建人",field:"operatorName",align:"center",width:100},{title:"操作时间",field:"dealTime",align:"center",width:160,formatter:function(e){return{value:c["LongToDateTime"](e.dealTime)}}}],operation:{show:!0,width:90,attr:[{title:"详情",type:"info",events:function(t){e.handleDetail(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{handleDetail:function(e){this.detailSetting.id=e.id,this.detailSetting.info=JSON.stringify(e),this.detailSetting.title="详情",this.detailSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},f=d,p=r("2877"),m=Object(p["a"])(f,n,a,!1,null,"4151adbd",null);t["default"]=m.exports},"0b76":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}}),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("9960"),c=r("4512"),u=r("dee4"),d=r("6f7e"),f={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],myImport:l["default"],detail:c["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"name",label:"单号",placeholder:"请输入",defaultValue:""},{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"goodsTemplateId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"text",dataIndex:"name",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"incomeTimeStart",label:"报废时间",defaultValue:""},{type:"date-picker",dataIndex:"incomeTimeEnd",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(u["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/l/wh/form/scrapped/list/detailList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:130},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"报废数量",field:"counts",align:"center"},{title:"所属机构",field:"agencyName",align:"left",minWidth:130},{title:"创建人",field:"operatorName",align:"left"},{title:"操作时间",field:"dealTime",align:"center",width:160,formatter:function(e){return{value:d["LongToDateTime"](e.dealTime)}}}],operation:{show:!0,width:100,attr:[{title:"详情",events:function(t){e.showDetail(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}},detailSetting:{title:"详情",id:"",show:!1}}},created:function(){},methods:{showDetail:function(e){this.detailSetting.id=e.id,this.detailSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},p=f,m=r("2877"),h=Object(m["a"])(p,n,a,!1,null,"667e44c2",null);t["default"]=h.exports},"0bcb":function(e,t,r){"use strict";r("1aec")},"0c55":function(e,t,r){},"0c7a":function(e,t,r){},"0d93":function(e,t,r){},"0e548":function(e,t,r){"use strict";r("7025")},1013:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{width:"1000px",visible:!0,top:"15vh","close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0},on:{close:e.close}},[r("div",{staticClass:"dialog-title",attrs:{slot:"title",align:"left"},slot:"title"},e._l(e.tabs,(function(t,n){return r("div",{key:n,staticClass:"tab-item",class:e.tabIndex==n?"active":"",on:{click:function(t){e.tabIndex=n}}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"show",rawName:"v-show",value:0==e.tabIndex,expression:"tabIndex == 0"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules}},e._l(e.formData.list,(function(t,n){return r("div",{key:n},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"规格型号:"}},[e._v("\n "+e._s(t.baseGoodModelName)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"单位:"}},[e._v("\n "+e._s(t.unit)+"\n ")])],1)],1),e._v(" "),e._l(t.recordUserInfos,(function(t,n){return r("el-row",{key:n,attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"分发数量:"}},[e._v("\n "+e._s(t.count)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"使用人:"}},[t.isEdit?r("el-input",{staticStyle:{width:"120px"},model:{value:t.userName,callback:function(r){e.$set(t,"userName",r)},expression:"childItem.userName"}}):r("span",[e._v(e._s(t.userName))])],1)],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"联系电话:"}},[t.isEdit?r("el-input",{staticStyle:{width:"120px"},model:{value:t.phone,callback:function(r){e.$set(t,"phone",r)},expression:"childItem.phone"}}):r("span",[e._v(e._s(t.phone))])],1)],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",[r("span",{staticClass:"edit-text",on:{click:function(r){return e.handleEditItem(t)}}},[e._v(e._s(t.isEdit?"取消":"修改"))])])],1)],1)})),e._v(" "),n+1<e.formData.list.length?r("el-divider"):e._e()],2)})),0),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.tabIndex,expression:"tabIndex == 1"}],ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{width:"96%"},attrs:{model:e.formData,rules:e.rules}},e._l(e.list,(function(t,n){return r("div",{key:n},[r("el-row",{staticClass:"item-header",attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"修改时间:"}},[e._v("\n "+e._s(e._f("formatTime")(t.updateTime))+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"修改人:"}},[e._v("\n "+e._s(t.updateUserName)+"\n ")])],1)],1),e._v(" "),r("el-divider"),e._v(" "),e._l(t.recordSkuDtoList,(function(t,n){return[r("el-row",{key:n,attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"规格型号:"}},[e._v("\n "+e._s(t.baseGoodModelName)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"单位:"}},[e._v("\n "+e._s(t.unit)+"\n ")])],1)],1),e._v(" "),e._l(t.recordUserInfos,(function(t,a){return r("el-row",{key:a+"_"+n,attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"分发数量:"}},[e._v("\n "+e._s(t.num)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"使用人:"}},[e._v("\n "+e._s(t.useName)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{label:"联系电话:"}},[r("span",[e._v(e._s(t.phone))])])],1)],1)})),e._v(" "),r("el-divider")]}))],2)})),0),e._v(" "),0==e.tabIndex?r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1):e._e()],1)},a=[],o=r("f6e8"),i=r("a083"),s=r("271c"),l={components:{myButton:o["a"]},mixins:[s["default"]],props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,tabs:["修改使用人","使用记录"],tabIndex:0,list:[],formData:{list:[]},rules:{code:[{required:!0,message:"请输入机构编号",trigger:"blur"}],name:[{required:!0,message:"请输入机构名称",trigger:"blur"}],status:[{required:!0,message:"请选择状态",trigger:"blur"}]}}},created:function(){var e=this;Object(i["k"])({transferOrderId:this.setting.id}).then((function(t){var r=JSON.parse(JSON.stringify(t[0].recordSkuDtoList));r.map((function(t){t.recordUserInfos.map((function(r){r.baseGoodModelId=t.baseGoodModelId,r.baseUnit=t.unit,r.businessId=e.setting.id,r.count=r.num,r.tel=r.phone,r.procureModelId=t.procureModelId,r.userName=r.useName,r.isEdit=!1}))})),e.formData.list=r,e.list=t,e.loading=!1}))},methods:{getEditInfo:function(e){},handleEditItem:function(e){e.isEdit=!e.isEdit,e.isEdit||(console.log(e),e.phone=e.tel,e.userName=e.useName)},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=[];e.formData.list.map((function(e){e.recordUserInfos.map((function(e){r.push(e)}))})),Object(i["j"])({recordInfoList:r}).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(){e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。")}))}}},c=l,u=(r("4148"),r("2877")),d=Object(u["a"])(c,n,a,!1,null,"3207ba22",null);t["default"]=d.exports},1022:function(e,t,r){"use strict";r.r(t),t["default"]=[{type:"text",dataIndex:"dictName",label:"字典名称",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"status",label:"状态",placeholder:"请选择",defaultValue:"0",options:[{value:"0",label:"启用"},{value:"1",label:"禁用"}]}]},"10f2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAADo0lEQVR4AWIgBBTuz1dQeLJ4v8LTJfNBbELqmfAYJCD3eGE9gJJyAJrl2sLo2j24tvVebNtWIbatQmzOn0KsQpxc27Zt27Y5M33Ol053XXtVG2ur6ghN9EvW3hDtz0gs/O/ZcQvrz/3zBg8TWbc156YureRXrBcrNuCnLUGrNuf+v7Dhwgbz/n6GQ2DsQ+2ZDU8olVFDFQo3aPE6sW2XAWAGKN4woEIZqF8NK5VpFBQLJYvOfHXRfsLKExtWrlg2fB3n39DazZW1alMsMds/tlCiFCBhtatAjQpYJpVbcuqLJQBWf+qvN1jaGmrjjhNYsRG5UPupDnRCkq4wJPlMQFCzsln1iotwvsTqT/tVbupirBASZDOcXbUuFTKl2W0UxHqJ/Z7N2LiCzcVdmBe+GKIyWVJnNSCN82jjNqxsaeQ9f139BPXLVeZoPDjgT0auXoCU1K/1W03OEci75GG8A4hjwgvJgwAvQwLvkwyJfV7I7xnUmyPb0HbBeCRirqp1Em+ddytXRueYWACKzVh8cpFQLrYhCZN4oPdvyNCWwk6TF1fVPnlfUVTmfL6f3JcRq+cnw1MikgReREIXC80TC5ZsXZ/MGOPFM68ld+ld7CYKAoIG5apgwmBPMsk5dAQkduQ9+H0+8IqmXYp9qZgtw5VRxj9e/TBnV66D5KXd/dPukmPRbonHggC8TIgRK+eDeiPASHj7wtvjc4VsacnHlYH3KNpt91DknCx0RiS7/f9nq1K2jI1YNY+RK6J95bwk+gFCPOC8yQuFHhUdJEPxKF/AW4AJvrj8bmtQoRrfT+jFiEiIcWics1gUOlQoJruLMxR+e94CAcoIJYq3L7oj2jkc+4hCfL4gRY6UF4F3DpUvg9u6E791lz3Z9mc253dwJL4d1Y1hC6bjd+SjZHbKR6uSymSRc1iNLp8+Y0HwuVu+4YRoEQV5glJZLJuGTFqWTmFBYEjIC7yTiiHKh6Z8EQVGcGJtUrUqLfKyZw0Sqnf8JGfOfe6XrcctW4dF0qBURpHQLBUgSKZZTEr1u4oE9auRql99k1LBzyHpnzbdm9u0/wLb8YMTnCznd4ZP+4Wr0eYdWCalSGhgwnvzhRArlyV1Wj0onR2UNvfsqnu/2n+BPZAa7T94xovPtXLTCT7KloIjJpOOyquJVauwyIxn1z341SCOh+otP8hVa/a2/p1gewIYCy8ufi+0vKxBYH6BAAO5QGB5hYLwspIFQLwfxCakHgACn1L7JE2N7wAAAABJRU5ErkJggg=="},1160:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("b775");function c(e){return Object(l["a"])({url:"/pc/fin/warehouse/ledger/getDeptListExport",responseType:"blob",method:"post",params:e})}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=h(e,"string");return"symbol"==u(t)?t:t+""}function h(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var g={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"]},data:function(){var e=this;return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},defaultValue:"",options:[]},{type:"select",dataIndex:"departmentId",label:"部门",placeholder:"请选择",defaultValue:"",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all",label:"name",value:"id"},options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"},options:[],defaultValue:""},{type:"cascader",dataIndex:"categoryId",label:"分类",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"label",value:"id",url:s["a"].apiBaseURL+"/pc/base/category/select/tree",props:{checkStrictly:!1,emitPath:!1,value:"id"}}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/fin/warehouse/ledger/getDeptLedgerList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"导出",icon:"el-icon-download",click:function(){e.handleExport()}}]},columns:[{title:"机构",field:"agencyName",align:"left",minWidth:130},{title:"部门",field:"departName",align:"left",minWidth:130},{title:"分类",field:"categoryName",align:"left",minWidth:130},{title:"所属类别",field:"costType",align:"center",width:80},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:130},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"单位",field:"unit",align:"center",width:80},{title:"在用数量",field:"kucun",align:"center",width:80}],operation:{show:!1},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{handleExport:function(){var e=this,t=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});c(f({},this.filterFrom)).then((function(r){var n=new Blob([r],{type:"application/vnd.ms-excel"}),a="部门物品查询.xls";if("download"in document.createElement("a")){var o=document.createElement("a");o.download=a,o.style.display="none",o.href=URL.createObjectURL(n),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}else navigator.msSaveBlob(n,a);e.$message.success("导出成功!"),t.close()})).catch((function(){t.close()}))},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},v=g,b=r("2877"),y=Object(b["a"])(v,n,a,!1,null,"d5ff8c4a",null);t["default"]=y.exports},"11b0":function(e,t){function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11e2":function(e,t,r){"use strict";r("0c7a")},1294:function(e,t,r){"use strict";r("5e9d")},"130d":function(e,t,r){"use strict";r("d444")},1310:function(e,t){function r(e){return null!=e&&"object"==typeof e}e.exports=r},1328:function(e,t,r){"use strict";r("e526")},"134c":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("div",{staticClass:"box",style:e.style},[n("div",{staticClass:"header"},[n("div",{staticClass:"timeBox"},[n("span",{staticClass:"hms"},[e._v(e._s(e.time))]),e._v(" "),n("span",{staticClass:"hms"},[e._v(e._s(e.hms))]),e._v(" "),n("span",{staticClass:"hms"},[e._v(e._s(e.weekNum))])])]),e._v(" "),n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:7}},[n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("综合数据分析")]),n("span",{staticClass:"eng-title"},[e._v("COMPREHENSIVE DATA ANALYSIS")])]),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.comprehensiveLoading,expression:"comprehensiveLoading"}],staticClass:"col-box__content e-flex flex-wrap justify-between",staticStyle:{height:"232px"}},[n("div",{staticClass:"item-box item1"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.sum))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("项目总数")])]),e._v(" "),n("div",{staticClass:"item-box item2"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.ongoing))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("进行中")])]),e._v(" "),n("div",{staticClass:"item-box item3"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.notBegin))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("未开工")])]),e._v(" "),n("div",{staticClass:"item-box item4"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.end))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("已完工")])]),e._v(" "),n("div",{staticClass:"item-box item5"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.close))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("已关闭")])]),e._v(" "),n("div",{staticClass:"item-box item6"},[n("div",[n("span",{staticClass:"num"},[e._v(e._s(e.comprehensive.overdue))]),e._v("个\n ")]),e._v(" "),n("div",[e._v("已超期")])])])]),e._v(" "),n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("计划投资数据分析")]),n("span",{staticClass:"eng-title"},[e._v("PLAN INVESTMENT DATA ANALYSIS")])]),e._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.planLoading,expression:"planLoading"}],staticClass:"col-box__content e-flex justify-between plan-box"},[n("swiper",{attrs:{options:e.swiperOptions}},e._l(e.planArrList,(function(t,a){return n("swiper-slide",{key:a},[n("div",{staticClass:"plan-flex-box"},e._l(t,(function(t,o){return n("div",{key:a+""+o,staticClass:"content-wrap"},[n("div",{staticClass:"e-flex justify-between msg-wrap"},[n("div",{staticClass:"city-name",class:"name"+(4*a+o+1)},[0===a&&o<3?[0===o?n("img",{staticStyle:{"margin-right":"5px"},attrs:{src:r("2d6d"),alt:"1"}}):e._e(),e._v(" "),1===o?n("img",{staticStyle:{"margin-right":"5px"},attrs:{src:r("edb5"),alt:"2"}}):e._e(),e._v(" "),2===o?n("img",{staticStyle:{"margin-right":"5px"},attrs:{src:r("10f2"),alt:"3"}}):e._e()]:n("span",{staticClass:"city-rank"},[e._v(e._s(4*a+o+1))]),e._v(" "),n("span",{staticClass:"name-txt",attrs:{title:t.orgName}},[e._v(e._s(t.orgName))])],2),e._v(" "),n("div",{staticClass:"desc"},[e._v("\n 计划"),n("span",{staticClass:"num",attrs:{title:t.sumMoney}},[e._v(e._s(t.sumMoney))]),e._v("万 已下达"),n("span",{staticClass:"num end",attrs:{title:t.curMoney}},[e._v(e._s(t.curMoney))]),e._v("万\n ")])]),e._v(" "),n("DataProgress",{attrs:{"stroke-width":8,"show-block":!0,color:e.progressColor(a,o),percentage:60}})],1)})),0)])})),1)],1)]),e._v(" "),n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("历年项目数据分析")]),n("span",{staticClass:"eng-title"},[e._v("PROJECT DATA ANALYSIS OVER THE YEARS")])]),e._v(" "),n("div",{staticClass:"col-box__content e-flex justify-between",staticStyle:{height:"232px"}},[n("ProjectYear")],1)])]),e._v(" "),n("el-col",{staticStyle:{position:"relative"},attrs:{span:10}},[n("div",{staticClass:"middle-top-box"},[n("div",{staticClass:"type-name"},[e._v("项目总数")]),e._v(" "),n("div",{staticClass:"num-box"},e._l(e.numToStrArr(e.comprehensive.sum),(function(t,r){return n("span",{key:r,class:{nothing:""===t}},[e._v(e._s(""===t?"-":t))])})),0),e._v(" "),n("div",{staticClass:"type-name"},[e._v("已下达投资(万元)")]),e._v(" "),n("div",{staticClass:"num-box"},e._l(e.numToStrArr(e.comprehensive.curMoney),(function(t,r){return n("span",{key:r,staticClass:"orange",class:{nothing:""===t}},[e._v(e._s(""===t?"-":t))])})),0)]),e._v(" "),n("div",{staticClass:"middle-box"},[n("MyMap")],1),e._v(" "),n("div",{staticClass:"middle-bottom-box"},[n("ProjectList")],1)]),e._v(" "),n("el-col",{attrs:{span:7}},[n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("项目类型占比分析")]),n("span",{staticClass:"eng-title"},[e._v("ANALYSIS OF THE PROPORTION")])]),e._v(" "),n("div",{staticClass:"col-box__content",staticStyle:{height:"231px"}},[n("ProjectType")],1)]),e._v(" "),n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("批次计划数据分析")]),n("span",{staticClass:"eng-title"},[e._v("BATCH PLAN DATA ANALYSIS")])]),e._v(" "),n("div",{staticClass:"col-box__content"},[n("BatchPlan")],1)]),e._v(" "),n("div",{staticClass:"col-box"},[n("p",{staticClass:"col-box__title"},[n("span",{staticClass:"tit"},[e._v("地市考核评分分析")]),n("span",{staticClass:"eng-title"},[e._v("CITY ASSESSMENT SCORE ANALYSIS")])]),e._v(" "),n("div",{staticClass:"col-box__content",staticStyle:{height:"230px"}},[n("CityScore")],1)])])],1)],1)])},a=[],o=r("701e"),i=r("6f7e"),s=r("e554"),l=r("fa8e"),c=r("7ef5"),u=r("b3ea"),d=r("c434"),f=r("b882"),p=r("51ef"),m={name:"static",components:{MyMap:o["default"],ProjectType:l["default"],ProjectYear:s["default"],BatchPlan:c["default"],ProjectList:u["default"],CityScore:d["default"],DataProgress:f["default"]},data:function(){return{weekDays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],hms:"",ymd:"",time:"",weekNum:"",timer:null,style:{width:"1920px",height:"1080px",transform:"scale(1) translate(-50%, -50%)"},swiperOptions:{autoplay:{delay:2e3,disableOnInteraction:!1},slidesPerView:2,loop:!0},comprehensiveLoading:!0,comprehensive:{sum:0,notBegin:0,ongoing:0,end:0,close:0,overdue:0,sumMoney:0,curMoney:0},planLoading:!0,planList:[]}},computed:{planArrList:function(){var e=[],t=[];return this.planList.forEach((function(r,n){t.push(r),(n+1)%4===0&&(e.push(t),t=[])})),t.length&&e.push(t),e},progressColor:function(){return function(e,t){return 0===e&&t<3?0===t?"linear-gradient(270deg, #FFD15C 0%, rgba(200,172,36,0.4) 100%)":1===t?"linear-gradient(270deg, #5CE4FF 0%, rgba(36,145,200,0.4) 100%)":"linear-gradient(270deg, #20E6A4 0%, rgba(32,230,164,0.34) 100%)":"linear-gradient(270deg, #42A3FF 0%, rgba(30,30,30,0) 100%)"}}},methods:{debounce:function(e,t){var r,n=t||500;return function(){var t=arguments;r&&clearTimeout(r);var a=this;r=setTimeout((function(){r=null,e.apply(a,t)}),n)}},getScale:function(){var e=window.innerWidth/1920,t=window.innerHeight/1080;return e<t?e:t},setScale:function(){this.style.transform="scale(".concat(this.getScale(),") translate(-50%, -50%)")},numToStrArr:function(e){if(!Number(e))return["","","","","","",""];var t=String(e).split(""),r=t.length;if(r<7)for(var n=0;n<7-r;n++)t.unshift("");return t}},created:function(){var e=this;p["a"].queryBoardTotalData().then((function(t){e.comprehensive=t,e.comprehensiveLoading=!1})),p["a"].queryPlanMoney().then((function(t){e.planList=t,e.planLoading=!1}))},mounted:function(){var e=this;this.setScale(),this.onresize=this.debounce((function(){return e.setScale()}),100),window.addEventListener("resize",this.onresize),this.weekNum=this.weekDays[(new Date).getDay()];var t=this;this.timer=function(){var e=Object(i["formatDate"])(new Date);t.time=e.split(" ")[0],t.hms=e.slice(11),t.ymd=e.slice(0,11).replaceAll("-","."),t.$forceUpdate()},setInterval(this.timer,1e3)},beforeDestroy:function(){window.removeEventListener("resize",this.onresize)},destroyed:function(){clearInterval(this.timer),this.timer=null}},h=m,g=(r("c55a"),r("2877")),v=Object(g["a"])(h,n,a,!1,null,"c895639e",null);t["default"]=v.exports},"145d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-alert",{staticStyle:{"margin-bottom":"10px"},attrs:{title:"温馨提示:用户初始密码为123456",type:"warning",closable:!1,"show-icon":""}}),e._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"当前机构"}},[r("el-input",{staticStyle:{width:"250px"},attrs:{disabled:""},model:{value:e.setting.tenantName,callback:function(t){e.$set(e.setting,"tenantName",t)},expression:"setting.tenantName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"部门",prop:"sysDeptId"}},[r("el-select",{model:{value:e.formData.sysDeptId,callback:function(t){e.$set(e.formData,"sysDeptId",t)},expression:"formData.sysDeptId"}},e._l(e.deptmentOptions,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"人员姓名",prop:"userName"}},[r("el-input",{staticStyle:{width:"250px"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.userName,callback:function(t){e.$set(e.formData,"userName",t)},expression:"formData.userName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"登录名",prop:"userCode"}},[r("el-input",{staticStyle:{width:"250px"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.userCode,callback:function(t){e.$set(e.formData,"userCode",t)},expression:"formData.userCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"userPhone"}},[r("el-input",{staticStyle:{width:"250px"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.userPhone,callback:function(t){e.$set(e.formData,"userPhone",t)},expression:"formData.userPhone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"性别",prop:"sex"}},[r("el-radio-group",{model:{value:e.formData.sex,callback:function(t){e.$set(e.formData,"sex",t)},expression:"formData.sex"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2,border:""}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-radio-group",{model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("启用")]),e._v(" "),r("el-radio",{attrs:{label:0,border:""}},[e._v("禁用")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"顺序号",prop:"seq"}},[r("el-input-number",{attrs:{clearable:"",min:1,max:99,"show-word-limit":""},model:{value:e.formData.seq,callback:function(t){e.$set(e.formData,"seq",t)},expression:"formData.seq"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",rows:3,maxlength:"100","show-word-limit":""},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色配置",prop:"roleSetting"}},[r("el-checkbox",{on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),r("div",{staticStyle:{margin:"15px 0"}}),e._v(" "),r("el-checkbox-group",{on:{change:e.handleCheckedCitiesChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},e._l(e.roleOptions,(function(t,n){return r("el-checkbox",{key:t.role_id,attrs:{label:t.role_id}},[e._v(e._s(t.role_name))])})),1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("e694"),i=r("f6e8"),s=r("6f7e"),l=r("3528"),c=r("c24f"),u=r("8eb74");function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(d(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function p(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){p(o,n,a,i,s,"next",e)}function s(e){p(o,n,a,i,s,"throw",e)}i(void 0)}))}}var h={components:{winSm:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){e.checkedList.length<1?n(new Error("至少选择一个")):n()};return{deptmentOptions:[],loading:!0,checkAll:!1,checkedList:[],roleList:[{id:1,label:"王涵1"},{id:2,label:"王涵2"}],queryParams:{pageNum:1,pageSize:10,roleName:void 0,roleKey:void 0,status:void 0,orgId:1},roleOptions:[],roleCheckStrictly:!0,defaultProps:{children:"childList",label:"name"},formData:{sysDeptId:"",userName:"",userCode:"",userPhone:"",sex:1,status:1,remark:"",seq:null},rules:{sysDeptId:[{required:!0,message:"请选择部门",trigger:"change"}],userName:[{required:!0,message:"请输入人员姓名",trigger:"blur"}],userCode:[{required:!0,message:"请输入登录名",trigger:"blur"}],userPhone:[{required:!0,message:"请输入手机号",trigger:"blur"}],sex:[{required:!0,message:"请选择性别",trigger:"change"}],seq:[{required:!0,message:"请输入顺序号",trigger:"blur"}],roleSetting:[{validator:t,required:!0,trigger:"blur"}]}}},created:function(){var e=m(f().mark((function e(){return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.title=this.setting.title,null==this.setting.id){e.next=4;break}return e.next=4,this.getInfo();case 4:return e.next=6,this.getAllRole();case 6:return e.next=8,this.getDeptmentOptions();case 8:this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getAllRole:function(){var e=m(f().mark((function e(){var t=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.data_scope=this.$store.getters.userInfo?this.$store.getters.userInfo.lv:"",e.next=3,l["k"]({dataScope:this.setting.data_scope}).then((function(e){t.roleOptions=e||[],t.loading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDeptmentOptions:function(){var e=m(f().mark((function e(){var t=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["d"])({tenantId:this.setting.tenantId}).then((function(e){t.deptmentOptions=e}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(e){this.checkedList=e?this.roleOptions.map((function(e){return e.role_id})):[]},handleCheckedCitiesChange:function(e){var t=e.length;this.checkAll=t===this.roleOptions.length},getInfo:function(){var e=m(f().mark((function e(){var t=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.title=this.setting.title,e.next=3,c["h"]({id:this.setting.id}).then((function(e){var r=e.data;t.formData=Object.assign(t.formData,r),null!=t.formData.projectStart&&t.formData.projectStart>0&&(t.formData.projectStart=s["LongToDateTime"](t.formData.projectStart)),null!=t.formData.projectEnd&&t.formData.projectEnd>0&&(t.formData.projectEnd=s["LongToDateTime"](t.formData.projectEnd)),t.checkedList=e.list.map((function(e){return e.role_id})),e.list.length==t.roleOptions.length&&t.handleCheckedCitiesChange(e.list)}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.formData={sysDeptId:"",userName:"",userCode:"",userPhone:"",sex:1,status:1,remark:"",seq:null},this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);if(r.roleList=e.checkedList,r.tenantId=e.setting.tenantId,r.tenantCode=e.setting.tenantCode,0==r.ctiStatus&&(r.agentJid="",r.workgroupJid="",r.clientNumber="",r.clientPwd=""),null!=r.projectStart&&null!=r.projectEnd&&(r.projectStart=s["DateToLong"](r.projectStart),r.projectEnd=s["DateToLong"](r.projectEnd),r.projectStart>=r.projectEnd))return void e.$message.error("服务结束时间不能小于或者等于服务开始时间");if(null==r.projectStart&&null!=r.projectEnd||null!=r.projectStart&&null==r.projectEnd)return void e.$message.error("服务开始时间和服务结束时间必须成对出现");if(e.loading)return;e.loading=!0,r.id?c["k"](r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})).catch((function(){e.loading=!1})):c["a"](r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})).catch((function(){e.loading=!1}))}else e.$message.error("校验未通过,请检查。")}))},getWorkgroupsAll:function(){var e=this;callCenter.getWorkgroupsAll().then((function(t){e.workgroups=t.workgroups}))},getWorkgroupAgents:function(e){var t=this;this.formData.agentJid="",this.formData.clientNumber="",this.formData.clientPwd="",this.agentExtendEntiry.agentId="",this.formData.workgroupJid=this.workgroup.workgroupJID,callCenter.getWorkgroupAgents(e).then((function(e){t.agents=e.agents}))},onClickAgent:function(e){this.formData.agentJid=e.agentExtendEntiry.agentId,this.formData.clientNumber=e.agentExtendEntiry.ccClientNumber,this.formData.clientPwd=e.agentExtendEntiry.ccClientPWD}}},g=h,v=r("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},1489:function(e,t,r){},1684:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("2c4d");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}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 d(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){f(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}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=m(e,"string");return"symbol"==c(t)?t:t+""}function m(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"]},data:function(){var e=this;return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"warehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"warehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"cascader",dataIndex:"categoryId",label:"分类",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"label",value:"id",url:s["a"].apiBaseURL+"/pc/base/category/select/tree",props:{checkStrictly:!1,emitPath:!1,value:"id"}},cascader:[{key:"goodsTemplateId",queryKey:"categoryId"}]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"categoryId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],treeDataList:[],filterFrom:{warehouseType:0},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/fin/warehouse/ledger/getList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"导出",icon:"el-icon-download",click:function(){e.handleExport()}}]},columns:[{title:"机构",field:"agencyName",align:"left",minWidth:130},{title:"仓库",field:"warehouseName",align:"left",minWidth:130},{title:"分类",field:"categoryName",align:"left",minWidth:130},{title:"所属类别",field:"costType",align:"center",width:80},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"单位",field:"unit",align:"center",width:80},{title:"当前库存",field:"kucun",align:"center"}],paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{handleExport:function(){var e=this,t=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(l["a"])(d({},this.filterFrom)).then((function(r){var n=new Blob([r],{type:"application/vnd.ms-excel"}),a="库存查询.xls";if("download"in document.createElement("a")){var o=document.createElement("a");o.download=a,o.style.display="none",o.href=URL.createObjectURL(n),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}else navigator.msSaveBlob(n,a);e.$message.success("导出成功!"),t.close()})).catch((function(){t.close()}))},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},g=h,v=r("2877"),b=Object(v["a"])(g,n,a,!1,null,"f6a9786c",null);t["default"]=b.exports},"169e":function(e,t,r){"use strict";r.r(t),t["default"]=[{type:"text",dataIndex:"userName",label:"用户姓名",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"userCode",label:"编号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"status",label:"状态",placeholder:"请选择",defaultValue:"1",options:[{label:"启用",value:"1"},{label:"禁用",value:"0"}]}]},"17de":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("2f62"),c=r("6f7e");function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=h(e,"string");return"symbol"==u(t)?t:t+""}function h(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var g={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"]},data:function(){return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"warehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"warehouseId",label:"盘点仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"warehouseId",label:"类型",placeholder:"请选择",defaultValue:"",options:[{label:"全部",value:""},{label:"盘盈",value:"1"},{label:"盘亏",value:"2"}]},{type:"select",dataIndex:"warehouseId",label:"出入库类型",placeholder:"请选择",defaultValue:"",options:[{label:"全部",value:""},{label:"盘盈入库",value:"1"},{label:"盘亏出库",value:"2"}]},{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"operatorName",label:"操作人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/l/wh/form/inventory/list/PdDetail",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"仓库",field:"warehouseName",align:"left",width:140},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:130},{title:"规格型号",field:"baseGoodsModelsName",align:"left",width:120},{title:"类型",field:"inventoryResultType",align:"center"},{title:"库存数量",field:"initCounts",align:"left"},{title:"盘点数量",field:"inventoryCounts",align:"left"},{title:"异常数量",field:"errorCounts",align:"left"},{title:"出入库类型",field:"inventoryType",align:"center",width:100,formatter:function(e){return{value:e.inventoryType,type:e.inventoryType&&e.inventoryType.includes("盘盈")?"success":"danger"}}},{title:"出入库单号",field:"warehouseFormCode",align:"center",width:130},{title:"机构",field:"agencyName",align:"left",width:130},{title:"操作人",field:"operatorName",align:"center",width:90},{title:"操作时间",field:"operatorTime",align:"center",width:160,formatter:function(e){return{value:e.operatorTime?c["LongToDateTime"](e.operatorTime):"-"}}}],operation:{show:!1,width:"150",attr:[]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},computed:f({},Object(l["b"])(["userInfo"])),created:function(){},methods:{showAudit:function(e){this.editSetting.id=e.id,this.editSetting.info=JSON.stringify(e),this.editSetting.title="编辑",this.editSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},v=g,b=r("2877"),y=Object(b["a"])(v,n,a,!1,null,"5e44f3ca",null);t["default"]=y.exports},"18db":function(e,t,r){},1900:function(e,t,r){"use strict";r("7e09")},"19ac":function(e,t,r){},"1a07":function(e,t,r){},"1a8c":function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},"1aec":function(e,t,r){},"1d92":function(e,t,r){var n=r("e0ef");function a(e){return n(2,e)}e.exports=a},"1db4":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"wscn-http404-container"},[r("div",{staticClass:"wscn-http404"},[e._m(0),e._v(" "),r("div",{staticClass:"bullshit"},[r("div",{staticClass:"bullshit__oops"},[e._v("OOPS!")]),e._v(" "),r("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),e._v(" "),r("div",{staticClass:"bullshit__info"},[e._v("请检查您输入的URL是否正确,或单击下面的按钮返回主页.")]),e._v(" "),r("router-link",{attrs:{to:{path:"/dashboard"}}},[r("span",{staticClass:"bullshit__return-home"},[e._v("返回控制台")])])],1)])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:r("a36b"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child left",attrs:{src:r("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child mid",attrs:{src:r("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child right",attrs:{src:r("26fc"),alt:"404"}})])}],o={name:"Page404",data:function(){return{}},computed:{message:function(){return"你不能进入这个页面..."}},methods:{}},i=o,s=(r("0a3d"),r("2877")),l=Object(s["a"])(i,n,a,!1,null,"27c79d55",null);t["default"]=l.exports},"1ee6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=(r("6ec5"),r("9960")),c=r("dee4"),u=r("6f7e"),d=r("ecfc"),f={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],myImport:l["default"]},data:function(){return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"inWarehouseId",queryKey:"tenantId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"inWarehouseId",label:"部门",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all",label:"name",value:"id"},defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"flowType",label:"类型",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"dict_label",value:"dict_value",url:s["a"].apiBaseURL+"/permit/dict/data/type/FLOW_TYPE"}},{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"dealTimeStart",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"dealTimeEnd",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(c["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/warehouse/flow/getDeptTaiZhangList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"机构",field:"agencyName",align:"left",width:130},{title:"部门",field:"deptName",align:"left",width:130},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:130},{title:"规格型号",field:"baseGoodsModelsName",align:"left",width:130},{title:"类型",field:"summary",align:"center",formatter:function(e){var t=Object(d["a"])(e);return{value:t}}},{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"数量",field:"thisCount",align:"center",width:100},{title:"操作前数量",field:"initialCount",align:"center",width:100},{title:"操作后数量",field:"endCount",align:"center",width:100},{title:"操作时间",field:"dealTime",align:"center",width:160,formatter:function(e){return{value:u["LongToDateTime"](e.dealTime)}}}],paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},p=f,m=r("2877"),h=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=h.exports},"221f":function(e,t,r){"use strict";r("d157")},2236:function(e,t,r){var n=r("5a43");function a(e){if(Array.isArray(e))return n(e)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},2359:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",staticStyle:{width:"500px",margin:"auto"},attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"旧密码",prop:"oldMixPd"}},[r("el-input",{attrs:{placeholder:"请输入旧密码",type:"password","show-password":""},model:{value:e.user.oldMixPd,callback:function(t){e.$set(e.user,"oldMixPd",t)},expression:"user.oldMixPd"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"新密码",prop:"newMixPd"}},[r("el-input",{attrs:{placeholder:"请输入新密码",type:"password","show-password":""},model:{value:e.user.newMixPd,callback:function(t){e.$set(e.user,"newMixPd",t)},expression:"user.newMixPd"}}),e._v(" "),r("div",{staticStyle:{"font-size":"12px",color:"#999"}},[r("span",{staticStyle:{color:"red","margin-right":"4px"}},[e._v("*")]),e._v("密码长度在 8 到 12 个字符间,必须包含数字、大小写字母、特殊字符")])],1),e._v(" "),r("el-form-item",{attrs:{label:"确认密码",prop:"btnMixPd"}},[r("el-input",{attrs:{placeholder:"请确认新密码",type:"password","show-password":""},model:{value:e.user.btnMixPd,callback:function(t){e.$set(e.user,"btnMixPd",t)},expression:"user.btnMixPd"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],o=r("c24f"),i=r("21f2"),s={data:function(){var e=this,t=function(t,r,n){e.user.newMixPd!==r?n(new Error("两次输入的密码不一致")):n()};return{user:{oldMixPd:void 0,newMixPd:void 0,btnMixPd:void 0},rules:{oldMixPd:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newMixPd:[{required:!0,message:"新密码不能为空",trigger:"blur"},{min:8,max:12,message:"长度在 8 到 12 个字符",trigger:"blur"}],btnMixPd:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var r={oldMixPd:Object(i["a"])(e.user.oldMixPd),newMixPd:Object(i["a"])(e.user.newMixPd),btnMixPd:Object(i["a"])(e.user.btnMixPd)};Object(o["n"])(r).then((function(t){e.user={oldMixPd:void 0,newMixPd:void 0,btnMixPd:void 0},e.$modal.msgSuccess("修改成功"),e.$store.dispatch("user/logout").then((function(){location.reload()}))}))}}))},close:function(){var e=this;this.$store.dispatch("tagsView/delView",this.$route).then((function(t){var r=t.visitedViews,n=r.slice(-1)[0];n?e.$router.push(n.fullPath):"Dashboard"===e.$route.name?e.$router.replace({path:"/redirect"+e.$route.fullPath}):e.$router.push("/dashboard")}))}}},l=s,c=r("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"24e2":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"errPage-container"},[r("el-button",{staticClass:"pan-back-btn",attrs:{size:"mini",icon:"el-icon-arrow-left"},on:{click:e.back}},[e._v(" 返回 ")]),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("h1",{staticClass:"text-jumbo text-ginormous"},[e._v("Oops!")]),e._v("\n gif来源"),r("a",{attrs:{href:"https://zh.airbnb.com/",target:"_blank",rel:"noreferrer noopener"}},[e._v("airbnb")]),e._v(" 页面\n "),r("h2",[e._v("你没有权限去该页面")]),e._v(" "),r("h6",[e._v("如有不满请联系你领导")]),e._v(" "),r("ul",{staticClass:"list-unstyled"},[r("li",[e._v("或者你可以去:")]),e._v(" "),r("li",{staticClass:"link-type"},[r("router-link",{attrs:{to:"/dashboard"}},[e._v(" 回首页 ")])],1),e._v(" "),r("li",{staticClass:"link-type"},[r("a",{attrs:{href:"https://www.crmeb.com/"}},[e._v("随便看看")])]),e._v(" "),r("li",[r("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.dialogVisible=!0}}},[e._v("点我看图")])])])]),e._v(" "),r("el-col",{attrs:{span:12}},[r("img",{attrs:{src:e.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),e._v(" "),r("el-dialog",{attrs:{visible:e.dialogVisible,title:"随便看"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("img",{staticClass:"pan-img",attrs:{src:e.ewizardClap}})])],1)},a=[],o=r("cc6c"),i=r.n(o),s={name:"Page401",data:function(){return{errGif:i.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)}}},l=s,c=(r("e62a"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,"11cd9528",null);t["default"]=u.exports},2528:function(e,t,r){"use strict";r("f146")},2655:function(e,t){function r(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=r,e.exports.default=r},"26fc":function(e,t,r){e.exports=r.p+"static/img/404_cloud.0f4bc32b.png"},"271c":function(e,t,r){"use strict";r.r(t);var n=r("6f7e"),a=r("2f62"),o=r("ac29"),i=r("dee4");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=f(e,"string");return"symbol"==s(t)?t:t+""}function f(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}t["default"]={data:function(){return{loading:!1,list:[],items:[],filterFrom:{},editSetting:{title:"",id:"",orgId:"",show:!1},uploadPageSetting:{title:"上传页面",id:"",orgId:"",show:!1},detailSetting:{title:"详情",id:"",show:!1},pageNum:1,pageSize:10,total:0}},computed:c(c({},Object(a["b"])(["userInfo"])),{},{clientHeight:function(){return document.documentElement.clientHeight}}),created:function(){},filters:{formatTime:function(e){return e?n["LongToDateTime"](e):"-"}},methods:{handleExport:function(e,t,r){var n=this,a=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});o[e](r).then((function(e){console.log(e),Object(i["a"])(e),n.$message.success("导出成功!"),a.close()})).catch((function(){a.close()}))},handleAdd:function(){this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0},handleEdit:function(e){this.editSetting.id=e.id,this.editSetting.info=null,this.editSetting.title="编辑",this.editSetting.show=!0},handleDetail:function(e){this.detailSetting.id=e.id,this.detailSetting.title="详情",this.detailSetting.show=!0},handleUploadPage:function(e){this.uploadPageSetting.id=e.id,this.uploadPageSetting.title="导入",this.uploadPageSetting.show=!0},handleSizeChange:function(e){this.pageSize=e,this.search({pageNum:1})},handleCurrentChange:function(e){this.pageNum=e,this.search()},search:function(e){e&&(this.pageNum=e),this.fetchData()},refreshData:function(){this.pageNum=1,this.pageSize=10,this.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}}},"278c":function(e,t,r){var n=r("c135"),a=r("9b42"),o=r("6613"),i=r("c240");function s(e,t){return n(e)||a(e,t)||o(e,t)||i()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"279c":function(e,t,r){"use strict";r("6cff")},2808:function(e,t,r){"use strict";r("84d8")},"29f3":function(e,t){var r=Object.prototype,n=r.toString;function a(e){return n.call(e)}e.exports=a},"2a3d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win",{attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-form",{staticClass:"demo-ruleForm",attrs:{model:e.formData,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色配置",prop:"roleSetting"}},[r("el-checkbox",{on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),r("div",{staticStyle:{margin:"15px 0"}}),e._v(" "),r("el-checkbox-group",{on:{change:e.handleCheckedCitiesChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},e._l(e.roleOptions,(function(t,n){return r("el-checkbox",{key:t.role_id,attrs:{label:t.role_id}},[e._v(e._s(t.role_name))])})),1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("f7d1"),i=r("f6e8"),s=r("3528"),l=r("c24f");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};d(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),d(k,l,"Generator"),d(k,i,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function d(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){d(o,n,a,i,s,"next",e)}function s(e){d(o,n,a,i,s,"throw",e)}i(void 0)}))}}var p={components:{win:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,data_scope:null,checkAll:!1,checkedList:[],roleList:[{id:1,label:"王涵1"},{id:2,label:"王涵2"}],queryParams:{pageNum:1,pageSize:10,roleName:void 0,roleKey:void 0,status:0,orgId:1},roleOptions:[],roleCheckStrictly:!0,defaultProps:{children:"childList",label:"name"},formData:{userName:"",userCode:"",userPhone:"",sex:1,status:1,remark:"",seq:null}}},created:function(){var e=f(u().mark((function e(){return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.title=this.setting.title,null==this.setting.id){e.next=4;break}return e.next=4,this.getInfo();case 4:return e.next=6,this.getAllRole();case 6:this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getAllRole:function(){var e=f(u().mark((function e(){var t=this;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.data_scope=this.$store.getters.userInfo?this.$store.getters.userInfo.lv:"",e.next=3,s["k"]({dataScope:this.setting.data_scope}).then((function(e){t.roleOptions=e||[],t.loading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(e){this.checkedList=e?this.roleOptions.map((function(e){return e.role_id})):[]},handleCheckedCitiesChange:function(e){var t=e.length;this.checkAll=t===this.roleOptions.length},getInfo:function(){var e=f(u().mark((function e(){var t=this;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["h"]({id:this.setting.id}).then((function(e){var r=e.data;t.formData=Object.assign(t.formData,r),t.checkedList=e.list.map((function(e){return e.role_id})),e.list.length===t.roleOptions.length&&t.handleCheckedCitiesChange(e.list)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.formData={userName:"",userCode:"",userPhone:"",sex:1,status:1,remark:"",seq:null},this.$emit("close")},save:function(){var e=this,t=Object.assign({},this.formData);if(t.roleList=this.checkedList,t.id){if(this.loading)return;this.loading=!0,l["m"](t).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})).catch((function(){e.loading=!1}))}}}},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,null,null);t["default"]=g.exports},"2b3e":function(e,t,r){var n=r("585a"),a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")();e.exports=o},"2c4d":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"g",(function(){return i})),r.d(t,"e",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return u}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/fin/warehouse/ledger/getListExport",responseType:"blob",method:"post",params:e})}function o(e){return Object(n["a"])({url:"/pc/warehouse/warningConfig/add",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/pc/warehouse/warningConfig/upd",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/pc/warehouse/warningConfig/getById",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/pc/warehouse/warningConfig/del",method:"delete",data:e})}function c(e){return Object(n["a"])({url:"/pc/warehouse/warning/getList",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/pc/warehouse/warning/getWarningTypeNum",method:"get",params:e})}},"2c72":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return i}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/user/select/department",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/base/warehouse/manager/save",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/pc/base/warehouse/manager/list",method:"get",params:e})}},"2d6d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAADU0lEQVR4AZWVQ6AsRx/Ff6dHz7Zx9X2xbTu7WPtolewugnW0j23bts1n229QJz23ejp+OO2uql/9z6mB2LbwZ2fPoFC8DTyHRqNPe90/h21I/w06cwTFIVdUt1av/PHn+SOQ6GybSqlc6NVu9/btFNBfnX8k9m0LFi2f8cnn33vjxs0gafCggez2/9nMmjFxDrhPu997+7aA0V6peNuGDZuPfPfDr7102Sq1OpnsJDF18hj23auLIUMG3k7trzEot1dO7VVrV37z/dwRX3z1C+C8Sw5NhRCZ9tytjf93TadcLvVql7v7ANRvL9Ftc+YtnfHBx9+xYcMmIwn/MxA5VX+bTXZNq2SvPdrVMXvSHOw++dvz/eRzH7B4ySqk3BxjJu1KeeBwWqpuXusVi75WBGPnlcYR06eO58Rj9qaIYMHCJgwgQCIwHHja9UyadQgt/fDxfXr1wctQwCYaz2X71zlLhUwRTMPOc2o+GGTzFwVDowFgAcT2SDZIjk9FEhEMBDvrLoEfvuU0kHTACVdx4IlX4yYwGGNkjBQvrTwxCIoQO4IBZX6yZjuvxOB6sIiSHFokHAJSkgEV7ThOHEkCS8h2MILYHifOpXiKkyaJiRnKNELMxETJzu7dSoLg2I/cIohYJRgHtSzH1yHEvtkqC9xi555DXDBQBCtmTqRHa0UScMDBcbBTXzZKJBsUiAqYmlFkhTxnGRIpD6FIy5yzLEHx3gIIAfL2YOwYbxzeMgTZVCTxRqlAmesQK6becFM5sB5MMIqZR2bcsDJoAqarYwKJhJoiXu2/LlRwfmQvjWKFThJpxvTRIJB/O/dipJ6vvlo44823f2Ll6o00QlzR9OpgYxDRRz+gIFFIpGIiRo0cxHHH/p+O9glzsC8Rmfzb+b1bqrWejz76jdff/JF6DrSCyT5r0IQVk34gRx7ezv77zlhTqZRvgg03aubja3JghF48A2q9a9dvueiFF7/hux+W9EPTQ0hOYSoIZs0czemn7cnwYQNfx8VLNPP2Odv+C5h3wcUQer78YuGMN976idWrNwEwcuRATjhuFzo6x82hoRR09+v8TWIb8vw0hi3Vno8/mgvAfvtNX1Mpp/ZCtAewU8A8hkK9l4Tp1OppVdv+G/0dKLn2DSGdBAMAAAAASUVORK5CYII="},"2e39":function(e,t,r){"use strict";function n(e,t){var r=t.length,n=e.length;if(n>r)return!1;if(n===r)return e===t;e:for(var a=0,o=0;a<n;a++){var i=e.charCodeAt(a);while(o<r)if(t.charCodeAt(o++)===i)continue e;return!1}return!0}e.exports=n},"2f04":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{ref:"tableheader",staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"菜单名称",prop:"menuName"}},[r("el-input",{attrs:{placeholder:"请输入菜单名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.menuName,callback:function(t){e.$set(e.queryParams,"menuName",t)},expression:"queryParams.menuName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{attrs:{placeholder:"菜单状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.constants.normalOrDisabled,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:add"],expression:"['system:menu:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增\n ")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠\n ")])],1)],1)],1),e._v(" "),e.refreshTable?r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.menuList,"row-key":"menu_id","default-expand-all":e.isExpandAll,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[r("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","show-overflow-tooltip":!0,width:"160"}}),e._v(" "),r("el-table-column",{attrs:{prop:"icon",label:"图标",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("i",{class:"el-icon-"+e.row.icon,staticStyle:{"font-size":"20px"}})]}}],null,!1,244404100)}),e._v(" "),r("el-table-column",{attrs:{prop:"order_num",label:"排序",width:"60"}}),e._v(" "),r("el-table-column",{attrs:{prop:"perms",label:"权限标识","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{prop:"component",label:"组件路径","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{prop:"status",label:"状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.status?"正常":"禁用"))])]}}],null,!1,2073710069)}),e._v(" "),r("el-table-column",{attrs:{prop:"is_show",label:"可见",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:1==t.row.is_show?"":"danger"}},[e._v(e._s(1==t.row.is_show?"显示":"隐藏"))])]}}],null,!1,4152849384)}),e._v(" "),r("el-table-column",{attrs:{label:"菜单类型",align:"center",prop:"menu_type"}}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center","min-width":"130",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:edit"],expression:"['system:menu:edit']"}],attrs:{size:"mini",type:"text"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改\n ")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:add"],expression:"['system:menu:add']"}],attrs:{size:"mini",type:"text"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("新增\n ")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:remove"],expression:"['system:menu:remove']"}],attrs:{size:"mini",type:"text"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除\n ")])]}}],null,!1,1041871444)})],1):e._e()],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"上级菜单"}},[r("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级菜单"},model:{value:e.form.parent_id,callback:function(t){e.$set(e.form,"parent_id",t)},expression:"form.parent_id"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"菜单类型",prop:"menu_type"}},[r("el-radio-group",{model:{value:e.form.menu_type,callback:function(t){e.$set(e.form,"menu_type",t)},expression:"form.menu_type"}},[r("el-radio",{attrs:{label:"M"}},[e._v("目录")]),e._v(" "),r("el-radio",{attrs:{label:"C"}},[e._v("菜单")]),e._v(" "),r("el-radio",{attrs:{label:"F"}},[e._v("按钮")])],1)],1)],1),e._v(" "),"F"!=e.form.menu_type?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"菜单图标",prop:"icon"}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"请选择菜单图标"},model:{value:e.form.icon,callback:function(t){e.$set(e.form,"icon","string"===typeof t?t.trim():t)},expression:"form.icon"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-circle-plus-outline"},on:{click:e.addIcon},slot:"append"})],1)],1)],1)],1):e._e(),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"菜单名称",prop:"menu_name"}},[r("el-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.form.menu_name,callback:function(t){e.$set(e.form,"menu_name",t)},expression:"form.menu_name"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"显示排序",prop:"order_num"}},[r("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.order_num,callback:function(t){e.$set(e.form,"order_num",t)},expression:"form.order_num"}})],1)],1),e._v(" "),"F"!=e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"选择是外链则路由地址需要以`http(s)://`开头",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 是否外链\n ")],1),e._v(" "),r("el-radio-group",{model:{value:e.form.is_frame,callback:function(t){e.$set(e.form,"is_frame",t)},expression:"form.is_frame"}},[r("el-radio",{attrs:{label:"0"}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{label:"1"}},[e._v("否")])],1)],1)],1):e._e(),e._v(" "),"F"!=e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"path"}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 路由地址\n ")],1),e._v(" "),r("el-input",{attrs:{placeholder:"请输入路由地址"},model:{value:e.form.path,callback:function(t){e.$set(e.form,"path",t)},expression:"form.path"}})],1)],1):e._e(),e._v(" "),"C"==e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"component"}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"访问的组件路径,如:`system/user/index`,默认在`views`目录下",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 组件路径\n ")],1),e._v(" "),r("el-input",{attrs:{placeholder:"请输入组件路径"},model:{value:e.form.component,callback:function(t){e.$set(e.form,"component",t)},expression:"form.component"}})],1)],1):e._e(),e._v(" "),"M"!=e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"请输入权限标识",maxlength:"100"},model:{value:e.form.perms,callback:function(t){e.$set(e.form,"perms",t)},expression:"form.perms"}}),e._v(" "),r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 权限字符\n ")],1)],1)],1):e._e(),e._v(" "),"C"==e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"请输入路由参数",maxlength:"255"},model:{value:e.form.query,callback:function(t){e.$set(e.form,"query",t)},expression:"form.query"}}),e._v(" "),r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:'访问路由的默认传递参数,如:`{"id": 1, "name": "ry"}`',placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 路由参数\n ")],1)],1)],1):e._e(),e._v(" "),"C"==e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"选择是则会被`keep-alive`缓存,需要匹配组件的`name`和地址保持一致",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 是否缓存\n ")],1),e._v(" "),r("el-radio-group",{model:{value:e.form.is_cache,callback:function(t){e.$set(e.form,"is_cache",t)},expression:"form.is_cache"}},[r("el-radio",{attrs:{label:1}},[e._v("缓存")]),e._v(" "),r("el-radio",{attrs:{label:0}},[e._v("不缓存")])],1)],1)],1):e._e(),e._v(" "),"F"!=e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"选择隐藏则路由将不会出现在侧边栏,但仍然可以访问",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 显示状态\n ")],1),e._v(" "),r("el-radio-group",{model:{value:e.form.is_show,callback:function(t){e.$set(e.form,"is_show",t)},expression:"form.is_show"}},e._l(e.constants.showStatus,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label)+"\n ")])})),1)],1)],1):e._e(),e._v(" "),"F"!=e.form.menu_type?r("el-col",{attrs:{span:12}},[r("el-form-item",[r("span",{attrs:{slot:"label"},slot:"label"},[r("el-tooltip",{attrs:{content:"选择禁用则路由将不会出现在侧边栏,也不能被访问",placement:"top"}},[r("i",{staticClass:"el-icon-question"})]),e._v("\n 菜单状态\n ")],1),e._v(" "),r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.constants.normalOrDisabled,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label)+"\n ")])})),1)],1)],1):e._e()],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=r("a6dc"),i=r("ca17"),s=r.n(i),l=(r("542c"),{name:"Menu",components:{Treeselect:s.a},data:function(){return{constants:this.$constants,loading:!0,showSearch:!0,menuList:[],menuOptions:[],title:"",open:!1,isExpandAll:!1,refreshTable:!0,queryParams:{menuName:void 0,visible:void 0},form:{menu_id:void 0,parent_id:0,menu_name:void 0,icon:void 0,menu_type:"M",order_num:void 0,is_frame:"1",is_cache:"0",visible:"0",status:"0"},rules:{menu_name:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],order_num:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}],path:[{required:!0,message:"路由地址不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{addIcon:function(){var e=this;this.$modalIcon((function(t){e.form.icon=t}))},getList:function(){var e=this;this.loading=!0,Object(o["d"])(this.queryParams).then((function(t){e.menuList=e.handleTree(t,"menu_id","parent_id"),e.loading=!1}))},normalizer:function(e){return e.children&&!e.children.length&&delete e.children,{id:e.menu_id,label:e.menu_name,children:e.children}},getTreeselect:function(){var e=this;Object(o["d"])().then((function(t){e.menuOptions=[];var r={menu_id:0,menu_name:"主类目",children:[]};r.children=e.handleTree(t,"menu_id","parent_id"),e.menuOptions.push(r)}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={menu_id:"",parent_id:0,menu_name:"",icon:"",menu_type:"M",order_num:"",is_frame:"1",is_cache:"0",visible:"0",status:"0"},this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(e){this.reset(),this.getTreeselect(),null!=e&&e.menu_id?this.form.parent_id=e.menu_id:this.form.parent_id=0,this.open=!0,this.title="添加菜单"},toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},handleUpdate:function(e){var t=this;this.reset(),this.getTreeselect(),Object(o["c"])(e.menu_id).then((function(e){t.form=e,t.open=!0,t.title="修改菜单"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(console.log(e.form,"0-0-0-"),void 0!=e.form.menu_id?(delete e.form.icon_info,Object(o["g"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()}))):(delete e.form.icon_info,Object(o["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()}))))}))},handleDelete:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.menu_name+'"的数据项?').then((function(){return Object(o["b"])(e.menu_id)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))}}}),c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"2f73":function(e,t,r){},"2ffd":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.detailSetting.show?r("detail",{attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1},search:e.search}}):e._e()],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("31eb"),c=r("9960"),u=r("6f7e"),d={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],detail:l["default"],myImport:c["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"cascader",dataIndex:"outAgencyId",label:"调拨机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},defaultValue:"",options:[]},{type:"cascader",dataIndex:"inAgencyId",label:"接收机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},defaultValue:"",options:[]},{type:"text",dataIndex:"operatorName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"createTimeStart",label:"申请时间",defaultValue:""},{type:"date-picker",dataIndex:"createTimeEnd",label:"至",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"接收时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},detailSetting:{title:"",id:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/l/wh/form/transfer/detail/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"物品名称",field:"goodsName",align:"left",width:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",width:130},{title:"数量",field:"counts",align:"center"},{title:"接受机构",field:"inAgencyName",align:"left",width:130},{title:"创建人",field:"operatorName",align:"center",width:90},{title:"申请时间",field:"createTime",align:"center",width:160,formatter:function(e){return{value:u["LongToDateTime"](e.createTime)}}},{title:"接收时间",field:"inTime",align:"center",width:160,formatter:function(e){return{value:e.inTime?u["LongToDateTime"](e.inTime):"-"}}},{title:"调拨机构",field:"outAgencyName",align:"left",width:130},{title:"调拨人",field:"outOperatorName",align:"center",width:90,formatter:function(e){return{value:e.outOperatorName||"-"}}},{title:"调拨时间",field:"outputTime",align:"center",width:160,formatter:function(e){return{value:e.outputTime?u["LongToDateTime"](e.outputTime):"-"}}}],operation:{show:!0,width:100,attr:[{title:"详情",events:function(t){e.showDetail(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{showDetail:function(e){this.detailSetting.id=e.id,this.detailSetting.info=JSON.stringify(e),this.detailSetting.title="详情",this.detailSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.filterFrom.createTimeStart&&(this.filterFrom.createTimeStart=this.filterFrom.createTimeStart.replace(/\-/g,"")),this.filterFrom.createTimeEnd&&(this.filterFrom.createTimeEnd=this.filterFrom.createTimeEnd.replace(/\-/g,"")),this.filterFrom.startTime&&(this.filterFrom.startTime=this.filterFrom.startTime.replace(/\-/g,"")),this.filterFrom.endTime&&(this.filterFrom.endTime=this.filterFrom.endTime.replace(/\-/g,"")),this.search(1)}}},f=d,p=r("2877"),m=Object(p["a"])(f,n,a,!1,null,null,null);t["default"]=m.exports},"31eb":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("调拨单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("调拨机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.outAgencyName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("接收机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.inAgencyName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("申请调拨时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.createTime)))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("状态:")]),e._v(" "),r("span",[e._v(e._s(e.getStatesLabel(e.detail.states)))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("调拨时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.outputTime)))])])],1),e._v(" "),e.fileList&&e.fileList.length?r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("调拨手续照片:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1):e._e(),e._v(" "),e._l(e.detail.formTransferGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.categoryName))])]),e._v(" "),r("el-col",{attrs:{span:12}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsName))])])],1),e._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.baseGoodsModelsName)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"调拨数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.counts)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.totalAmount)+"\n ")]}}],null,!0)})],1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("a083"),i=r("6f7e"),s=r("f76d"),l=r("822f"),c=r("dee4"),u=r("c82c"),d=r.n(u),f=(r("0808"),null),p={mixins:[l["default"]],components:{winMd:s["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,detail:{},fileList:[]}},filters:{formatTime:function(e){return e?i["LongToDateTime"](e):"-"}},created:function(){var e=this;Object(o["e"])({id:this.setting.id}).then((function(t){e.detail=t,e.fileList=e.detail.procureDoc?JSON.parse(e.detail.procureDoc):[],e.loading=!1,e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=f&&f.destroy();var e=document.querySelector("#uploadPreviewImages");f=new d.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}f.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(c["c"])()+e},close:function(){this.$emit("close")}}},m=p,h=(r("0e548"),r("2877")),g=Object(h["a"])(m,n,a,!1,null,"4e5be1fc",null);t["default"]=g.exports},3401:function(e,t,r){"use strict";r("4e10")},3430:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/detail",method:"get",params:e})}},3528:function(e,t,r){"use strict";r.d(t,"j",(function(){return a})),r.d(t,"k",(function(){return o})),r.d(t,"i",(function(){return i})),r.d(t,"a",(function(){return s})),r.d(t,"m",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"h",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"l",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return h})),r.d(t,"e",(function(){return g}));var n=r("b775");function a(e){return Object(n["a"])({url:"/system/role/list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/fin/sys/server/selectByDataScope",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/system/role/view/"+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/role/add",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/system/role/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/system/role/dataScope",method:"put",data:e})}function u(e){return Object(n["a"])({url:"/system/role/edit",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/system/role/remove/"+e,method:"get"})}function f(e){return Object(n["a"])({url:"/system/role/select/authUser/allocatedList",method:"get",params:e})}function p(e){return Object(n["a"])({url:"/system/role/select/authUser/unallocatedList",method:"get",params:e})}function m(e){return Object(n["a"])({url:"/system/role/select/authUser/cancel",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/system/role/authUser/cancelAll",method:"post",params:e})}function g(e){return Object(n["a"])({url:"/system/role/select/authUser/all",method:"post",params:e})}},"35f5":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"仓库名称",prop:"warehouseName"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入仓库名称",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.warehouseName,callback:function(t){e.$set(e.formData,"warehouseName",t)},expression:"formData.warehouseName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"仓库类型",prop:"classificationCode"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择仓库类型"},model:{value:e.formData.classificationCode,callback:function(t){e.$set(e.formData,"classificationCode",t)},expression:"formData.classificationCode"}},e._l(e.classList,(function(e){return r("el-option",{key:e.dict_code,attrs:{label:e.dict_label,value:e.dict_code}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"所属机构",prop:"agencyId"}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择所属机构",options:e.treeList,props:{checkStrictly:!0,emitPath:!1,value:"id"}},model:{value:e.formData.agencyId,callback:function(t){e.$set(e.formData,"agencyId",t)},expression:"formData.agencyId"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"地址"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",rows:3,placeholder:"请输入内容"},model:{value:e.formData.adress,callback:function(t){e.$set(e.formData,"adress",t)},expression:"formData.adress"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"states"}},[r("el-radio-group",{model:{value:e.formData.states,callback:function(t){e.$set(e.formData,"states",t)},expression:"formData.states"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("启用")]),e._v(" "),r("el-radio",{attrs:{label:0,border:""}},[e._v("禁用")])],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("e694"),i=r("f6e8"),s=r("6ec5"),l=r("ed08");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};d(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),d(k,l,"Generator"),d(k,i,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function d(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){d(o,n,a,i,s,"next",e)}function s(e){d(o,n,a,i,s,"throw",e)}i(void 0)}))}}var p={components:{winSm:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,classList:[],treeList:[],checkAll:!1,checkedList:[],formData:{warehouseCode:null,classificationId:null,classificationCode:null,states:1,agencyId:""},rules:{warehouseName:[{required:!0,message:"请输入",trigger:"blur"}],classificationCode:[{required:!0,message:"请选择",trigger:"blur"}],agencyId:[{required:!0,message:"请选择",trigger:["blur","change"]}],states:[{required:!0,message:"请选择状态",trigger:"blur"}]}}},created:function(){var e=f(u().mark((function e(){return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.class_List();case 2:return e.next=4,this.tree_List();case 4:this.loading=!1,this.setting.info&&(this.formData=Object.assign({},JSON.parse(this.setting.info)));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{class_List:function(){var e=f(u().mark((function e(){var t=this;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["d"]().then((function(e){e&&(e.map((function(e){e.dict_code=e.dict_code.toString()})),t.classList=e)}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),tree_List:function(){var e=f(u().mark((function e(){var t=this;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["l"]().then((function(e){e&&(t.treeList=e,t.$set(t.formData,"agencyIds",Object(l["a"])(t.treeList,t.formData.agencyId)))}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),getEditInfo:function(e){},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);if(e.loading)return;e.loading=!0,e.setting.id?s["j"](r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})).catch((function(){e.loading=!1})):(r.orgId=e.setting.orgId,s["c"](r).then((function(t){e.loading=!1,t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})).catch((function(){e.loading=!1})))}else e.$message.error("校验未通过,请检查。")}))}}},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,null,null);t["default"]=g.exports},3679:function(e,t,r){"use strict";r("b2f5")},3729:function(e,t,r){var n=r("9e69"),a=r("00fd"),o=r("29f3"),i="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?s:i:l&&l in Object(e)?a(e):o(e)}e.exports=c},"3cfc":function(e,t,r){"use strict";r("9bf0")},"3ef9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title+"盘点",width:"800px"},on:{close:e.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"盘点单名",prop:"businessFormName"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20",placeholder:"请输入"},model:{value:e.formData.businessFormName,callback:function(t){e.$set(e.formData,"businessFormName",t)},expression:"formData.businessFormName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"盘点仓库",prop:"warehouseId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},on:{change:e.getPdr},model:{value:e.formData.warehouseId,callback:function(t){e.$set(e.formData,"warehouseId",t)},expression:"formData.warehouseId"}},e._l(e.warehouseOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.warehouseName,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"盘点人",prop:"operatorUserId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.formData.operatorUserId,callback:function(t){e.$set(e.formData,"operatorUserId",t)},expression:"formData.operatorUserId"}},e._l(e.operatorOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.managerName,value:e.managerId}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"监盘人",prop:"monitorUserId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.formData.monitorUserId,callback:function(t){e.$set(e.formData,"monitorUserId",t)},expression:"formData.monitorUserId"}},e._l(e.operatorOptions2,(function(e){return r("el-option",{key:e.id,attrs:{label:e.userName,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",resize:"none",maxlength:"100","show-word-limit":""},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("6ec5"),i=r("806c"),s=r("2c72"),l=r("e694"),c=r("f6e8"),u=r("6f7e"),d=r("2f62");function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=v(e,"string");return"symbol"==f(t)?t:t+""}function v(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={components:{winSm:l["a"],myButton:c["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{count:0,loading:!0,checkAll:!1,checkedList:[],warehouseOptions:[],operatorOptions:[],operatorOptions2:[],formData:{businessFormName:"",warehouseId:"",operatorUserId:"",monitorUserId:"",remark:""},rules:{businessFormName:[{required:!0,message:"请输入",trigger:"blur"}],warehouseId:[{required:!0,message:"请选择",trigger:"blur"}],operatorUserId:[{required:!0,message:"请选择",trigger:"blur"}],monitorUserId:[{required:!0,message:"请选择",trigger:"blur"}]}}},computed:m({},Object(d["b"])(["userInfo"])),created:function(){this.setting.id?(this.formData=Object.assign({},JSON.parse(this.setting.info)),this.$set(this.formData,"operatorUserId",this.formData.operatorId),this.$set(this.formData,"monitorUserId",this.formData.operatorId2),this.$set(this.formData,"remark",this.formData.beiz1)):this.formData.businessFormName=Object(u["formatDate"])(new Date,"yyyy年MM月份盘点"),this.handleSelectTenantWarehouse(),this.getJpr()},methods:{handleSelectTenantWarehouse:function(){var e=this;Object(o["p"])({agencyId:this.userInfo.tenantId}).then((function(t){e.count++,e.warehouseOptions=t,e.count>1&&(e.loading=!1)}))},getPdr:function(){var e=this;Object(s["c"])({warehouseId:this.formData.warehouseId}).then((function(t){e.count++,e.operatorOptions=t,e.count>1&&(e.loading=!1)}))},getJpr:function(){var e=this;Object(o["q"])({tenantId:this.userInfo.tenantId}).then((function(t){e.count++,e.operatorOptions2=t,e.count>1&&(e.loading=!1)}))},getEditInfo:function(e){},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);e.loading=!0,e.setting.id?Object(i["d"])(r).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(){e.loading=!1})):Object(i["a"])(r).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(){e.loading=!1}))}else e.$message.error("校验未通过,请检查。")}))}}},y=b,w=r("2877"),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},"3f97":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"选择用户",visible:e.visible,width:"800px",top:"5vh","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[r("el-form",{ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[r("el-input",{attrs:{placeholder:"请输入用户名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[r("el-input",{attrs:{placeholder:"请输入手机号码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phonenumber,callback:function(t){e.$set(e.queryParams,"phonenumber",t)},expression:"queryParams.phonenumber"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",[r("el-table",{ref:"table",attrs:{data:e.userList,height:"260px"},on:{"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"用户名称",prop:"user_name","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"用户昵称",prop:"nick_name","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"邮箱",prop:"email","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"手机",prop:"phonenumber","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("dict-tag",{attrs:{options:e.dict.type.sys_normal_disable,value:t.row.status}})]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.create_time)))])]}}])})],1),e._v(" "),r("el-pagination",{attrs:{"current-page":e.queryParams.pageNum,"page-sizes":e.constants.page.limit,layout:e.constants.page.layout,total:this.total},on:{"size-change":e.getList,"current-change":e.getList}})],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.handleSelectUser}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取 消")])],1)],1)},a=[],o=r("3528"),i={props:{roleId:{type:[Number,String]}},data:function(){return{constants:this.$constants,visible:!1,userIds:[],total:0,userList:[],queryParams:{pageNum:1,pageSize:10,roleId:void 0,userName:void 0,phonenumber:void 0}}},methods:{show:function(){this.queryParams.roleId=this.roleId,this.getList(),this.visible=!0},clickRow:function(e){this.$refs.table.toggleRowSelection(e)},handleSelectionChange:function(e){this.userIds=e.map((function(e){return e.id}))},getList:function(){var e=this;Object(o["l"])(this.queryParams).then((function(t){e.userList=t.datas,e.total=t.totalRows}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectUser:function(){var e=this,t=this.queryParams.roleId,r=this.userIds.join(",");""!=r?Object(o["e"])({roleId:t,userIds:r}).then((function(t){e.$modal.msgSuccess(t.msg),1===t.code&&(e.visible=!1,e.$emit("ok"))})):this.$modal.msgError("请选择要分配的用户")}}},s=i,l=r("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"3fb2":function(e,t,r){"use strict";r("95d7")},"3fe1":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.detailSetting.show?r("detail",{attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("6f7e"),i=r("80cb"),s=r("f6e8"),l=r("433d"),c=r("bee9"),u=r("6ec5"),d=r("9960"),f=r("dee4"),p={name:"index",components:{MyButton:s["a"],MyTableV2:i["a"],detail:c["default"],myImport:d["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"goodsTemplateId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:l["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:l["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"text",dataIndex:"createName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"incomeTimeStart",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"incomeTimeEnd",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{tenantId:null,agencyId:[],status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(f["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:l["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate"},onSuccess:null},detailSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:l["a"].apiBaseURL+"/pc/whForm/procure/detail/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",width:130},{title:"单价",field:"price",align:"center",formatter:function(e){return{value:e.price/100}}},{title:"入库数量",field:"counts",align:"center"},{title:"金额",field:"amount",align:"center",formatter:function(e){return{value:e.amount/100}}},{title:"所属机构",field:"agencyName",align:"center",width:130},{title:"创建人",field:"buyerName",align:"center",width:90},{title:"操作时间",field:"procureTime",align:"center",width:160,formatter:function(e){return{value:o["LongToDateTime"](e.procureTime)}}}],operation:{show:!0,width:100,attr:[{title:"详情",events:function(t){e.showDetail(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},updState:function(e){var t=this,r=0==e.status?"启用":"禁用";t.$modal.confirm("确认要"+r+'"'+e.name+'"吗?').then((function(){var n=Object.assign({},e);n.status=1==e.status?0:1,u["g"](n).then((function(n){n&&(e.status=1===e.status?0:1,t.$modal.msgSuccess(r+"成功"),t.search())}))}))},del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.name+'"的机构吗?').then((function(){u["e"]({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},showDetail:function(e){this.detailSetting.id=e.businessId,this.detailSetting.title="详情",this.detailSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.filterFrom.incomeTimeStart&&(this.filterFrom.incomeTimeStart=this.filterFrom.incomeTimeStart.replace(/\-/g,"")),this.filterFrom.incomeTimeEnd&&(this.filterFrom.incomeTimeEnd=this.filterFrom.incomeTimeEnd.replace(/\-/g,"")),this.search(1)}}},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,"509743b6",null);t["default"]=g.exports},"3fe4":function(e,t,r){},"408c":function(e,t,r){var n=r("2b3e"),a=function(){return n.Date.now()};e.exports=a},4148:function(e,t,r){"use strict";r("87e5")},4200:function(e,t,r){},4254:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"顶级单位",prop:"orgId"}},[r("el-select",{attrs:{placeholder:"选择顶级单位"},on:{change:function(t){return e.getList()}},model:{value:e.queryParams.orgId,callback:function(t){e.$set(e.queryParams,"orgId",t)},expression:"queryParams.orgId"}},e._l(this.rootOrgList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.dept_name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"部门名称",prop:"deptName"}},[r("el-input",{attrs:{placeholder:"请输入部门名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.deptName,callback:function(t){e.$set(e.queryParams,"deptName",t)},expression:"queryParams.deptName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{attrs:{placeholder:"部门状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.constants.normalOrDisabled,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.handleAdd(null)}}},[e._v("新增顶级机构")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1)],1),e._v(" "),e.refreshTable?r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.deptList,"row-key":"id","default-expand-all":e.isExpandAll,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[r("el-table-column",{attrs:{prop:"dept_name",label:"部门名称",width:"260"}}),e._v(" "),r("el-table-column",{attrs:{prop:"order_num",label:"排序",width:"200"}}),e._v(" "),r("el-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.status?"正常":"禁用"))])]}}],null,!1,2845654517)}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.create_time)))])]}}],null,!1,1382655209)}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:edit"],expression:"['system:dept:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("新增")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:remove:query"],expression:"['system:dept:remove:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,4234669894)})],1):e._e()],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"机构类型",prop:"org_type"}},[r("el-select",{attrs:{placeholder:"机构类型"},model:{value:e.form.org_type,callback:function(t){e.$set(e.form,"org_type",t)},expression:"form.org_type"}},e._l(e.constants.sysOrgType,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),r("el-row",[0!==e.form.parent_id?r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"上级机构",prop:"parent_id"}},[r("treeselect",{attrs:{options:e.deptOptions,normalizer:e.normalizer,placeholder:"选择上级机构"},model:{value:e.form.parent_id,callback:function(t){e.$set(e.form,"parent_id",t)},expression:"form.parent_id"}})],1)],1):e._e()],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"机构名称",prop:"dept_name"}},[r("el-input",{attrs:{placeholder:"请输入机构名称"},model:{value:e.form.dept_name,callback:function(t){e.$set(e.form,"dept_name",t)},expression:"form.dept_name"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"显示排序",prop:"order_num"}},[r("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.order_num,callback:function(t){e.$set(e.form,"order_num",t)},expression:"form.order_num"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"负责人",prop:"leader"}},[r("el-input",{attrs:{placeholder:"请输入负责人",maxlength:"20"},model:{value:e.form.leader,callback:function(t){e.$set(e.form,"leader",t)},expression:"form.leader"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"联系电话",prop:"phone"}},[r("el-input",{attrs:{placeholder:"请输入联系电话",maxlength:"11"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"请输入邮箱",maxlength:"50"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"机构状态"}},[r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.constants.normalOrDisabled,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=r("fcb7"),i=r("ca17"),s=r.n(i),l=(r("542c"),{name:"Dept",components:{Treeselect:s.a},data:function(){return{constants:this.$constants,loading:!0,showSearch:!0,deptList:[],rootOrgList:[],selectedRootOrgId:void 0,deptOptions:[],title:"",open:!1,isExpandAll:!0,refreshTable:!0,queryParams:{deptName:void 0,status:void 0,loadSelect:0},form:{},rules:{dept_name:[{required:!0,message:"部门名称不能为空",trigger:"blur"}],order_num:[{required:!0,message:"显示排序不能为空",trigger:"blur"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],phone:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},created:function(){this.getList()},methods:{switchOrgRootList:function(){},getList:function(){var e=this;this.loading=!0,this.queryParams.loadSelect=0,Object(o["d"])(this.queryParams).then((function(t){e.rootOrgList=t.rootOrgList,e.selectedRootOrgId=t.selectedRootOrgId,e.queryParams.orgId=e.selectedRootOrgId,e.deptList=e.handleTree(t.deptList,"id","parent_id"),e.loading=!1}))},normalizer:function(e){return e.children&&!e.children.length&&delete e.children,{id:e.id,label:e.dept_name,children:e.children}},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,parent_id:void 0,dept_name:void 0,order_num:void 0,leader:void 0,phone:void 0,email:void 0,status:"0",org_id:void 0,org_type:void 0},this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.queryParams.orgId=this.selectedRootOrgId,this.handleQuery()},handleAdd:function(e){var t=this;this.reset(),void 0!=e&&null!=e?(this.form.parent_id=e.id,this.form.org_type="9",this.queryParams.loadSelect=1,Object(o["d"])(this.queryParams).then((function(e){t.deptOptions=t.handleTree(e.deptList,"id","parent_id")})),this.title="添加机构"):(this.form.org_id=0,this.form.parent_id=0,this.form.org_type="0",this.title="添加顶级机构"),this.open=!0},toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},handleUpdate:function(e){var t=this;this.reset(),Object(o["c"])(e.id).then((function(e){t.form=e,t.form.org_type=e.org_type+"",t.form.status=e.status+"",t.open=!0,t.title="修改机构"})),this.queryParams.loadSelect=1,Object(o["d"])(this.queryParams).then((function(e){t.deptOptions=t.handleTree(e.deptList,"id","parent_id")}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.id?Object(o["i"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(o["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.dept_name+'"的数据项?').then((function(){return Object(o["b"])(e.id)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))}}}),c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},4260:function(e,t,r){"use strict";r("8dbd")},"433d":function(e,t,r){"use strict";var n=r("c559"),a={ftpUrl:n["a"].ftpUrl,apiBaseURL:n["a"].apiBaseURL};t["a"]=a},4391:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-col",{attrs:{span:5}},[r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("my-tree",{ref:"searchTree",attrs:{"tree-list":e.treeDataList},on:{setNode:e.nodeClick,search:e.search}})],1)],1),e._v(" "),r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"8px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:function(t){return e.search()}}}):e._e()],1)},a=[],o=r("befe"),i=r("80cb"),s=r("433d"),l=r("9af9"),c=r("6ec5"),u={name:"Dict",components:{MyTableV2:i["a"],myTree:o["a"],edit:l["default"]},data:function(){var e=this;return{treeDataList:[],constants:this.$constants,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,typeList:[],title:"",open:!1,dateRange:[],editSetting:{title:"",id:"",show:!1},filterFrom:{},items:[{type:"text",dataIndex:"name",label:"部门名称",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"code",label:"编号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"status",label:"状态",placeholder:"请选择",defaultValue:"1",options:[{value:"1",label:"启用"},{value:"0",label:"禁用"}]}],table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/fin/sys/tenant/department/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.handleAdd(null)}}]},columns:[{title:"编号",field:"code",align:"center",width:80},{title:"部门",field:"name",align:"left",minWidth:200},{title:"顺序号",field:"orderNum",align:"center",width:100},{title:"备注",field:"remark",align:"left",minWidth:200},{title:"状态",field:"status",align:"center",width:100,formatter:function(e){return{value:1===e.status?"启用":"禁用"}}}],operation:{width:100,align:"center",show:!0,attr:[{title:"编辑",events:function(t){e.showEdit(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){this.initTreeData()},methods:{initTreeData:function(){var e=this;c["l"]().then((function(t){var r=t||[];e.treeDataList.splice(0,e.treeDataList.length),e.treeDataList=r,e.treeDataList&&e.treeDataList.length>0&&(e.tenantId=e.treeDataList[0].id,e.tenantName=e.treeDataList[0].label,e.tenantCode=e.treeDataList[0].code)}))},nodeClick:function(e){this.p=Object.assign({},{id:e.id,name:e.name}),this.p.id?(this.filterFrom.tenantId=this.p.id,this.editSetting.tenantId=this.p.id):(this.filterFrom.tenantId=null,this.editSetting.tenantId=null),this.search(1)},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},handleAdd:function(){this.editSetting.tenantId?(this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0):this.$message.warning("请先选择左侧机构")},showEdit:function(e){console.log(e),this.editSetting.id=e.id,this.editSetting.info=e,this.editSetting.title="编辑",this.editSetting.show=!0}}},d=u,f=r("2877"),p=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"43d4":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-row",{attrs:{gutter:15}},[r("el-col",{attrs:{span:5}},[r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("my-tree",{ref:"searchTree",attrs:{"tree-list":e.treeDataList},on:{setNode:e.nodeClick,search:e.search}})],1)],1),e._v(" "),r("el-col",{attrs:{span:19}},[r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.search}}):e._e(),e._v(" "),e.editRoleSetting.show?r("editRole",{attrs:{setting:e.editRoleSetting},on:{close:function(t){e.editRoleSetting.show=!1},search:e.search}}):e._e()],1)},a=[],o=r("befe"),i=r("80cb"),s=r("f6e8"),l=r("433d"),c=r("169e"),u=r("145d"),d=r("2a3d"),f=r("6ec5"),p=r("c24f"),m=(r("6f7e"),{name:"index",components:{MyButton:s["a"],MyTableV2:i["a"],myTree:o["a"],edit:u["default"],editRole:d["default"]},data:function(){var e=this;return{items:c["default"],treeDataList:[],filterFrom:{tenantCode:null,userName:null,userCode:null},curOrgId:null,tenantId:null,tenantCode:null,tenantName:null,data_scope:0,editSetting:{title:"",id:"",tenantId:"",show:!1},editRoleSetting:{title:"",data_scope:0,id:"",show:!1},table:{showIndex:!0,expand:!1,url:l["a"].apiBaseURL+"/pc/fin/sys/tenant/user/select/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd(null)}}]},columns:[{title:"人员姓名",field:"userName",align:"left",minWidth:140},{title:"登录名",field:"userCode",align:"left",minWidth:140},{title:"手机号",field:"userPhone",align:"center",width:110},{title:"所属机构",field:"tenantName",align:"center",minWidth:150},{title:"部门",field:"sysDeptName",align:"center"},{field:"status",title:"状态",align:"center",width:80,switch:function(t){var r={};return 1==t.status?Object.assign(r,{value:!0,label:"启用",click:function(){e.updState(t)}}):Object.assign(r,{value:!1,label:"禁用",click:function(){e.updState(t)}}),r}}],operation:{show:!0,width:"250",attr:[{title:"角色",events:function(t){e.showEditRole(t.id)}},{title:"编辑",events:function(t){e.showAdd(t.id)}},{title:"密码初始化",events:function(t){e.updPassWord(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){this.initTreeData(),this.data_scope=this.$store.getters.userInfo?this.$store.getters.userInfo.lv:"",0===this.data_scope&&(this.data_scope=1),this.editSetting.data_scope=this.data_scope,this.editRoleSetting.data_scope=this.data_scope},methods:{importUser:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},initTreeData:function(){var e=this;f["l"]().then((function(t){var r=t||[];e.treeDataList.splice(0,e.treeDataList.length),e.treeDataList=r,e.treeDataList&&e.treeDataList.length>0&&(e.tenantId=e.treeDataList[0].id,e.tenantName=e.treeDataList[0].label,e.tenantCode=e.treeDataList[0].code)}))},updState:function(e){var t=this,r=0===e.status?"启用":"禁用";t.$modal.confirm("确认要"+r+'"'+e.userName+'"吗?').then((function(){var n=Object.assign({},e);n.status=1===e.status?0:1,p["p"](n).then((function(n){n&&(e.status=1===e.status?0:1,t.$modal.msgSuccess(r+"成功"))}))}))},nodeClick:function(e){e=e||{},this.p=Object.assign({},{id:e.id,name:e.name,code:e.code,lv:e.lv});var t=Number(this.data_scope)+(e.lv-1);void 0!=this.p.code&&null!=this.p.code?(this.filterFrom.tenantCode=this.p.code,this.tenantId=this.p.id,this.tenantName=this.p.name,this.editSetting.tenantCode=this.p.code,this.editSetting.data_scope=t,this.editRoleSetting.data_scope=t):this.filterFrom.tenantCode=0,this.table.paging.page.pageNum=1,this.search(1)},updPassWord:function(e){var t=this;this.$modal.confirm('是否确认初始化名称为"'+e.userName+'"的密码?').then((function(){p["l"](e).then((function(e){}))})).then((function(e){t.$modal.confirm("初始化密码成功,新密码为:123456").then((function(e){})).catch((function(){})),t.search()})).catch((function(){}))},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search()},showAdd:function(e){var t="添加";null!=e&&(t="编辑"),this.tenantName?(this.editSetting.tenantId=this.tenantId,this.editSetting.tenantName=this.tenantName,this.editSetting.id=e,this.editSetting.title=t,this.editSetting.show=!0):this.$message.warning("请选择您要添加人员的机构!")},del:function(e){var t=this;e.isDelete=0,this.$modal.confirm('是否要删除"'+e.userName+'"的账号?').then((function(){p["p"](e).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},showEditRole:function(e){var t="添加";null!=e&&(t="编辑角色"),this.editRoleSetting.id=e,this.editRoleSetting.title=t,this.editRoleSetting.show=!0},reset:function(){this.filterFrom.tenantCode=null,this.filterFrom.userName=null,this.filterFrom.userCode=null,this.filterFrom.status=1,this.search(1)}}}),h=m,g=r("2877"),v=Object(g["a"])(h,n,a,!1,null,"ff5ab22c",null);t["default"]=v.exports},4416:function(e,t){function r(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=r},"448a":function(e,t,r){var n=r("2236"),a=r("11b0"),o=r("6613"),i=r("0676");function s(e){return n(e)||a(e)||o(e)||i()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44b5":function(e,t,r){},4512:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("报废单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("仓库:")]),e._v(" "),r("span",[e._v(e._s(e.detail.warehouseName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("所属机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.agencyName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("创建人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.operatorName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("报废时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.dealTime)))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("报废手续:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1),e._v(" "),e._l(e.detail.scrappedGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.categoryName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsName))])])],1),e._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"单位",prop:"unit",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"报废数量",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"scrappedName",label:"报废原因",align:"center"}})],1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("3430"),i=r("f76d"),s=r("6f7e"),l=r("dee4"),c=r("c82c"),u=r.n(c),d=(r("0808"),r("aa3a")),f=null,p={components:{winMd:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,scrapReasonOptions:[],fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",uploadFiles:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",scrappedGoods:[]}}},filters:{formatTime:function(e){if(e)return s["LongToDateTime"](e)}},created:function(){var e=this;Object(o["b"])({id:this.setting.id}).then((function(t){e.detail=t,e.loading=!1,e.fileList=e.detail.uploadFiles?JSON.parse(e.detail.uploadFiles):[],e.$nextTick((function(){e.initPreviewImg()}))})),Object(d["d"])("SCRAP_REASON").then((function(t){e.scrapReasonOptions=t}))},methods:{getDictName:function(e){var t=this.scrapReasonOptions.find((function(t){return t.dict_value==e}));return t?t.dict_label:""},initPreviewImg:function(){null!=f&&f.destroy();var e=document.querySelector("#uploadPreviewImages");f=new u.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}f.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(l["c"])()+e},close:function(){this.$emit("close")}}},m=p,h=(r("f8b3"),r("2877")),g=Object(h["a"])(m,n,a,!1,null,"84097738",null);t["default"]=g.exports},4791:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title,width:"800px"},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"编号",prop:"code"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"机构名称",prop:"name"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-radio-group",{model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("启用")]),e._v(" "),r("el-radio",{attrs:{label:0,border:""}},[e._v("禁用")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"summary"}},[r("el-input",{attrs:{type:"textarea",rows:3,maxlength:"100","show-word-limit":""},model:{value:e.formData.summary,callback:function(t){e.$set(e.formData,"summary",t)},expression:"formData.summary"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("e694"),i=r("f6e8"),s=r("6ec5"),l={components:{winSm:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{checkAll:!1,checkedList:[],formData:{code:"",name:"",status:1,summary:"",parentId:""},rules:{code:[{required:!0,message:"请输入机构编号",trigger:"blur"}],name:[{required:!0,message:"请输入机构名称",trigger:"blur"}]}}},created:function(){this.setting.info&&(this.formData=Object.assign({},JSON.parse(this.setting.info)))},methods:{getEditInfo:function(e){},close:function(){this.$emit("close")},toNumber:function(e){var t=parseInt(e);return isNaN(t)?"0":t},save:function(){var e=this,t=this.formData.code,r=this.toNumber(t);console.log("拿到的code "+t),console.log("拿到返回的的code "+r),"0"!==this.toNumber(t)&&r==t?t.startsWith("0")?this.$message.error("编号必须为数字且不以0开头"):this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);e.setting.id?s["i"](r).then((function(t){t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})):(r.parentId=e.setting.orgId,s["b"](r).then((function(t){t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})))}else e.$message.error("校验未通过,请检查。")})):this.$message.error("编号必须为数字且不以0开头")}}},c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"490c":function(e,t,r){},"496e":function(e,t,r){},"4b17":function(e,t,r){var n=r("6428");function a(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}e.exports=a},"4bbc":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/list",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/using/form/back/detail",method:"get",params:e})}},"4c5a":function(e,t,r){e.exports=r.p+"static/img/form-lf.508c57a8.jpg"},"4cef":function(e,t){var r=/\s/;function n(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}e.exports=n},"4e10":function(e,t,r){},"4f6e":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:"上传调拨手续",width:"800px",loading:e.loading},on:{close:e.close}},[r("upload",{ref:"uploadRef",attrs:{values:e.fileList,settings:e.uploadSettings},on:{"on-change":e.uploadChange}}),e._v(" "),r("el-button",{staticStyle:{float:"right","margin-right":"50px","margin-top":"20px"},attrs:{name:"上传调拨手续",site:"form",type:"primary",size:"mini"},on:{click:function(t){return e.allocationProcedures()}}},[e._v("\n 上传调拨手续\n ")])],1)},a=[],o=r("f76d"),i=r("6f7e"),s=r("dee4"),l=r("c82c"),c=r.n(l),u=(r("0808"),r("dcec")),d=r("decf"),f=r("a083"),p=null,m={computed:{de:function(){return u["a"]}},components:{winMd:o["a"],upload:d["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{procureDoc:"",uploadSettings:{title:"上传",max:20,num:2,tip:"",uploadUrl:Object(s["d"])(),multiple:!0,disabled:!1},loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(e){return e?i["LongToDateTime"](e):"-"},formatPrice:function(e){return e/100}},created:function(){this.loading=!1,this.fileList=[]},methods:{initPreviewImg:function(){null!=p&&p.destroy();var e=document.querySelector("#uploadPreviewImages");p=new c.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}p.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(s["c"])()+e},close:function(){this.$emit("close")},uploadChange:function(){var e=this.$refs.uploadRef.fileList,t=JSON.stringify(e);console.log(t),this.procureDoc=t;var r=this.setting.id;console.log(r)},allocationProcedures:function(){var e=this,t=this.setting.id,r=this.procureDoc;null!=t&&""!==r?Object(f["f"])({idStr:t,procureDoc:r,type:"0"}).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,console.log("edit err",t),e.$message.error("保存失败")})):this.$message.error("请上传图片!")}}},h=m,g=(r("2808"),r("2877")),v=Object(g["a"])(h,n,a,!1,null,"1bcecb62",null);t["default"]=v.exports},5010:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title,width:"800px"},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"编号",prop:"code"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{disabled:"",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"仓库名称",prop:"name"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"地址"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.adss,callback:function(t){e.$set(e.formData,"adss",t)},expression:"formData.adss"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-switch",{attrs:{"active-color":"#0d997c","inactive-color":"#C0CCDA"},model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("e694"),i=r("f6e8"),s=r("6ec5"),l={components:{winSm:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{checkAll:!1,checkedList:[],formData:{code:"",name:"",status:!0,summary:""},rules:{code:[{required:!0,message:"请输入机构编号",trigger:"blur"}],name:[{required:!0,message:"请输入机构名称",trigger:"blur"}],status:[{required:!0,message:"请选择状态",trigger:"blur"}]}}},created:function(){this.setting.info&&(this.formData=Object.assign({},JSON.parse(this.setting.info)))},methods:{getEditInfo:function(e){},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);e.setting.id?s["g"](r).then((function(t){t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})):(r.orgId=e.setting.orgId,s["a"](r).then((function(t){t?(e.$message.success("保存成功!"),e.close(),e.$emit("search")):e.$message.error("保存失败")})))}else e.$message.error("校验未通过,请检查。")}))}}},c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"51ef":function(e,t,r){"use strict";var n=r("b775");t["a"]={queryBoardTotalData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(n["a"])({url:"/pc/p/dash/board/totalData",method:"get",params:e})},queryPlanMoney:function(){return Object(n["a"])({url:"/pc/p/dash/board/planMoney",method:"get"})},queryProjectYear:function(){return Object(n["a"])({url:"/pc/p/dash/board/yearProjectNum",method:"get"})},queryProjectNumByType:function(){return Object(n["a"])({url:"/pc/p/dash/board/projectNumByType",method:"get"})},queryProjectNumByBatch:function(){return Object(n["a"])({url:"/pc/p/dash/board/projectNumByBatch",method:"get"})},queryProjectList:function(){return Object(n["a"])({url:"/pc/p/dash/board/projectNodeTime",method:"get"})},queryProjectMap:function(){return Object(n["a"])({url:"/pc/p/dash/board/totalDataByOrg",method:"get"})}}},5234:function(e,t,r){"use strict";r("e2f2")},"542c":function(e,t,r){},"54b9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:e.setting.title+"报废",width:"800px"},on:{close:e.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"机构",prop:"agencyName"}},[r("el-input",{attrs:{value:e.formData.agencyName,disabled:""}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"报废仓库",prop:"warehouseId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.formData.warehouseId,callback:function(t){e.$set(e.formData,"warehouseId",t)},expression:"formData.warehouseId"}},e._l(e.warehouses,(function(e){return r("el-option",{key:e.id,attrs:{label:e.warehouseName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"报废人",prop:"operatorName"}},[r("el-input",{attrs:{value:e.formData.operatorName,disabled:""}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"报废时间",prop:"dealTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:"",type:"datetime",value:"yyyy-MM-dd HH:mm:ss","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.dealTime,callback:function(t){e.$set(e.formData,"dealTime",t)},expression:"formData.dealTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"报废审批手续",prop:"uploadFiles"}},[r("upload",{ref:"uploadRef",attrs:{values:e.fileList,settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.scrappedGoodsInfo,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"scrappedGoodsInfo."+n+".baseCategoryId",rules:{required:!0,message:"请选择物品分类",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"scrappedGoodsInfo."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"规格型号",prop:"scrappedGoodsInfo["+n+"].modelsIds",rules:{required:!0,message:"请选择规格型号",trigger:"change"}}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",clearable:"",placeholder:t.baseGoodsTemplateId?"请选择规格型号":"请先选择物品名称",disabled:!t.baseGoodsTemplateId},on:{change:function(t){return e.modelChange(t,n)},"remove-tag":function(t){return e.modelRemoveTag(t,n)},clear:function(t){return e.modelRemoveTag(-1,n)}},model:{value:t.modelsIds,callback:function(r){e.$set(t,"modelsIds",r)},expression:"goodsItem.modelsIds"}},e._l(t.modelsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.modelName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-table",{attrs:{data:t.scrappedGoodsList,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsId",label:"型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.getGoodsModelsName(t.row.baseGoodsModelsId))+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"total",label:"剩余数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.total)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"报废数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{model:{value:t.row.counts,callback:function(r){e.$set(t.row,"counts",e._n(r))},expression:"scope.row.counts"}})]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"scrappedCode",label:"报废原因",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.scrappedCode,callback:function(r){e.$set(t.row,"scrappedCode",r)},expression:"scope.row.scrappedCode"}},e._l(e.scrapReasonOptions,(function(e){return r("el-option",{key:e.dict_code,attrs:{label:e.dict_label,value:e.dict_code}})})),1)]}}],null,!0)})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.scrappedGoodsInfo.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除")]):e._e(),e._v(" "),e.formData.scrappedGoodsInfo.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品")]):e._e()],1)],1)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.handleSubmit}})],1)],1)},a=[],o=r("3430"),i=r("6ec5"),s=r("c56b"),l=r("f6e8"),c=r("f76d"),u=r("decf"),d=r("dee4"),f=r("2f62"),p=r("aa3a"),m=r("6f7e");function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function v(e){return _(e)||w(e)||y(e)||b()}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(e){if(Array.isArray(e))return x(e)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function S(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function b(){}function y(){}function w(){}var _={};c(_,i,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(P([])));O&&O!==r&&n.call(O,i)&&(_=O);var k=w.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==h(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?g:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(h(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function O(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function k(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){O(o,n,a,i,s,"next",e)}function s(e){O(o,n,a,i,s,"throw",e)}i(void 0)}))}}function C(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 I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e){var t=N(e,"string");return"symbol"==h(t)?t:t+""}function N(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var D={components:{MyButton:l["a"],winMd:c["a"],upload:u["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){if(!r)return n(new Error("请选择"));var a=e.formData.scrappedGoodsInfo.filter((function(e){return e.baseGoodsTemplateId==r}));if(!a||1!=a.length)return n(new Error("已选过此物品"));n()};return{loading:!0,fileList:[],warehouses:[],categoryOptions:[],scrapReasonOptions:[],formData:{uploadFiles:"",warehouseId:"",dealTime:m["formatDate"](new Date,"yyyyMMddhhmmss"),scrappedGoodsInfo:[]},goodsItem:{baseCategoryIds:"",baseCategoryId:"",baseGoodsTemplateId:"",goodsTemplateName:"",sort:"",goodsOptions:[],modelsOptions:[],scrappedGoodsList:[],modelsIds:[]},rules:{warehouseId:[{required:!0,message:"请选择",trigger:"change"}],dealTime:[{required:!0,message:"请选择",trigger:"change"}],buyType:[{required:!0,message:"请选择",trigger:"change"}],uploadFiles:[{required:!0,message:"请上传",trigger:"change"}],baseCategoryId:[{required:!0,message:"请选择",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择",trigger:"change"},{validator:t,trigger:["blur","change"]}],modelsIds:[{required:!0,message:"请选择",trigger:"change"}]},uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(d["d"])(),multiple:!0,disabled:!1}}},computed:I({},Object(f["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=k(S().mark((function e(){var t=this;return S().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getWarehouseList();case 2:return e.next=4,this.getCategoryTree();case 4:this.formData.scrappedGoodsInfo.push(JSON.parse(JSON.stringify(this.goodsItem))),this.formData.operatorId=this.userInfo.id,this.formData.operatorName=this.userInfo.userName,this.formData.agencyId=this.userInfo.tenantId,this.formData.agencyName=this.userInfo.tenantName,this.formData.warehouseType=0,this.getgoodsTemplate(),this.getgoodsModel(),this.loading=!1,Object(p["d"])("SCRAP_REASON").then((function(e){t.scrapReasonOptions=e}));case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getCategoryTree:function(){var e=k(S().mark((function e(){var t;return S().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(s["b"])();case 2:t=e.sent,this.categoryOptions=this.removeEmptyChildren(t);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getWarehouseList:function(){var e=k(S().mark((function e(){var t=this;return S().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["p"])({agencyId:this.userInfo.tenantId}).then((function(e){t.warehouses=e,t.warehouses.length&&!t.formData.warehouseId&&(t.formData.warehouseId=t.warehouses[0].id)})).catch((function(e){console.log("err",e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(e,t){var r=this;Object(i["n"])({agencyId:this.userInfo.tenantId,categoryId:e||""}).then((function(e){t||0==t?r.$set(r.formData.scrappedGoodsInfo[t],"goodsOptions",e):r.goodsTemplatelAll=e}))},getgoodsModel:function(e,t){var r=this;Object(i["m"])({goodsTemplatesId:e||""}).then((function(e){t||0==t?r.$set(r.formData.scrappedGoodsInfo[t],"modelsOptions",e):r.goodsModelAll=e}))},getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.scrappedGoodsInfo[t].goodsOptions=[],this.formData.scrappedGoodsInfo[t].baseGoodsTemplateId="",this.formData.scrappedGoodsInfo[t].goodsTemplateName="",this.formData.scrappedGoodsInfo[t].modelsOptions=[],this.formData.scrappedGoodsInfo[t].modelsIds=[],this.formData.scrappedGoodsInfo[t].scrappedGoodsList=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.scrappedGoodsInfo[t].modelsOptions=[],this.formData.scrappedGoodsInfo[t].modelsIds=[],this.formData.scrappedGoodsInfo[t].scrappedGoodsList=[],this.formData.scrappedGoodsInfo[t].goodsTemplateName=this.getGoodsTemplateName(e),this.getgoodsModel(e,t)},modelChange:function(){var e=k(S().mark((function e(t,r){var n,a,o,s,l,c;return S().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=v(this.formData.scrappedGoodsInfo[r].scrappedGoodsList),a=JSON.stringify(n),o=g(t),e.prev=3,o.s();case 5:if((s=o.n()).done){e.next=14;break}if(l=s.value,-1!=a.indexOf(l)){e.next=12;break}return e.next=10,Object(i["s"])({warehouseId:this.formData.warehouseId,baseGoodsModelsId:l,states:1,buyType:null});case 10:c=e.sent,n.push({baseGoodsModelsId:l,total:c,counts:null,scrappedCode:null});case 12:e.next=5;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](3),o.e(e.t0);case 19:return e.prev=19,o.f(),e.finish(19);case 22:this.formData.scrappedGoodsInfo[r].scrappedGoodsList=n;case 23:case"end":return e.stop()}}),e,this,[[3,16,19,22]])})));function t(t,r){return e.apply(this,arguments)}return t}(),modelRemoveTag:function(e,t){if(-1!==e){var r=this.formData.scrappedGoodsInfo[t].scrappedGoodsList,n=r.findIndex((function(t){return t.baseGoodsModelsId==e}));this.formData.scrappedGoodsInfo[t].scrappedGoodsList.splice(n,1)}else this.formData.scrappedGoodsInfo[t].scrappedGoodsList=[]},uploadChange:function(){var e=this.$refs.uploadRef.fileList;this.formData.uploadFiles=JSON.stringify(e)},addGoods:function(){this.formData.scrappedGoodsInfo.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.scrappedGoodsInfo.splice(e,1)},handleSubmit:function(){var e=this;this.$refs["ruleForm"].validate((function(t){if(t){if(e.loading)return;e.loading=!0,Object(o["a"])(e.formData).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,console.log("create err",t),e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。")}))},close:function(){this.formData={warehouseId:"",dealTime:"",scrappedGoodsInfo:[]},this.$emit("close")}}},L=D,P=(r("60f5"),r("2877")),E=Object(P["a"])(L,n,a,!1,null,"574d1b90",null);t["default"]=E.exports},5688:function(e,t,r){"use strict";r.d(t,"i",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"h",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return d})),r.d(t,"g",(function(){return f}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/base/warehouse/select/tenant_warehouse",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/base/goods/template/query/goodsTemplate",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/pc/base/goods/models/query/goodsModel",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/pc/whForm/procure/add",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/pc/whForm/procure/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/pc/whForm/procure/list",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/pc/whForm/procure/detail",method:"get",params:e})}function d(e){return Object(n["a"])({url:"/pc/whForm/procure/del",method:"delete",params:e})}function f(e){return Object(n["a"])({url:"/pc/whForm/procure/income",method:"post",params:e})}},"585a":function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r("c8ba"))},"592a":function(e,t,r){"use strict";r.r(t),t["default"]=[{type:"text",dataIndex:"roleName",label:"角色名称",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"status",label:"状态",defaultValue:"0",placeholder:"请选择",options:[{value:"0",label:"启用"},{value:"1",label:"禁用"}]}]},"5a2a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("div",{staticClass:"section-container"},[r("div",{staticClass:"section-left"},[r("div",{staticClass:"header-row"},[r("span",{staticClass:"title"},[e._v("选择人员:")])]),e._v(" "),r("div",{staticClass:"section-body"},[r("el-tree",{ref:"tree",attrs:{data:e.treeData,"node-key":"id",props:e.defaultProps,"default-expand-all":""},scopedSlots:e._u([{key:"default",fn:function(t){t.node;var n=t.data;return["user"!=n.type?r("div",[e._v(e._s(n.name))]):r("div",{staticClass:"leaf-node",class:n.checked?"checked":"",on:{click:function(t){return e.handleCheckItem(n)}}},[r("div",[e._v(e._s(n.name))]),e._v(" "),r("i",{staticClass:"el-icon-check",staticStyle:{"font-size":"18px","font-weight":"bold",color:"#0d997c","margin-right":"10px"}})])]}}])})],1)]),e._v(" "),r("div",{staticClass:"section-right"},[r("div",{staticClass:"header-row"},[r("span",{staticClass:"title"},[e._v("已选:")]),e._v(" "),r("span",{staticClass:"btn",on:{click:e.handleClear}},[e._v("清空")])]),e._v(" "),r("div",{staticClass:"section-body"},e._l(e.selectdSections,(function(t,n){return r("div",{key:n,staticClass:"section-item"},[r("span",{staticClass:"label"},[e._v(e._s(t.name))]),e._v(" "),r("span",{staticClass:"btn del-btn",on:{click:function(r){return e.handleDel(t)}}},[e._v("删除")])])})),0)])]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)])},a=[],o=r("2c72"),i=r("f76d"),s=r("f6e8");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};d(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var c=p(e[a],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),d(k,u,"Generator"),d(k,i,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function u(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){u(o,n,a,i,s,"next",e)}function s(e){u(o,n,a,i,s,"throw",e)}i(void 0)}))}}var f={name:"person",components:{winMd:i["a"],myButton:s["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,loadingText:"加载中",selectdSections:[],treeData:[],formData:{},defaultProps:{children:"children",label:"name"},key:Math.random()}},computed:{checkedKeys:function(){return this.selectdSections.map((function(e){return e.id}))}},created:function(){this.setting.info&&(this.formData=Object.assign({},JSON.parse(this.setting.info))),this.init()},methods:{init:function(){var e=d(c().mark((function e(){var t,r;return c().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["c"])({warehouseId:this.formData.id});case 2:return t=e.sent,this.selectdSections=t.map((function(e){return e.name=e.managerName,e.id=e.managerId,e.checked=!0,e})),e.next=6,Object(o["a"])({agencyId:this.formData.agencyId});case 6:r=e.sent,this.treeData=this.deepList([r]),this.key=Math.random(),this.loading=!1;case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),deepList:function(e){var t=this;return e.map((function(e){return e.children&&e.children.length?t.deepList(e.children):e.checked=t.selectdSections.some((function(t){return e.id===t.id})),e}))},handleCheckItem:function(e){var t=this;if(e.checked){var r=this.selectdSections.findIndex((function(t){return t.id===e.id}));-1!==r&&this.selectdSections.splice(r,1)}else this.selectdSections.push(e);this.treeData[0].children.forEach((function(r,n){r.children&&r.children.forEach((function(r,a){r.id==e.id&&t.$set(t.treeData[0].children[n].children[a],"checked",!r.checked)}))}))},handleDel:function(e){this.handleCheckItem(e)},handleClear:function(){var e=this;this.selectdSections.forEach((function(t){e.handleCheckItem(t)})),this.selectdSections=[]},close:function(){this.$emit("close")},save:function(){var e=this;if(0!==this.selectdSections.length){var t={warehouseId:this.setting.id,warehouseManagerInfoList:[]};this.selectdSections.forEach((function(e){t.warehouseManagerInfoList.push({managerId:e.id,managerName:e.name})})),Object(o["b"])(t).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")}))}else this.$message.error("请选择库管员!")}}},p=f,m=(r("279c"),r("2877")),h=Object(m["a"])(p,n,a,!1,null,"4febb127",null);t["default"]=h.exports},"5a43":function(e,t){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5cdc":function(e,t,r){"use strict";r("798c")},"5e16":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("h4",{staticClass:"form-header h4"},[e._v("基本信息")]),e._v(" "),r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:8,offset:2}},[r("el-form-item",{attrs:{label:"用户昵称",prop:"nick_name"}},[r("el-input",{attrs:{disabled:""},model:{value:e.form.nick_name,callback:function(t){e.$set(e.form,"nick_name",t)},expression:"form.nick_name"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:8,offset:2}},[r("el-form-item",{attrs:{label:"登录账号",prop:"user_name"}},[r("el-input",{attrs:{disabled:""},model:{value:e.form.user_name,callback:function(t){e.$set(e.form,"user_name",t)},expression:"form.user_name"}})],1)],1)],1)],1),e._v(" "),r("h4",{staticClass:"form-header h4"},[e._v("角色信息")]),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{"row-key":e.getRowKey,data:e.roles.slice((e.pageNum-1)*e.pageSize,e.pageNum*e.pageSize)},on:{"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{label:"序号",type:"index",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s((e.pageNum-1)*e.pageSize+t.$index+1))])]}}])}),e._v(" "),r("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"角色编号",align:"center",prop:"role_id"}}),e._v(" "),r("el-table-column",{attrs:{label:"角色名称",align:"center",prop:"role_name"}}),e._v(" "),r("el-table-column",{attrs:{label:"权限字符",align:"center",prop:"role_key"}}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.create_time)))])]}}])})],1),e._v(" "),r("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.pageNum,limit:e.pageSize},on:{"update:page":function(t){e.pageNum=t},"update:limit":function(t){e.pageSize=t}}}),e._v(" "),r("el-form",{attrs:{"label-width":"100px"}},[r("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-120px","margin-top":"30px"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm()}}},[e._v("提交")]),e._v(" "),r("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1)],1)},a=[],o=r("c0c7"),i={name:"AuthRole",data:function(){return{loading:!0,total:0,pageNum:1,pageSize:10,roleIds:[],roles:[],form:{}}},created:function(){var e=this,t=this.$route.params&&this.$route.params.userId;t&&(this.loading=!0,Object(o["d"])(t).then((function(t){e.form=t.data.user,e.roles=t.data.roles,e.total=e.roles.length,e.$nextTick((function(){e.roles.forEach((function(t){t.flag&&e.$refs.table.toggleRowSelection(t)}))})),e.loading=!1})))},methods:{clickRow:function(e){this.$refs.table.toggleRowSelection(e)},handleSelectionChange:function(e){this.roleIds=e.map((function(e){return e.role_id}))},getRowKey:function(e){return e.role_id},submitForm:function(){var e=this,t=this.form.id,r=this.roleIds.join(",");Object(o["i"])({userId:t,roleIds:r}).then((function(t){e.$modal.msgSuccess("授权成功"),e.close()}))},close:function(){var e={path:"/system/user"};this.$tab.closeOpenPage(e)}}},s=i,l=r("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"5e19":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{staticClass:"table-tool-bar",staticStyle:{"margin-bottom":"15px"}},[r("my-button",{attrs:{name:"新增",site:"tools",size:"medium"},on:{click:e.handleAdd}}),e._v(" "),r("my-button",{attrs:{name:"导入",site:"tools",size:"medium"},on:{click:function(t){return e.openImport()}}})],1),e._v(" "),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:{"overflow-y":"auto",height:"calc(100vh - 320px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("分发单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))])]),e._v(" "),r("div",{staticClass:"card-header-right"},[r("el-button",{attrs:{name:"查看详情",site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("\n 查看详情\n ")])],1)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("部门:")]),e._v(e._s(t.inWarehouseName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("分发人:")]),e._v(e._s(t.outOperatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("分发时间:")]),e._v(e._s(e._f("formatTime")(t.createTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.fromTransferTemplateInfoList,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.goodsName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.count))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.uploadPageSetting.show?r("uploadPage",{ref:"uploadRef",attrs:{setting:e.uploadPageSetting},on:{close:function(t){e.uploadPageSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.editSetting.show?r("edit",{ref:"editRef",attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e(),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("a083"),i=r("f6e8"),s=r("433d"),l=r("9960"),c=r("9939"),u=r("9205"),d=r("b277"),f=r("271c"),p=r("5f87"),m=r("dee4");function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function g(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=w(e,"string");return"symbol"==h(t)?t:t+""}function w(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var _={name:"index",mixins:[f["default"]],components:{MyButton:i["a"],myImport:l["default"],edit:c["default"],detail:u["default"],uploadPage:d["default"]},data:function(){return{loading:!1,adddialog:!1,list:[],importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(m["b"])()+"/pc/l/wh/form/transfer/import2",accept:".xls",type:"text",loading:!0},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate?type=distribute"},onSuccess:null},items:[{type:"text",dataIndex:"businessFormCode",label:"分发单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"departmentId",label:"分发部门",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all?tenantId=".concat(Object(p["c"])().tenantId),label:"name",value:"id"},defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate?tenantId=".concat(Object(p["c"])().tenantId)}},{type:"text",dataIndex:"operatorName",label:"领取人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"领取时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],treeDataList:[]}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.loading=!0,Object(o["g"])(v({qryType:1,pageNum:this.pageNum,pageSize:this.pageSize,outAgencyId:this.userInfo.tenantId},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1}))},openImport:function(){this.importOrg()},importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}}}},x=_,S=(r("965b"),r("2877")),O=Object(S["a"])(x,n,a,!1,null,"0cb75172",null);t["default"]=O.exports},"5e9d":function(e,t,r){},"5fd4":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/warehouse/homeStatistics/getGoodsNumPrice",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/warehouse/homeStatistics/getGoodsNumByMonth",method:"get",params:e})}},"60f5":function(e,t,r){"use strict";r("19ac")},6409:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:{"overflow-y":"auto",height:"calc(100vh - 352px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("调拨单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))]),e._v(" "),0==t.states&&null!=t.procureDoc?r("div",{staticClass:"states states-warning"},[e._v("待出库")]):e._e(),e._v(" "),0==t.states&&null==t.procureDoc?r("div",{staticClass:"states states-warning"},[e._v("待提交")]):e._e(),e._v(" "),1==t.states?r("div",{staticClass:"states states-warning"},[e._v("待接收")]):e._e(),e._v(" "),2==t.states?r("div",{staticClass:"states states-success"},[e._v("已接收")]):e._e(),e._v(" "),4==t.states?r("div",{staticClass:"states states-info"},[e._v("已撤销")]):e._e()]),e._v(" "),r("div",{staticClass:"card-header-right"},[0==t.states&&null!=t.procureDoc?r("el-button",{attrs:{site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleOutput(t)}}},[e._v("出库\n ")]):e._e(),e._v(" "),2==t.states?r("el-button",{attrs:{site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleExport("transferExport","调拨出库单-"+t.businessFormCode,{id:t.id,type:2})}}},[e._v("\n 导出调拨出库单\n ")]):e._e(),e._v(" "),r("el-button",{attrs:{name:"查看详情",site:"form",type:"info",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("查看详情\n ")])],1)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("接收机构:")]),e._v(e._s(t.inAgencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("申请人:")]),e._v(e._s(t.operatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("申请调拨时间:")]),e._v(e._s(e._f("formatTime")(t.createTime))+"\n ")]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("接收时间:")]),e._v(e._s(e._f("formatTime")(t.inTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨机构:")]),e._v(e._s(t.outAgencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨人:")]),e._v(e._s(t.outOperatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨时间:")]),e._v(e._s(e._f("formatTime")(t.outputTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.fromTransferTemplateInfoList,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.goodsName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.count))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)},a=[],o=r("a083"),i=r("f6e8"),s=r("9960"),l=r("6df5"),c=r("271c"),u=r("822f"),d={cascader_dept_tree:"/admin/component/dept_tree",data_dict:"/admin/component/data_dict",cascader_tree_fin_tenant:"/pc/fin/sys/tenant/select/tree_fin_tenant"},f=r("433d");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=b(e,"string");return"symbol"==p(t)?t:t+""}function b(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={name:"index",mixins:[c["default"],u["default"]],components:{MyButton:i["a"],myImport:s["default"],detail:l["default"]},data:function(){return{loading:!1,list:[],items:[{type:"text",dataIndex:"businessFormCode",label:"调拨单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:f["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"cascader",dataIndex:"inAgencyId",label:"接收机构",placeholder:"请选择",optionsConfig:{url:d.cascader_tree_fin_tenant,props:null},defaultValue:"",options:[]},{type:"select",dataIndex:"states",label:"状态",placeholder:"请选择",defaultValue:"",options:[]},{type:"date-picker",dataIndex:"createTimeStart",label:"申请时间",defaultValue:""},{type:"date-picker",dataIndex:"createTimeEnd",label:"至",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"接收时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}]}},created:function(){var e=this;this.filterFrom={outAgencyId:this.userInfo.tenantId},this.fetchData(),this.items.map((function(t){return"状态"==t.label&&(t.options=e.statesOptions),t}))},methods:{fetchData:function(){var e=this;this.loading=!0,Object(o["g"])(h({qryType:0,pageNum:this.pageNum,pageSize:this.pageSize},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1}))},handleOutput:function(e){var t=this;this.$confirm("您确定 单号:".concat(e.businessFormCode," 调拨出库吗?"),"调拨出库",{beforeClose:function(r,n,a){"confirm"==r?(n.confirmButtonLoading=!0,n.confirmButtonText="执行中...",Object(o["h"])({id:e.id}).then((function(e){t.$message.success("调拨出库成功!"),a(),n.confirmButtonLoading=!1,t.search(1)})).catch((function(){a()}))):a()}})}}},w=y,_=(r("b08c"),r("2877")),x=Object(_["a"])(w,n,a,!1,null,"1c0aa39c",null);t["default"]=x.exports},6428:function(e,t,r){var n=r("b4b0"),a=1/0,o=17976931348623157e292;function i(e){if(!e)return 0===e?e:0;if(e=n(e),e===a||e===-a){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=i},"64f7":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{staticClass:"table-tool-bar",staticStyle:{"margin-bottom":"15px"}},[r("my-button",{attrs:{name:"新增",site:"tools",size:"medium"},on:{click:e.handleAdd}})],1),e._v(" "),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:{"overflow-y":"auto",height:"calc(100vh - 352px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("报废单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))])]),e._v(" "),r("div",{staticClass:"card-header-right"},[r("el-button",{attrs:{site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleExport("deptScrappedExport","部门物品报废登记单-"+t.businessFormCode,{id:t.id})}}},[e._v("导出报废登记单\n ")]),e._v(" "),r("el-button",{attrs:{name:"查看详情",site:"form",type:"info",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("查看详情\n ")])],1)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("部门:")]),e._v(e._s(t.departmentName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("操作人:")]),e._v(e._s(t.operatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("报废时间:")]),e._v(e._s(e._f("formatTime")(t.dealTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.goods,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.baseGoodsTemplateName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.totalCount))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{ref:"editRef",attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)},a=[],o=r("f6e8"),i=r("9960"),s=r("e34e"),l=r("edd4"),c=r("271c"),u=r("5f87"),d=r("433d"),f=r("6f82");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=b(e,"string");return"symbol"==p(t)?t:t+""}function b(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={name:"index",mixins:[c["default"]],components:{MyButton:o["a"],myImport:i["default"],edit:s["default"],detail:l["default"]},data:function(){return{list:[],items:[{type:"text",dataIndex:"businessFormCode",label:"报废单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"inAgencyId",label:"分发部门",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/department/list/all?tenantId=".concat(Object(u["c"])().tenantId),label:"name",value:"id"},defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:d["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate?tenantId=".concat(Object(u["c"])().tenantId)}},{type:"text",dataIndex:"operatorName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"报废时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}]}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.loading=!0,Object(f["e"])(h({pageNum:this.pageNum,pageSize:this.pageSize},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1})).catch((function(){e.loading=!1}))}}},w=y,_=(r("0915"),r("2877")),x=Object(_["a"])(w,n,a,!1,null,"060c81ba",null);t["default"]=x.exports},6613:function(e,t,r){var n=r("5a43");function a(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},6831:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[r("el-form-item",{attrs:{label:"字典名称",prop:"dictType"}},[r("el-select",{model:{value:e.queryParams.dictType,callback:function(t){e.$set(e.queryParams,"dictType",t)},expression:"queryParams.dictType"}},e._l(e.typeOptions,(function(e){return r("el-option",{key:e.dict_id,attrs:{label:e.dict_name,value:e.dict_type}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"字典标签",prop:"dictLabel"}},[r("el-input",{attrs:{placeholder:"请输入字典标签",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.dictLabel,callback:function(t){e.$set(e.queryParams,"dictLabel",t)},expression:"queryParams.dictLabel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{attrs:{placeholder:"数据状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.constants.normalOrDisabled,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:add"],expression:"['system:dict:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:export"],expression:"['system:dict:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-close",size:"mini"},on:{click:e.handleClose}},[e._v("关闭")])],1)],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.dataList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"字典ID",align:"center",prop:"dict_code"}}),e._v(" "),r("el-table-column",{attrs:{label:"字典名称",align:"center",prop:"dict_label"},scopedSlots:e._u([{key:"default",fn:function(t){return[""==t.row.list_class||"default"==t.row.list_class?r("span",[e._v(e._s(t.row.dict_label))]):r("el-tag",{attrs:{type:"primary"==t.row.list_class?"":t.row.list_class}},[e._v(e._s(t.row.dict_label))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"字典值",align:"center",prop:"dict_value"}}),e._v(" "),r("el-table-column",{attrs:{label:"排序",align:"center",prop:"dict_sort"}}),e._v(" "),r("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.status?"正常":"禁用"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"父id",align:"center",prop:"parent_id"}}),e._v(" "),r("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"}}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:edit"],expression:"['system:dict:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dict:remove"],expression:"['system:dict:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("el-pagination",{attrs:{"current-page":e.queryParams.pageNum,"page-sizes":e.constants.page.limit,layout:e.constants.page.layout,total:this.total},on:{"size-change":e.getList,"current-change":e.getList}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","before-close":e.cancel,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"字典ID"}},[r("el-input",{attrs:{disabled:!1,placeholder:"一个唯一数字"},model:{value:e.form.dict_code,callback:function(t){e.$set(e.form,"dict_code",t)},expression:"form.dict_code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"字典类型"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.form.dict_type,callback:function(t){e.$set(e.form,"dict_type",t)},expression:"form.dict_type"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"字典名称",prop:"dict_label"}},[r("el-input",{attrs:{placeholder:"请输入数据标签"},model:{value:e.form.dict_label,callback:function(t){e.$set(e.form,"dict_label",t)},expression:"form.dict_label"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"字典值",prop:"dict_value"}},[r("el-input",{attrs:{placeholder:"不填和字典ID一致"},model:{value:e.form.dict_value,callback:function(t){e.$set(e.form,"dict_value",t)},expression:"form.dict_value"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"样式属性",prop:"css_class"}},[r("el-input",{attrs:{placeholder:"请输入样式属性"},model:{value:e.form.css_class,callback:function(t){e.$set(e.form,"css_class",t)},expression:"form.css_class"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"显示排序",prop:"dict_sort"}},[r("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.dict_sort,callback:function(t){e.$set(e.form,"dict_sort",t)},expression:"form.dict_sort"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"回显样式",prop:"list_class"}},[r("el-select",{model:{value:e.form.list_class,callback:function(t){e.$set(e.form,"list_class",t)},expression:"form.list_class"}},e._l(e.listClassOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label+"("+e.value+")",value:e.value}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.constants.normalOrDisabled,(function(t){return r("el-radio",{key:t.value,attrs:{label:1*t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"父字典ID",prop:"dict_label"}},[r("el-input",{attrs:{placeholder:"父字典id,必填"},model:{value:e.form.parent_id,callback:function(t){e.$set(e.form,"parent_id",t)},expression:"form.parent_id"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"remark"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=r("aa3a"),i=r("ed45");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(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 c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=f(e,"string");return"symbol"==s(t)?t:t+""}function f(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var p={name:"Data",data:function(){return{constants:this.$constants,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,dataList:[],defaultDictType:"",title:"",open:!1,listClassOptions:[{value:"default",label:"默认"},{value:"primary",label:"主要"},{value:"success",label:"成功"},{value:"info",label:"信息"},{value:"warning",label:"警告"},{value:"danger",label:"危险"}],typeOptions:[],queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},form:{status:"1"},rules:{dict_code:[{required:!0,message:"字典id必须输入",trigger:"blur"}],dict_label:[{required:!0,message:"数据标签不能为空",trigger:"blur"}],parent_id:[{required:!0,message:"父id不能为空",trigger:"blur"}],dict_sort:[{required:!0,message:"数据顺序不能为空",trigger:"blur"}]},editMode:!1}},created:function(){var e=this.$route.params&&this.$route.params.dictId;this.getType(e),this.getTypeList()},methods:{getType:function(e){var t=this;Object(i["c"])(e).then((function(e){t.queryParams.dictType=e.dict_type,t.defaultDictType=e.dict_type,t.getList()}))},getTypeList:function(){var e=this;Object(i["e"])().then((function(t){e.typeOptions=t.data}))},getList:function(){var e=this;this.loading=!0,Object(o["e"])(this.queryParams).then((function(t){e.dataList=t.datas,e.total=t.totalRows,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={dict_code:void 0,dict_label:void 0,dict_value:void 0,css_class:void 0,list_class:"default",dict_sort:0,status:"0",parent_id:void 0,remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},handleClose:function(){var e={path:"/system/dict"};this.$tab.closeOpenPage(e)},resetQuery:function(){this.resetForm("queryForm"),this.queryParams.dictType=this.defaultDictType,this.handleQuery()},handleAdd:function(){this.reset(),this.editMode=!1,this.open=!0,this.title="添加字典数据",this.form.dict_type=this.queryParams.dictType},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.dictCode})),this.single=1!=e.length,this.multiple=!e.length},handleUpdate:function(e){var t=this;this.reset(),this.editMode=!0;var r=e.dict_code||this.ids;Object(o["c"])(r).then((function(e){t.form=e,t.open=!0,t.title="修改字典数据"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(1==e.editMode?Object(o["f"])(e.form).then((function(t){e.$store.dispatch("dict/removeDict",e.queryParams.dictType),e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):(console.log(e.form),Object(o["a"])(e.form).then((function(t){e.$store.dispatch("dict/removeDict",e.queryParams.dictType),e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()}))))}))},handleDelete:function(e){var t=this,r=e.dict_code||this.ids;this.$modal.confirm('是否确认删除字典编码为"'+r+'"的数据项?').then((function(){return Object(o["b"])(r)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功"),t.$store.dispatch("dict/removeDict",t.queryParams.dictType)})).catch((function(){}))},handleExport:function(){this.download("system/dict/data/export",c({},this.queryParams),"data_".concat((new Date).getTime(),".xlsx"))}}},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,null,null);t["default"]=g.exports},"6afd":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:"物品退回",width:"900px",loading:e.loading},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[r("el-select",{ref:"department",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择"},model:{value:e.formData.departmentId,callback:function(t){e.$set(e.formData,"departmentId",t)},expression:"formData.departmentId"}},e._l(e.departmentOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id,clearable:""}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"退回人",prop:"operatorName"}},[r("el-input",{attrs:{disabled:""},model:{value:e.formData.operatorName,callback:function(t){e.$set(e.formData,"operatorName",t)},expression:"formData.operatorName"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"退回时间",prop:"dealTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",value:"yyyy-MM-dd HH:mm:ss","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.dealTime,callback:function(t){e.$set(e.formData,"dealTime",t)},expression:"formData.dealTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"退回审批手续",prop:"procureDoc"}},[r("upload",{ref:"uploadRef",attrs:{settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.goods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"goods."+n+".baseCategoryId",rules:{required:!0,message:"请选择物品分类",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"goods."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"选择分发单",prop:"goods."+n+".businessFormCode",rules:e.rules.businessFormCode}},[r("div",{on:{click:function(t){return e.showFenFa(n)}}},[r("el-input",{staticClass:"cursor-p",attrs:{placeholder:"请选择分发单",readonly:"",placeholder:t.baseGoodsTemplateId?"请选择分发单":"请先选择物品",disabled:!t.baseGoodsTemplateId,"suffix-icon":"el-icon-arrow-down"},model:{value:t.businessFormCode,callback:function(r){e.$set(t,"businessFormCode",r)},expression:"goodsItem.businessFormCode"}})],1)])],1)],1),e._v(" "),e._l(t.models,(function(t,a){return r("div",{key:a,staticClass:"card3"},[r("el-row",{staticStyle:{height:"50px"},attrs:{gutter:24,type:"flex",align:"middle"}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"规格型号:",prop:"baseGoodsModelsId"}},[e._v("\n "+e._s(t[0].modelName)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"单位:",prop:"baseGoodsModelsId","label-width":"80"}},[e._v("\n "+e._s(t[0].unit)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"物品类别:",prop:"baseGoodsModelsId","label-width":"80"}},[e._v("\n "+e._s(t[0].classification)+"\n ")])],1)],1),e._v(" "),r("el-table",{attrs:{data:t,stripe:!0}},[t[0].nowUserName?r("el-table-column",{attrs:{prop:"price",label:"使用人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.nowUserName)+"\n ")]}}],null,!0)}):e._e(),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"分发数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.goodsNum)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"可退数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.userUseCount)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"退回数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;t.$index;return[r("el-form-item",{attrs:{"label-width":"0",prop:"goods."+n+".models."+a+".counts",rules:[{validator:e.checkCounts,counts:o.counts,userUseCount:o.userUseCount,trigger:["blur","change"]}]}},[r("el-input",{attrs:{clearable:"",type:"number"},model:{value:o.counts,callback:function(t){e.$set(o,"counts",e._n(t))},expression:"row.counts"}})],1)]}}],null,!0)})],1)],1)})),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.goods.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除\n ")]):e._e(),e._v(" "),e.formData.goods.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品\n ")]):e._e()],1)],2)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.handleSubmit}})],1),e._v(" "),e.fenfaSetting.show?r("win-md",{attrs:{title:"选择分发单",width:"800px"},on:{close:function(t){e.fenfaSetting.show=!1}}},[r("el-table",{attrs:{data:e.fenfaData,"highlight-current-row":"",height:"407"},on:{"current-change":e.handleCurrentChange}},[r("el-table-column",{attrs:{label:"分发单号",prop:"businessFormCode",align:"left"}}),e._v(" "),r("el-table-column",{attrs:{label:"物品名称",prop:"baseGoodsTemplateName",align:"left"}}),e._v(" "),r("el-table-column",{attrs:{label:"分发数量",prop:"totalCount",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"剩余数量",prop:"useCount",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"分发时间",prop:"inTime",width:"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(e.DateFormatter.LongToDateTime(r.inTime))+"\n ")]}}],null,!1,1576381030)})],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:function(t){e.fenfaSetting.show=!1,e.fenfaSetting.baseGoodsTemplateId=null,e.curFenfa=null,e.fenfaData=[]}}}),e._v(" "),r("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v("确定")])],1)],1):e._e()],1)},a=[],o=r("8eb74"),i=r("6ec5"),s=r("c56b"),l=r("f6e8"),c=r("f76d"),u=r("e694"),d=r("decf"),f=r("dee4"),p=r("2f62"),m=r("6f7e"),h=r("6f82"),g=r("4bbc");function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",h="completed",g={};function y(){}function w(){}function _(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==v(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(v(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function y(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){y(o,n,a,i,s,"next",e)}function s(e){y(o,n,a,i,s,"throw",e)}i(void 0)}))}}function _(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 x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e){var t=k(e,"string");return"symbol"==v(t)?t:t+""}function k(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var C={components:{MyButton:l["a"],winMd:c["a"],winSm:u["a"],upload:d["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{checkCounts:function(e,t,r){return e.counts?Number.isInteger(e.counts)?e.counts<1?r(new Error("数字值必须大于0")):e.counts>e.userUseCount?r(new Error("退回数量不能大于在用数量")):void r():r(new Error("请输入数字值")):r(new Error("请输入退回数量"))},DateFormatter:m,loading:!0,departmentOptions:[],categoryOptions:[],modelList:[],fenfaSetting:{show:!1,goodsIdx:null,baseGoodsTemplateId:null,id:""},curFenfa:null,fenfaData:[],formData:{departmentId:"",dealTime:m["formatDate"](new Date,"yyyyMMddhhmmss"),procureDoc:"",goods:[]},goodsItem:{businessFormCode:"",transBusinessId:"",baseCategoryId:"",baseGoodsTemplateId:"",goodsTemplateName:"",goodsOptions:[],models:[]},modelsItem:{baseGoodsModelsId:"",worehouseCount:0,counts:null,unit:null},rules:{departmentId:[{required:!0,message:"请选择部门",trigger:"change"}],dealTime:[{required:!0,message:"请选择",trigger:"change"}],procureDoc:[{required:!0,message:"请上传",trigger:"change"}],baseCategoryId:[{required:!0,message:"请选择",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择物品",trigger:"change"}],businessFormCode:[{required:!0,message:"请选择分发单",trigger:"change"}],counts:[{required:!0,message:"请输入",trigger:"change"}],reason:[{required:!0,message:"请选择",trigger:"change"}]},uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(f["d"])(),multiple:!0,disabled:!1}}},computed:x({},Object(p["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=w(b().mark((function e(){var t;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getdeptmentList();case 2:return e.next=4,Object(s["b"])();case 4:t=e.sent,this.categoryOptions=this.removeEmptyChildren(t),this.getgoodsTemplate(),this.formData.departmentId=this.userInfo.sysDeptId,this.formData.operatorName=this.userInfo.userName,this.loading=!1;case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getdeptmentList:function(){var e=w(b().mark((function e(){var t=this;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["d"])({tenantId:this.userInfo.tenantId}).then((function(e){t.departmentOptions=e,t.formData.goods.push(JSON.parse(JSON.stringify(t.goodsItem)))})).catch((function(e){console.log("err",e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(e,t){var r=this;Object(i["n"])({categoryId:e||""}).then((function(e){t||0==t?r.$set(r.formData.goods[t],"goodsOptions",e):r.goodsTemplatelAll=e}))},getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.goods[t].goodsOptions=[],this.formData.goods[t].baseGoodsTemplateId="",this.formData.goods[t].goodsTemplateName="",this.formData.goods[t].models=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.goods[t].models=[],this.formData.goods[t].businessFormCode="",this.formData.goods[t].goodsTemplateName=this.getGoodsTemplateName(e)},showFenFa:function(e){var t=this;this.loading=!0,Object(h["a"])({departmentId:this.formData.departmentId,baseGoodsTemplateId:this.formData.goods[e].baseGoodsTemplateId}).then((function(r){t.loading=!1,r&&0!==r.length?(t.fenfaSetting.show=!0,t.fenfaSetting.baseGoodsTemplateId=t.formData.goods[e].baseGoodsTemplateId,t.fenfaSetting.goodsIdx=e,t.fenfaData=r):t.$message.error("未查询到需要退回的分发单")})).catch((function(e){t.loading=!1}))},uploadChange:function(){var e=this.$refs.uploadRef.fileList;this.formData.procureDoc=JSON.stringify(e)},addGoods:function(){this.formData.goods.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.goods.splice(e,1)},handleCurrentChange:function(e){this.curFenfa=e},handleConfirm:function(){var e=this;if(this.curFenfa){var t=this.formData.goods.findIndex((function(t){return t.businessFormCode==e.curFenfa.businessFormCode})),r=this.formData.goods.findIndex((function(t){return t.baseGoodsTemplateId==e.fenfaSetting.baseGoodsTemplateId}));-1===r||r===this.fenfaSetting.goodsIdx||-1===t||t===this.fenfaSetting.goodsIdx?Object(h["b"])({transBusinessId:this.curFenfa.transBusinessId,baseGoodsTemplateId:this.fenfaSetting.baseGoodsTemplateId}).then((function(t){if(t){var r=[];for(var n in t){var a=t[n];a.map((function(e){e.counts=null})),r.push(a)}e.formData.goods[e.fenfaSetting.goodsIdx].models=r,e.formData.goods[e.fenfaSetting.goodsIdx].businessFormCode=e.curFenfa.businessFormCode,e.formData.goods[e.fenfaSetting.goodsIdx].transBusinessId=e.curFenfa.transBusinessId}e.fenfaSetting.show=!1})):this.$message.error("同一个物品不能选择相同的分发单")}else this.$message.error("请选择分发单")},handleSubmit:function(){var e=this;this.$refs["ruleForm"].validate((function(t){if(t){var r=JSON.parse(JSON.stringify(e.formData));if(r.goods.map((function(e){delete e.goodsOptions;var t=[];e.models.map((function(e){e.map((function(e){e.counts&&e.counts>0&&t.push(e)}))})),e.models=t})),r.goods=r.goods.filter((function(e){return e.models.length>0})),0===r.goods.length)return void e.$message.error("请至少填写一个退回物品");if(e.loading)return;e.loading=!0,Object(g["a"])(r).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。")}))},close:function(){this.formData={warehouseId:"",dealTime:"",goods:[]},this.$emit("close")}}},I=C,j=(r("ee78"),r("2877")),T=Object(j["a"])(I,n,a,!1,null,"30eed26a",null);t["default"]=T.exports},"6b6f":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:e.setting.title+"采购入库",width:"800px",loading:e.loading},on:{close:e.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"入库仓库",prop:"warehouseId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.formData.warehouseId,callback:function(t){e.$set(e.formData,"warehouseId",t)},expression:"formData.warehouseId"}},e._l(e.warehouses,(function(e){return r("el-option",{key:e.id,attrs:{label:e.warehouseName,value:e.id}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"采购时间",prop:"procureTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",clearable:"",value:"yyyy-MM-dd HH:mm:ss","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.procureTime,callback:function(t){e.$set(e.formData,"procureTime",t)},expression:"formData.procureTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"采购类型",prop:"buyType"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.formData.buyType,callback:function(t){e.$set(e.formData,"buyType",t)},expression:"formData.buyType"}},e._l(e.buyTypeOptions,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"采购入库手续",prop:"procureDoc"}},[r("upload",{ref:"uploadRef",attrs:{values:e.fileList,settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.procureGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"procureGoods."+n+".baseCategoryId",rules:{required:!0,message:"请选择物品分类",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"procureGoods."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"规格型号",prop:"procureGoods."+n+".modelsIds",rules:{required:!0,message:"请选择规格型号",trigger:"change"}}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",clearable:"",placeholder:t.baseGoodsTemplateId?"请选择规格型号":"请先选择物品名称",disabled:!t.baseGoodsTemplateId},on:{change:function(t){return e.modelChange(t,n)},"remove-tag":function(t){return e.modelRemoveTag(t,n)},clear:function(t){return e.modelRemoveTag(-1,n)}},model:{value:t.modelsIds,callback:function(r){e.$set(t,"modelsIds",r)},expression:"goodsItem.modelsIds"}},e._l(t.modelsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.modelName,value:e.id}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"供货商",prop:"supplier"}},[r("el-input",{attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:t.supplier,callback:function(r){e.$set(t,"supplier",r)},expression:"goodsItem.supplier"}})],1)],1)],1),e._v(" "),r("el-table",{attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsId",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.getGoodsModelsName(t.row.baseGoodsModelsId))+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"priceYuan",label:"单价(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{"label-width":"0",prop:"procureGoods["+n+"].models["+t.$index+"].priceYuan",rules:e.rules.priceYuan}},[r("el-input",{attrs:{type:"number"},on:{change:function(r){return e.priceChange(r,n,t.$index)}},model:{value:t.row.priceYuan,callback:function(r){e.$set(t.row,"priceYuan",e._n(r))},expression:"scope.row.priceYuan"}})],1)]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"采购数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{"label-width":"0",prop:"procureGoods["+n+"].models["+t.$index+"].counts",rules:e.rules.counts}},[r("el-input",{model:{value:t.row.counts,callback:function(r){e.$set(t.row,"counts",e._n(r))},expression:"scope.row.counts"}})],1)]}}],null,!0)})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.procureGoods.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除\n ")]):e._e(),e._v(" "),e.formData.procureGoods.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品\n ")]):e._e()],1)],1)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.handleSubmit}})],1)],1)},a=[],o=r("5688"),i=r("c56b"),s=r("f6e8"),l=r("f76d"),c=r("decf"),u=r("dee4"),d=r("ed08"),f=r("2f62"),p=r("6f7e");function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(e){return y(e)||b(e)||v(e)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",v={};function b(){}function y(){}function w(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=w.prototype=b.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==m(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?g:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(m(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function x(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){x(o,n,a,i,s,"next",e)}function s(e){x(o,n,a,i,s,"throw",e)}i(void 0)}))}}function O(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return(t=I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=j(e,"string");return"symbol"==m(t)?t:t+""}function j(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var T={components:{MyButton:s["a"],winMd:l["a"],upload:c["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){if(!r)return n(new Error("请选择"));var a=e.formData.procureGoods.filter((function(e){return e.baseGoodsTemplateId==r}));if(!a||1!=a.length)return n(new Error("已选过此物品"));n()},r=function(t,r,n){return r?0==r?(e.$message.warning("数字值不能为0"),n(new Error("数字值不能为0"))):void n():n(new Error("请输入"))},n=function(t,r,n){return r?Number.isInteger(r)?0==r?(e.$message.warning("数字值不能为0"),n(new Error("数字值不能为0"))):void n():(e.$message.warning("请输入数字值"),n(new Error("请输入数字值"))):n(new Error("请输入"))};return{loading:!0,buyTypeOptions:[{label:"集采",value:"1"},{label:"自采",value:"2"}],fileList:[],warehouses:[],categoryOptions:[],modelList:[],formData:{procureDoc:"",warehouseId:"",procureTime:p["formatDate"](new Date,"yyyyMMddhhmmss"),buyType:"2",procureGoods:[]},goodsItem:{baseCategoryIds:"",baseCategoryId:"",baseGoodsTemplateId:"",goodsTemplateName:"",supplier:"",sort:"",goodsOptions:[],modelsOptions:[],models:[],modelsIds:[]},modelsItem:{baseGoodsModelsId:"",priceYuan:null,price:null,counts:null,unit:null},rules:{warehouseId:[{required:!0,message:"请选择",trigger:"change"}],procureTime:[{required:!0,message:"请选择",trigger:"change"}],buyType:[{required:!0,message:"请选择",trigger:"change"}],procureDoc:[{required:!0,message:"请上传",trigger:"change"}],baseCategoryIds:[{required:!0,message:"请选择",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择",trigger:"change"},{validator:t,trigger:["blur","change"]}],modelsIds:[{required:!0,message:"请选择",trigger:"change"}],priceYuan:[{validator:r,trigger:"blur"}],counts:[{validator:n,trigger:"blur"}]},uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(u["d"])(),multiple:!0}}},computed:k({},Object(f["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=S(_().mark((function e(){var t,r,n=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getWarehouseList();case 2:return e.next=4,this.getgoodsTemplate();case 4:return e.next=6,this.getgoodsModel();case 6:return e.next=8,Object(i["b"])();case 8:if(t=e.sent,this.categoryOptions=this.removeEmptyChildren(t),!this.setting.id){e.next=19;break}return e.next=13,Object(o["e"])({id:this.setting.id});case 13:r=e.sent,this.formData=Object.assign(this.formData,r),this.formData.procureDoc&&(this.fileList=JSON.parse(this.formData.procureDoc)),this.$set(this.formData,"buyType",this.formData.buyType.toString()),this.formData.procureTime=this.formData.procureTime.toString(),this.formData.procureGoods.map(function(){var e=S(_().mark((function e(t,r){return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.baseCategoryIds=Object(d["a"])(n.categoryOptions,t.baseCategoryId),n.$set(n.formData.procureGoods[r],"modelsIds",t.models.map((function(e){return e.baseGoodsModelsId}))),e.next=4,n.getgoodsTemplate(t.baseCategoryId,r);case 4:return e.next=6,n.getgoodsModel(t.baseGoodsTemplateId,r);case 6:return e.next=8,t.models.forEach((function(e,t){n.$set(n.formData.procureGoods[r].models[t],"priceYuan",e.price/100)}));case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}());case 19:this.loading=!1;case 20:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getWarehouseList:function(){var e=S(_().mark((function e(){var t=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["i"])({agencyId:this.userInfo.tenantId}).then((function(e){t.warehouses=e,!t.setting.id&&e.length&&t.formData.procureGoods.push(JSON.parse(JSON.stringify(t.goodsItem))),t.warehouses.length&&!t.formData.warehouseId&&(t.formData.warehouseId=t.warehouses[0].id)})).catch((function(e){console.log("err",e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(){var e=S(_().mark((function e(t,r){var n=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])({agencyId:this.userInfo.tenantId,categoryId:t||""}).then((function(e){r||0==r?n.$set(n.formData.procureGoods[r],"goodsOptions",e):n.goodsTemplatelAll=e}));case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getgoodsModel:function(){var e=S(_().mark((function e(t,r){var n=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["a"])({goodsTemplatesId:t||""}).then((function(e){r||0==r?n.$set(n.formData.procureGoods[r],"modelsOptions",e):n.goodsModelAll=e}));case 2:case"end":return e.stop()}}),e)})));function t(t,r){return e.apply(this,arguments)}return t}(),getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.procureGoods[t].goodsOptions=[],this.formData.procureGoods[t].baseGoodsTemplateId="",this.formData.procureGoods[t].goodsTemplateName="",this.formData.procureGoods[t].modelsOptions=[],this.formData.procureGoods[t].modelsIds=[],this.formData.procureGoods[t].models=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.procureGoods[t].modelsOptions=[],this.formData.procureGoods[t].modelsIds=[],this.formData.procureGoods[t].models=[],this.formData.procureGoods[t].goodsTemplateName=this.getGoodsTemplateName(e),this.getgoodsModel(e,t)},modelChange:function(e,t){var r=this,n=h(this.formData.procureGoods[t].models),a=JSON.stringify(n);e.forEach((function(e){if(-1==a.indexOf(e)){var t=r.goodsModelAll.find((function(t){return t.id==e}));n.push(k(k({},r.modelsItem),{},{baseGoodsModelsId:e,unit:t.unit}))}})),this.formData.procureGoods[t].models=n},modelRemoveTag:function(e,t){if(-1!==e){var r=this.formData.procureGoods[t].models,n=r.findIndex((function(t){return t.baseGoodsModelsId==e}));this.formData.procureGoods[t].models.splice(n,1)}else this.formData.procureGoods[t].models=[]},priceChange:function(e,t,r){this.formData.procureGoods[t].models[r].price=100*e},uploadChange:function(){var e=this.$refs.uploadRef.fileList;this.formData.procureDoc=JSON.stringify(e)},addGoods:function(){this.formData.procureGoods.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.procureGoods.splice(e,1)},handleSubmit:function(){var e=this;this.$refs["ruleForm"].validate((function(t){if(t){if(e.loading)return;e.loading=!0,e.setting.id?Object(o["f"])(e.formData).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,e.$message.error("保存失败")})):Object(o["c"])(e.formData).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。")}))},close:function(){this.formData={warehouseId:"",procureTime:"",procureGoods:[]},this.$emit("close")}}},N=T,D=(r("e3fa"),r("2877")),L=Object(D["a"])(N,n,a,!1,null,"55130d7a",null);t["default"]=L.exports},"6ccf":function(e,t,r){},"6cff":function(e,t,r){},"6d63":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[r("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[r("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入手机号码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phonenumber,callback:function(t){e.$set(e.queryParams,"phonenumber",t)},expression:"queryParams.phonenumber"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:add"],expression:"['system:role:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.openSelectUser}},[e._v("添加用户")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:remove"],expression:"['system:role:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-circle-close",size:"mini",disabled:e.multiple},on:{click:e.cancelAuthUserAll}},[e._v("批量取消授权")])],1),e._v(" "),r("el-col",{attrs:{span:1.5}},[r("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-close",size:"mini"},on:{click:e.handleClose}},[e._v("关闭")])],1)],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"用户名称",prop:"user_name","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"用户昵称",prop:"nick_name","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"邮箱",prop:"email","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"手机",prop:"phonenumber","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{label:"状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(0==t.row.status?"正常":"禁用"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.create_time)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:remove"],expression:"['system:role:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-circle-close"},on:{click:function(r){return e.cancelAuthUser(t.row)}}},[e._v("取消授权")])]}}])})],1),e._v(" "),r("el-pagination",{attrs:{"current-page":e.queryParams.pageNum,"page-sizes":e.constants.page.limit,layout:e.constants.page.layout,total:this.total},on:{"size-change":e.getList,"current-change":e.getList}})],1),e._v(" "),r("select-user",{ref:"select",attrs:{roleId:e.queryParams.roleId},on:{ok:e.handleQuery}})],1)},a=[],o=r("3528"),i=r("3f97"),s={name:"AuthUser",components:{selectUser:i["default"]},data:function(){return{constants:this.$constants,loading:!0,userIds:[],multiple:!0,showSearch:!0,total:0,userList:[],queryParams:{pageNum:1,pageSize:10,roleId:void 0,userName:void 0,phonenumber:void 0}}},created:function(){var e=this.$route.params&&this.$route.params.roleId;e&&(this.queryParams.roleId=e,this.getList())},methods:{getList:function(){var e=this;this.loading=!0,Object(o["b"])(this.queryParams).then((function(t){e.userList=t.datas,e.total=t.totalRows,e.loading=!1}))},handleClose:function(){var e={path:"/system/role"};this.$tab.closeOpenPage(e)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.userIds=e.map((function(e){return e.userId})),this.multiple=!e.length},openSelectUser:function(){this.$refs.select.show()},cancelAuthUser:function(e){var t=this,r=this.queryParams.roleId;this.$modal.confirm('确认要取消该用户"'+e.user_name+'"角色吗?').then((function(){return Object(o["c"])({userId:e.id,roleId:r})})).then((function(){t.getList(),t.$modal.msgSuccess("取消授权成功")})).catch((function(){}))},cancelAuthUserAll:function(e){var t=this,r=this.queryParams.roleId,n=this.userIds.join(",");this.$modal.confirm("是否取消选中用户授权数据项?").then((function(){return Object(o["d"])({roleId:r,userIds:n})})).then((function(){t.getList(),t.$modal.msgSuccess("取消授权成功")})).catch((function(){}))}}},l=s,c=r("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"6da8":function(e,t,r){"use strict";r.r(t),t["default"]=[{type:"text",dataIndex:"name",label:"机构名称",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"code",label:"编号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"status",label:"状态",placeholder:"请选择",defaultValue:"1",options:[{label:"启用",value:"1"},{label:"禁用",value:"0"}]}]},"6df5":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{loading:e.loading,title:e.setting.title,width:"1100px"},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("span",[e._v("调拨单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("调拨机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.outAgencyName))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("调拨人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.outOperatorName||"-"))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("接收机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.inAgencyName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:6}},[r("span",[e._v("申请人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.operatorName))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("申请调拨时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.createTime)))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("状态:")]),e._v(" "),r("span",[e._v(e._s(e.getStatesLabel(e.detail.states)))])]),e._v(" "),r("el-col",{attrs:{span:6}},[r("span",[e._v("调拨时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.outputTime)))])])],1),e._v(" "),e.fileList&&e.fileList.length?r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("调拨手续照片:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1):e._e(),e._v(" "),e._l(e.detail.formTransferGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.categoryName))])]),e._v(" "),r("el-col",{attrs:{span:12}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsName))])])],1),e._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.baseGoodsModelsName)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"调拨数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.counts)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.totalAmount)+"\n ")]}}],null,!0)})],1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("a083"),i=r("6f7e"),s=r("f76d"),l=r("822f"),c=r("dee4"),u=r("c82c"),d=r.n(u),f=(r("0808"),null),p={mixins:[l["default"]],components:{winMd:s["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!1,detail:{},fileList:[]}},filters:{formatTime:function(e){return e?i["LongToDateTime"](e):"-"}},created:function(){var e=this;this.loading=!0,Object(o["e"])({id:this.setting.id}).then((function(t){e.detail=t,e.fileList=e.detail.procureDoc?JSON.parse(e.detail.procureDoc):[],e.loading=!1,e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=f&&f.destroy();var e=document.querySelector("#uploadPreviewImages");f=new d.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}f.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(c["c"])()+e},close:function(){this.$emit("close")}}},m=p,h=(r("3fb2"),r("2877")),g=Object(h["a"])(m,n,a,!1,null,"16622739",null);t["default"]=g.exports},"6ec5":function(e,t,r){"use strict";r.d(t,"l",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"g",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"j",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return f})),r.d(t,"p",(function(){return p})),r.d(t,"n",(function(){return m})),r.d(t,"m",(function(){return h})),r.d(t,"k",(function(){return g})),r.d(t,"s",(function(){return v})),r.d(t,"r",(function(){return b})),r.d(t,"q",(function(){return y})),r.d(t,"o",(function(){return w})),r.d(t,"b",(function(){return _})),r.d(t,"i",(function(){return x})),r.d(t,"h",(function(){return S}));var n=r("b775"),a=r("433d");function o(e){return n["a"].get(a["a"].apiBaseURL+"/pc/fin/sys/tenant/select/tree_fin_tenant",{params:e})}function i(e){return Object(n["a"])({url:"/pc/base/category/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/pc/base/category/edit",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/pc/base/warehouse/add",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/pc/base/warehouse/edit",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/pc/base/warehouse/del",method:"delete",data:e})}function d(){return Object(n["a"])({url:"/pc/base/goods/template/select/classificationCode",method:"get"})}function f(e){return Object(n["a"])({url:"/pc/base/category/del",method:"delete",data:e})}function p(e){return Object(n["a"])({url:"/pc/base/warehouse/select/tenant_warehouse",method:"get",params:e})}function m(e){return Object(n["a"])({url:"/pc/base/goods/template/query/goodsTemplate",method:"get",params:e})}function h(e){return Object(n["a"])({url:"/pc/base/goods/models/query/goodsModel",method:"get",params:e})}function g(e){return n["a"].get(a["a"].apiBaseURL+"/pc/base/category/select/tree",{params:e})}function v(e){return Object(n["a"])({url:"/pc/base/warehouse/select/number",method:"get",params:e})}function b(e){return Object(n["a"])({url:"/pc/base/warehouse/select/in/warehouse/num",method:"get",params:e})}function y(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/user/query/user",method:"get",params:e})}function w(e){return Object(n["a"])({url:"/pc/base/goods/models/queryGoodsModelInfo",method:"get",params:e})}function _(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/add",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/edit",method:"post",data:e})}function S(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/editState",method:"post",data:e})}},"6f7e":function(e,t,r){"use strict";function n(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString().replace(/\s/g,"").replace(/-/g,"").replace(/:/g,"");return t}function a(e){return("00"+e).substr(e.length)}function o(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),r=t.slice(0,4),n=t.slice(4,6),a=t.slice(6,8),o=t.slice(8,10),i=t.slice(10,12),s=t.slice(12,14),l=r+"-"+n+"-"+a+" "+o+":"+i+":"+s;return l}function i(e){if(null==e||void 0==e||""==e||"null"==e||"undefined"==e)return!0;var t=e.toString(),r=t.slice(0,4),n=t.slice(4,6),a=t.slice(6,8),o=r+"-"+n+"-"+a;return o}function s(e,t){try{e instanceof Date||(e=new Date(e)),void 0!=t&&""!=t||(t="yyyy-MM-dd hh:mm:ss"),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(t)){var o=r[n]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?o:a(o))}return t}catch(i){return"-"}}function l(){var e=new Date,t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),a=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),i=e.getSeconds().toString().padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(n," ").concat(a,":").concat(o,":").concat(i)}function c(){var e=new Date,t=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(n)}function u(e){if(e){e instanceof Date||(e=new Date(e.replace(/-/g,"/")));var t=e.getTime(),r=6e4,n=60*r,a=24*n,o=7*a,i=30*a,s=(new Date).getTime(),l=s-t;if(!(l<0)){var c=l/r,u=l/n,d=l/a,f=l/o,p=l/i,m="";if(p>=1&&p<=3)m=" "+parseInt(p)+"月前";else if(f>=1&&f<=3)m=" "+parseInt(f)+"周前";else if(d>=1&&d<=6)m=" "+parseInt(d)+"天前";else if(u>=1&&u<=23)m=" "+parseInt(u)+"小时前";else if(c>=1&&c<=59)m=" "+parseInt(c)+"分钟前";else if(l>=0&&l<=r)m="刚刚";else{var h=new Date;h.setTime(t);var g=h.getFullYear(),v=h.getMonth()+1<10?"0"+(h.getMonth()+1):h.getMonth()+1,b=h.getDate()<10?"0"+h.getDate():h.getDate();h.getHours()<10?h.getHours():h.getHours(),h.getMinutes()<10?h.getMinutes():h.getMinutes(),h.getSeconds()<10?h.getSeconds():h.getSeconds();m=g+"-"+v+"-"+b}return m}}}r.r(t),r.d(t,"DateToLong",(function(){return n})),r.d(t,"LongToDateTime",(function(){return o})),r.d(t,"LongToDate",(function(){return i})),r.d(t,"formatDate",(function(){return s})),r.d(t,"formattedDate",(function(){return l})),r.d(t,"formattedDateDuan",(function(){return c})),r.d(t,"timeago",(function(){return u}))},"6f82":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return i})),r.d(t,"e",(function(){return s})),r.d(t,"d",(function(){return l}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/warehouse/procureModel/getFfOrderByGoodsIdAndDept",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/warehouse/procureModel/getGoodsUseInfoByFfOrderAndGoodId",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/deptAdd",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/deptList",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/deptDetail",method:"get",params:e})}},"701e":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"dataMap",staticStyle:{width:"100%",height:"100%"}})},a=[],o=r("97d8"),i=r("313e"),s=r.n(i),l=r("51ef");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",h="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};d(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=m;return function(o,i){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=g;var c=p(t,r,n);if("normal"===c.type){if(a=n.done?v:h,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=v,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),d(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(f(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),d(k,l,"Generator"),d(k,i,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function d(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){d(o,n,a,i,s,"next",e)}function s(e){d(o,n,a,i,s,"throw",e)}i(void 0)}))}}s.a.registerMap("河南",o);var p={name:"data-map",mounted:function(){var e=f(u().mark((function e(){var t,r,n;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.a.init(this.$refs.dataMap),e.next=3,l["a"].queryProjectMap();case 3:r=e.sent,console.log("resData",r),n={backgroundColor:"rgba(21, 21, 21, 0.2)",tooltip:{trigger:"item",confine:!0,backgroundColor:"rgba(21, 21, 21, 0.82)",borderColor:"#FFFFCC",showDelay:0,hideDelay:0,enterable:!0,transitionDuration:0,extraCssText:"z-index:100;",formatter:function(e,t,r){var n="";return n='\n <div style="position: absolute;top: 0;left: 0;background-color: rgba(17, 66, 138,0.7);z-index: 1000;width: 150px; padding: 8px; border: 1px solid #A5EBFF;color: #fff;">\n <div style="font-size: 16px;font-weight: bold;line-height: 20px;margin-bottom: 8px;">'.concat(e.name,'</div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">进行中</p>\n <p style="font-size: 16px;">').concat(e.value,'个</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">未开工</p>\n <p style="font-size: 16px;">').concat(e.data.ywtd,'个</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">已完工</p>\n <p style="font-size: 16px;">416个</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">已关闭</p>\n <p style="font-size: 16px;">416个</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">已超期</p>\n <p style="font-size: 16px;">416个</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">计划总投资</p>\n <p style="font-size: 16px;">416万</p>\n </div>\n <div style="display: flex;justify-content: space-between;align-items: center;">\n <p style="font-size: 12px;">已下达投资</p>\n <p style="font-size: 16px;">416万</p>\n </div>\n </div>'),n}},geo:{map:"河南",zoom:1.2,left:"center",top:"middle",label:{normal:{show:!0,color:"#fff",fontSize:16},emphasis:{show:!0,color:"#fff"}},roam:!0,scaleLimit:{min:1,max:40},itemStyle:{normal:{shadowColor:"rgba(0, 0, 0, 0.5)",shadowBlur:10,shadowOffsetX:-5,shadowOffsetY:-5,areaColor:{type:"linear",x:1,y:0,x2:.5,y2:1,colorStops:[{offset:0,color:"#5E9BBE"},{offset:1,color:"#2972D6"}],global:!1},borderColor:"#8ACFEE",borderWidth:1},emphasis:{areaColor:{type:"linear",x:1,y:0,x2:.5,y2:1,colorStops:[{offset:0,color:"#F9D746"},{offset:1,color:"#D88B10"}],global:!1}}}},series:[{type:"map",map:"河南",label:{show:!0},geoIndex:0,data:[{name:"郑州市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"焦作市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"新乡市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"商丘市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"信阳市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"周口市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"开封市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"驻马店市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"南阳市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"许昌市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"漯河市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"平顶山市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"安阳市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"鹤壁市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"濮阳市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"济源市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"洛阳市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233},{name:"三门峡市",value:123344,ywtd:998,gdzs:9802,jxz:863,zsk:233}]}]},n&&t.setOption(n);case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,"737aec19",null);t["default"]=g.exports},7025:function(e,t,r){},7037:function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},7286:function(e,t,r){"use strict";r("0048")},7297:function(e,t,r){},"72f0":function(e,t){function r(e){return function(){return e}}e.exports=r},"73f6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{width:"100%"}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"font-18 font-bold"},[e._v("类别数量统计")])]),e._v(" "),r("div",{staticStyle:{height:"300px"},attrs:{id:"LBSLTJ"}})])],1)},a=[],o=r("313e"),i={name:"LBSLTJ",props:{num:{type:Object,default:{aTotalNum:0,aTotalPrice:0,bTotalNum:0,bTotalPrice:0,cTotalNum:0,cTotalPrice:0,tenantId:0,totalNum:0,totalPrice:0,xiaFaNum:0,zhanYouPercent:0}}},watch:{num:function(){this.options.series[0].data=[{value:parseFloat(this.num.aTotalNum),name:"A类"},{value:parseFloat(this.num.bTotalNum),name:"B类"},{value:parseFloat(this.num.cTotalNum),name:"C类"}],this.myChart.setOption(this.options)}},data:function(){return{myChart:null,options:{}}},mounted:function(){this.getCenterLine()},methods:{getCenterLine:function(){var e=this,t=document.getElementById("LBSLTJ");this.myChart=o["init"](t),window.addEventListener("resize",(function(){e.changeWidth()})),this.options={color:["#1877FF","#5EDEA5","#F7BE12","#55C6E1","#ED653B"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{orient:"vertical",right:0,top:60,bottom:20},series:[{name:"类别数量统计",type:"pie",minAngle:2,avoidLabelOverlap:!0,itemStyle:{normal:{label:{show:!0,formatter:function(e){return e.name+"\n "+e.percent.toFixed(1)+"%"}},labelLine:{show:!0,length:.01}}},data:[{value:parseFloat(this.num.aTotalNum),name:"A类"},{value:parseFloat(this.num.bTotalNum),name:"B类"},{value:parseFloat(this.num.cTotalNum),name:"C类"}]}]},this.options&&this.myChart.setOption(this.options)},changeWidth:function(){this.myChart.resize()}}},s=i,l=(r("221f"),r("2877")),c=Object(l["a"])(s,n,a,!1,null,"4c400f86",null);t["default"]=c.exports},"798c":function(e,t,r){},"7b1d":function(e,t,r){"use strict";r("ee6c")},"7bdd":function(e,t,r){},"7e09":function(e,t,r){},"7ef5":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"192px",position:"relative"}},[r("div",{ref:"batchPlan",staticStyle:{width:"100%",height:"100%"}}),e._v(" "),e._m(0),e._v(" "),r("div",{staticClass:"tag-box"},e._l(e.dataList,(function(t,n){return r("div",{key:n,staticClass:"item-box"},[r("div",{staticClass:"example",style:{background:t.color}}),e._v(" "),r("div",{staticClass:"name"},[e._v(e._s(t.name))]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(t.value)+"%")])])})),0)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"title-box"},[r("p",{staticClass:"num"},[e._v("100%")]),e._v(" "),r("p",[e._v("批次计划")])])}],o=r("51ef"),i=r("313e"),s=r.n(i);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=p(e,"string");return"symbol"==l(t)?t:t+""}function p(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m={name:"batch-plan",data:function(){return{loading:!0,dataList:[],colorList:["#70B1F6","#077CF2","#1DD5A5","#E6C364","#E56A3D"]}},mounted:function(){var e=this,t=s.a.init(this.$refs.batchPlan);window.addEventListener("resize",(function(){e.$nextTick((function(){t.resize()}))})),o["a"].queryProjectNumByBatch().then((function(r){e.loading=!1,e.dataList=r.map((function(t,r){return u(u({},t),{},{value:t.num,name:t.projectBatchName,color:e.colorList[r]})})),t.setOption({color:e.colorList,tooltip:{trigger:"item"},grid:{right:200,top:30},series:[{type:"pie",radius:["60%","90%"],center:["160","95"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},labelLine:{show:!1},data:e.dataList}]})}))}},h=m,g=(r("de42"),r("2877")),v=Object(g["a"])(h,n,a,!1,null,"45895fd2",null);t["default"]=v.exports},"806c":function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"h",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"g",(function(){return d})),r.d(t,"i",(function(){return f}));var n=r("b775");function a(e){return"/pc/l/wh/form/inventory/list"}function o(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/add",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/edit",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/del",method:"delete",params:e})}function l(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/detail",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/temporary/storage",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/finish",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/query",method:"get",params:e})}function f(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/isAddInventory",method:"get",params:e})}},"80bd":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"8px"}},[r("el-col",[e.tableShow?r("my-table-v2",{ref:"myTable",attrs:{filter:e.queryParams,table:e.table}}):e._e()],1)],1)],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"role_name"}},[r("el-input",{attrs:{placeholder:"请输入角色名称"},model:{value:e.form.role_name,callback:function(t){e.$set(e.form,"role_name",t)},expression:"form.role_name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"角色顺序",prop:"role_sort"}},[r("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.role_sort,callback:function(t){e.$set(e.form,"role_sort",t)},expression:"form.role_sort"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态"}},[r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[r("el-radio",{attrs:{label:0}},[e._v("正常")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("禁用")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"角色范围"}},[r("el-radio-group",{model:{value:e.form.data_scope,callback:function(t){e.$set(e.form,"data_scope",t)},expression:"form.data_scope"}},[e.$store.getters.userInfo.lv<2?r("el-radio",{attrs:{label:1}},[e._v("省")]):e._e(),e._v(" "),e.$store.getters.userInfo.lv<3?r("el-radio",{attrs:{label:2}},[e._v("市")]):e._e(),e._v(" "),e.$store.getters.userInfo.lv<4?r("el-radio",{attrs:{label:3}},[e._v("县")]):e._e()],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"菜单权限"}},[r("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeExpand(t,"menu")}},model:{value:e.menuExpand,callback:function(t){e.menuExpand=t},expression:"menuExpand"}},[e._v("展开/折叠")]),e._v(" "),r("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeNodeAll(t,"menu")}},model:{value:e.menuNodeAll,callback:function(t){e.menuNodeAll=t},expression:"menuNodeAll"}},[e._v("全选/全不选\n ")]),e._v(" "),r("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeConnect(t,"menu")}},model:{value:e.form.menu_check_strictly,callback:function(t){e.$set(e.form,"menu_check_strictly",t)},expression:"form.menu_check_strictly"}},[e._v("父子联动\n ")]),e._v(" "),r("el-tree",{ref:"menu",staticClass:"tree-border",attrs:{data:e.menuOptions,"show-checkbox":"","node-key":"menu_id","check-strictly":!e.form.menu_check_strictly,"empty-text":"加载中,请稍候",props:e.defaultProps}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=r("3528"),i=r("a6dc"),s=r("fcb7"),l=r("80cb"),c=r("433d"),u=r("592a");function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=g(e,"string");return"symbol"==d(t)?t:t+""}function g(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",m="suspendedYield",h="executing",g="completed",b={};function y(){}function w(){}function _(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=_.prototype=y.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=f(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=p;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===b)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=f(t,r,n);if("normal"===c.type){if(a=n.done?g:m,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=f(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(d(t)+" is not iterable")}return w.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=c(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function b(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function y(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){b(o,n,a,i,s,"next",e)}function s(e){b(o,n,a,i,s,"throw",e)}i(void 0)}))}}var w={name:"Role",components:{MyTableV2:l["a"]},data:function(){var e=this;return{radio:3,scopeOption:[{value:1,label:"省"},{value:2,label:"市"},{value:3,label:"县"}],constants:this.$constants,rootOrgList:[],selectedRootOrgId:void 0,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,roleList:[],title:"",open:!1,openDataScope:!1,menuExpand:!1,menuNodeAll:!1,deptExpand:!0,deptNodeAll:!1,dateRange:[],dataScopeOptions:[{value:"1",label:"全部数据权限"},{value:"2",label:"自定数据权限"},{value:"3",label:"本部门数据权限"},{value:"4",label:"本部门及以下数据权限"},{value:"5",label:"仅本人数据权限"}],menuOptions:[],deptOptions:[],items:u["default"],queryParams:{roleName:"",roleKey:"",status:0},tableShow:!1,table:{autoLoad:!1,showIndex:!0,expand:!1,url:c["a"].apiBaseURL+"/pc/fin/sys/tenant/user/query/role",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.handleAdd(null)}}]},columns:[{title:"角色编号",field:"role_id",align:"center",width:135},{title:"角色名称",field:"role_name",align:"left",minWidth:200},{title:"显示顺序",field:"role_sort",align:"center",width:100},{title:"状态",field:"status",align:"center",width:100,switch:function(t){var r={};return 0==t.status?Object.assign(r,{value:!0,label:"启用",click:function(){e.handleStatusChange(t)}}):Object.assign(r,{value:!1,label:"禁用",click:function(){e.handleStatusChange(t)}}),r}},{title:"备注",field:"remark",align:"left",minWidth:200}],operation:{width:150,align:"center",show:!0,attr:[{title:"修改",events:function(t){e.handleUpdate(t)}},{title:"删除",events:function(t){e.handleDelete(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}},form:{role_name:"",role_key:"",role_sort:"",data_scope:1,status:1},defaultProps:{children:"children",label:"menu_name"},rules:{role_name:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],role_key:[{required:!1,message:"权限字符不能为空",trigger:"blur"}],role_sort:[{required:!0,message:"角色顺序不能为空",trigger:"blur"}]}}},created:function(){this.getRootOrgList()},methods:{fifterForm:function(e){this.queryParams=Object.assign(this.queryParams,e),this.search(1)},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},getRootOrgList:function(){var e=this;Object(s["e"])().then((function(t){e.rootOrgList=t,e.selectedRootOrgId=e.rootOrgList[0].id,e.queryParams.orgId=e.selectedRootOrgId})).then((function(){e.tableShow=!0,e.$nextTick((function(){e.search(1)}))}))},getList:function(){var e=this;this.selectedRootOrgId=this.queryParams.orgId,Object(o["j"])(this.queryParams).then((function(t){e.roleList=t.datas,e.total=t.totalRows}))},getMenuTreeselect:function(){var e=y(v().mark((function e(){var t=this;return v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["f"])().then((function(e){t.menuOptions=e}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),getDeptTreeselect:function(){var e=this;Object(s["h"])().then((function(t){e.deptOptions=t}))},getMenuAllCheckedKeys:function(){var e=this.$refs.menu.getCheckedKeys(),t=this.$refs.menu.getHalfCheckedKeys();return e.unshift.apply(e,t),e},getDeptAllCheckedKeys:function(){var e=this.$refs.dept.getCheckedKeys(),t=this.$refs.dept.getHalfCheckedKeys();return e.unshift.apply(e,t),e},getRoleMenuTreeselect:function(e){var t=this;return Object(i["e"])(e).then((function(e){return t.menuOptions=e.menus,e}))},getRoleDeptTreeselect:function(e){var t=this;return Object(s["g"])(e).then((function(e){return t.deptOptions=e.depts,e}))},handleStatusChange:function(e){var t=this,r=0==e.status?"禁用":"启用";this.$modal.confirm("确认要"+r+'"'+e.role_name+'"角色吗?').then((function(){return e.status=0==e.status?1:0,Object(o["f"])(e)})).then((function(){t.$modal.msgSuccess(r+"成功"),t.search()})).catch((function(){e.status=0==e.status?1:0}))},cancel:function(){this.open=!1,this.reset()},cancelDataScope:function(){this.openDataScope=!1,this.reset()},reset:function(){void 0!=this.$refs.menu&&this.$refs.menu.setCheckedKeys([]),this.menuExpand=!1,this.menuNodeAll=!1,this.deptExpand=!0,this.deptNodeAll=!1,this.form={org_id:void 0,role_id:void 0,role_name:void 0,data_scope:this.$store.getters.userInfo?this.$store.getters.userInfo.lv:1,role_key:"None",role_sort:0,status:0,menuIds:[],deptIds:[],menu_check_strictly:!0,dept_check_strictly:!0,remark:void 0},this.resetForm("form")},changeSize:function(e){this.queryParams.pageSize=e,this.getList()},changePage:function(e){this.queryParams.pageNum=e,this.getList()},handleQuery:function(){this.queryParams.pageNum=1,this.queryParams.orgId=this.selectedRootOrgId,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.roleId})),this.single=1!=e.length,this.multiple=!e.length},handleCommand:function(e,t){switch(e){case"handleDataScope":this.handleDataScope(t);break;case"handleAuthUser":this.handleAuthUser(t);break;default:break}},handleCheckedTreeExpand:function(e,t){if("menu"==t)for(var r=this.menuOptions,n=0;n<r.length;n++)this.$refs.menu.store.nodesMap[r[n].id].expanded=e;else if("dept"==t)for(var a=this.deptOptions,o=0;o<a.length;o++)this.$refs.dept.store.nodesMap[a[o].id].expanded=e},handleCheckedTreeNodeAll:function(e,t){"menu"==t?this.$refs.menu.setCheckedNodes(e?this.menuOptions:[]):"dept"==t&&this.$refs.dept.setCheckedNodes(e?this.deptOptions:[])},handleCheckedTreeConnect:function(e,t){"menu"==t?this.form.menu_check_strictly=!!e:"dept"==t&&(this.form.dept_check_strictly=!!e)},handleAdd:function(){var e=y(v().mark((function e(){return v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,this.reset(),e.next=4,this.getMenuTreeselect();case 4:this.form.org_id=this.selectedRootOrgId,this.open=!0,this.title="添加角色",this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleUpdate:function(e){var t=this;this.reset();var r=e.role_id,n=this.getRoleMenuTreeselect(r);this.loading=!0,Object(o["i"])(r).then((function(e){t.form=e,t.open=!0,t.$nextTick((function(){n.then((function(e){var r=e.checkedKeys;r&&r.forEach((function(e){t.$nextTick((function(){t.$refs.menu.setChecked(e,!0,!1)}))}))}))})),t.title="修改角色",t.loading=!1})).catch((function(){t.loading=!1}))},dataScopeSelectChange:function(e){"2"!==e&&this.$refs.dept.setCheckedKeys([])},handleDataScope:function(e){var t=this;this.reset();var r=this.getRoleDeptTreeselect(e.role_id);Object(o["i"])(e.role_id).then((function(e){t.form=e,t.openDataScope=!0,t.$nextTick((function(){r.then((function(e){t.$refs.dept.setCheckedKeys(e.checkedKeys)}))})),t.title="分配数据权限"}))},handleAuthUser:function(e){var t=e.role_id;this.$router.push("/system/role-auth/user/"+t)},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(e.form.menu_check_strictly=1,e.form.dept_check_strictly=1,void 0!=e.form.role_id?(e.form.menuIds=e.getMenuAllCheckedKeys(),Object(o["m"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.search()}))):(e.form.menuIds=e.getMenuAllCheckedKeys(),Object(o["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.search()}))))}))},submitDataScope:function(){var e=this;void 0!=this.form.roleId&&(this.form.deptIds=this.getDeptAllCheckedKeys(),Object(o["g"])(this.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.openDataScope=!1,e.getList()})))},handleDelete:function(e){var t=this,r=e.role_id;this.$modal.confirm('是否确认删除角色为"'+e.role_name+'"的数据项?').then((function(){return Object(o["h"])(r)})).then((function(){t.search(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("system/role/export",p({},this.queryParams),"role_".concat((new Date).getTime(),".xlsx"))}}},_=w,x=r("2877"),S=Object(x["a"])(_,n,a,!1,null,null,null);t["default"]=S.exports},"812e":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-row",{attrs:{gutter:30}},[r("el-col",{attrs:{span:4,xs:24}},[r("div",{staticClass:"head-container"},[r("el-input",{staticStyle:{"margin-bottom":"20px"},attrs:{placeholder:"请输入机构名称",clearable:"",size:"small","prefix-icon":"el-icon-search"},model:{value:e.deptName,callback:function(t){e.deptName=t},expression:"deptName"}})],1),e._v(" "),r("div",{staticClass:"head-container"},[r("el-tree",{ref:"tree",attrs:{data:e.orgListOptions,props:e.defaultProps,"expand-on-click-node":!1,"filter-node-method":e.filterNode,"default-expand-all":"","highlight-current":""},on:{"node-click":e.handleNodeClick}})],1)]),e._v(" "),r("el-col",{attrs:{span:20,xs:24}},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[r("el-form-item",{attrs:{label:"用户名称",prop:"userName"}},[r("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入登录名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[r("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"请输入手机号码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.phonenumber,callback:function(t){e.$set(e.queryParams,"phonenumber",t)},expression:"queryParams.phonenumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{staticStyle:{width:"130px"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.constants.normalOrDisabled,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:add"],expression:"['system:user:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:import"],expression:"['system:user:import']"}],attrs:{type:"info",plain:"",icon:"el-icon-upload2",size:"mini"},on:{click:e.handleImport}},[e._v("导入")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:export"],expression:"['system:user:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"50",align:"left"}}),e._v(" "),e.columns[0].visible?r("el-table-column",{key:"id",attrs:{label:"用户编号",align:"left",prop:"id"}}):e._e(),e._v(" "),e.columns[1].visible?r("el-table-column",{key:"user_name",attrs:{label:"用户名称",align:"left",prop:"user_name","show-overflow-tooltip":!0}}):e._e(),e._v(" "),e.columns[2].visible?r("el-table-column",{key:"nick_name",attrs:{label:"用户昵称",align:"left",prop:"nick_name","show-overflow-tooltip":!0}}):e._e(),e._v(" "),e.columns[3].visible?r("el-table-column",{key:"dept_id",attrs:{label:"机构",align:"left",prop:"parameter.dept_name","show-overflow-tooltip":!0}}):e._e(),e._v(" "),e.columns[4].visible?r("el-table-column",{key:"phonenumber",attrs:{label:"手机号码",align:"left",prop:"phonenumber",width:"120"}}):e._e(),e._v(" "),e.columns[5].visible?r("el-table-column",{key:"status",attrs:{label:"状态",align:"left",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-switch",{attrs:{"active-value":0,"inactive-value":1},on:{change:function(r){return e.handleStatusChange(t.row)}},model:{value:t.row.status,callback:function(r){e.$set(t.row,"status",r)},expression:"scope.row.status"}})]}}],null,!1,828910814)}):e._e(),e._v(" "),e.columns[6].visible?r("el-table-column",{attrs:{label:"创建时间",align:"left",prop:"create_time",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e.parseTime(t.row.create_time)))])]}}],null,!1,1382655209)}):e._e(),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:remove"],expression:"['system:user:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.row)}}},[e._v("删除")]),e._v(" "),r("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd","system:user:edit"],expression:"['system:user:resetPwd', 'system:user:edit']"}],attrs:{size:"mini"},on:{command:function(r){return e.handleCommand(r,t.row)}}},[r("span",{staticClass:"el-dropdown-link"},[r("i",{staticClass:"el-icon-d-arrow-right el-icon--right"}),e._v("更多\n ")]),e._v(" "),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:resetPwd"],expression:"['system:user:resetPwd']"}],attrs:{command:"handleResetPwd",icon:"el-icon-key"}},[e._v("重置密码")]),e._v(" "),r("el-dropdown-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:edit"],expression:"['system:user:edit']"}],attrs:{command:"handleAuthRole",icon:"el-icon-circle-check"}},[e._v("分配角色")])],1)],1)]}}])})],1),e._v(" "),r("el-pagination",{attrs:{"current-page":e.queryParams.pageNum,"page-sizes":e.constants.page.limit,layout:e.constants.page.layout,total:this.total},on:{"size-change":e.changeSize,"current-change":e.changePage}})],1)],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"用户昵称",prop:"nick_name"}},[r("el-input",{attrs:{placeholder:"请输入用户昵称",maxlength:"30"},model:{value:e.form.nick_name,callback:function(t){e.$set(e.form,"nick_name",t)},expression:"form.nick_name"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"归属部门",prop:"dept_id"}},[r("treeselect",{attrs:{options:e.deptOptions,"show-count":!0,placeholder:"请选择归属部门",normalizer:e.normalizer},model:{value:e.form.dept_id,callback:function(t){e.$set(e.form,"dept_id",t)},expression:"form.dept_id"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[r("el-input",{attrs:{placeholder:"请输入手机号码",maxlength:"11"},model:{value:e.form.phonenumber,callback:function(t){e.$set(e.form,"phonenumber",t)},expression:"form.phonenumber"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{placeholder:"请输入邮箱",maxlength:"50"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[void 0==e.form.id?r("el-form-item",{attrs:{label:"登录名",prop:"user_name"}},[r("el-input",{attrs:{placeholder:"请输入登录名",maxlength:"30"},model:{value:e.form.user_name,callback:function(t){e.$set(e.form,"user_name",t)},expression:"form.user_name"}})],1):e._e()],1),e._v(" "),r("el-col",{attrs:{span:12}},[void 0==e.form.id?r("el-form-item",{attrs:{label:"用户密码",prop:"password"}},[r("el-input",{attrs:{placeholder:"请输入用户密码",type:"password",maxlength:"20","show-password":""},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1):e._e()],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"用户性别",prop:"sex"}},[r("el-select",{attrs:{placeholder:"请选择性别"},model:{value:e.form.sex,callback:function(t){e.$set(e.form,"sex",t)},expression:"form.sex"}},e._l(e.constants.sex,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"状态"}},[r("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.constants.normalOrDisabled,(function(t){return r("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"岗位"}},[r("el-select",{attrs:{multiple:"",placeholder:"请选择岗位"},model:{value:e.form.postIds,callback:function(t){e.$set(e.form,"postIds",t)},expression:"form.postIds"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"角色"}},[r("el-select",{attrs:{multiple:"",placeholder:"请选择角色"},model:{value:e.form.roleIds,callback:function(t){e.$set(e.form,"roleIds",t)},expression:"form.roleIds"}},e._l(e.roleOptions,(function(e){return r("el-option",{key:e.role_id,attrs:{label:e.role_name,value:e.role_id,disabled:1==e.status}})})),1)],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.upload.title,visible:e.upload.open,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.upload,"open",t)}}},[r("el-upload",{ref:"upload",attrs:{limit:1,accept:".xlsx, .xls",headers:e.upload.headers,action:e.upload.url+"?updateSupport="+e.upload.updateSupport,disabled:e.upload.isUploading,"on-progress":e.handleFileUploadProgress,"on-success":e.handleFileSuccess,"auto-upload":!1,drag:""}},[r("i",{staticClass:"el-icon-upload"}),e._v(" "),r("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),r("em",[e._v("点击上传")])]),e._v(" "),r("div",{staticClass:"el-upload__tip text-center",attrs:{slot:"tip"},slot:"tip"},[r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[r("el-checkbox",{model:{value:e.upload.updateSupport,callback:function(t){e.$set(e.upload,"updateSupport",t)},expression:"upload.updateSupport"}}),e._v(" 是否更新已经存在的用户数据\n ")],1),e._v(" "),r("span",[e._v("仅允许导入xls、xlsx格式文件。")]),e._v(" "),r("el-link",{staticStyle:{"font-size":"12px","vertical-align":"baseline"},attrs:{type:"primary",underline:!1},on:{click:e.importTemplate}},[e._v("下载模板")])],1)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitFileForm}},[e._v("确 定")]),e._v(" "),r("el-button",{on:{click:function(t){e.upload.open=!1}}},[e._v("取 消")])],1)],1)],1)},a=[],o=r("c0c7"),i=r("5f87"),s=r("fcb7"),l=r("ca17"),c=r.n(l),u=(r("542c"),r("83d6"));function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=g(e,"string");return"symbol"==d(t)?t:t+""}function g(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v={name:"User",components:{Treeselect:c.a},data:function(){return{constants:this.$constants,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,userList:null,title:"",deptOptions:void 0,orgListOptions:void 0,open:!1,deptName:void 0,initPassword:void 0,dateRange:[],postOptions:[],roleOptions:[],form:{},defaultProps:{children:"children",label:"label"},upload:{open:!1,title:"",isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+Object(i["a"])()},url:u["apiBaseURL"]+"/system/user/import"},queryParams:{pageNum:1,pageSize:10,userName:void 0,phonenumber:void 0,status:void 0,deptId:void 0},columns:[{key:0,label:"用户编号",visible:!0},{key:1,label:"登录名",visible:!0},{key:2,label:"用户昵称",visible:!0},{key:3,label:"机构",visible:!0},{key:4,label:"手机号码",visible:!0},{key:5,label:"状态",visible:!0},{key:6,label:"创建时间",visible:!0}],rules:{user_name:[{required:!0,message:"登录名不能为空",trigger:"blur"},{min:2,max:20,message:"登录名称长度必须介于 2 和 20 之间",trigger:"blur"}],nick_name:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],password:[{required:!1,message:"不填写将使用平台默认密码",trigger:"blur"},{min:5,max:20,message:"用户密码长度必须介于 5 和 20 之间",trigger:"blur"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],phonenumber:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},watch:{deptName:function(e){this.$refs.tree.filter(e)}},created:function(){this.listOrgRootTree(),this.getList()},methods:{changeSize:function(e){this.queryParams.pageSize=e,this.getList()},changePage:function(e){this.queryParams.pageNum=e,this.getList()},getList:function(){var e=this;this.loading=!0,(void 0==this.queryParams.deptId||null==this.queryParams.deptId||this.queryParams.deptId<1)&&(this.queryParams.deptId=1),Object(o["g"])(this.queryParams).then((function(t){e.userList=t.datas,e.total=t.totalRows,e.loading=!1}))},getTreeselect:function(e){var t=this;return void 0==e||""==e?(this.$modal.alert("请选择一个部门"),!1):(Object(s["h"])(e).then((function(e){t.deptOptions=e})),!0)},listOrgRootTree:function(){var e=this;Object(s["f"])().then((function(t){e.orgListOptions=t}))},filterNode:function(e,t){return!e||(console.log("value = "+e+", data = "+t),-1!==t.label.indexOf(e))},handleNodeClick:function(e){this.queryParams.deptId=e.id,this.handleQuery()},handleStatusChange:function(e){var t=this,r=0===e.status?"启用":"禁用";this.$modal.confirm("确认要"+r+'"'+e.user_name+'"用户吗?').then((function(){return Object(o["b"])(e.id,e.status)})).then((function(){t.$modal.msgSuccess(r+"成功")})).catch((function(){e.status=0===e.status?1:0}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,dept_id:void 0,user_name:void 0,nick_name:void 0,password:void 0,phonenumber:void 0,email:void 0,sex:void 0,status:0,remark:void 0,postIds:[],roleIds:[]},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.userId})),this.single=1!=e.length,this.multiple=!e.length},handleCommand:function(e,t){switch(e){case"handleResetPwd":this.handleResetPwd(t);break;case"handleAuthRole":this.handleAuthRole(t);break;default:break}},handleAdd:function(){var e=this;this.reset(),this.getTreeselect(this.queryParams.deptId)&&Object(o["e"])(this.queryParams.deptId).then((function(t){e.roleOptions=t.roles,e.open=!0,e.title="添加用户",e.form.password=e.initPassword,e.form.sex=0}))},handleUpdate:function(e){var t=this;this.reset();var r=e.id;Object(o["f"])(r).then((function(e){t.form=e.data,t.roleOptions=e.roles,t.form.roleIds=e.roleIds,t.open=!0,t.title="修改用户",t.form.password="",t.form.sex=e.data.sex-0,t.getTreeselect(t.form.dept_id)}))},handleResetPwd:function(e){var t=this;this.$modal.confirm('确认要重置用户"'+e.user_name+'"的密码?').then((function(){Object(o["h"])(e.id,"")})).then((function(){t.$modal.msgSuccess("密码重置成功")})).catch((function(){}))},handleAuthRole:function(e){var t=e.id;this.$router.push("/system/user-auth/role/"+t)},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.id?Object(o["j"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(o["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,r=e.id;this.$modal.confirm('是否确认删除用户编号为"'+r+'"的数据项?').then((function(){return Object(o["c"])(r)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.$download("system/user/export",p({},this.queryParams),"user_".concat((new Date).getTime(),".xlsx"))},handleImport:function(){this.upload.title="用户导入",this.upload.open=!0},importTemplate:function(){this.$download("system/user/select/downloadTemplate",{},"user_template.xlsx")},handleFileUploadProgress:function(e,t,r){this.upload.isUploading=!0},handleFileSuccess:function(e,t,r){this.upload.open=!1,this.upload.isUploading=!1,this.$refs.upload.clearFiles(),this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>"+e.msg+"</div>","导入结果",{dangerouslyUseHTMLString:!0}),this.getList()},submitFileForm:function(){this.$refs.upload.submit()},normalizer:function(e){null!=e.children&&"null"!=e.children||delete e.children}}},b=v,y=r("2877"),w=Object(y["a"])(b,n,a,!1,null,null,null);t["default"]=w.exports},"822f":function(e,t,r){"use strict";r.r(t),t["default"]={data:function(){return{statesOptions:[{label:"全部",value:""},{label:"待出库",value:"0"},{label:"待接收",value:"1"},{label:"已接收",value:"2"},{label:"已撤销",value:"4"}]}},methods:{getStatesLabel:function(e){var t=this.statesOptions.find((function(t){return t.value==e}));return t?t.label:""}}}},8311:function(e,t,r){"use strict";r("1a07")},"84d8":function(e,t,r){},8638:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{width:"100%"}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"font-18 font-bold"},[e._v("类别金额统计")])]),e._v(" "),r("div",{staticStyle:{height:"300px"},attrs:{id:"LBJETJ"}})])],1)},a=[],o=r("313e"),i={name:"LBJETJ",props:{num:{type:Object,default:{aTotalNum:0,aTotalPrice:0,bTotalNum:0,bTotalPrice:0,cTotalNum:0,cTotalPrice:0,tenantId:0,totalNum:0,totalPrice:0,xiaFaNum:0,zhanYouPercent:0}}},watch:{num:function(){this.options.series[0].data=[{value:parseFloat(this.num.aTotalPrice),name:"A类"},{value:parseFloat(this.num.bTotalPrice),name:"B类"},{value:parseFloat(this.num.cTotalPrice),name:"C类"}],this.myChart.setOption(this.options)}},data:function(){return{myChart:null,options:{}}},mounted:function(){this.getCenterLine()},methods:{getCenterLine:function(){var e=this,t=document.getElementById("LBJETJ");this.myChart=o["init"](t),window.addEventListener("resize",(function(){e.changeWidth()})),this.options={color:["#1877FF","#5EDEA5","#F7BE12","#55C6E1","#ED653B"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{orient:"vertical",right:0,top:60,bottom:20},series:[{name:"类别金额统计",type:"pie",minAngle:2,avoidLabelOverlap:!0,itemStyle:{normal:{label:{show:!0,formatter:function(e){return e.name+"\n "+e.percent.toFixed(1)+"%"}},labelLine:{show:!0,length:.01}}},data:[{value:parseFloat(this.num.aTotalPrice),name:"A类"},{value:parseFloat(this.num.bTotalPrice),name:"B类"},{value:parseFloat(this.num.cTotalPrice),name:"C类"}]}]},this.options&&this.myChart.setOption(this.options)},changeWidth:function(){this.myChart.resize()}}},s=i,l=(r("e3f8"),r("2877")),c=Object(l["a"])(s,n,a,!1,null,"3829bd99",null);t["default"]=c.exports},"87e5":function(e,t,r){},"8a53":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1)],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("6ec5"),c=r("6f7e"),u={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"]},data:function(){return{items:[{type:"cascader",dataIndex:"categoryId",label:"分类",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"goodsTemplateId",queryKey:"categoryId"}],optionsConfig:{label:"label",value:"id",url:s["a"].apiBaseURL+"/pc/base/category/select/tree",props:{checkStrictly:!1,emitPath:!1,value:"id"}}},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/warehouse/warning/getList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"物品名称",field:"baseGoodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"单位",field:"unit",align:"center",width:80},{title:"当前库存",field:"warehouseCount",align:"center",width:130},{title:"保底库存",field:"lowerLimit",align:"center",width:130},{title:"封顶库存",field:"upperLimit",align:"center",width:130},{title:"状态",field:"warningType",align:"center",width:90,formatter:function(e){return{type:1==e.warningType?"warning":"danger",value:1==e.warningType?"库存已超":"预计缺货"}}},{title:"预警时间",field:"warningTime",align:"center",width:160,formatter:function(e){return{value:c["LongToDateTime"](e.warningTime)}}}],paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.name+'"的机构吗?').then((function(){l["e"]({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},d=u,f=r("2877"),p=Object(f["a"])(d,n,a,!1,null,"28fd2f8d",null);t["default"]=p.exports},"8bea":function(e,t,r){"use strict";r("2f73")},"8d74":function(e,t,r){var n=r("4cef"),a=/^\s+/;function o(e){return e?e.slice(0,n(e)+1).replace(a,""):e}e.exports=o},"8dbd":function(e,t,r){},"8eb74":function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return s}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/department/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/department/edit",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/department/detail",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/department/list/all",method:"get",params:e})}},"904d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{staticClass:"table-tool-bar",staticStyle:{"margin-bottom":"15px"}},[r("my-button",{attrs:{name:"新增",site:"tools",size:"medium"},on:{click:e.handleAdd}})],1),e._v(" "),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("div",{style:{"overflow-y":"auto",height:"calc(100vh - 352px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("出库单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))])]),e._v(" "),r("div",{staticClass:"card-header-right"},[r("el-button",{attrs:{site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleExport("outputExport","出库单-"+t.businessFormCode,{id:t.id})}}},[e._v("导出出库单")]),e._v(" "),r("el-button",{attrs:{name:"查看详情",site:"form",type:"info",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("查看详情")])],1)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("机构:")]),e._v(e._s(t.agencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("操作人:")]),e._v(e._s(t.operatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("出库时间:")]),e._v(e._s(e._f("formatTime")(t.dealTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.formOutputTemplateInfoList,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.goodsName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.count))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1)]),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{ref:"editRef",attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)},a=[],o=r("efdb"),i=r("f6e8"),s=r("9960"),l=r("ae0b"),c=r("9f01"),u=r("271c"),d=r("433d");function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=v(e,"string");return"symbol"==f(t)?t:t+""}function v(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"index",mixins:[u["default"]],components:{MyButton:i["a"],myImport:s["default"],edit:l["default"],detail:c["default"]},data:function(){return{list:[],items:[{type:"text",dataIndex:"businessFormCode",label:"出库单号",placeholder:"请输入",defaultValue:""},{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"goodsTemplateId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:d["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"text",dataIndex:"createName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"出库时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}]}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.loading=!0,Object(o["c"])(m({pageNum:this.pageNum,pageSize:this.pageSize},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1}))}}},y=b,w=(r("4260"),r("2877")),_=Object(w["a"])(y,n,a,!1,null,"9e2fc5e8",null);t["default"]=_.exports},9205:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("分发单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("所属机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.outAgencyName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("部门:")]),e._v(" "),r("span",[e._v(e._s(e.detail.inWarehouseName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("分发人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.outOperatorName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("分发时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.createTime)))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("领取人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.inOperatorName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("联系电话:")]),e._v(" "),r("span",[e._v(e._s(e.detail.tel))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("分发手续:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1),e._v(" "),e._l(e.detail.formTransferGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.categoryName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("物品类别:")]),e._v(" "),r("span",[e._v(e._s(t.type)+"类")])])],1),e._v(" "),r("el-form",e._l(t.models,(function(n,a){return r("el-row",{key:a,staticClass:"card3"},[r("el-col",{staticStyle:{padding:"10px 0"},attrs:{span:10}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"规格型号:"}},[e._v("\n "+e._s(n.baseGoodsModelsName)+"\n ")])],1),e._v(" "),r("el-col",{staticStyle:{padding:"10px 0"},attrs:{span:4}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"单位:","label-width":"80"}},[e._v("\n "+e._s(n.unit)+"\n ")])],1),e._v(" "),"A"===t.type?r("el-col",{attrs:{span:24}},e._l(n.useInfo,(function(t,n){return r("el-row",{key:n},[r("el-col",{attrs:{span:6}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"分发数量:","label-width":"80"}},[e._v("\n "+e._s(t.num)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"使用人:","label-width":"80"}},[e._v("\n "+e._s(t.name)+"\n ")])],1),e._v(" "),r("el-col",{attrs:{span:6}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"联系电话:","label-width":"80"}},[e._v("\n "+e._s(t.tel)+"\n ")])],1)],1)})),1):r("el-col",{staticStyle:{padding:"10px 0"},attrs:{span:10}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"分发数量:",prop:"counts","label-width":"80"}},[e._v("\n "+e._s(n.counts)+"\n ")])],1)],1)})),1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("a083"),i=r("f76d"),s=r("6f7e"),l=r("dee4"),c=r("c82c"),u=r.n(c),d=(r("0808"),r("dcec")),f=null,p={computed:{de:function(){return d["a"]}},components:{winMd:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(e){return e?s["LongToDateTime"](e):"-"},formatPrice:function(e){return e/100}},created:function(){var e=this;Object(o["e"])({id:this.setting.id}).then((function(t){e.detail=t,e.loading=!1,e.fileList=e.detail.procureDoc?JSON.parse(e.detail.procureDoc):[],e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=f&&f.destroy();var e=document.querySelector("#uploadPreviewImages");f=new u.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}f.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(l["c"])()+e},close:function(){this.$emit("close")}}},m=p,h=(r("dc72"),r("2877")),g=Object(h["a"])(m,n,a,!1,null,"13140643",null);t["default"]=g.exports},9406:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"content"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-card",{attrs:{shadow:"never"}},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"font-18 font-bold"},[e._v("调拨待办")])]),e._v(" "),r("div",{staticClass:"f-r f-r-between m-b-10"},[r("el-radio-group",{attrs:{size:"mini"},on:{change:e.changeAudit},model:{value:e.waitType,callback:function(t){e.waitType=t},expression:"waitType"}},[r("el-radio-button",{attrs:{label:"0"}},[e._v("待出库")]),e._v(" "),r("el-radio-button",{attrs:{label:"1"}},[e._v("待入库")])],1),e._v(" "),r("div",{staticClass:"to-more",on:{click:function(t){return e.nav("/stock/transfer/transferissue")}}},[e._v("查看更多 >")])],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.waitLoading,expression:"waitLoading"}],staticClass:"top-tb",attrs:{data:e.waitWorkData,height:"220","show-header":!1,size:"medium"}},[r("el-table-column",{attrs:{prop:"businessFormCode",align:"center",width:"130"}}),e._v(" "),r("el-table-column",{attrs:{prop:"inWarehouseName",align:"left","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.inWarehouseName,placement:"top-start"}},[r("div",{staticClass:"font-14 color-333",staticStyle:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},[e._v("\n "+e._s(n.inWarehouseName)+"\n ")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"operatorName",align:"center",width:"80"}}),e._v(" "),r("el-table-column",{attrs:{prop:"createTime",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticClass:"font-14 color-333"},[e._v(e._s(e.formattTime(t.row.createTime)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"date",label:"操作",fixed:"right",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{staticStyle:{padding:"4px 15px"},attrs:{size:"mini",type:"primary"},nativeOn:{click:function(r){return r.preventDefault(),e.aduitThis(t.row)}}},[e._v("处理")])]}}])}),e._v(" "),r("el-empty",{attrs:{slot:"empty",description:"暂无数据"},slot:"empty"})],1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-card",{attrs:{shadow:"never"}},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",{staticClass:"font-18 font-bold"},[e._v("预警通知")])]),e._v(" "),r("div",{staticClass:"f-r f-r-between m-b-10"},[r("el-radio-group",{attrs:{size:"mini"},on:{change:e.changeEarlyWarning},model:{value:e.earlyWarningType,callback:function(t){e.earlyWarningType=t},expression:"earlyWarningType"}},[r("el-radio-button",{attrs:{label:""}},[e._v("全部")]),e._v(" "),r("el-radio-button",{attrs:{label:"2"}},[e._v("缺货 "),e.warningTypeNum.lowNum?r("span",[e._v("("+e._s(e.warningTypeNum.lowNum)+")")]):e._e()]),e._v(" "),r("el-radio-button",{attrs:{label:"1"}},[e._v("超出 "),e.warningTypeNum.upNum?r("span",[e._v("("+e._s(e.warningTypeNum.upNum)+")")]):e._e()])],1),e._v(" "),r("div",{staticClass:"to-more",on:{click:function(t){return e.nav("/stock/ledger/alertQuery")}}},[e._v("查看更多 >")])],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.earlyLoading,expression:"earlyLoading"}],staticClass:"top-tb",attrs:{data:e.earlyWarningData,height:"220","show-header":!1,size:"medium"}},[r("el-table-column",{attrs:{prop:"baseGoodsTemplateName",align:"left","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.baseGoodsTemplateName,placement:"top-start"}},[r("div",{staticClass:"font-14 color-333",staticStyle:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},[e._v("\n "+e._s(n.baseGoodsTemplateName)+"\n ")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"baseGoodsModelsName",align:"left","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.baseGoodsModelsName,placement:"top-start"}},[r("div",{staticClass:"font-14 color-333",staticStyle:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},[e._v("\n "+e._s(n.baseGoodsModelsName)+"\n ")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"surplus",align:"left","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("span",{staticClass:"font-14 color-333"},[e._v("剩余"+e._s(n.warehouseCount)+e._s(n.unit))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"warningTime",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("span",{staticClass:"font-14 color-333"},[e._v(e._s(e.formattTime(n.warningTime)))])]}}])}),e._v(" "),r("el-empty",{attrs:{slot:"empty",description:"暂无数据"},slot:"empty"})],1)],1)],1)],1),e._v(" "),r("div",{staticClass:"f-r f-r-between total-list"},[r("div",{staticClass:"total-item"},[r("div",{staticClass:"font-14 color-666"},[e._v("物品数量")]),e._v(" "),r("div",{staticClass:"font-14 color-333",staticStyle:{"margin-top":"6px"}},[r("span",{staticClass:"total-num"},[e._v(e._s(e.goodsNumPrice.totalNum))])])]),e._v(" "),r("div",{staticClass:"total-item"},[r("div",{staticClass:"font-14 color-666"},[e._v("资产总金额")]),e._v(" "),r("div",{staticClass:"font-14 color-333",staticStyle:{"margin-top":"6px"}},[r("span",{staticClass:"total-num"},[e._v(e._s(e.goodsNumPrice.totalPrice))]),e._v("万元\n ")])]),e._v(" "),r("div",{staticClass:"total-item"},[r("div",{staticClass:"font-14 color-666"},[e._v("物品占用率")]),e._v(" "),r("div",{staticClass:"font-14 color-333",staticStyle:{"margin-top":"6px"}},[r("span",{staticClass:"total-num"},[e._v(e._s(e.goodsNumPrice.zhanYouPercent)+"%")])])]),e._v(" "),r("div",{staticClass:"total-item"},[r("div",{staticClass:"font-14 color-666"},[e._v("A类物品数量")]),e._v(" "),r("div",{staticClass:"font-14 color-333",staticStyle:{"margin-top":"6px"}},[r("span",{staticClass:"total-num"},[e._v(e._s(e.goodsNumPrice.aTotalNum))])])]),e._v(" "),r("div",{staticClass:"total-item"},[r("div",{staticClass:"font-14 color-666"},[e._v("B类物品数量")]),e._v(" "),r("div",{staticClass:"font-14 color-333",staticStyle:{"margin-top":"6px"}},[r("span",{staticClass:"total-num"},[e._v(e._s(e.goodsNumPrice.bTotalNum))])])])]),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("LBSLTJ",{attrs:{num:e.goodsNumPrice}})],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("LBJETJ",{attrs:{num:e.goodsNumPrice}})],1)],1),e._v(" "),r("XYZC")],1)},a=[],o=r("271c"),i=r("5fd4"),s=r("6f7e"),l=r("a083"),c=r("2c4d");function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=h(e,"string");return"symbol"==u(t)?t:t+""}function h(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var g=r("9c807"),v={};g.keys().forEach((function(e){var t=g(e);v[e.replace(/^\.\/(.*)\.\w+$/,"$1")]=t.default}));var b={name:"Dashboard",components:f({},v),mixins:[o["default"]],data:function(){return{earlyLoading:!1,waitLoading:!1,goodsNumPrice:{aTotalNum:0,aTotalPrice:0,bTotalNum:0,bTotalPrice:0,cTotalNum:0,cTotalPrice:0,tenantId:0,totalNum:0,totalPrice:0,xiaFaNum:0,zhanYouPercent:0},waitType:"0",waitWorkData:[],earlyWarningType:"",warningTypeNum:{lowNum:0,totalNum:0,upNum:0},earlyWarningData:[]}},created:function(){var e=this;this.getAuditList(),this.getWarningList(),Object(i["b"])().then((function(t){t&&(e.goodsNumPrice=t)}))},methods:{formattTime:function(e){return Object(s["LongToDateTime"])(e)},changeAudit:function(e){var t=this;this.waitType=e,this.$nextTick((function(){t.getAuditList()}))},getAuditList:function(){var e=this;this.waitLoading=!0,this.waitWorkData=[];var t={pageNum:1,pageSize:5};"0"===this.waitType?(t.outAgencyId=this.userInfo.tenantId,t.states=0):(t.inAgencyId=this.userInfo.tenantId,t.states=1),Object(l["g"])(t).then((function(t){e.waitLoading=!1,e.waitWorkData=t.datas})).catch((function(){e.waitLoading=!1}))},aduitThis:function(e){"0"===this.waitType?this.handleOutput(e):this.handleIncome(e)},handleIncome:function(e){var t=this;this.$confirm("您确定 单号:".concat(e.businessFormCode," 接收入库吗?"),"接收入库",{beforeClose:function(r,n,a){"confirm"==r?(n.confirmButtonLoading=!0,n.confirmButtonText="执行中...",Object(l["c"])({id:e.id}).then((function(e){t.$message.success("接收入库成功!"),a(),n.confirmButtonLoading=!1,t.search(1)})).catch((function(){a()}))):a()}})},handleOutput:function(e){var t=this;this.$confirm("您确定 单号:".concat(e.businessFormCode," 调拨出库吗?"),"调拨出库",{beforeClose:function(r,n,a){"confirm"==r?(n.confirmButtonLoading=!0,n.confirmButtonText="执行中...",Object(l["h"])({id:e.id}).then((function(e){t.$message.success("调拨出库成功!"),a(),n.confirmButtonLoading=!1,t.search(1)})).catch((function(){a()}))):a()}})},changeEarlyWarning:function(e){var t=this;this.earlyWarningType=e,this.$nextTick((function(){t.getWarningList()}))},getWarningList:function(){var e=this;this.earlyLoading=!0,this.earlyWarningData=[],Object(c["c"])().then((function(t){e.warningTypeNum=t,Object(c["b"])({warningType:e.earlyWarningType,pageNum:1,pageSize:5}).then((function(t){e.earlyLoading=!1,e.earlyWarningData=t.datas})).catch((function(){e.waitLoading=!1}))}))},nav:function(e){this.$router.push(e)}}},y=b,w=(r("5cdc"),r("2877")),_=Object(w["a"])(y,n,a,!1,null,"6e15921a",null);t["default"]=_.exports},9523:function(e,t,r){var n=r("a395");function a(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"95d7":function(e,t,r){},9602:function(e,t,r){"use strict";r("f48e")},"965b":function(e,t,r){"use strict";r("44b5")},9794:function(e,t,r){"use strict";r("e686")},"97d8":function(e){e.exports={type:"FeatureCollection",features:[{type:"Feature",properties:{adcode:410100,name:"郑州市",center:[113.665412,34.757975],centroid:[113.477391,34.626256],childrenNum:12,level:"city",parent:{adcode:41e4},subFeatureIndex:0,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[114.22071,34.919066],[114.208505,34.926602],[114.200704,34.939504],[114.172834,34.931871],[114.160566,34.933496],[114.120491,34.956638],[114.101869,34.954768],[114.080542,34.944527],[114.051225,34.944527],[114.028451,34.959346],[114.018385,34.958608],[113.985293,34.928276],[113.973654,34.910447],[113.953585,34.898082],[113.905331,34.901333],[113.870163,34.885666],[113.826062,34.877683],[113.800456,34.87995],[113.78649,34.890445],[113.777116,34.905028],[113.766106,34.91488],[113.749057,34.919017],[113.725528,34.917392],[113.716846,34.913402],[113.684824,34.906358],[113.670731,34.910299],[113.665069,34.918525],[113.650348,34.928769],[113.631348,34.929311],[113.592091,34.933743],[113.57479,34.950583],[113.552582,34.965155],[113.543271,34.96801],[113.515086,34.965992],[113.495835,34.959937],[113.477339,34.957278],[113.449658,34.960232],[113.429463,34.964761],[113.427198,34.983563],[113.407821,34.989518],[113.37561,34.98002],[113.362587,34.970323],[113.343462,34.950533],[113.333018,34.944871],[113.315277,34.942212],[113.28986,34.952601],[113.260543,34.953586],[113.243934,34.946201],[113.239342,34.939504],[113.236951,34.925174],[113.227703,34.908427],[113.197631,34.900299],[113.179512,34.893697],[113.139815,34.884631],[113.14793,34.856096],[113.119431,34.853977],[113.107666,34.844709],[113.06023,34.83756],[113.039595,34.841948],[113.025063,34.854913],[113.004364,34.864081],[112.992851,34.863539],[112.989077,34.856343],[112.976117,34.847765],[112.943025,34.831102],[112.938181,34.831595],[112.914148,34.84747],[112.902321,34.852301],[112.884516,34.853089],[112.879106,34.849688],[112.873192,34.832827],[112.866461,34.829524],[112.853501,34.810736],[112.838653,34.812116],[112.827266,34.819218],[112.814118,34.811475],[112.80984,34.7951],[112.810595,34.784938],[112.817263,34.778278],[112.837144,34.782915],[112.846329,34.780054],[112.875017,34.779659],[112.887914,34.782718],[112.89993,34.780596],[112.909367,34.771123],[112.908486,34.757405],[112.902258,34.753161],[112.909933,34.737465],[112.939502,34.72384],[112.931764,34.711694],[112.91635,34.710953],[112.901692,34.693521],[112.893827,34.694953],[112.879735,34.705077],[112.867782,34.708089],[112.8496,34.699694],[112.830223,34.694163],[112.829217,34.683346],[112.835885,34.667785],[112.831041,34.656669],[112.847147,34.640362],[112.841799,34.628648],[112.825001,34.628698],[112.82475,34.625188],[112.840226,34.623161],[112.845574,34.609913],[112.839408,34.596514],[112.846329,34.58885],[112.862183,34.590284],[112.864133,34.580146],[112.877722,34.567731],[112.87898,34.560015],[112.890682,34.547102],[112.910751,34.545173],[112.929562,34.547548],[112.952273,34.547647],[112.967749,34.541264],[112.984736,34.539038],[112.976683,34.53117],[112.947995,34.531467],[112.929813,34.526023],[112.925598,34.509789],[112.927297,34.499691],[112.920125,34.482016],[112.922956,34.47657],[112.905215,34.468201],[112.896155,34.475827],[112.862371,34.473648],[112.856017,34.478402],[112.838024,34.477164],[112.806002,34.479243],[112.798012,34.487166],[112.774609,34.500137],[112.767374,34.49479],[112.740384,34.491077],[112.744285,34.4683],[112.741894,34.433973],[112.736673,34.422578],[112.729626,34.416978],[112.735918,34.404242],[112.733653,34.39309],[112.72409,34.388877],[112.721825,34.380152],[112.730318,34.377426],[112.728117,34.361163],[112.732898,34.350898],[112.756805,34.357394],[112.760076,34.346584],[112.776622,34.345046],[112.787002,34.343261],[112.788953,34.331158],[112.81223,34.340037],[112.824184,34.33344],[112.83318,34.333638],[112.854633,34.316325],[112.842114,34.311612],[112.84117,34.297818],[112.856458,34.302185],[112.87357,34.298016],[112.884516,34.30144],[112.91245,34.293749],[112.936293,34.295535],[112.954097,34.302135],[112.960829,34.297867],[112.992977,34.296478],[113.013235,34.300398],[113.020847,34.290424],[113.027642,34.289282],[113.037142,34.280299],[113.059476,34.280944],[113.075518,34.276527],[113.082439,34.26645],[113.097726,34.26223],[113.109365,34.263471],[113.142583,34.272804],[113.15202,34.266351],[113.175297,34.281639],[113.184356,34.290225],[113.18379,34.295634],[113.196436,34.312257],[113.210276,34.312009],[113.223362,34.325057],[113.224557,34.33473],[113.235567,34.339045],[113.267904,34.337805],[113.276334,34.342814],[113.276586,34.351444],[113.314648,34.352287],[113.314019,34.373856],[113.320436,34.383375],[113.315969,34.391157],[113.32528,34.404986],[113.348809,34.404738],[113.353968,34.396411],[113.370388,34.389918],[113.366991,34.379805],[113.389828,34.375988],[113.401655,34.377525],[113.414867,34.374947],[113.406751,34.355213],[113.414175,34.349361],[113.429085,34.350303],[113.459409,34.334432],[113.471425,34.330811],[113.482875,34.342864],[113.498729,34.338598],[113.510871,34.342715],[113.518169,34.335771],[113.516848,34.328579],[113.529619,34.317913],[113.556608,34.311513],[113.566737,34.318359],[113.579697,34.319897],[113.600836,34.313299],[113.608951,34.3132],[113.624805,34.303375],[113.634494,34.290026],[113.643994,34.288488],[113.658589,34.275037],[113.669851,34.275385],[113.679728,34.282532],[113.70332,34.276725],[113.7003,34.289381],[113.71326,34.29092],[113.713386,34.301391],[113.727227,34.305757],[113.736852,34.317863],[113.756732,34.313795],[113.777242,34.314589],[113.793159,34.328083],[113.791208,34.331803],[113.803791,34.33721],[113.832353,34.32342],[113.848584,34.322725],[113.85022,34.32719],[113.880481,34.32972],[113.885451,34.327785],[113.888093,34.348369],[113.879978,34.356056],[113.885199,34.370485],[113.878531,34.394577],[113.878153,34.411478],[113.891616,34.437342],[113.903507,34.454185],[113.912126,34.452352],[113.915586,34.444922],[113.929993,34.443485],[113.938108,34.454729],[113.948929,34.452699],[113.948615,34.435063],[113.968495,34.439324],[113.990326,34.435707],[114.006557,34.439225],[114.019894,34.445368],[114.021719,34.458989],[114.01851,34.46721],[114.008256,34.470082],[114.009577,34.480135],[114.0226,34.488552],[114.035119,34.503998],[114.062486,34.490532],[114.07035,34.481472],[114.083373,34.480927],[114.094383,34.492265],[114.093942,34.50182],[114.100296,34.535178],[114.107217,34.557887],[114.118478,34.570155],[114.129802,34.575348],[114.127852,34.584943],[114.133451,34.591025],[114.136848,34.605711],[114.125461,34.607886],[114.127726,34.61718],[114.14553,34.61456],[114.145153,34.604277],[114.15459,34.60576],[114.15157,34.618268],[114.157547,34.625979],[114.150375,34.656669],[114.160441,34.665611],[114.157547,34.686507],[114.158113,34.704336],[114.141189,34.7191],[114.138484,34.73475],[114.158364,34.759379],[114.172331,34.768311],[114.161762,34.781238],[114.134143,34.802154],[114.122504,34.81833],[114.133703,34.825628],[114.162517,34.828883],[114.185354,34.825628],[114.199824,34.832729],[114.211085,34.860877],[114.220522,34.906801],[114.22071,34.919066]]]]}},{type:"Feature",properties:{adcode:410200,name:"开封市",center:[114.341447,34.797049],centroid:[114.541763,34.604497],childrenNum:9,level:"city",parent:{adcode:41e4},subFeatureIndex:1,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.885451,34.327785],[113.894573,34.323767],[113.899229,34.315879],[113.896083,34.303375],[113.904702,34.294543],[113.916278,34.301688],[113.934271,34.304864],[113.937354,34.298612],[113.964406,34.292954],[113.96472,34.283128],[113.972459,34.283426],[113.977303,34.275583],[113.992905,34.27335],[113.990577,34.261138],[114.000266,34.263471],[114.00316,34.252549],[114.011275,34.242022],[114.041033,34.237851],[114.050847,34.247137],[114.058837,34.244753],[114.068589,34.250265],[114.076453,34.239639],[114.081926,34.24952],[114.098661,34.241923],[114.10816,34.228813],[114.102058,34.224343],[114.108475,34.218929],[114.109544,34.206958],[114.122882,34.204176],[114.129299,34.198214],[114.155345,34.202039],[114.160503,34.213564],[114.198314,34.217737],[114.202906,34.234623],[114.210267,34.241228],[114.246442,34.240433],[114.259905,34.251854],[114.267517,34.256968],[114.274626,34.274889],[114.287901,34.276527],[114.301175,34.26774],[114.328857,34.267294],[114.344207,34.251804],[114.356412,34.247186],[114.385729,34.24386],[114.405798,34.248031],[114.417689,34.265308],[114.434927,34.267145],[114.440652,34.270719],[114.455688,34.294096],[114.442539,34.300696],[114.430649,34.302284],[114.424546,34.309032],[114.434486,34.313894],[114.436059,34.330265],[114.427692,34.333837],[114.439897,34.336366],[114.438576,34.328033],[114.452857,34.319997],[114.46179,34.319947],[114.462042,34.330166],[114.479343,34.32962],[114.485949,34.325057],[114.493876,34.31191],[114.509855,34.309727],[114.519355,34.313448],[114.524703,34.306253],[114.528603,34.282234],[114.551629,34.284964],[114.551189,34.272059],[114.556662,34.267989],[114.58988,34.273747],[114.602085,34.271017],[114.611459,34.261088],[114.634044,34.261883],[114.647319,34.250315],[114.667514,34.250265],[114.679341,34.244307],[114.702241,34.244505],[114.71388,34.241327],[114.723946,34.228018],[114.730426,34.225237],[114.752697,34.23363],[114.758736,34.238397],[114.76465,34.254436],[114.781196,34.255627],[114.788242,34.261138],[114.812778,34.259003],[114.8314,34.268138],[114.832847,34.281937],[114.845492,34.280696],[114.867763,34.271066],[114.896514,34.265804],[114.901988,34.284567],[114.882674,34.301192],[114.870783,34.305608],[114.862353,34.329174],[114.855558,34.33473],[114.861724,34.367014],[114.879025,34.370683],[114.888461,34.383771],[114.875061,34.390612],[114.874432,34.396411],[114.851658,34.399534],[114.848575,34.409942],[114.854615,34.410933],[114.852413,34.42887],[114.864806,34.433726],[114.856502,34.436599],[114.858893,34.451906],[114.865624,34.462902],[114.872356,34.454085],[114.880786,34.450519],[114.886322,34.461317],[114.896451,34.46102],[114.904001,34.467606],[114.912305,34.483601],[114.918596,34.484938],[114.922371,34.498206],[114.9096,34.495137],[114.917653,34.511571],[114.913752,34.518154],[114.920673,34.531417],[114.91111,34.534782],[114.917841,34.541957],[114.91501,34.548686],[114.906517,34.547647],[114.907398,34.573865],[114.904882,34.586179],[114.897018,34.602596],[114.90117,34.613769],[114.898339,34.631762],[114.901673,34.645303],[114.893494,34.652469],[114.896451,34.661363],[114.905825,34.666896],[114.926649,34.668625],[114.935771,34.672182],[114.936652,34.681914],[114.931682,34.686804],[114.90765,34.697916],[114.891418,34.698213],[114.8677,34.688038],[114.858012,34.692286],[114.855558,34.710904],[114.840648,34.715101],[114.858767,34.734256],[114.859333,34.740328],[114.835678,34.746893],[114.82838,34.755332],[114.829009,34.764314],[114.835615,34.767472],[114.86682,34.769199],[114.867386,34.775515],[114.877578,34.775219],[114.894375,34.762833],[114.922874,34.748423],[114.936841,34.747041],[114.966913,34.761106],[114.980502,34.760909],[114.988366,34.76456],[115.001012,34.760662],[115.030329,34.772455],[115.038885,34.773985],[115.104125,34.772357],[115.119601,34.788638],[115.140048,34.793324],[115.154455,34.78178],[115.163891,34.783063],[115.17553,34.790463],[115.17899,34.800279],[115.198367,34.795297],[115.202897,34.805656],[115.24832,34.798109],[115.253919,34.805014],[115.242658,34.813497],[115.256561,34.81187],[115.267256,34.831249],[115.256058,34.845301],[115.243475,34.850181],[115.239323,34.874677],[115.24077,34.883842],[115.2492,34.894534],[115.252157,34.906604],[115.239323,34.911826],[115.204973,34.914239],[115.202708,34.925617],[115.211768,34.943345],[115.222148,34.945561],[115.219128,34.960626],[115.208245,34.958312],[115.201639,34.950977],[115.175027,34.962497],[115.156908,34.958017],[115.157223,34.966976],[115.146528,34.980118],[115.131177,34.983613],[115.133002,34.999655],[115.128094,35.004379],[115.106138,35.000787],[115.074996,35.000393],[115.051656,34.985975],[115.037564,34.981644],[115.024918,34.971849],[115.016048,34.977362],[115.008121,34.988485],[114.95087,34.989813],[114.934765,34.980709],[114.923818,34.968748],[114.914004,34.977903],[114.907964,34.98937],[114.889657,34.993996],[114.880346,35.003493],[114.884435,35.021893],[114.869965,35.024451],[114.859333,35.002656],[114.827122,35.010135],[114.824668,35.0123],[114.815861,35.014022],[114.800384,35.006691],[114.765908,34.977707],[114.756597,34.97559],[114.741435,34.960675],[114.74175,34.948712],[114.768173,34.927882],[114.778994,34.916751],[114.774779,34.901382],[114.76119,34.89148],[114.733886,34.888474],[114.724323,34.885222],[114.709161,34.89212],[114.695572,34.894387],[114.679593,34.909018],[114.660279,34.898722],[114.633981,34.905225],[114.586608,34.912466],[114.557165,34.905521],[114.540682,34.899264],[114.513378,34.895273],[114.442728,34.914486],[114.417815,34.930788],[114.40064,34.939504],[114.383024,34.936894],[114.367233,34.918968],[114.350499,34.908082],[114.340118,34.907146],[114.284441,34.90823],[114.243988,34.905126],[114.226624,34.913156],[114.22071,34.919066],[114.220522,34.906801],[114.211085,34.860877],[114.199824,34.832729],[114.185354,34.825628],[114.162517,34.828883],[114.133703,34.825628],[114.122504,34.81833],[114.134143,34.802154],[114.161762,34.781238],[114.172331,34.768311],[114.158364,34.759379],[114.138484,34.73475],[114.141189,34.7191],[114.158113,34.704336],[114.157547,34.686507],[114.160441,34.665611],[114.150375,34.656669],[114.157547,34.625979],[114.15157,34.618268],[114.15459,34.60576],[114.145153,34.604277],[114.14553,34.61456],[114.127726,34.61718],[114.125461,34.607886],[114.136848,34.605711],[114.133451,34.591025],[114.127852,34.584943],[114.129802,34.575348],[114.118478,34.570155],[114.107217,34.557887],[114.100296,34.535178],[114.093942,34.50182],[114.094383,34.492265],[114.083373,34.480927],[114.07035,34.481472],[114.062486,34.490532],[114.035119,34.503998],[114.0226,34.488552],[114.009577,34.480135],[114.008256,34.470082],[114.01851,34.46721],[114.021719,34.458989],[114.019894,34.445368],[114.006557,34.439225],[113.990326,34.435707],[113.968495,34.439324],[113.948615,34.435063],[113.948929,34.452699],[113.938108,34.454729],[113.929993,34.443485],[113.915586,34.444922],[113.912126,34.452352],[113.903507,34.454185],[113.891616,34.437342],[113.878153,34.411478],[113.878531,34.394577],[113.885199,34.370485],[113.879978,34.356056],[113.888093,34.348369],[113.885451,34.327785]]]]}},{type:"Feature",properties:{adcode:410300,name:"洛阳市",center:[112.434468,34.663041],centroid:[112.038509,34.293198],childrenNum:14,level:"city",parent:{adcode:41e4},subFeatureIndex:2,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[111.260813,33.796775],[111.270816,33.781699],[111.288558,33.779702],[111.304223,33.775008],[111.315044,33.764073],[111.322467,33.762974],[111.336245,33.768317],[111.348387,33.764822],[111.390035,33.771264],[111.398906,33.768168],[111.4342,33.747742],[111.469808,33.738052],[111.484529,33.726462],[111.495476,33.725663],[111.516048,33.7405],[111.523975,33.742847],[111.541402,33.733406],[111.567699,33.735005],[111.59148,33.727711],[111.619476,33.730059],[111.645207,33.720517],[111.665151,33.695582],[111.684968,33.677489],[111.719003,33.688885],[111.728629,33.688086],[111.778078,33.666091],[111.819411,33.652892],[111.82759,33.634189],[111.827716,33.606228],[111.832749,33.598723],[111.843444,33.595821],[111.863953,33.599174],[111.884526,33.596121],[111.899184,33.588666],[111.916359,33.572102],[111.930137,33.571051],[111.994182,33.584913],[112.020353,33.587715],[112.028343,33.593019],[112.024191,33.600024],[112.018655,33.59437],[112.012301,33.602626],[112.014943,33.613632],[112.024757,33.622436],[112.038535,33.622386],[112.059044,33.605227],[112.065713,33.607479],[112.087481,33.603076],[112.092199,33.607228],[112.084146,33.628988],[112.076345,33.633689],[112.071312,33.648192],[112.074018,33.653142],[112.104719,33.661392],[112.120573,33.668841],[112.13089,33.676939],[112.141774,33.691634],[112.15033,33.713672],[112.158509,33.720117],[112.168638,33.721766],[112.17776,33.715621],[112.179207,33.703278],[112.184995,33.698731],[112.214752,33.713972],[112.230103,33.71702],[112.239917,33.715321],[112.249354,33.719018],[112.24797,33.72871],[112.263446,33.743596],[112.266907,33.769766],[112.259168,33.776007],[112.260049,33.781849],[112.277413,33.791684],[112.273953,33.801667],[112.285906,33.808755],[112.301383,33.811001],[112.323402,33.828467],[112.351461,33.834605],[112.363854,33.840143],[112.372222,33.838297],[112.40978,33.80591],[112.42381,33.806559],[112.433687,33.810951],[112.45665,33.836451],[112.462312,33.84583],[112.474643,33.855458],[112.48559,33.859848],[112.512768,33.85895],[112.534095,33.880247],[112.541393,33.892165],[112.536423,33.902236],[112.51497,33.906374],[112.502576,33.913004],[112.497858,33.926064],[112.530761,33.937975],[112.538121,33.947344],[112.539065,33.968071],[112.546803,33.979777],[112.547118,33.998304],[112.56964,34.003035],[112.549383,34.016529],[112.533718,34.018122],[112.538625,34.027084],[112.572346,34.043162],[112.577253,34.062373],[112.601222,34.071827],[112.602544,34.088792],[112.608206,34.114209],[112.616196,34.128928],[112.620285,34.143148],[112.611666,34.15816],[112.595623,34.163529],[112.589395,34.18614],[112.583544,34.19096],[112.559763,34.224988],[112.577819,34.246988],[112.575617,34.254336],[112.557876,34.263719],[112.553724,34.27608],[112.569703,34.284815],[112.573226,34.298314],[112.597133,34.317962],[112.613994,34.322328],[112.607262,34.327934],[112.623682,34.337854],[112.650168,34.341078],[112.659605,34.333936],[112.65734,34.320592],[112.669294,34.324908],[112.688356,34.326743],[112.701001,34.335077],[112.73057,34.330414],[112.741265,34.333738],[112.75693,34.330662],[112.776622,34.345046],[112.760076,34.346584],[112.756805,34.357394],[112.732898,34.350898],[112.728117,34.361163],[112.730318,34.377426],[112.721825,34.380152],[112.72409,34.388877],[112.733653,34.39309],[112.735918,34.404242],[112.729626,34.416978],[112.736673,34.422578],[112.741894,34.433973],[112.744285,34.4683],[112.740384,34.491077],[112.767374,34.49479],[112.774609,34.500137],[112.798012,34.487166],[112.806002,34.479243],[112.838024,34.477164],[112.856017,34.478402],[112.862371,34.473648],[112.896155,34.475827],[112.905215,34.468201],[112.922956,34.47657],[112.920125,34.482016],[112.927297,34.499691],[112.925598,34.509789],[112.929813,34.526023],[112.947995,34.531467],[112.976683,34.53117],[112.984736,34.539038],[112.967749,34.541264],[112.952273,34.547647],[112.929562,34.547548],[112.910751,34.545173],[112.890682,34.547102],[112.87898,34.560015],[112.877722,34.567731],[112.864133,34.580146],[112.862183,34.590284],[112.846329,34.58885],[112.839408,34.596514],[112.845574,34.609913],[112.840226,34.623161],[112.82475,34.625188],[112.825001,34.628698],[112.841799,34.628648],[112.847147,34.640362],[112.831041,34.656669],[112.835885,34.667785],[112.829217,34.683346],[112.830223,34.694163],[112.8496,34.699694],[112.867782,34.708089],[112.879735,34.705077],[112.893827,34.694953],[112.901692,34.693521],[112.91635,34.710953],[112.931764,34.711694],[112.939502,34.72384],[112.909933,34.737465],[112.902258,34.753161],[112.908486,34.757405],[112.909367,34.771123],[112.89993,34.780596],[112.887914,34.782718],[112.875017,34.779659],[112.846329,34.780054],[112.837144,34.782915],[112.817263,34.778278],[112.810595,34.784938],[112.80984,34.7951],[112.814118,34.811475],[112.827266,34.819218],[112.813363,34.832877],[112.78782,34.83761],[112.773288,34.835884],[112.753281,34.828587],[112.72214,34.828833],[112.696723,34.840617],[112.676088,34.853188],[112.656648,34.859645],[112.638215,34.854174],[112.636328,34.88266],[112.642115,34.895717],[112.638152,34.896998],[112.638404,34.919756],[112.618209,34.920298],[112.585369,34.926503],[112.579329,34.933398],[112.578134,34.944083],[112.571654,34.948761],[112.5692,34.958608],[112.563853,34.949696],[112.551207,34.938569],[112.527867,34.932019],[112.519436,34.940341],[112.505155,34.942459],[112.496914,34.921726],[112.511447,34.92084],[112.515976,34.929212],[112.527426,34.929163],[112.537304,34.916013],[112.534221,34.893746],[112.521072,34.892761],[112.505659,34.898821],[112.496536,34.895717],[112.489616,34.90286],[112.462501,34.915668],[112.433247,34.920987],[112.39097,34.918574],[112.384993,34.924533],[112.360268,34.931428],[112.334537,34.941425],[112.3212,34.941375],[112.301068,34.945462],[112.28188,34.960232],[112.267284,34.953537],[112.258099,34.942212],[112.247844,34.940735],[112.226831,34.956589],[112.212047,34.965007],[112.1877,34.972981],[112.169896,35.00241],[112.1514,35.015399],[112.125857,35.021204],[112.108242,35.029222],[112.09352,35.029911],[112.042436,35.027845],[112.035075,35.033845],[112.038912,35.045501],[112.035264,35.053714],[112.023814,35.060843],[112.021171,35.067973],[112.006009,35.065367],[111.973358,35.070234],[111.958699,35.062908],[111.958573,35.0486],[111.939511,35.0366],[111.940203,35.030599],[111.967067,35.014169],[111.991917,35.005018],[111.978139,34.997195],[111.981033,34.990059],[111.967192,34.989912],[111.95763,34.986221],[111.961153,34.975689],[111.983235,34.970471],[111.981914,34.960626],[111.950835,34.947776],[111.933975,34.947678],[111.921707,34.934038],[111.906168,34.929606],[111.890062,34.920347],[111.88396,34.911974],[111.883267,34.894239],[111.898744,34.885912],[111.922336,34.883941],[111.949829,34.863391],[111.948948,34.852301],[111.957944,34.851167],[111.981411,34.857624],[111.990722,34.853779],[111.982858,34.846139],[111.986003,34.837856],[112.01444,34.817985],[112.020731,34.811327],[112.012804,34.803781],[112.016327,34.797073],[112.030105,34.792584],[112.031992,34.782965],[112.031174,34.777735],[112.017459,34.769939],[112.019347,34.762587],[112.011042,34.750644],[111.997831,34.750693],[112.000536,34.745017],[111.995692,34.736823],[112.014125,34.731048],[112.01488,34.724235],[111.997642,34.717125],[111.993238,34.693866],[111.982921,34.695052],[111.984997,34.686013],[111.972855,34.66739],[111.980089,34.654],[111.971408,34.65069],[111.967444,34.64308],[111.953666,34.639521],[111.943223,34.629637],[111.94165,34.620492],[111.928879,34.600272],[111.905664,34.6198],[111.888867,34.61891],[111.863953,34.647082],[111.830736,34.649207],[111.823752,34.646242],[111.821362,34.634431],[111.811296,34.633887],[111.797078,34.626028],[111.778393,34.608331],[111.764112,34.609171],[111.758764,34.597454],[111.740079,34.600272],[111.702835,34.584943],[111.696292,34.575744],[111.687044,34.571886],[111.672008,34.572232],[111.681445,34.547647],[111.692643,34.535673],[111.683584,34.533298],[111.670058,34.540571],[111.619099,34.55576],[111.608089,34.56229],[111.594437,34.565308],[111.584434,34.556057],[111.574305,34.564467],[111.562037,34.558728],[111.544736,34.544925],[111.538634,34.543342],[111.525045,34.54829],[111.5029,34.545074],[111.489437,34.533842],[111.484655,34.525528],[111.45754,34.512561],[111.451689,34.505928],[111.418346,34.490829],[111.394816,34.482016],[111.385065,34.473103],[111.370595,34.473301],[111.358642,34.480333],[111.344424,34.472955],[111.324732,34.471717],[111.306676,34.474193],[111.300008,34.488948],[111.289313,34.485581],[111.271383,34.470677],[111.272012,34.447547],[111.244708,34.453788],[111.227533,34.459732],[111.220235,34.457949],[111.213252,34.437441],[111.21344,34.429812],[111.197712,34.418762],[111.191232,34.41792],[111.188967,34.399286],[111.171415,34.394974],[111.156819,34.394677],[111.147949,34.38853],[111.141217,34.373113],[111.138449,34.35675],[111.141217,34.353031],[111.159839,34.350799],[111.166634,34.344798],[111.16915,34.334878],[111.185444,34.31697],[111.191547,34.301837],[111.181921,34.27876],[111.182488,34.256421],[111.187772,34.250265],[111.180915,34.230203],[111.166571,34.228962],[111.158958,34.223101],[111.175819,34.209541],[111.207401,34.197419],[111.214699,34.181221],[111.234516,34.178537],[111.248671,34.162882],[111.253201,34.15309],[111.267922,34.146528],[111.276856,34.148318],[111.281889,34.138524],[111.296925,34.145137],[111.305292,34.140165],[111.306362,34.125149],[111.313408,34.116546],[111.334735,34.115601],[111.344738,34.109037],[111.358768,34.108788],[111.367198,34.092473],[111.354301,34.084464],[111.342096,34.056053],[111.342285,34.037936],[111.355119,34.015185],[111.353609,33.996263],[111.356,33.984509],[111.344109,33.973351],[111.324795,33.963039],[111.305921,33.941364],[111.303342,33.928207],[111.29013,33.926662],[111.276793,33.935533],[111.259366,33.929852],[111.239989,33.933141],[111.230049,33.924768],[111.226652,33.913104],[111.234768,33.901738],[111.234516,33.894857],[111.212811,33.884087],[111.206017,33.891616],[111.203689,33.883438],[111.21948,33.872766],[111.216397,33.865135],[111.232062,33.856805],[111.240304,33.842488],[111.261568,33.822878],[111.260813,33.796775]]],[[[112.028784,34.778968],[112.030231,34.782668],[112.018466,34.785678],[112.021171,34.777537],[112.028784,34.778968]]]]}},{type:"Feature",properties:{adcode:410400,name:"平顶山市",center:[113.307718,33.735241],centroid:[113.016514,33.795715],childrenNum:10,level:"city",parent:{adcode:41e4},subFeatureIndex:3,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.585485,33.711024],[113.580767,33.715171],[113.58775,33.727062],[113.576552,33.736304],[113.573091,33.752137],[113.549373,33.750489],[113.544341,33.757131],[113.51798,33.750439],[113.504014,33.751238],[113.489481,33.746094],[113.451042,33.739301],[113.448211,33.75868],[113.434873,33.765371],[113.425814,33.762175],[113.372401,33.785593],[113.393351,33.797873],[113.386053,33.801817],[113.38102,33.815542],[113.385802,33.834854],[113.384669,33.843286],[113.36762,33.862691],[113.360762,33.879997],[113.365481,33.890519],[113.381586,33.912007],[113.386116,33.927808],[113.410715,33.943308],[113.412665,33.952028],[113.41342,33.987049],[113.402222,34.002687],[113.395742,34.031315],[113.386368,34.039827],[113.368626,34.039877],[113.35466,34.043112],[113.346104,34.03928],[113.345034,34.029075],[113.334528,34.027183],[113.320687,34.054858],[113.331949,34.063268],[113.30043,34.082623],[113.283129,34.086802],[113.278914,34.100134],[113.264381,34.098542],[113.257398,34.112319],[113.252113,34.114308],[113.240097,34.108539],[113.241166,34.097945],[113.235064,34.091926],[113.227137,34.092523],[113.222355,34.102422],[113.210654,34.107445],[113.177876,34.101228],[113.157493,34.103118],[113.150384,34.108141],[113.146483,34.117939],[113.130629,34.124105],[113.126477,34.134696],[113.129811,34.145733],[113.118047,34.156818],[113.103011,34.176798],[113.101941,34.18778],[113.106094,34.198115],[113.103892,34.205418],[113.094203,34.21118],[113.075392,34.215502],[113.066962,34.223647],[113.070171,34.247186],[113.077343,34.262677],[113.082439,34.26645],[113.075518,34.276527],[113.059476,34.280944],[113.037142,34.280299],[113.027642,34.289282],[113.020847,34.290424],[113.013235,34.300398],[112.992977,34.296478],[112.960829,34.297867],[112.954097,34.302135],[112.936293,34.295535],[112.91245,34.293749],[112.884516,34.30144],[112.87357,34.298016],[112.856458,34.302185],[112.84117,34.297818],[112.842114,34.311612],[112.854633,34.316325],[112.83318,34.333638],[112.824184,34.33344],[112.81223,34.340037],[112.788953,34.331158],[112.787002,34.343261],[112.776622,34.345046],[112.75693,34.330662],[112.741265,34.333738],[112.73057,34.330414],[112.701001,34.335077],[112.688356,34.326743],[112.669294,34.324908],[112.65734,34.320592],[112.659605,34.333936],[112.650168,34.341078],[112.623682,34.337854],[112.607262,34.327934],[112.613994,34.322328],[112.597133,34.317962],[112.573226,34.298314],[112.569703,34.284815],[112.553724,34.27608],[112.557876,34.263719],[112.575617,34.254336],[112.577819,34.246988],[112.559763,34.224988],[112.583544,34.19096],[112.589395,34.18614],[112.595623,34.163529],[112.611666,34.15816],[112.620285,34.143148],[112.616196,34.128928],[112.608206,34.114209],[112.602544,34.088792],[112.601222,34.071827],[112.577253,34.062373],[112.572346,34.043162],[112.538625,34.027084],[112.533718,34.018122],[112.549383,34.016529],[112.56964,34.003035],[112.547118,33.998304],[112.546803,33.979777],[112.539065,33.968071],[112.538121,33.947344],[112.530761,33.937975],[112.497858,33.926064],[112.502576,33.913004],[112.51497,33.906374],[112.536423,33.902236],[112.541393,33.892165],[112.534095,33.880247],[112.512768,33.85895],[112.48559,33.859848],[112.474643,33.855458],[112.462312,33.84583],[112.45665,33.836451],[112.433687,33.810951],[112.42381,33.806559],[112.40978,33.80591],[112.372222,33.838297],[112.363854,33.840143],[112.351461,33.834605],[112.323402,33.828467],[112.301383,33.811001],[112.285906,33.808755],[112.273953,33.801667],[112.277413,33.791684],[112.260049,33.781849],[112.259168,33.776007],[112.266907,33.769766],[112.263446,33.743596],[112.24797,33.72871],[112.249354,33.719018],[112.258854,33.710624],[112.278168,33.712373],[112.306541,33.69978],[112.312455,33.684887],[112.332839,33.668391],[112.353285,33.669941],[112.361086,33.661242],[112.375116,33.666891],[112.392479,33.666991],[112.408019,33.675439],[112.420727,33.676389],[112.453756,33.645291],[112.461683,33.63994],[112.477159,33.63764],[112.493202,33.63899],[112.503394,33.622185],[112.524721,33.603826],[112.522771,33.595521],[112.529943,33.587915],[112.548502,33.59367],[112.556869,33.588166],[112.575995,33.602275],[112.588388,33.616883],[112.599775,33.618084],[112.610785,33.611431],[112.611351,33.601875],[112.617705,33.597272],[112.63444,33.594821],[112.646205,33.602876],[112.660234,33.605377],[112.664386,33.597673],[112.683889,33.591718],[112.689174,33.587165],[112.70572,33.585263],[112.725411,33.586765],[112.743215,33.578858],[112.750387,33.571151],[112.760076,33.571751],[112.773413,33.56079],[112.783668,33.567747],[112.81179,33.580309],[112.82022,33.574804],[112.845637,33.578107],[112.85262,33.584413],[112.854822,33.603626],[112.869669,33.611531],[112.887914,33.608329],[112.893513,33.616133],[112.917545,33.605627],[112.94271,33.607629],[112.950134,33.590968],[112.963597,33.583662],[112.972908,33.584613],[112.986497,33.575805],[112.990775,33.567797],[112.997255,33.569399],[113.022861,33.56119],[113.027642,33.546874],[113.036701,33.546974],[113.036261,33.539865],[113.047333,33.532204],[113.04381,33.517532],[113.048214,33.508317],[113.049221,33.492087],[113.053373,33.485725],[113.041168,33.473701],[113.037897,33.464331],[113.041357,33.44659],[113.045698,33.439472],[113.074826,33.448444],[113.110309,33.446138],[113.125659,33.439723],[113.128742,33.427642],[113.141765,33.425987],[113.156109,33.433607],[113.176052,33.435713],[113.192975,33.429797],[113.198134,33.420523],[113.216316,33.398861],[113.230912,33.38848],[113.230534,33.374937],[113.241418,33.373733],[113.245004,33.365356],[113.257964,33.366158],[113.270609,33.358834],[113.277089,33.350254],[113.289923,33.351709],[113.302632,33.348999],[113.312194,33.341121],[113.335472,33.35201],[113.363908,33.342476],[113.400397,33.335852],[113.40738,33.323004],[113.400838,33.314722],[113.403857,33.302724],[113.388318,33.299059],[113.384732,33.29203],[113.400146,33.261044],[113.402851,33.235224],[113.391212,33.225928],[113.384103,33.206128],[113.384417,33.196679],[113.377875,33.184313],[113.370136,33.182855],[113.385802,33.169381],[113.382467,33.156156],[113.385424,33.145595],[113.379888,33.135485],[113.388821,33.128393],[113.397881,33.14997],[113.413105,33.156659],[113.432545,33.15681],[113.449217,33.160581],[113.46029,33.156458],[113.499987,33.156206],[113.514772,33.162492],[113.521378,33.154698],[113.532324,33.152736],[113.541321,33.14308],[113.550254,33.140113],[113.561201,33.161134],[113.573846,33.15691],[113.593601,33.157715],[113.600144,33.163146],[113.617004,33.147255],[113.626001,33.150423],[113.63506,33.160833],[113.64846,33.182402],[113.644623,33.186575],[113.627511,33.186475],[113.613796,33.211506],[113.606875,33.237786],[113.613167,33.261798],[113.618766,33.291477],[113.627448,33.312212],[113.640282,33.325162],[113.642106,33.34905],[113.639149,33.355221],[113.655003,33.371175],[113.676897,33.378298],[113.688347,33.407737],[113.683125,33.41952],[113.659407,33.424283],[113.651669,33.418417],[113.645252,33.421776],[113.620842,33.410946],[113.596809,33.41215],[113.589008,33.404728],[113.574727,33.407537],[113.54736,33.406433],[113.539811,33.419019],[113.526662,33.419269],[113.51754,33.407186],[113.506341,33.414607],[113.483945,33.421124],[113.468846,33.422077],[113.466518,33.437367],[113.473501,33.443683],[113.471803,33.463378],[113.484322,33.483721],[113.478597,33.50431],[113.483001,33.500152],[113.50307,33.500252],[113.510808,33.505011],[113.525278,33.505061],[113.532073,33.497347],[113.537609,33.498499],[113.533708,33.514978],[113.537672,33.51633],[113.545536,33.548626],[113.557363,33.553582],[113.563151,33.57055],[113.554281,33.5706],[113.552267,33.586715],[113.576803,33.592619],[113.579383,33.597222],[113.604673,33.613131],[113.621534,33.619885],[113.628203,33.629038],[113.619143,33.63799],[113.596746,33.651892],[113.587624,33.654642],[113.580515,33.681738],[113.584101,33.698131],[113.576677,33.706327],[113.585485,33.711024]]]]}},{type:"Feature",properties:{adcode:410500,name:"安阳市",center:[114.352482,36.103442],centroid:[114.358257,35.878529],childrenNum:9,level:"city",parent:{adcode:41e4},subFeatureIndex:4,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[114.419073,35.474181],[114.428573,35.468947],[114.429139,35.449523],[114.412027,35.43582],[114.405043,35.426325],[114.407686,35.418004],[114.415172,35.413255],[114.423666,35.380155],[114.413474,35.370163],[114.411083,35.358064],[114.429076,35.342876],[114.423414,35.324842],[114.404226,35.326313],[114.403659,35.316805],[114.412782,35.313521],[114.416493,35.302785],[114.408189,35.29249],[114.395732,35.293078],[114.407497,35.269738],[114.395481,35.26449],[114.391266,35.258114],[114.396299,35.241828],[114.407497,35.236627],[114.392146,35.226912],[114.394348,35.219797],[114.399696,35.225097],[114.415298,35.228188],[114.431404,35.222055],[114.431781,35.208755],[114.442602,35.205958],[114.4499,35.214448],[114.465376,35.216706],[114.487836,35.206645],[114.494756,35.220141],[114.50413,35.228286],[114.527093,35.235646],[114.541437,35.242809],[114.549364,35.261891],[114.562198,35.276064],[114.5968,35.286116],[114.607495,35.292686],[114.627313,35.298275],[114.642915,35.297148],[114.663173,35.291559],[114.679907,35.291166],[114.688715,35.295138],[114.698341,35.306756],[114.701675,35.329008],[114.697397,35.337486],[114.718598,35.343611],[114.73722,35.344689],[114.754521,35.341308],[114.76163,35.345228],[114.783964,35.343023],[114.808877,35.346942],[114.809632,35.354242],[114.856942,35.387794],[114.879339,35.387452],[114.898087,35.390781],[114.951248,35.380791],[114.967605,35.399204],[114.985787,35.414332],[114.981509,35.434107],[114.96383,35.440665],[114.96188,35.446146],[114.967668,35.456716],[114.970751,35.480785],[114.947347,35.478144],[114.93942,35.481225],[114.940616,35.491448],[114.953324,35.501815],[114.964334,35.504749],[114.969492,35.518],[114.968423,35.537554],[114.962006,35.571421],[114.952884,35.581094],[114.90853,35.585979],[114.884813,35.599852],[114.883051,35.616065],[114.874432,35.623878],[114.875502,35.628907],[114.890034,35.646823],[114.905888,35.649606],[114.911047,35.660685],[114.919226,35.664785],[114.918408,35.687962],[114.910544,35.700939],[114.915514,35.706743],[114.907776,35.722594],[114.889594,35.738978],[114.887832,35.753506],[114.893746,35.764132],[114.908405,35.765741],[114.921365,35.780118],[114.943573,35.799754],[114.948669,35.819629],[114.94546,35.82523],[114.93401,35.828055],[114.933003,35.84505],[114.935646,35.853814],[114.953009,35.85766],[114.959112,35.862723],[114.969996,35.881366],[114.970814,35.890223],[114.97786,35.904723],[114.972324,35.923259],[114.98025,35.949814],[114.988366,35.964741],[114.983333,35.982922],[114.986164,35.991865],[114.980376,36.003334],[114.974274,35.999009],[114.974211,36.012226],[114.983396,36.019417],[114.983962,36.02583],[114.968926,36.032971],[114.94244,36.03812],[114.920798,36.048319],[114.914696,36.05201],[114.92646,36.089444],[114.922057,36.103132],[114.913249,36.107645],[114.907083,36.119971],[114.912431,36.140444],[114.893432,36.140056],[114.89211,36.143792],[114.868518,36.146653],[114.858641,36.144325],[114.857509,36.127734],[114.841655,36.131712],[114.831589,36.130354],[114.825172,36.123707],[114.802775,36.130936],[114.790885,36.130014],[114.778617,36.133168],[114.777987,36.128025],[114.76421,36.125551],[114.762889,36.134914],[114.751564,36.138698],[114.751564,36.146605],[114.734389,36.155772],[114.720674,36.140056],[114.711678,36.145441],[114.692364,36.146217],[114.691106,36.138407],[114.655183,36.14025],[114.63719,36.135642],[114.630395,36.124241],[114.619449,36.123513],[114.61083,36.128316],[114.604664,36.121426],[114.582582,36.121329],[114.58686,36.14093],[114.575473,36.143258],[114.568049,36.152328],[114.558046,36.150776],[114.543639,36.161786],[114.531686,36.161931],[114.532881,36.171533],[114.504948,36.172406],[114.505577,36.177497],[114.489598,36.178467],[114.483873,36.183848],[114.480287,36.177788],[114.466194,36.197713],[114.452291,36.202367],[114.431152,36.202609],[114.4175,36.205905],[114.408441,36.224563],[114.392335,36.221123],[114.367548,36.225533],[114.356098,36.23033],[114.353833,36.242636],[114.346787,36.245494],[114.345151,36.255812],[114.329234,36.255909],[114.328353,36.248159],[114.312814,36.251646],[114.309983,36.246754],[114.298973,36.24593],[114.273871,36.254747],[114.256445,36.263998],[114.241031,36.251356],[114.235558,36.252761],[114.22373,36.270875],[114.210645,36.272764],[114.203095,36.245736],[114.185165,36.248449],[114.181139,36.243314],[114.168871,36.243411],[114.176672,36.263126],[114.164844,36.269567],[114.162831,36.26516],[114.131438,36.281674],[114.121435,36.272715],[114.097528,36.275233],[114.092621,36.2778],[114.085386,36.2701],[114.060536,36.276493],[114.058271,36.285354],[114.042606,36.297313],[114.047953,36.310334],[114.061542,36.317982],[114.055692,36.329984],[114.045185,36.325919],[114.029017,36.326548],[114.025997,36.330516],[114.03254,36.339904],[114.030841,36.350742],[114.024676,36.354854],[114.015176,36.352967],[114.008507,36.342517],[113.985859,36.357563],[113.977932,36.358579],[113.979819,36.344113],[113.994478,36.34421],[113.994352,36.337049],[114.001964,36.331339],[113.991647,36.326839],[113.993849,36.314594],[113.98221,36.317692],[113.977869,36.329258],[113.968495,36.33971],[113.964217,36.35258],[113.953207,36.358192],[113.946727,36.354805],[113.948804,36.346097],[113.960317,36.344742],[113.956101,36.335597],[113.93446,36.33613],[113.931629,36.319482],[113.911182,36.314788],[113.901116,36.337001],[113.881487,36.353886],[113.853617,36.350113],[113.849339,36.346823],[113.853995,36.329742],[113.834177,36.334339],[113.818261,36.331146],[113.801274,36.338355],[113.796808,36.347548],[113.777431,36.349822],[113.778626,36.359788],[113.763401,36.356015],[113.75516,36.365931],[113.7422,36.364432],[113.743269,36.357563],[113.73314,36.357079],[113.731442,36.363367],[113.728736,36.341452],[113.736412,36.324709],[113.723326,36.304865],[113.709045,36.299733],[113.716217,36.262593],[113.709108,36.261528],[113.700552,36.252276],[113.703886,36.23784],[113.695204,36.228779],[113.677274,36.222528],[113.672178,36.211963],[113.682055,36.216277],[113.698476,36.21429],[113.705396,36.20067],[113.691492,36.20193],[113.686334,36.195483],[113.697909,36.181861],[113.672304,36.175606],[113.664503,36.177449],[113.651669,36.172212],[113.659973,36.164162],[113.679287,36.159943],[113.681363,36.150728],[113.695582,36.153201],[113.706843,36.147381],[113.702628,36.143209],[113.705648,36.134138],[113.713763,36.132974],[113.693191,36.124192],[113.673499,36.125357],[113.668529,36.129675],[113.655507,36.125114],[113.673814,36.111625],[113.669284,36.104005],[113.679539,36.094007],[113.684069,36.078328],[113.68237,36.066821],[113.685767,36.055992],[113.668655,36.049096],[113.66142,36.04288],[113.660414,36.034671],[113.670165,36.029522],[113.695141,36.026753],[113.695204,36.018202],[113.680734,36.014801],[113.695896,35.999884],[113.686459,35.986421],[113.678784,35.98579],[113.648901,35.994149],[113.637828,35.988463],[113.636884,35.975874],[113.647831,35.967123],[113.653997,35.93143],[113.654437,35.917227],[113.648712,35.908518],[113.637388,35.869928],[113.644056,35.854885],[113.658212,35.853911],[113.661043,35.837259],[113.700552,35.837308],[113.709108,35.833655],[113.705962,35.826594],[113.711813,35.81807],[113.726786,35.823185],[113.731819,35.818752],[113.742892,35.819093],[113.756229,35.793713],[113.751888,35.788304],[113.757865,35.782798],[113.759752,35.767398],[113.778563,35.763206],[113.776613,35.759404],[113.800205,35.740782],[113.808006,35.742488],[113.801652,35.733517],[113.799953,35.713572],[113.794228,35.695329],[113.777556,35.684644],[113.785546,35.674447],[113.806244,35.672983],[113.811529,35.676838],[113.843677,35.677814],[113.859216,35.682351],[113.868402,35.680741],[113.886332,35.684401],[113.901619,35.677423],[113.923072,35.681815],[113.927476,35.686011],[113.931691,35.703963],[113.949055,35.70089],[113.956227,35.691426],[113.969565,35.689572],[113.98523,35.700743],[113.995988,35.704792],[113.998316,35.719814],[114.002468,35.724788],[114.017567,35.72591],[114.032854,35.737028],[114.042983,35.748095],[114.055377,35.749216],[114.067267,35.759112],[114.066575,35.775391],[114.071357,35.779679],[114.078151,35.803018],[114.069155,35.805259],[114.051414,35.797513],[114.037132,35.80331],[114.025179,35.797074],[114.022537,35.804285],[114.035685,35.818411],[114.035937,35.824548],[114.025619,35.829419],[114.014987,35.845001],[114.013981,35.852548],[114.019957,35.858634],[114.038642,35.859461],[114.056698,35.870268],[114.070287,35.873189],[114.075131,35.880928],[114.07488,35.904383],[114.081611,35.915086],[114.052735,35.93109],[114.040467,35.935662],[114.038768,35.944319],[114.028828,35.950494],[114.030464,35.97179],[114.044619,35.972276],[114.065506,35.964109],[114.073055,35.974512],[114.084002,35.974415],[114.094571,35.981075],[114.108035,35.981852],[114.103505,35.995267],[114.111306,36.017085],[114.121687,36.027044],[114.135716,36.031562],[114.158931,36.047299],[114.175225,36.052107],[114.179251,36.039431],[114.174847,36.031319],[114.178245,36.013198],[114.169877,36.000856],[114.174847,35.988803],[114.181768,35.982873],[114.191771,35.981415],[114.197559,35.990115],[114.205045,35.988657],[114.218005,35.997648],[114.223604,35.981707],[114.251412,35.971936],[114.279974,35.972811],[114.279974,35.947382],[114.296897,35.957885],[114.309291,35.952731],[114.293626,35.938288],[114.303,35.930604],[114.295576,35.924621],[114.290166,35.928853],[114.277206,35.924475],[114.270789,35.899858],[114.280855,35.892315],[114.274626,35.882242],[114.250908,35.876791],[114.244303,35.871875],[114.243044,35.863259],[114.234425,35.855956],[114.229204,35.841057],[114.237005,35.809156],[114.241786,35.806526],[114.24317,35.793079],[114.250845,35.793566],[114.263365,35.774416],[114.25569,35.774416],[114.255249,35.767349],[114.270411,35.76072],[114.284315,35.783285],[114.294632,35.794346],[114.328353,35.802141],[114.350373,35.816025],[114.364717,35.818947],[114.396802,35.816804],[114.408441,35.820749],[114.43845,35.817437],[114.445811,35.819191],[114.451347,35.828737],[114.47085,35.827471],[114.478273,35.834824],[114.509478,35.836723],[114.55295,35.828201],[114.566476,35.843735],[114.57044,35.835993],[114.587552,35.840083],[114.597618,35.825181],[114.611647,35.82221],[114.613849,35.808085],[114.636561,35.794054],[114.658706,35.791471],[114.675252,35.782067],[114.695572,35.78733],[114.709224,35.787427],[114.719857,35.778363],[114.751439,35.763352],[114.753389,35.753018],[114.751439,35.737661],[114.735648,35.708645],[114.727029,35.697865],[114.707903,35.694304],[114.705638,35.689523],[114.687897,35.684157],[114.677454,35.671031],[114.672924,35.65395],[114.660719,35.651119],[114.645243,35.654828],[114.618694,35.647458],[114.615611,35.636572],[114.591704,35.629054],[114.576857,35.616798],[114.558361,35.613477],[114.549301,35.614796],[114.54345,35.602635],[114.502558,35.609277],[114.495008,35.600047],[114.500167,35.593404],[114.497587,35.584123],[114.482677,35.584416],[114.486137,35.573033],[114.476071,35.565215],[114.455499,35.557641],[114.426182,35.54425],[114.416871,35.533839],[114.402275,35.526018],[114.39504,35.508857],[114.409259,35.489149],[114.420394,35.483769],[114.419073,35.474181]]]]}},{type:"Feature",properties:{adcode:410600,name:"鹤壁市",center:[114.295444,35.748236],centroid:[114.31602,35.721499],childrenNum:5,level:"city",parent:{adcode:41e4},subFeatureIndex:5,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.995988,35.704792],[114.019769,35.695621],[114.026815,35.683766],[114.039838,35.681522],[114.050218,35.675667],[114.059026,35.657366],[114.064311,35.637793],[114.058523,35.62671],[114.060284,35.611377],[114.056195,35.594528],[114.072804,35.579629],[114.080102,35.567316],[114.104889,35.554269],[114.120114,35.551142],[114.139176,35.538336],[114.17145,35.523965],[114.19196,35.521862],[114.202214,35.524845],[114.215615,35.51756],[114.224863,35.516533],[114.259842,35.504945],[114.276325,35.501277],[114.289914,35.501815],[114.283686,35.492181],[114.275822,35.490176],[114.27255,35.476187],[114.275444,35.465376],[114.29803,35.458722],[114.312374,35.446978],[114.324012,35.444531],[114.339426,35.450648],[114.343704,35.462147],[114.360439,35.4688],[114.370001,35.461755],[114.382018,35.46655],[114.38466,35.475355],[114.39504,35.478192],[114.409699,35.469191],[114.419073,35.474181],[114.420394,35.483769],[114.409259,35.489149],[114.39504,35.508857],[114.402275,35.526018],[114.416871,35.533839],[114.426182,35.54425],[114.455499,35.557641],[114.476071,35.565215],[114.486137,35.573033],[114.482677,35.584416],[114.497587,35.584123],[114.500167,35.593404],[114.495008,35.600047],[114.502558,35.609277],[114.54345,35.602635],[114.549301,35.614796],[114.558361,35.613477],[114.576857,35.616798],[114.591704,35.629054],[114.615611,35.636572],[114.618694,35.647458],[114.645243,35.654828],[114.660719,35.651119],[114.672924,35.65395],[114.677454,35.671031],[114.687897,35.684157],[114.705638,35.689523],[114.707903,35.694304],[114.727029,35.697865],[114.735648,35.708645],[114.751439,35.737661],[114.753389,35.753018],[114.751439,35.763352],[114.719857,35.778363],[114.709224,35.787427],[114.695572,35.78733],[114.675252,35.782067],[114.658706,35.791471],[114.636561,35.794054],[114.613849,35.808085],[114.611647,35.82221],[114.597618,35.825181],[114.587552,35.840083],[114.57044,35.835993],[114.566476,35.843735],[114.55295,35.828201],[114.509478,35.836723],[114.478273,35.834824],[114.47085,35.827471],[114.451347,35.828737],[114.445811,35.819191],[114.43845,35.817437],[114.408441,35.820749],[114.396802,35.816804],[114.364717,35.818947],[114.350373,35.816025],[114.328353,35.802141],[114.294632,35.794346],[114.284315,35.783285],[114.270411,35.76072],[114.255249,35.767349],[114.25569,35.774416],[114.263365,35.774416],[114.250845,35.793566],[114.24317,35.793079],[114.241786,35.806526],[114.237005,35.809156],[114.229204,35.841057],[114.234425,35.855956],[114.243044,35.863259],[114.244303,35.871875],[114.250908,35.876791],[114.274626,35.882242],[114.280855,35.892315],[114.270789,35.899858],[114.277206,35.924475],[114.290166,35.928853],[114.295576,35.924621],[114.303,35.930604],[114.293626,35.938288],[114.309291,35.952731],[114.296897,35.957885],[114.279974,35.947382],[114.279974,35.972811],[114.251412,35.971936],[114.223604,35.981707],[114.218005,35.997648],[114.205045,35.988657],[114.197559,35.990115],[114.191771,35.981415],[114.181768,35.982873],[114.174847,35.988803],[114.169877,36.000856],[114.178245,36.013198],[114.174847,36.031319],[114.179251,36.039431],[114.175225,36.052107],[114.158931,36.047299],[114.135716,36.031562],[114.121687,36.027044],[114.111306,36.017085],[114.103505,35.995267],[114.108035,35.981852],[114.094571,35.981075],[114.084002,35.974415],[114.073055,35.974512],[114.065506,35.964109],[114.044619,35.972276],[114.030464,35.97179],[114.028828,35.950494],[114.038768,35.944319],[114.040467,35.935662],[114.052735,35.93109],[114.081611,35.915086],[114.07488,35.904383],[114.075131,35.880928],[114.070287,35.873189],[114.056698,35.870268],[114.038642,35.859461],[114.019957,35.858634],[114.013981,35.852548],[114.014987,35.845001],[114.025619,35.829419],[114.035937,35.824548],[114.035685,35.818411],[114.022537,35.804285],[114.025179,35.797074],[114.037132,35.80331],[114.051414,35.797513],[114.069155,35.805259],[114.078151,35.803018],[114.071357,35.779679],[114.066575,35.775391],[114.067267,35.759112],[114.055377,35.749216],[114.042983,35.748095],[114.032854,35.737028],[114.017567,35.72591],[114.002468,35.724788],[113.998316,35.719814],[113.995988,35.704792]]]]}},{type:"Feature",properties:{adcode:410700,name:"新乡市",center:[113.883991,35.302616],centroid:[114.095247,35.263966],childrenNum:12,level:"city",parent:{adcode:41e4},subFeatureIndex:6,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[114.951248,35.380791],[114.898087,35.390781],[114.879339,35.387452],[114.856942,35.387794],[114.809632,35.354242],[114.808877,35.346942],[114.783964,35.343023],[114.76163,35.345228],[114.754521,35.341308],[114.73722,35.344689],[114.718598,35.343611],[114.697397,35.337486],[114.701675,35.329008],[114.698341,35.306756],[114.688715,35.295138],[114.679907,35.291166],[114.663173,35.291559],[114.642915,35.297148],[114.627313,35.298275],[114.607495,35.292686],[114.5968,35.286116],[114.562198,35.276064],[114.549364,35.261891],[114.541437,35.242809],[114.527093,35.235646],[114.50413,35.228286],[114.494756,35.220141],[114.487836,35.206645],[114.465376,35.216706],[114.4499,35.214448],[114.442602,35.205958],[114.431781,35.208755],[114.431404,35.222055],[114.415298,35.228188],[114.399696,35.225097],[114.394348,35.219797],[114.392146,35.226912],[114.407497,35.236627],[114.396299,35.241828],[114.391266,35.258114],[114.395481,35.26449],[114.407497,35.269738],[114.395732,35.293078],[114.408189,35.29249],[114.416493,35.302785],[114.412782,35.313521],[114.403659,35.316805],[114.404226,35.326313],[114.423414,35.324842],[114.429076,35.342876],[114.411083,35.358064],[114.413474,35.370163],[114.423666,35.380155],[114.415172,35.413255],[114.407686,35.418004],[114.405043,35.426325],[114.412027,35.43582],[114.429139,35.449523],[114.428573,35.468947],[114.419073,35.474181],[114.409699,35.469191],[114.39504,35.478192],[114.38466,35.475355],[114.382018,35.46655],[114.370001,35.461755],[114.360439,35.4688],[114.343704,35.462147],[114.339426,35.450648],[114.324012,35.444531],[114.312374,35.446978],[114.29803,35.458722],[114.275444,35.465376],[114.27255,35.476187],[114.275822,35.490176],[114.283686,35.492181],[114.289914,35.501815],[114.276325,35.501277],[114.259842,35.504945],[114.224863,35.516533],[114.215615,35.51756],[114.202214,35.524845],[114.19196,35.521862],[114.17145,35.523965],[114.139176,35.538336],[114.120114,35.551142],[114.104889,35.554269],[114.080102,35.567316],[114.072804,35.579629],[114.056195,35.594528],[114.060284,35.611377],[114.058523,35.62671],[114.064311,35.637793],[114.059026,35.657366],[114.050218,35.675667],[114.039838,35.681522],[114.026815,35.683766],[114.019769,35.695621],[113.995988,35.704792],[113.98523,35.700743],[113.969565,35.689572],[113.956227,35.691426],[113.949055,35.70089],[113.931691,35.703963],[113.927476,35.686011],[113.923072,35.681815],[113.901619,35.677423],[113.886332,35.684401],[113.868402,35.680741],[113.859216,35.682351],[113.843677,35.677814],[113.811529,35.676838],[113.806244,35.672983],[113.785546,35.674447],[113.777556,35.684644],[113.794228,35.695329],[113.799953,35.713572],[113.801652,35.733517],[113.808006,35.742488],[113.800205,35.740782],[113.776613,35.759404],[113.778563,35.763206],[113.759752,35.767398],[113.757865,35.782798],[113.751888,35.788304],[113.756229,35.793713],[113.742892,35.819093],[113.731819,35.818752],[113.726786,35.823185],[113.711813,35.81807],[113.705962,35.826594],[113.709108,35.833655],[113.700552,35.837308],[113.661043,35.837259],[113.650285,35.826594],[113.641225,35.822503],[113.623799,35.831513],[113.606057,35.82372],[113.585296,35.825766],[113.582906,35.818314],[113.588945,35.813443],[113.586177,35.806136],[113.604988,35.800095],[113.583472,35.794249],[113.583157,35.786794],[113.592972,35.789669],[113.599137,35.775098],[113.595929,35.759063],[113.586806,35.744048],[113.591147,35.727958],[113.601968,35.706402],[113.59316,35.691426],[113.614928,35.682986],[113.623484,35.671665],[113.61908,35.667225],[113.624994,35.652388],[113.624868,35.632032],[113.591965,35.631543],[113.578565,35.633545],[113.572966,35.646775],[113.565416,35.64492],[113.560069,35.660441],[113.547989,35.657562],[113.547423,35.648629],[113.553337,35.63872],[113.556671,35.619776],[113.547172,35.616847],[113.542453,35.596774],[113.533016,35.594039],[113.529556,35.587787],[113.506719,35.565997],[113.506593,35.5486],[113.49854,35.532373],[113.508669,35.523427],[113.506593,35.516484],[113.491997,35.516484],[113.485392,35.520738],[113.462555,35.515555],[113.440535,35.507879],[113.416629,35.516191],[113.401404,35.50695],[113.391778,35.506852],[113.383159,35.495067],[113.390772,35.485774],[113.392093,35.472225],[113.404046,35.46151],[113.427638,35.448887],[113.447707,35.432443],[113.458843,35.413304],[113.462366,35.396853],[113.482246,35.369967],[113.476207,35.363942],[113.465952,35.363844],[113.469978,35.353214],[113.466581,35.349686],[113.480044,35.33974],[113.478157,35.327195],[113.485014,35.316265],[113.486461,35.294108],[113.511878,35.293961],[113.518798,35.288813],[113.523265,35.263656],[113.538804,35.243201],[113.54044,35.228384],[113.528172,35.220141],[113.52144,35.211504],[113.521063,35.192901],[113.532828,35.164572],[113.534967,35.151803],[113.542642,35.144632],[113.565102,35.137461],[113.564598,35.127685],[113.593852,35.131173],[113.60027,35.120709],[113.607064,35.099284],[113.620464,35.068513],[113.645503,35.038075],[113.645503,35.019236],[113.629964,35.016777],[113.634431,35.008167],[113.644371,35.004379],[113.634494,34.997687],[113.617696,34.992175],[113.60763,34.982382],[113.595299,34.961857],[113.592091,34.933743],[113.631348,34.929311],[113.650348,34.928769],[113.665069,34.918525],[113.670731,34.910299],[113.684824,34.906358],[113.716846,34.913402],[113.725528,34.917392],[113.749057,34.919017],[113.766106,34.91488],[113.777116,34.905028],[113.78649,34.890445],[113.800456,34.87995],[113.826062,34.877683],[113.870163,34.885666],[113.905331,34.901333],[113.953585,34.898082],[113.973654,34.910447],[113.985293,34.928276],[114.018385,34.958608],[114.028451,34.959346],[114.051225,34.944527],[114.080542,34.944527],[114.101869,34.954768],[114.120491,34.956638],[114.160566,34.933496],[114.172834,34.931871],[114.200704,34.939504],[114.208505,34.926602],[114.22071,34.919066],[114.226624,34.913156],[114.243988,34.905126],[114.284441,34.90823],[114.340118,34.907146],[114.350499,34.908082],[114.367233,34.918968],[114.383024,34.936894],[114.40064,34.939504],[114.417815,34.930788],[114.442728,34.914486],[114.513378,34.895273],[114.540682,34.899264],[114.557165,34.905521],[114.586608,34.912466],[114.633981,34.905225],[114.660279,34.898722],[114.679593,34.909018],[114.695572,34.894387],[114.709161,34.89212],[114.724323,34.885222],[114.733886,34.888474],[114.76119,34.89148],[114.774779,34.901382],[114.778994,34.916751],[114.768173,34.927882],[114.74175,34.948712],[114.741435,34.960675],[114.756597,34.97559],[114.765908,34.977707],[114.800384,35.006691],[114.815861,35.014022],[114.824668,35.0123],[114.838635,35.018154],[114.852664,35.029124],[114.850903,35.041911],[114.833979,35.042157],[114.819258,35.051796],[114.83184,35.074167],[114.861158,35.082966],[114.876256,35.091126],[114.882925,35.098743],[114.883554,35.109653],[114.872545,35.126015],[114.860654,35.137412],[114.841718,35.151165],[114.841026,35.159219],[114.850274,35.172625],[114.861661,35.182395],[114.876571,35.189023],[114.909348,35.194521],[114.928285,35.194766],[114.9325,35.198644],[114.929732,35.248205],[114.954645,35.255465],[114.957728,35.261155],[114.975595,35.261547],[114.975784,35.270277],[114.963579,35.273759],[114.98025,35.294696],[115.003151,35.316363],[115.014538,35.318128],[115.017243,35.337437],[114.976979,35.352381],[114.968171,35.354389],[114.960873,35.369722],[114.951248,35.380791]]]]}},{type:"Feature",properties:{adcode:410800,name:"焦作市",center:[113.238266,35.23904],centroid:[113.137719,35.114644],childrenNum:10,level:"city",parent:{adcode:41e4},subFeatureIndex:7,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[112.827266,34.819218],[112.838653,34.812116],[112.853501,34.810736],[112.866461,34.829524],[112.873192,34.832827],[112.879106,34.849688],[112.884516,34.853089],[112.902321,34.852301],[112.914148,34.84747],[112.938181,34.831595],[112.943025,34.831102],[112.976117,34.847765],[112.989077,34.856343],[112.992851,34.863539],[113.004364,34.864081],[113.025063,34.854913],[113.039595,34.841948],[113.06023,34.83756],[113.107666,34.844709],[113.119431,34.853977],[113.14793,34.856096],[113.139815,34.884631],[113.179512,34.893697],[113.197631,34.900299],[113.227703,34.908427],[113.236951,34.925174],[113.239342,34.939504],[113.243934,34.946201],[113.260543,34.953586],[113.28986,34.952601],[113.315277,34.942212],[113.333018,34.944871],[113.343462,34.950533],[113.362587,34.970323],[113.37561,34.98002],[113.407821,34.989518],[113.427198,34.983563],[113.429463,34.964761],[113.449658,34.960232],[113.477339,34.957278],[113.495835,34.959937],[113.515086,34.965992],[113.543271,34.96801],[113.552582,34.965155],[113.57479,34.950583],[113.592091,34.933743],[113.595299,34.961857],[113.60763,34.982382],[113.617696,34.992175],[113.634494,34.997687],[113.644371,35.004379],[113.634431,35.008167],[113.629964,35.016777],[113.645503,35.019236],[113.645503,35.038075],[113.620464,35.068513],[113.607064,35.099284],[113.60027,35.120709],[113.593852,35.131173],[113.564598,35.127685],[113.565102,35.137461],[113.542642,35.144632],[113.534967,35.151803],[113.532828,35.164572],[113.521063,35.192901],[113.52144,35.211504],[113.528172,35.220141],[113.54044,35.228384],[113.538804,35.243201],[113.523265,35.263656],[113.518798,35.288813],[113.511878,35.293961],[113.486461,35.294108],[113.485014,35.316265],[113.478157,35.327195],[113.480044,35.33974],[113.466581,35.349686],[113.469978,35.353214],[113.465952,35.363844],[113.476207,35.363942],[113.482246,35.369967],[113.462366,35.396853],[113.458843,35.413304],[113.447707,35.432443],[113.427638,35.448887],[113.404046,35.46151],[113.392093,35.472225],[113.390772,35.485774],[113.383159,35.495067],[113.370766,35.4801],[113.357743,35.479415],[113.34818,35.46836],[113.325909,35.469289],[113.31232,35.481274],[113.295522,35.47154],[113.294705,35.467284],[113.309426,35.466158],[113.322197,35.461559],[113.323959,35.453339],[113.315151,35.451871],[113.306406,35.460777],[113.299486,35.450208],[113.297347,35.438512],[113.304393,35.42701],[113.27841,35.435135],[113.265387,35.434597],[113.262116,35.440763],[113.253497,35.440274],[113.244815,35.448446],[113.230031,35.453242],[113.208515,35.447272],[113.190019,35.449082],[113.190962,35.434107],[113.184482,35.424759],[113.188572,35.415654],[113.185237,35.409045],[113.175737,35.414528],[113.164224,35.408555],[113.167056,35.400232],[113.177247,35.397833],[113.170138,35.386717],[113.154662,35.380889],[113.154159,35.36933],[113.148748,35.370163],[113.148874,35.351205],[113.136669,35.347334],[113.13799,35.336261],[113.12654,35.332242],[113.107603,35.340818],[113.096216,35.337388],[113.084074,35.340524],[113.067151,35.353557],[113.060608,35.352283],[113.039658,35.360219],[113.020218,35.356006],[112.998199,35.362472],[112.990838,35.355712],[112.994047,35.345424],[112.985302,35.338123],[112.986309,35.316608],[112.99153,35.302344],[112.988951,35.28999],[112.982785,35.287244],[112.964667,35.293127],[112.948184,35.285969],[112.936042,35.2844],[112.936671,35.271895],[112.929687,35.256888],[112.907102,35.245801],[112.893639,35.248647],[112.884705,35.244232],[112.868096,35.243888],[112.857087,35.247371],[112.855136,35.253307],[112.822233,35.258114],[112.798264,35.238688],[112.784423,35.234567],[112.784926,35.222938],[112.767248,35.204093],[112.758,35.204436],[112.76687,35.182985],[112.761963,35.158041],[112.766304,35.107196],[112.754288,35.098891],[112.753219,35.08508],[112.743341,35.06458],[112.736043,35.060008],[112.735289,35.043338],[112.72711,35.035026],[112.698988,35.023221],[112.684581,35.012497],[112.675962,34.993504],[112.666462,34.9875],[112.653062,34.988681],[112.644695,34.978888],[112.624752,34.977903],[112.614182,34.98002],[112.596001,34.971013],[112.579392,34.971751],[112.5692,34.958608],[112.571654,34.948761],[112.578134,34.944083],[112.579329,34.933398],[112.585369,34.926503],[112.618209,34.920298],[112.638404,34.919756],[112.638152,34.896998],[112.642115,34.895717],[112.636328,34.88266],[112.638215,34.854174],[112.656648,34.859645],[112.676088,34.853188],[112.696723,34.840617],[112.72214,34.828833],[112.753281,34.828587],[112.773288,34.835884],[112.78782,34.83761],[112.813363,34.832877],[112.827266,34.819218]]]]}},{type:"Feature",properties:{adcode:410900,name:"濮阳市",center:[115.041299,35.768234],centroid:[115.287416,35.809288],childrenNum:6,level:"city",parent:{adcode:41e4},subFeatureIndex:8,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[115.017243,35.337437],[115.025359,35.346354],[115.03511,35.368302],[115.043226,35.376971],[115.057758,35.378489],[115.075437,35.375159],[115.088648,35.392985],[115.084811,35.410073],[115.091605,35.416045],[115.105886,35.403953],[115.11482,35.4041],[115.118343,35.416388],[115.11784,35.400134],[115.126584,35.408751],[115.126459,35.418053],[115.136902,35.421528],[115.167666,35.426129],[115.189497,35.42515],[115.197927,35.420696],[115.209817,35.423094],[115.237373,35.423094],[115.257505,35.435576],[115.272604,35.448299],[115.270842,35.456813],[115.286696,35.464495],[115.307143,35.480002],[115.339102,35.490665],[115.355774,35.490127],[115.357976,35.506559],[115.350301,35.52944],[115.353509,35.540585],[115.360492,35.543273],[115.34596,35.546987],[115.345079,35.553634],[115.357976,35.554709],[115.359234,35.56546],[115.369489,35.559743],[115.370747,35.57103],[115.383267,35.56888],[115.38377,35.577674],[115.389747,35.577332],[115.394465,35.586907],[115.411892,35.603612],[115.416233,35.624025],[115.439384,35.643455],[115.45247,35.660734],[115.461467,35.680839],[115.485939,35.710157],[115.511545,35.727129],[115.524127,35.726349],[115.533249,35.734151],[115.552815,35.730347],[115.562504,35.738637],[115.583076,35.730591],[115.588927,35.738539],[115.619502,35.739222],[115.665114,35.751069],[115.69355,35.754091],[115.698268,35.768421],[115.696255,35.788889],[115.704434,35.788938],[115.706384,35.8056],[115.717394,35.802726],[115.720288,35.817096],[115.7279,35.815635],[115.73482,35.832925],[115.753128,35.832925],[115.752876,35.838379],[115.76376,35.838379],[115.773386,35.854155],[115.816795,35.844271],[115.821325,35.852694],[115.841331,35.850016],[115.840891,35.857173],[115.863099,35.855518],[115.865489,35.868613],[115.872598,35.872799],[115.871403,35.858342],[115.875115,35.859218],[115.876058,35.875038],[115.882853,35.879857],[115.88323,35.895381],[115.889081,35.897522],[115.88474,35.909102],[115.87241,35.909346],[115.875115,35.920194],[115.907829,35.926858],[115.909968,35.935759],[115.906319,35.945388],[115.911856,35.960268],[115.957656,35.967998],[115.985148,35.974123],[116.008489,35.973103],[116.038561,35.963428],[116.04869,35.970283],[116.05259,35.999155],[116.062845,36.02889],[116.073666,36.026121],[116.079517,36.042637],[116.076057,36.056915],[116.087129,36.071385],[116.087758,36.080949],[116.096881,36.092163],[116.099334,36.112061],[116.057435,36.104927],[116.02881,36.072308],[116.016416,36.061383],[115.989804,36.045454],[115.964073,36.041617],[115.935888,36.031416],[115.922928,36.021555],[115.913806,36.020243],[115.896002,36.026219],[115.872221,36.016696],[115.859701,36.003723],[115.846238,36.004986],[115.837493,36.011012],[115.817298,36.012761],[115.797481,36.006978],[115.779866,35.99376],[115.786723,35.991233],[115.774518,35.981901],[115.774707,35.974512],[115.764326,35.970964],[115.736016,35.966929],[115.717897,35.971401],[115.698709,35.966053],[115.687007,35.955211],[115.68405,35.944367],[115.651776,35.928901],[115.642402,35.920048],[115.607297,35.925837],[115.583768,35.921702],[115.548223,35.898009],[115.503429,35.888714],[115.460082,35.867737],[115.433848,35.839061],[115.432841,35.83385],[115.417931,35.824987],[115.407614,35.808669],[115.370936,35.78884],[115.363512,35.779923],[115.335013,35.796733],[115.335705,35.81432],[115.344072,35.83872],[115.349608,35.860971],[115.338158,35.864719],[115.343632,35.872118],[115.356906,35.87022],[115.364267,35.894019],[115.367413,35.92034],[115.364141,35.929485],[115.354138,35.93751],[115.356529,35.954628],[115.363135,35.972033],[115.386286,35.974464],[115.395975,35.991671],[115.419693,36.004743],[115.443096,36.008874],[115.447752,36.012664],[115.448884,36.047397],[115.441586,36.05575],[115.459579,36.063374],[115.455112,36.071288],[115.459768,36.080415],[115.466374,36.079687],[115.484241,36.125842],[115.483549,36.148982],[115.46996,36.152862],[115.46392,36.17129],[115.451275,36.169739],[115.449639,36.150146],[115.431332,36.149176],[115.423656,36.140347],[115.407802,36.139571],[115.404594,36.155626],[115.400127,36.14025],[115.392641,36.129189],[115.377919,36.12851],[115.369237,36.102695],[115.3598,36.095318],[115.341367,36.0876],[115.333251,36.090609],[115.323248,36.086775],[115.307961,36.090706],[115.297517,36.104491],[115.301166,36.130111],[115.279335,36.137825],[115.264111,36.158827],[115.260399,36.171581],[115.242091,36.191218],[115.21334,36.203482],[115.20296,36.204063],[115.201765,36.212739],[115.189245,36.19558],[115.170686,36.190975],[115.156845,36.194708],[115.156657,36.201882],[115.142879,36.209686],[115.124949,36.209976],[115.110416,36.19941],[115.104565,36.172212],[115.099469,36.171678],[115.069523,36.179436],[115.062728,36.178224],[115.048447,36.162028],[115.049391,36.147284],[115.044987,36.130839],[115.045931,36.112207],[115.038381,36.106675],[114.998432,36.069734],[114.98931,36.065898],[114.968675,36.070414],[114.954582,36.067792],[114.933381,36.054876],[114.932123,36.050068],[114.920798,36.048319],[114.94244,36.03812],[114.968926,36.032971],[114.983962,36.02583],[114.983396,36.019417],[114.974211,36.012226],[114.974274,35.999009],[114.980376,36.003334],[114.986164,35.991865],[114.983333,35.982922],[114.988366,35.964741],[114.98025,35.949814],[114.972324,35.923259],[114.97786,35.904723],[114.970814,35.890223],[114.969996,35.881366],[114.959112,35.862723],[114.953009,35.85766],[114.935646,35.853814],[114.933003,35.84505],[114.93401,35.828055],[114.94546,35.82523],[114.948669,35.819629],[114.943573,35.799754],[114.921365,35.780118],[114.908405,35.765741],[114.893746,35.764132],[114.887832,35.753506],[114.889594,35.738978],[114.907776,35.722594],[114.915514,35.706743],[114.910544,35.700939],[114.918408,35.687962],[114.919226,35.664785],[114.911047,35.660685],[114.905888,35.649606],[114.890034,35.646823],[114.875502,35.628907],[114.874432,35.623878],[114.883051,35.616065],[114.884813,35.599852],[114.90853,35.585979],[114.952884,35.581094],[114.962006,35.571421],[114.968423,35.537554],[114.969492,35.518],[114.964334,35.504749],[114.953324,35.501815],[114.940616,35.491448],[114.93942,35.481225],[114.947347,35.478144],[114.970751,35.480785],[114.967668,35.456716],[114.96188,35.446146],[114.96383,35.440665],[114.981509,35.434107],[114.985787,35.414332],[114.967605,35.399204],[114.951248,35.380791],[114.960873,35.369722],[114.968171,35.354389],[114.976979,35.352381],[115.017243,35.337437]]],[[[115.504939,35.899079],[115.51079,35.907983],[115.505442,35.914405],[115.490721,35.908372],[115.490343,35.899858],[115.497264,35.895041],[115.504939,35.899079]]]]}},{type:"Feature",properties:{adcode:411e3,name:"许昌市",center:[113.826063,34.022956],centroid:[113.715606,34.071457],childrenNum:6,level:"city",parent:{adcode:41e4},subFeatureIndex:9,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[114.259905,34.251854],[114.246442,34.240433],[114.210267,34.241228],[114.202906,34.234623],[114.198314,34.217737],[114.160503,34.213564],[114.155345,34.202039],[114.129299,34.198214],[114.122882,34.204176],[114.109544,34.206958],[114.108475,34.218929],[114.102058,34.224343],[114.10816,34.228813],[114.098661,34.241923],[114.081926,34.24952],[114.076453,34.239639],[114.068589,34.250265],[114.058837,34.244753],[114.050847,34.247137],[114.041033,34.237851],[114.011275,34.242022],[114.00316,34.252549],[114.000266,34.263471],[113.990577,34.261138],[113.992905,34.27335],[113.977303,34.275583],[113.972459,34.283426],[113.96472,34.283128],[113.964406,34.292954],[113.937354,34.298612],[113.934271,34.304864],[113.916278,34.301688],[113.904702,34.294543],[113.896083,34.303375],[113.899229,34.315879],[113.894573,34.323767],[113.885451,34.327785],[113.880481,34.32972],[113.85022,34.32719],[113.848584,34.322725],[113.832353,34.32342],[113.803791,34.33721],[113.791208,34.331803],[113.793159,34.328083],[113.777242,34.314589],[113.756732,34.313795],[113.736852,34.317863],[113.727227,34.305757],[113.713386,34.301391],[113.71326,34.29092],[113.7003,34.289381],[113.70332,34.276725],[113.679728,34.282532],[113.669851,34.275385],[113.658589,34.275037],[113.643994,34.288488],[113.634494,34.290026],[113.624805,34.303375],[113.608951,34.3132],[113.600836,34.313299],[113.579697,34.319897],[113.566737,34.318359],[113.556608,34.311513],[113.529619,34.317913],[113.516848,34.328579],[113.518169,34.335771],[113.510871,34.342715],[113.498729,34.338598],[113.482875,34.342864],[113.471425,34.330811],[113.459409,34.334432],[113.429085,34.350303],[113.414175,34.349361],[113.406751,34.355213],[113.414867,34.374947],[113.401655,34.377525],[113.389828,34.375988],[113.366991,34.379805],[113.370388,34.389918],[113.353968,34.396411],[113.348809,34.404738],[113.32528,34.404986],[113.315969,34.391157],[113.320436,34.383375],[113.314019,34.373856],[113.314648,34.352287],[113.276586,34.351444],[113.276334,34.342814],[113.267904,34.337805],[113.235567,34.339045],[113.224557,34.33473],[113.223362,34.325057],[113.210276,34.312009],[113.196436,34.312257],[113.18379,34.295634],[113.184356,34.290225],[113.175297,34.281639],[113.15202,34.266351],[113.142583,34.272804],[113.109365,34.263471],[113.097726,34.26223],[113.082439,34.26645],[113.077343,34.262677],[113.070171,34.247186],[113.066962,34.223647],[113.075392,34.215502],[113.094203,34.21118],[113.103892,34.205418],[113.106094,34.198115],[113.101941,34.18778],[113.103011,34.176798],[113.118047,34.156818],[113.129811,34.145733],[113.126477,34.134696],[113.130629,34.124105],[113.146483,34.117939],[113.150384,34.108141],[113.157493,34.103118],[113.177876,34.101228],[113.210654,34.107445],[113.222355,34.102422],[113.227137,34.092523],[113.235064,34.091926],[113.241166,34.097945],[113.240097,34.108539],[113.252113,34.114308],[113.257398,34.112319],[113.264381,34.098542],[113.278914,34.100134],[113.283129,34.086802],[113.30043,34.082623],[113.331949,34.063268],[113.320687,34.054858],[113.334528,34.027183],[113.345034,34.029075],[113.346104,34.03928],[113.35466,34.043112],[113.368626,34.039877],[113.386368,34.039827],[113.395742,34.031315],[113.402222,34.002687],[113.41342,33.987049],[113.412665,33.952028],[113.410715,33.943308],[113.386116,33.927808],[113.381586,33.912007],[113.365481,33.890519],[113.360762,33.879997],[113.36762,33.862691],[113.384669,33.843286],[113.385802,33.834854],[113.38102,33.815542],[113.386053,33.801817],[113.393351,33.797873],[113.372401,33.785593],[113.425814,33.762175],[113.434873,33.765371],[113.448211,33.75868],[113.451042,33.739301],[113.489481,33.746094],[113.504014,33.751238],[113.51798,33.750439],[113.544341,33.757131],[113.549373,33.750489],[113.573091,33.752137],[113.576552,33.736304],[113.58775,33.727062],[113.580767,33.715171],[113.585485,33.711024],[113.6087,33.709175],[113.596746,33.698081],[113.598256,33.687536],[113.612475,33.695732],[113.629335,33.688885],[113.637954,33.695532],[113.637388,33.702679],[113.645063,33.695932],[113.670983,33.699081],[113.684257,33.693833],[113.701936,33.691234],[113.70678,33.693683],[113.710303,33.707876],[113.716406,33.710624],[113.724018,33.695632],[113.741822,33.702329],[113.74371,33.713422],[113.75906,33.717519],[113.762206,33.731808],[113.750378,33.7398],[113.737167,33.741948],[113.734399,33.752337],[113.742703,33.76672],[113.752895,33.771463],[113.752958,33.791484],[113.761262,33.807756],[113.759312,33.827918],[113.731127,33.835652],[113.729554,33.845032],[113.722445,33.848624],[113.725528,33.856406],[113.735908,33.859199],[113.738802,33.868627],[113.760318,33.868477],[113.773719,33.877654],[113.76554,33.883638],[113.77806,33.884934],[113.78303,33.880945],[113.797814,33.883887],[113.806936,33.880995],[113.811969,33.885782],[113.813353,33.88638],[113.818009,33.88663],[113.820148,33.890669],[113.824363,33.89022],[113.826565,33.875808],[113.853051,33.873315],[113.861481,33.884486],[113.860097,33.907222],[113.871296,33.909615],[113.857455,33.939769],[113.859783,33.94859],[113.870226,33.945401],[113.885765,33.948988],[113.88803,33.943407],[113.90055,33.943009],[113.901305,33.94849],[113.916341,33.945849],[113.922066,33.957409],[113.951949,33.97365],[113.977492,33.98152],[113.99907,33.981819],[114.021971,33.987248],[114.037762,33.986053],[114.053867,33.978781],[114.059152,33.96538],[114.057453,33.952875],[114.064877,33.949237],[114.076704,33.952676],[114.087336,33.934686],[114.103882,33.934736],[114.103757,33.925815],[114.114515,33.928058],[114.125902,33.915547],[114.128418,33.885433],[114.116465,33.872068],[114.115081,33.863788],[114.132445,33.853613],[114.145971,33.841939],[114.159623,33.816191],[114.15503,33.809304],[114.161447,33.79982],[114.178308,33.806409],[114.179503,33.799321],[114.190638,33.801917],[114.19888,33.797374],[114.211525,33.798123],[114.217565,33.793131],[114.242604,33.790785],[114.249776,33.779252],[114.290354,33.771813],[114.309983,33.781349],[114.313066,33.80012],[114.325082,33.818337],[114.323383,33.832908],[114.316085,33.833207],[114.310738,33.842637],[114.301301,33.842188],[114.301112,33.852365],[114.312122,33.853263],[114.315834,33.865734],[114.311304,33.87142],[114.3164,33.880446],[114.305642,33.889572],[114.299917,33.953024],[114.31036,33.96],[114.307026,33.978233],[114.312248,33.98162],[114.311745,34.001492],[114.295324,34.007467],[114.287523,34.022902],[114.281987,34.046597],[114.271103,34.053813],[114.270411,34.063219],[114.262107,34.095856],[114.273431,34.102571],[114.273808,34.107545],[114.285133,34.120873],[114.28746,34.137033],[114.275255,34.174661],[114.276199,34.190811],[114.287649,34.206958],[114.286013,34.218234],[114.273053,34.227869],[114.272676,34.24237],[114.259905,34.251854]]],[[[113.813353,33.88638],[113.811969,33.885782],[113.811718,33.879449],[113.826565,33.875808],[113.824363,33.89022],[113.820148,33.890669],[113.818009,33.88663],[113.813353,33.88638]]]]}},{type:"Feature",properties:{adcode:411100,name:"漯河市",center:[114.026405,33.575855],centroid:[113.905678,33.65448],childrenNum:5,level:"city",parent:{adcode:41e4},subFeatureIndex:10,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.688347,33.407737],[113.693065,33.418216],[113.710429,33.417013],[113.713197,33.430249],[113.721187,33.432705],[113.766861,33.432154],[113.771139,33.435713],[113.799513,33.43481],[113.805804,33.446189],[113.825999,33.460723],[113.847515,33.466836],[113.856134,33.47796],[113.865508,33.479362],[113.914139,33.478511],[113.933768,33.465884],[113.94528,33.465633],[113.95434,33.473901],[113.967929,33.477408],[113.9712,33.482619],[113.981329,33.482268],[113.998693,33.500904],[114.001084,33.510671],[114.01354,33.511071],[114.014924,33.522039],[114.033735,33.523892],[114.038579,33.5296],[114.052168,33.528999],[114.055692,33.523942],[114.075572,33.517782],[114.099101,33.503108],[114.116276,33.51027],[114.118101,33.502406],[114.104071,33.499351],[114.103505,33.491586],[114.115836,33.488631],[114.130683,33.495093],[114.131501,33.472298],[114.151507,33.468139],[114.150312,33.460372],[114.159937,33.456713],[114.171639,33.459019],[114.180384,33.453656],[114.171324,33.440926],[114.190575,33.426489],[114.195294,33.447692],[114.211399,33.453757],[114.230714,33.451551],[114.247574,33.45967],[114.266636,33.461625],[114.284629,33.472548],[114.279785,33.489282],[114.283371,33.500353],[114.281106,33.513976],[114.289348,33.522089],[114.295324,33.553782],[114.282868,33.558688],[114.278653,33.57015],[114.265378,33.593219],[114.265881,33.597923],[114.279659,33.604427],[114.277332,33.621735],[114.264938,33.635239],[114.264183,33.654742],[114.260849,33.661942],[114.259842,33.680588],[114.250783,33.693233],[114.249084,33.704328],[114.214231,33.691334],[114.196489,33.690934],[114.186549,33.682538],[114.186235,33.67219],[114.169563,33.664791],[114.162265,33.669941],[114.152639,33.662242],[114.149745,33.650442],[114.125398,33.652842],[114.116402,33.651392],[114.118226,33.67159],[114.115836,33.684587],[114.097717,33.683187],[114.091489,33.71642],[114.095263,33.728061],[114.106839,33.739051],[114.10319,33.756832],[114.098032,33.765072],[114.133262,33.768118],[114.142007,33.765921],[114.139931,33.783097],[114.133703,33.791484],[114.134772,33.806409],[114.145404,33.810551],[114.15503,33.809304],[114.159623,33.816191],[114.145971,33.841939],[114.132445,33.853613],[114.115081,33.863788],[114.116465,33.872068],[114.128418,33.885433],[114.125902,33.915547],[114.114515,33.928058],[114.103757,33.925815],[114.103882,33.934736],[114.087336,33.934686],[114.076704,33.952676],[114.064877,33.949237],[114.057453,33.952875],[114.059152,33.96538],[114.053867,33.978781],[114.037762,33.986053],[114.021971,33.987248],[113.99907,33.981819],[113.977492,33.98152],[113.951949,33.97365],[113.922066,33.957409],[113.916341,33.945849],[113.901305,33.94849],[113.90055,33.943009],[113.88803,33.943407],[113.885765,33.948988],[113.870226,33.945401],[113.859783,33.94859],[113.857455,33.939769],[113.871296,33.909615],[113.860097,33.907222],[113.861481,33.884486],[113.853051,33.873315],[113.826565,33.875808],[113.811718,33.879449],[113.811969,33.885782],[113.806936,33.880995],[113.797814,33.883887],[113.78303,33.880945],[113.77806,33.884934],[113.76554,33.883638],[113.773719,33.877654],[113.760318,33.868477],[113.738802,33.868627],[113.735908,33.859199],[113.725528,33.856406],[113.722445,33.848624],[113.729554,33.845032],[113.731127,33.835652],[113.759312,33.827918],[113.761262,33.807756],[113.752958,33.791484],[113.752895,33.771463],[113.742703,33.76672],[113.734399,33.752337],[113.737167,33.741948],[113.750378,33.7398],[113.762206,33.731808],[113.75906,33.717519],[113.74371,33.713422],[113.741822,33.702329],[113.724018,33.695632],[113.716406,33.710624],[113.710303,33.707876],[113.70678,33.693683],[113.701936,33.691234],[113.684257,33.693833],[113.670983,33.699081],[113.645063,33.695932],[113.637388,33.702679],[113.637954,33.695532],[113.629335,33.688885],[113.612475,33.695732],[113.598256,33.687536],[113.596746,33.698081],[113.6087,33.709175],[113.585485,33.711024],[113.576677,33.706327],[113.584101,33.698131],[113.580515,33.681738],[113.587624,33.654642],[113.596746,33.651892],[113.619143,33.63799],[113.628203,33.629038],[113.621534,33.619885],[113.604673,33.613131],[113.579383,33.597222],[113.576803,33.592619],[113.552267,33.586715],[113.554281,33.5706],[113.563151,33.57055],[113.557363,33.553582],[113.545536,33.548626],[113.537672,33.51633],[113.533708,33.514978],[113.537609,33.498499],[113.532073,33.497347],[113.525278,33.505061],[113.510808,33.505011],[113.50307,33.500252],[113.483001,33.500152],[113.478597,33.50431],[113.484322,33.483721],[113.471803,33.463378],[113.473501,33.443683],[113.466518,33.437367],[113.468846,33.422077],[113.483945,33.421124],[113.506341,33.414607],[113.51754,33.407186],[113.526662,33.419269],[113.539811,33.419019],[113.54736,33.406433],[113.574727,33.407537],[113.589008,33.404728],[113.596809,33.41215],[113.620842,33.410946],[113.645252,33.421776],[113.651669,33.418417],[113.659407,33.424283],[113.683125,33.41952],[113.688347,33.407737]]]]}},{type:"Feature",properties:{adcode:411200,name:"三门峡市",center:[111.194099,34.777338],centroid:[111.112608,34.36205],childrenNum:6,level:"city",parent:{adcode:41e4},subFeatureIndex:11,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[111.973358,35.070234],[111.963166,35.079329],[111.952156,35.082131],[111.928376,35.082032],[111.917618,35.071119],[111.900065,35.07982],[111.885595,35.069988],[111.86452,35.076772],[111.8615,35.074757],[111.818405,35.068464],[111.8101,35.06222],[111.812051,35.04855],[111.809534,35.036846],[111.793555,35.026664],[111.782419,35.030058],[111.768578,35.01535],[111.749138,35.016383],[111.739324,35.004231],[111.711769,35.003641],[111.69711,34.998966],[111.687107,34.988485],[111.669617,34.988189],[111.665528,34.980955],[111.67572,34.971406],[111.681697,34.950927],[111.66169,34.938815],[111.645082,34.93783],[111.621552,34.916308],[111.617652,34.89483],[111.605824,34.892367],[111.591858,34.881625],[111.589404,34.861863],[111.58305,34.852794],[111.570782,34.843329],[111.561031,34.845251],[111.554488,34.852202],[111.543982,34.853286],[111.527813,34.850132],[111.515356,34.840173],[111.508688,34.839187],[111.502648,34.829968],[111.480126,34.826023],[111.464649,34.82691],[111.45062,34.836624],[111.439358,34.838152],[111.430991,34.829277],[111.415389,34.827453],[111.39532,34.814878],[111.35537,34.823064],[111.3504,34.829376],[111.340334,34.831299],[111.322656,34.819711],[111.30611,34.815223],[111.294157,34.807678],[111.282141,34.809453],[111.268048,34.817936],[111.255214,34.819563],[111.249112,34.81404],[111.239864,34.793571],[111.223443,34.789427],[111.209414,34.80097],[111.177769,34.803979],[111.168144,34.813201],[111.16072,34.814582],[111.148515,34.80748],[111.129767,34.779955],[111.124419,34.761698],[111.118254,34.756566],[111.066414,34.751581],[111.035336,34.740871],[111.018475,34.732282],[110.976324,34.70646],[110.963993,34.70641],[110.952354,34.720581],[110.935494,34.730505],[110.919766,34.730258],[110.915739,34.723247],[110.917438,34.71357],[110.903723,34.668823],[110.893469,34.651629],[110.883717,34.644117],[110.861572,34.639719],[110.853205,34.635271],[110.83452,34.617526],[110.824328,34.615845],[110.816023,34.622618],[110.808222,34.6371],[110.791865,34.649751],[110.76129,34.653506],[110.749148,34.652271],[110.741158,34.639225],[110.732728,34.633195],[110.712659,34.607837],[110.706367,34.60398],[110.653521,34.608034],[110.610992,34.607293],[110.594509,34.60314],[110.547388,34.583558],[110.53317,34.583459],[110.488502,34.610753],[110.475857,34.610457],[110.465602,34.605463],[110.437732,34.597849],[110.424835,34.588454],[110.407723,34.589245],[110.379161,34.600519],[110.367207,34.566792],[110.376141,34.563082],[110.399355,34.562834],[110.404514,34.557591],[110.372744,34.544332],[110.362048,34.526419],[110.360476,34.51761],[110.368843,34.493206],[110.378217,34.486423],[110.379727,34.478501],[110.393442,34.464833],[110.395266,34.453937],[110.401998,34.447101],[110.402941,34.433478],[110.40961,34.429069],[110.409484,34.421587],[110.431,34.409446],[110.458178,34.402409],[110.467427,34.409743],[110.47592,34.409149],[110.473718,34.393239],[110.489446,34.355312],[110.50272,34.345195],[110.503287,34.334283],[110.498128,34.320096],[110.473844,34.322973],[110.465854,34.305906],[110.449308,34.291466],[110.431315,34.290374],[110.426471,34.27608],[110.432573,34.272903],[110.442513,34.253989],[110.439682,34.243413],[110.48976,34.232339],[110.507879,34.217588],[110.52411,34.219674],[110.551414,34.212819],[110.557139,34.193395],[110.589099,34.190264],[110.587715,34.178687],[110.62175,34.177444],[110.634144,34.169791],[110.641945,34.160894],[110.639114,34.150903],[110.624204,34.137331],[110.628545,34.133055],[110.618164,34.124055],[110.614012,34.113712],[110.591804,34.101676],[110.595138,34.064761],[110.58847,34.061676],[110.589728,34.038583],[110.586645,34.023997],[110.612062,34.024246],[110.619486,34.035646],[110.631502,34.025541],[110.628104,34.019019],[110.634459,34.01633],[110.638925,34.004977],[110.649558,33.992278],[110.65176,33.969665],[110.670948,33.966427],[110.675603,33.946596],[110.669564,33.939271],[110.650501,33.93673],[110.626028,33.924619],[110.62584,33.90782],[110.61181,33.908069],[110.592182,33.900591],[110.587274,33.887727],[110.600612,33.87127],[110.612943,33.867429],[110.612125,33.852515],[110.627664,33.84573],[110.649495,33.84598],[110.667928,33.852166],[110.684914,33.838796],[110.712596,33.833607],[110.722725,33.818886],[110.725996,33.807707],[110.741347,33.798822],[110.753677,33.799471],[110.765568,33.795028],[110.782177,33.796076],[110.78419,33.782398],[110.7991,33.775508],[110.80753,33.757281],[110.815898,33.753036],[110.816841,33.737353],[110.832192,33.712823],[110.823195,33.692834],[110.825397,33.684137],[110.833199,33.677789],[110.841818,33.663241],[110.857734,33.657792],[110.87881,33.634639],[110.89976,33.632989],[110.90473,33.628638],[110.940841,33.620035],[110.951411,33.609029],[110.966573,33.609179],[110.979658,33.595871],[111.003691,33.578658],[111.009982,33.56054],[111.025144,33.550578],[111.058425,33.555534],[111.070063,33.566346],[111.089126,33.563743],[111.102903,33.573903],[111.114542,33.578758],[111.123224,33.598623],[111.133982,33.612381],[111.134674,33.627437],[111.143922,33.633189],[111.152101,33.645441],[111.146439,33.658592],[111.140273,33.661292],[111.133164,33.678939],[111.141406,33.678739],[111.151598,33.684787],[111.170471,33.682138],[111.181292,33.686886],[111.186199,33.704128],[111.195196,33.713272],[111.197209,33.732207],[111.194441,33.745494],[111.196077,33.757731],[111.208533,33.781948],[111.222437,33.797574],[111.234831,33.801268],[111.240367,33.796925],[111.260813,33.796775],[111.261568,33.822878],[111.240304,33.842488],[111.232062,33.856805],[111.216397,33.865135],[111.21948,33.872766],[111.203689,33.883438],[111.206017,33.891616],[111.212811,33.884087],[111.234516,33.894857],[111.234768,33.901738],[111.226652,33.913104],[111.230049,33.924768],[111.239989,33.933141],[111.259366,33.929852],[111.276793,33.935533],[111.29013,33.926662],[111.303342,33.928207],[111.305921,33.941364],[111.324795,33.963039],[111.344109,33.973351],[111.356,33.984509],[111.353609,33.996263],[111.355119,34.015185],[111.342285,34.037936],[111.342096,34.056053],[111.354301,34.084464],[111.367198,34.092473],[111.358768,34.108788],[111.344738,34.109037],[111.334735,34.115601],[111.313408,34.116546],[111.306362,34.125149],[111.305292,34.140165],[111.296925,34.145137],[111.281889,34.138524],[111.276856,34.148318],[111.267922,34.146528],[111.253201,34.15309],[111.248671,34.162882],[111.234516,34.178537],[111.214699,34.181221],[111.207401,34.197419],[111.175819,34.209541],[111.158958,34.223101],[111.166571,34.228962],[111.180915,34.230203],[111.187772,34.250265],[111.182488,34.256421],[111.181921,34.27876],[111.191547,34.301837],[111.185444,34.31697],[111.16915,34.334878],[111.166634,34.344798],[111.159839,34.350799],[111.141217,34.353031],[111.138449,34.35675],[111.141217,34.373113],[111.147949,34.38853],[111.156819,34.394677],[111.171415,34.394974],[111.188967,34.399286],[111.191232,34.41792],[111.197712,34.418762],[111.21344,34.429812],[111.213252,34.437441],[111.220235,34.457949],[111.227533,34.459732],[111.244708,34.453788],[111.272012,34.447547],[111.271383,34.470677],[111.289313,34.485581],[111.300008,34.488948],[111.306676,34.474193],[111.324732,34.471717],[111.344424,34.472955],[111.358642,34.480333],[111.370595,34.473301],[111.385065,34.473103],[111.394816,34.482016],[111.418346,34.490829],[111.451689,34.505928],[111.45754,34.512561],[111.484655,34.525528],[111.489437,34.533842],[111.5029,34.545074],[111.525045,34.54829],[111.538634,34.543342],[111.544736,34.544925],[111.562037,34.558728],[111.574305,34.564467],[111.584434,34.556057],[111.594437,34.565308],[111.608089,34.56229],[111.619099,34.55576],[111.670058,34.540571],[111.683584,34.533298],[111.692643,34.535673],[111.681445,34.547647],[111.672008,34.572232],[111.687044,34.571886],[111.696292,34.575744],[111.702835,34.584943],[111.740079,34.600272],[111.758764,34.597454],[111.764112,34.609171],[111.778393,34.608331],[111.797078,34.626028],[111.811296,34.633887],[111.821362,34.634431],[111.823752,34.646242],[111.830736,34.649207],[111.863953,34.647082],[111.888867,34.61891],[111.905664,34.6198],[111.928879,34.600272],[111.94165,34.620492],[111.943223,34.629637],[111.953666,34.639521],[111.967444,34.64308],[111.971408,34.65069],[111.980089,34.654],[111.972855,34.66739],[111.984997,34.686013],[111.982921,34.695052],[111.993238,34.693866],[111.997642,34.717125],[112.01488,34.724235],[112.014125,34.731048],[111.995692,34.736823],[112.000536,34.745017],[111.997831,34.750693],[112.011042,34.750644],[112.019347,34.762587],[112.017459,34.769939],[112.031174,34.777735],[112.028784,34.778968],[112.021171,34.777537],[112.018466,34.785678],[112.030231,34.782668],[112.031992,34.782965],[112.030105,34.792584],[112.016327,34.797073],[112.012804,34.803781],[112.020731,34.811327],[112.01444,34.817985],[111.986003,34.837856],[111.982858,34.846139],[111.990722,34.853779],[111.981411,34.857624],[111.957944,34.851167],[111.948948,34.852301],[111.949829,34.863391],[111.922336,34.883941],[111.898744,34.885912],[111.883267,34.894239],[111.88396,34.911974],[111.890062,34.920347],[111.906168,34.929606],[111.921707,34.934038],[111.933975,34.947678],[111.950835,34.947776],[111.981914,34.960626],[111.983235,34.970471],[111.961153,34.975689],[111.95763,34.986221],[111.967192,34.989912],[111.981033,34.990059],[111.978139,34.997195],[111.991917,35.005018],[111.967067,35.014169],[111.940203,35.030599],[111.939511,35.0366],[111.958573,35.0486],[111.958699,35.062908],[111.973358,35.070234]]],[[[112.031992,34.782965],[112.030231,34.782668],[112.028784,34.778968],[112.031174,34.777735],[112.031992,34.782965]]]]}},{type:"Feature",properties:{adcode:411300,name:"南阳市",center:[112.540918,32.999082],centroid:[112.288385,33.044723],childrenNum:13,level:"city",parent:{adcode:41e4},subFeatureIndex:12,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[111.009982,33.56054],[111.003691,33.548075],[111.003565,33.533105],[111.019482,33.520837],[111.027346,33.493139],[111.027346,33.469542],[111.020866,33.45085],[110.996708,33.435963],[111.011429,33.407336],[111.011052,33.398861],[111.017406,33.385019],[111.026151,33.375338],[111.02722,33.365506],[111.023005,33.35487],[111.029988,33.339415],[111.026025,33.330382],[111.000356,33.323957],[110.999476,33.313416],[111.007969,33.303678],[110.998469,33.301418],[110.997903,33.290975],[110.991297,33.276112],[110.982867,33.270085],[110.997022,33.254766],[110.985006,33.255419],[110.997274,33.238941],[111.01231,33.233113],[111.016714,33.223968],[111.030366,33.214571],[111.032442,33.209345],[111.051441,33.20065],[111.057858,33.183609],[111.037223,33.160984],[111.045527,33.158168],[111.061885,33.174006],[111.073272,33.180643],[111.088811,33.182051],[111.0985,33.176923],[111.106678,33.164453],[111.128257,33.154547],[111.132032,33.137749],[111.139267,33.134379],[111.146313,33.123815],[111.162544,33.124268],[111.179531,33.115463],[111.177014,33.101174],[111.190918,33.086731],[111.192868,33.071631],[111.167829,33.06398],[111.15078,33.053206],[111.148263,33.042381],[111.152982,33.039712],[111.179845,33.043942],[111.189345,33.038655],[111.221682,33.042633],[111.24043,33.037194],[111.240556,33.019971],[111.2588,33.006472],[111.269495,32.987831],[111.273647,32.971858],[111.267797,32.963744],[111.253138,32.955781],[111.245526,32.944188],[111.24282,32.930627],[111.24993,32.91424],[111.246344,32.888518],[111.2549,32.884029],[111.269621,32.898455],[111.280127,32.904355],[111.290697,32.892554],[111.289879,32.86506],[111.293528,32.859409],[111.316365,32.85078],[111.331275,32.841142],[111.358642,32.837003],[111.380032,32.828827],[111.385065,32.821305],[111.396138,32.794547],[111.405637,32.782529],[111.404128,32.77561],[111.41023,32.769347],[111.413564,32.757174],[111.422938,32.751011],[111.437597,32.750253],[111.447285,32.754951],[111.448229,32.761467],[111.46295,32.764296],[111.461063,32.771671],[111.468172,32.770862],[111.475659,32.758437],[111.469808,32.753638],[111.46899,32.738633],[111.456974,32.72696],[111.444391,32.736713],[111.441749,32.726758],[111.431494,32.735045],[111.425455,32.73267],[111.44112,32.722816],[111.464649,32.722362],[111.472639,32.717763],[111.467858,32.707351],[111.479874,32.694664],[111.513029,32.673986],[111.526555,32.654163],[111.524793,32.647285],[111.530267,32.628316],[111.55908,32.601095],[111.57764,32.593505],[111.603685,32.610254],[111.618344,32.627608],[111.634009,32.635145],[111.640804,32.634741],[111.640804,32.617338],[111.646403,32.606206],[111.673015,32.61496],[111.69214,32.605953],[111.713593,32.60656],[111.729258,32.594011],[111.740331,32.589253],[111.747377,32.577612],[111.766817,32.56521],[111.785061,32.557312],[111.809157,32.536704],[111.827024,32.538071],[111.828219,32.531285],[111.858291,32.528702],[111.862758,32.513609],[111.870245,32.506315],[111.889936,32.503174],[111.915353,32.507733],[111.932339,32.51523],[111.948696,32.517003],[111.956434,32.512292],[111.966815,32.494916],[111.977384,32.471151],[111.992861,32.467351],[111.990407,32.457468],[112.001102,32.459444],[112.007079,32.45103],[112.014377,32.450321],[112.032495,32.462435],[112.038095,32.470087],[112.047972,32.473736],[112.064014,32.474243],[112.069865,32.460002],[112.065965,32.444643],[112.07515,32.436887],[112.086034,32.435316],[112.081315,32.425682],[112.084398,32.419699],[112.093646,32.418888],[112.108431,32.40474],[112.12441,32.398755],[112.130261,32.403117],[112.13737,32.390589],[112.156873,32.377096],[112.164485,32.385314],[112.150645,32.384198],[112.161717,32.399313],[112.146555,32.403117],[112.150204,32.411637],[112.164674,32.411282],[112.172475,32.405906],[112.172161,32.39835],[112.178829,32.392111],[112.17279,32.385162],[112.205882,32.392973],[112.229033,32.385365],[112.230921,32.377451],[112.251619,32.368116],[112.255394,32.359745],[112.261999,32.358882],[112.288297,32.345587],[112.299495,32.334929],[112.32812,32.321682],[112.329819,32.338178],[112.338627,32.34853],[112.351146,32.350459],[112.360017,32.36563],[112.368195,32.367913],[112.38795,32.363702],[112.39097,32.37116],[112.414184,32.363195],[112.417519,32.357005],[112.450422,32.342847],[112.445515,32.355584],[112.460236,32.368269],[112.472756,32.371769],[112.477222,32.380799],[112.495656,32.374915],[112.506539,32.380749],[112.521638,32.383082],[112.531201,32.377147],[112.544727,32.395509],[112.545231,32.403878],[112.561714,32.398907],[112.577819,32.387952],[112.57719,32.382524],[112.58908,32.381307],[112.59663,32.385568],[112.61198,32.387039],[112.630477,32.379937],[112.645513,32.368472],[112.672062,32.368116],[112.685651,32.357715],[112.713647,32.35259],[112.719183,32.361774],[112.73359,32.366239],[112.734911,32.351677],[112.754099,32.342847],[112.767877,32.344166],[112.77637,32.358375],[112.804052,32.372277],[112.835634,32.381611],[112.860736,32.395814],[112.870487,32.397842],[112.878603,32.392567],[112.877219,32.379531],[112.888857,32.376792],[112.902384,32.388662],[112.911883,32.390741],[112.948184,32.388256],[112.960389,32.385314],[112.969888,32.37116],[112.98807,32.372327],[112.991908,32.378314],[112.988636,32.399567],[113.00059,32.416758],[113.012543,32.417164],[113.025314,32.424618],[113.05029,32.417925],[113.058846,32.404638],[113.078915,32.394393],[113.107981,32.398502],[113.118739,32.375828],[113.150258,32.376284],[113.155606,32.380749],[113.159695,32.400784],[113.159129,32.410673],[113.172718,32.42117],[113.185678,32.42188],[113.211786,32.431969],[113.226508,32.42548],[113.236322,32.406971],[113.259537,32.390589],[113.273189,32.384756],[113.295397,32.367406],[113.298731,32.35396],[113.325217,32.346602],[113.333333,32.335945],[113.31773,32.327012],[113.31836,32.319042],[113.332074,32.316098],[113.347677,32.298633],[113.365166,32.294774],[113.376679,32.298379],[113.394106,32.288072],[113.397944,32.279286],[113.410023,32.278017],[113.420466,32.269535],[113.428834,32.270551],[113.471048,32.299141],[113.480296,32.298989],[113.500239,32.312697],[113.511689,32.316809],[113.528738,32.330362],[113.542013,32.326809],[113.550066,32.328737],[113.547675,32.316047],[113.55082,32.302543],[113.561516,32.307366],[113.556608,32.324169],[113.551261,32.329245],[113.565227,32.340208],[113.583032,32.34305],[113.579194,32.355229],[113.589637,32.349495],[113.605617,32.35056],[113.593286,32.358578],[113.593727,32.365275],[113.604233,32.365174],[113.611845,32.35873],[113.624994,32.363601],[113.624617,32.37948],[113.63657,32.385923],[113.643302,32.402559],[113.651228,32.413412],[113.662741,32.410115],[113.665006,32.422235],[113.67199,32.41762],[113.683817,32.420206],[113.6908,32.415846],[113.702187,32.420206],[113.70785,32.410318],[113.718608,32.417215],[113.710555,32.421221],[113.725339,32.436025],[113.730875,32.449307],[113.730498,32.46061],[113.73767,32.453362],[113.741319,32.465374],[113.753398,32.465425],[113.761828,32.470645],[113.764219,32.489951],[113.759375,32.508797],[113.768245,32.534425],[113.774285,32.537362],[113.763212,32.547895],[113.769126,32.559287],[113.782023,32.566172],[113.789698,32.586368],[113.805301,32.597705],[113.814423,32.600842],[113.809264,32.603828],[113.799072,32.620879],[113.785169,32.631402],[113.791963,32.642075],[113.781079,32.652595],[113.771894,32.655276],[113.761199,32.652697],[113.729114,32.669688],[113.717727,32.683694],[113.696274,32.695624],[113.668404,32.692389],[113.649089,32.708261],[113.642987,32.703106],[113.623358,32.706138],[113.614676,32.711344],[113.609832,32.696484],[113.616941,32.69158],[113.619332,32.667362],[113.594041,32.661092],[113.596243,32.649763],[113.588882,32.650421],[113.583535,32.633577],[113.571582,32.624775],[113.565416,32.602715],[113.542264,32.589152],[113.524397,32.593505],[113.513513,32.579384],[113.512759,32.571538],[113.492752,32.567741],[113.472621,32.578574],[113.458843,32.575689],[113.458528,32.585508],[113.447393,32.584698],[113.437893,32.589203],[113.422354,32.605245],[113.400712,32.61324],[113.382216,32.593353],[113.372024,32.576245],[113.364537,32.569462],[113.351577,32.573664],[113.342832,32.567893],[113.326349,32.577561],[113.321631,32.58733],[113.315717,32.587988],[113.31037,32.579536],[113.303135,32.586723],[113.282311,32.591986],[113.280486,32.595984],[113.249785,32.593555],[113.243871,32.578827],[113.221286,32.570424],[113.205432,32.569969],[113.198575,32.579536],[113.200651,32.585103],[113.196121,32.606156],[113.201783,32.614504],[113.20279,32.632262],[113.19222,32.635398],[113.186181,32.646476],[113.18788,32.652241],[113.20172,32.660333],[113.210276,32.678941],[113.220594,32.684452],[113.236196,32.679143],[113.243305,32.66984],[113.252679,32.666907],[113.258467,32.653961],[113.269351,32.662053],[113.259914,32.677778],[113.236259,32.682581],[113.241103,32.691429],[113.231226,32.701488],[113.213736,32.703055],[113.207697,32.717257],[113.191528,32.717712],[113.193982,32.733378],[113.201343,32.738835],[113.199959,32.750253],[113.177247,32.775307],[113.185237,32.788286],[113.184294,32.801364],[113.17838,32.806665],[113.187062,32.819943],[113.175737,32.83241],[113.165797,32.838063],[113.167999,32.847046],[113.177059,32.852446],[113.187062,32.866422],[113.195681,32.871871],[113.205558,32.884937],[113.201154,32.888821],[113.208137,32.916408],[113.199015,32.920291],[113.181714,32.920644],[113.161897,32.92745],[113.15592,32.936122],[113.145854,32.940306],[113.140129,32.930627],[113.11553,32.932996],[113.109805,32.94202],[113.097789,32.946406],[113.108799,32.97332],[113.116097,32.986421],[113.120312,33.001182],[113.127358,33.010552],[113.142016,33.016647],[113.161456,33.038906],[113.165546,33.048977],[113.18574,33.056932],[113.190019,33.067202],[113.206124,33.070826],[113.219273,33.064584],[113.237077,33.077017],[113.250477,33.077822],[113.257335,33.083409],[113.271427,33.08049],[113.301436,33.080138],[113.313138,33.075608],[113.325469,33.079181],[113.333836,33.085976],[113.357239,33.091613],[113.386619,33.113451],[113.388821,33.128393],[113.379888,33.135485],[113.385424,33.145595],[113.382467,33.156156],[113.385802,33.169381],[113.370136,33.182855],[113.377875,33.184313],[113.384417,33.196679],[113.384103,33.206128],[113.391212,33.225928],[113.402851,33.235224],[113.400146,33.261044],[113.384732,33.29203],[113.388318,33.299059],[113.403857,33.302724],[113.400838,33.314722],[113.40738,33.323004],[113.400397,33.335852],[113.363908,33.342476],[113.335472,33.35201],[113.312194,33.341121],[113.302632,33.348999],[113.289923,33.351709],[113.277089,33.350254],[113.270609,33.358834],[113.257964,33.366158],[113.245004,33.365356],[113.241418,33.373733],[113.230534,33.374937],[113.230912,33.38848],[113.216316,33.398861],[113.198134,33.420523],[113.192975,33.429797],[113.176052,33.435713],[113.156109,33.433607],[113.141765,33.425987],[113.128742,33.427642],[113.125659,33.439723],[113.110309,33.446138],[113.074826,33.448444],[113.045698,33.439472],[113.041357,33.44659],[113.037897,33.464331],[113.041168,33.473701],[113.053373,33.485725],[113.049221,33.492087],[113.048214,33.508317],[113.04381,33.517532],[113.047333,33.532204],[113.036261,33.539865],[113.036701,33.546974],[113.027642,33.546874],[113.022861,33.56119],[112.997255,33.569399],[112.990775,33.567797],[112.986497,33.575805],[112.972908,33.584613],[112.963597,33.583662],[112.950134,33.590968],[112.94271,33.607629],[112.917545,33.605627],[112.893513,33.616133],[112.887914,33.608329],[112.869669,33.611531],[112.854822,33.603626],[112.85262,33.584413],[112.845637,33.578107],[112.82022,33.574804],[112.81179,33.580309],[112.783668,33.567747],[112.773413,33.56079],[112.760076,33.571751],[112.750387,33.571151],[112.743215,33.578858],[112.725411,33.586765],[112.70572,33.585263],[112.689174,33.587165],[112.683889,33.591718],[112.664386,33.597673],[112.660234,33.605377],[112.646205,33.602876],[112.63444,33.594821],[112.617705,33.597272],[112.611351,33.601875],[112.610785,33.611431],[112.599775,33.618084],[112.588388,33.616883],[112.575995,33.602275],[112.556869,33.588166],[112.548502,33.59367],[112.529943,33.587915],[112.522771,33.595521],[112.524721,33.603826],[112.503394,33.622185],[112.493202,33.63899],[112.477159,33.63764],[112.461683,33.63994],[112.453756,33.645291],[112.420727,33.676389],[112.408019,33.675439],[112.392479,33.666991],[112.375116,33.666891],[112.361086,33.661242],[112.353285,33.669941],[112.332839,33.668391],[112.312455,33.684887],[112.306541,33.69978],[112.278168,33.712373],[112.258854,33.710624],[112.249354,33.719018],[112.239917,33.715321],[112.230103,33.71702],[112.214752,33.713972],[112.184995,33.698731],[112.179207,33.703278],[112.17776,33.715621],[112.168638,33.721766],[112.158509,33.720117],[112.15033,33.713672],[112.141774,33.691634],[112.13089,33.676939],[112.120573,33.668841],[112.104719,33.661392],[112.074018,33.653142],[112.071312,33.648192],[112.076345,33.633689],[112.084146,33.628988],[112.092199,33.607228],[112.087481,33.603076],[112.065713,33.607479],[112.059044,33.605227],[112.038535,33.622386],[112.024757,33.622436],[112.014943,33.613632],[112.012301,33.602626],[112.018655,33.59437],[112.024191,33.600024],[112.028343,33.593019],[112.020353,33.587715],[111.994182,33.584913],[111.930137,33.571051],[111.916359,33.572102],[111.899184,33.588666],[111.884526,33.596121],[111.863953,33.599174],[111.843444,33.595821],[111.832749,33.598723],[111.827716,33.606228],[111.82759,33.634189],[111.819411,33.652892],[111.778078,33.666091],[111.728629,33.688086],[111.719003,33.688885],[111.684968,33.677489],[111.665151,33.695582],[111.645207,33.720517],[111.619476,33.730059],[111.59148,33.727711],[111.567699,33.735005],[111.541402,33.733406],[111.523975,33.742847],[111.516048,33.7405],[111.495476,33.725663],[111.484529,33.726462],[111.469808,33.738052],[111.4342,33.747742],[111.398906,33.768168],[111.390035,33.771264],[111.348387,33.764822],[111.336245,33.768317],[111.322467,33.762974],[111.315044,33.764073],[111.304223,33.775008],[111.288558,33.779702],[111.270816,33.781699],[111.260813,33.796775],[111.240367,33.796925],[111.234831,33.801268],[111.222437,33.797574],[111.208533,33.781948],[111.196077,33.757731],[111.194441,33.745494],[111.197209,33.732207],[111.195196,33.713272],[111.186199,33.704128],[111.181292,33.686886],[111.170471,33.682138],[111.151598,33.684787],[111.141406,33.678739],[111.133164,33.678939],[111.140273,33.661292],[111.146439,33.658592],[111.152101,33.645441],[111.143922,33.633189],[111.134674,33.627437],[111.133982,33.612381],[111.123224,33.598623],[111.114542,33.578758],[111.102903,33.573903],[111.089126,33.563743],[111.070063,33.566346],[111.058425,33.555534],[111.025144,33.550578],[111.009982,33.56054]]],[[[111.033889,33.178029],[111.037789,33.184816],[111.032064,33.188686],[111.015833,33.174057],[111.033889,33.178029]]],[[[112.734093,32.356751],[112.730885,32.363144],[112.723021,32.360962],[112.734093,32.356751]]]]}},{type:"Feature",properties:{adcode:411400,name:"商丘市",center:[115.650497,34.437054],centroid:[115.702245,34.28898],childrenNum:9,level:"city",parent:{adcode:41e4},subFeatureIndex:13,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[115.653601,34.060084],[115.66914,34.0567],[115.681848,34.065508],[115.698205,34.066403],[115.706007,34.059835],[115.735827,34.076852],[115.768856,34.062174],[115.781438,34.062223],[115.780243,34.073121],[115.793455,34.063666],[115.80912,34.062472],[115.815537,34.052867],[115.832209,34.038533],[115.845231,34.030867],[115.845483,34.012048],[115.852718,34.003832],[115.877065,34.003135],[115.876751,34.028826],[115.887257,34.032759],[115.89531,34.028727],[115.899336,34.014737],[115.904369,34.009957],[115.919783,34.010803],[115.926703,34.007865],[115.957593,34.007716],[115.967596,34.002089],[115.984016,33.987846],[115.994963,33.975095],[116.00031,33.963238],[115.995529,33.947593],[115.982695,33.917192],[115.987036,33.901189],[115.999178,33.901937],[116.012515,33.8974],[116.013459,33.885732],[116.034535,33.880047],[116.059196,33.860945],[116.056743,33.850919],[116.06511,33.847477],[116.063474,33.826222],[116.045922,33.829016],[116.045418,33.822978],[116.058064,33.821381],[116.062342,33.814494],[116.055421,33.804812],[116.073351,33.79403],[116.074421,33.781549],[116.099083,33.783097],[116.098894,33.774859],[116.109274,33.75818],[116.131671,33.752237],[116.155389,33.709924],[116.174074,33.709025],[116.197289,33.725363],[116.204964,33.726812],[116.226669,33.722466],[116.230192,33.734855],[116.246046,33.72871],[116.263598,33.730059],[116.284674,33.75009],[116.30814,33.757581],[116.316822,33.771313],[116.328712,33.76637],[116.330663,33.77386],[116.348718,33.778753],[116.361049,33.776307],[116.372499,33.780251],[116.393701,33.783097],[116.408234,33.80551],[116.42176,33.796076],[116.432581,33.795328],[116.436984,33.803065],[116.43365,33.812099],[116.437362,33.846529],[116.453027,33.846928],[116.460199,33.859948],[116.473977,33.861294],[116.484861,33.869774],[116.50191,33.864686],[116.505307,33.872317],[116.521224,33.87107],[116.525187,33.880496],[116.536889,33.882291],[116.53928,33.874212],[116.546641,33.882541],[116.558405,33.881493],[116.555071,33.888275],[116.558342,33.901688],[116.567024,33.908219],[116.58162,33.908318],[116.597096,33.904131],[116.611818,33.894658],[116.627294,33.888624],[116.642708,33.892464],[116.638492,33.917192],[116.64579,33.929902],[116.640002,33.948889],[116.65032,33.959103],[116.648055,33.973351],[116.633522,33.977087],[116.629936,33.98406],[116.607225,33.999898],[116.607414,34.007119],[116.600431,34.011749],[116.604079,34.023201],[116.596593,34.038583],[116.587408,34.04575],[116.57061,34.070981],[116.566898,34.083768],[116.557965,34.097796],[116.539657,34.103466],[116.541482,34.109932],[116.528018,34.122862],[116.534624,34.126591],[116.536008,34.151002],[116.545886,34.161043],[116.565514,34.169542],[116.5596,34.186488],[116.546263,34.194686],[116.542677,34.218879],[116.547144,34.228167],[116.543621,34.239539],[116.553938,34.241923],[116.567653,34.251258],[116.582312,34.266499],[116.582438,34.275236],[116.566458,34.284369],[116.51185,34.296478],[116.490145,34.29092],[116.466302,34.271166],[116.456865,34.26913],[116.448623,34.280348],[116.452775,34.286552],[116.445792,34.288141],[116.430693,34.278065],[116.43321,34.270123],[116.416223,34.268237],[116.406094,34.276527],[116.393952,34.276129],[116.37596,34.271315],[116.372248,34.266102],[116.363251,34.276229],[116.37338,34.293947],[116.365013,34.312406],[116.357652,34.319798],[116.329656,34.32972],[116.301597,34.34212],[116.288826,34.358932],[116.276747,34.360419],[116.270833,34.370733],[116.255608,34.376484],[116.23988,34.37455],[116.213583,34.382235],[116.209934,34.390216],[116.217043,34.395569],[116.215911,34.40335],[116.205278,34.41569],[116.179233,34.430505],[116.174955,34.444674],[116.162058,34.459385],[116.178855,34.483551],[116.178604,34.496028],[116.189487,34.497067],[116.203957,34.508651],[116.203831,34.518748],[116.190997,34.535673],[116.196345,34.555661],[116.197037,34.575942],[116.190117,34.570501],[116.156647,34.553732],[116.146896,34.553188],[116.134565,34.559718],[116.124814,34.572331],[116.117893,34.58974],[116.101284,34.60581],[116.082662,34.608331],[116.055107,34.595426],[116.037554,34.593053],[116.023902,34.601953],[116.010187,34.615845],[116.001568,34.619009],[115.991377,34.615351],[115.984771,34.607243],[115.984016,34.589295],[115.969987,34.582619],[115.946206,34.581629],[115.858317,34.569957],[115.849698,34.565604],[115.838122,34.567781],[115.838814,34.560559],[115.827427,34.558283],[115.795971,34.578464],[115.762061,34.587712],[115.724503,34.589196],[115.71148,34.59869],[115.699086,34.598838],[115.697325,34.569017],[115.684428,34.555612],[115.669455,34.556948],[115.643598,34.567731],[115.639508,34.57154],[115.621893,34.574755],[115.61038,34.572084],[115.585215,34.570996],[115.561183,34.572232],[115.554765,34.569067],[115.535137,34.573321],[115.515634,34.582619],[115.491602,34.606996],[115.479019,34.62588],[115.461404,34.637248],[115.458132,34.656175],[115.444732,34.674504],[115.44706,34.698608],[115.444921,34.710311],[115.433848,34.725074],[115.437308,34.734306],[115.449324,34.744277],[115.436553,34.776797],[115.436113,34.785037],[115.426802,34.805409],[115.413842,34.807826],[115.41617,34.8133],[115.408557,34.825924],[115.394025,34.831792],[115.37924,34.828784],[115.356969,34.837314],[115.346022,34.846188],[115.329602,34.851463],[115.317146,34.859201],[115.302361,34.858807],[115.28959,34.85161],[115.267445,34.853533],[115.256058,34.845301],[115.267256,34.831249],[115.256561,34.81187],[115.242658,34.813497],[115.253919,34.805014],[115.24832,34.798109],[115.202897,34.805656],[115.198367,34.795297],[115.17899,34.800279],[115.17553,34.790463],[115.163891,34.783063],[115.154455,34.78178],[115.140048,34.793324],[115.119601,34.788638],[115.104125,34.772357],[115.038885,34.773985],[115.030329,34.772455],[115.001012,34.760662],[114.988366,34.76456],[114.980502,34.760909],[114.966913,34.761106],[114.936841,34.747041],[114.922874,34.748423],[114.894375,34.762833],[114.877578,34.775219],[114.867386,34.775515],[114.86682,34.769199],[114.835615,34.767472],[114.829009,34.764314],[114.82838,34.755332],[114.835678,34.746893],[114.859333,34.740328],[114.858767,34.734256],[114.840648,34.715101],[114.855558,34.710904],[114.858012,34.692286],[114.8677,34.688038],[114.891418,34.698213],[114.90765,34.697916],[114.931682,34.686804],[114.936652,34.681914],[114.935771,34.672182],[114.926649,34.668625],[114.905825,34.666896],[114.896451,34.661363],[114.893494,34.652469],[114.901673,34.645303],[114.898339,34.631762],[114.90117,34.613769],[114.897018,34.602596],[114.904882,34.586179],[114.907398,34.573865],[114.906517,34.547647],[114.91501,34.548686],[114.917841,34.541957],[114.91111,34.534782],[114.920673,34.531417],[114.913752,34.518154],[114.917653,34.511571],[114.9096,34.495137],[114.922371,34.498206],[114.918596,34.484938],[114.912305,34.483601],[114.904001,34.467606],[114.896451,34.46102],[114.886322,34.461317],[114.880786,34.450519],[114.872356,34.454085],[114.865624,34.462902],[114.858893,34.451906],[114.856502,34.436599],[114.864806,34.433726],[114.852413,34.42887],[114.854615,34.410933],[114.848575,34.409942],[114.851658,34.399534],[114.874432,34.396411],[114.875061,34.390612],[114.888461,34.383771],[114.879025,34.370683],[114.861724,34.367014],[114.855558,34.33473],[114.862353,34.329174],[114.870783,34.305608],[114.882674,34.301192],[114.901988,34.284567],[114.912179,34.281837],[114.933695,34.282135],[114.940804,34.274243],[114.962258,34.261883],[114.98088,34.262975],[114.986605,34.253393],[114.998558,34.250116],[115.012965,34.253393],[115.041087,34.246342],[115.052474,34.224641],[115.082609,34.222555],[115.093556,34.219277],[115.107207,34.208845],[115.12627,34.209441],[115.11872,34.189966],[115.133127,34.170835],[115.133442,34.154234],[115.127906,34.146777],[115.12671,34.133652],[115.119538,34.120475],[115.126144,34.105207],[115.118217,34.098642],[115.120608,34.078196],[115.116707,34.066353],[115.128661,34.064164],[115.140048,34.055854],[115.13967,34.050628],[115.121363,34.02569],[115.107962,34.022703],[115.083364,34.024893],[115.074241,34.022802],[115.074871,34.014438],[115.083238,34.003185],[115.070089,33.990635],[115.062351,33.979329],[115.065748,33.97355],[115.05801,33.95721],[115.049957,33.950035],[115.050398,33.941962],[115.070026,33.935583],[115.085251,33.93354],[115.107207,33.936331],[115.106453,33.94844],[115.115009,33.961096],[115.124257,33.963089],[115.142375,33.958306],[115.148541,33.950184],[115.176474,33.950732],[115.189497,33.958106],[115.204722,33.974447],[115.195473,33.987398],[115.203778,33.988942],[115.23039,33.974148],[115.240959,33.975144],[115.252283,33.982467],[115.254548,33.995117],[115.252975,34.008861],[115.258449,34.015334],[115.288395,34.019516],[115.295441,34.018172],[115.28959,34.003981],[115.292484,33.996163],[115.312742,33.995715],[115.32092,34.004828],[115.33539,34.006969],[115.349042,34.018222],[115.361813,34.01628],[115.375403,34.00677],[115.402581,33.993374],[115.439573,33.986053],[115.458824,33.987099],[115.462599,34.006023],[115.489274,34.017575],[115.502989,34.015434],[115.513369,34.019367],[115.53023,34.018819],[115.53564,34.021757],[115.547782,34.037737],[115.549921,34.047542],[115.547593,34.074414],[115.543693,34.084564],[115.573702,34.086404],[115.619754,34.083171],[115.627555,34.087499],[115.641962,34.084166],[115.653601,34.060084]]]]}},{type:"Feature",properties:{adcode:411500,name:"信阳市",center:[114.075031,32.123274],centroid:[114.889128,32.080437],childrenNum:10,level:"city",parent:{adcode:41e4},subFeatureIndex:14,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.749057,32.272684],[113.749812,32.260291],[113.739369,32.257598],[113.740438,32.242815],[113.748365,32.234788],[113.752643,32.216189],[113.764659,32.204195],[113.777934,32.207956],[113.783344,32.189657],[113.763716,32.161694],[113.766169,32.13835],[113.750315,32.116324],[113.739872,32.113067],[113.736978,32.121564],[113.722445,32.12426],[113.728359,32.09938],[113.728485,32.083197],[113.744905,32.076784],[113.747421,32.06976],[113.763779,32.054743],[113.781331,32.048786],[113.791271,32.036006],[113.779255,32.018895],[113.769881,32.01701],[113.758934,32.000915],[113.759438,31.986447],[113.768623,31.979466],[113.776109,31.980434],[113.788189,31.974014],[113.798506,31.974116],[113.816247,31.96688],[113.807314,31.94889],[113.805112,31.931508],[113.81631,31.923249],[113.832479,31.91866],[113.835876,31.910961],[113.83531,31.892858],[113.831221,31.878985],[113.838204,31.868681],[113.838644,31.854702],[113.858902,31.841078],[113.867206,31.845058],[113.872931,31.84067],[113.896398,31.849344],[113.906589,31.868528],[113.914957,31.876995],[113.93144,31.880974],[113.933516,31.869395],[113.954906,31.856334],[113.956416,31.840262],[113.946979,31.826483],[113.953019,31.813518],[113.952578,31.793864],[113.96535,31.785644],[113.972333,31.771653],[113.972459,31.763124],[113.978939,31.753778],[113.988753,31.750202],[114.015805,31.770274],[114.038328,31.768844],[114.048079,31.773389],[114.059089,31.772266],[114.063744,31.781917],[114.0723,31.784878],[114.086644,31.782223],[114.089853,31.794834],[114.099164,31.803411],[114.119233,31.805759],[114.127915,31.82633],[114.12716,31.835363],[114.13408,31.842813],[114.15006,31.839241],[114.162768,31.841078],[114.166983,31.851028],[114.180258,31.854039],[114.194979,31.850161],[114.208883,31.842762],[114.221277,31.832403],[114.236439,31.841895],[114.235432,31.833372],[114.248518,31.810507],[114.262044,31.796315],[114.264372,31.788503],[114.287523,31.762052],[114.292808,31.752296],[114.313946,31.75199],[114.321496,31.755106],[114.350373,31.755412],[114.373839,31.744277],[114.390007,31.741007],[114.399822,31.746933],[114.416305,31.74208],[114.419136,31.73314],[114.4309,31.734928],[114.446566,31.728031],[114.450844,31.737636],[114.46135,31.733242],[114.471982,31.740956],[114.488843,31.735694],[114.50866,31.740701],[114.504319,31.756433],[114.509667,31.766852],[114.521305,31.766903],[114.530679,31.742897],[114.545275,31.746167],[114.550308,31.753165],[114.54949,31.765422],[114.554963,31.768538],[114.572768,31.762562],[114.582519,31.764758],[114.587615,31.754033],[114.581575,31.74254],[114.584092,31.731863],[114.579751,31.724659],[114.579122,31.708154],[114.59139,31.700335],[114.586168,31.692567],[114.574215,31.689142],[114.570817,31.660106],[114.559179,31.656067],[114.549679,31.642465],[114.55295,31.635203],[114.548295,31.625127],[114.548924,31.609782],[114.561066,31.560966],[114.572453,31.554056],[114.57497,31.559533],[114.587363,31.560607],[114.595605,31.576319],[114.612025,31.578469],[114.616743,31.585326],[114.641719,31.582153],[114.644425,31.574682],[114.653044,31.572686],[114.656944,31.562859],[114.670093,31.547043],[114.678523,31.544023],[114.69985,31.546121],[114.696579,31.525847],[114.717214,31.527947],[114.723317,31.520625],[114.739485,31.527179],[114.747223,31.524004],[114.757038,31.52723],[114.771004,31.520522],[114.778868,31.520727],[114.774024,31.512431],[114.774653,31.500909],[114.783083,31.494814],[114.78302,31.48462],[114.789438,31.480522],[114.81303,31.478832],[114.824165,31.469969],[114.829827,31.458902],[114.841529,31.461976],[114.850651,31.476168],[114.875313,31.478268],[114.87676,31.470584],[114.8867,31.469457],[114.896388,31.474375],[114.925265,31.480471],[114.936464,31.469764],[114.939924,31.477141],[114.964019,31.495377],[114.976098,31.495889],[114.985346,31.477705],[114.998306,31.471608],[115.002018,31.485286],[115.010826,31.488206],[115.001704,31.499987],[115.010008,31.504903],[115.023094,31.527588],[115.030329,31.527691],[115.038444,31.51704],[115.048951,31.517552],[115.066314,31.510537],[115.096198,31.508437],[115.092801,31.519088],[115.102112,31.520573],[115.113373,31.528971],[115.105949,31.540029],[115.110479,31.55078],[115.103055,31.555745],[115.106767,31.567466],[115.127276,31.579083],[115.125389,31.599089],[115.134826,31.602415],[115.164395,31.604564],[115.176851,31.598834],[115.180374,31.577752],[115.192831,31.569564],[115.192957,31.564037],[115.207238,31.564241],[115.212586,31.55554],[115.235611,31.556206],[115.230578,31.538238],[115.218248,31.515299],[115.219506,31.506901],[115.212334,31.490101],[115.216926,31.481598],[115.217052,31.462898],[115.210509,31.445476],[115.220512,31.426718],[115.232969,31.427077],[115.252598,31.421695],[115.260273,31.41216],[115.250459,31.391755],[115.260399,31.387396],[115.281349,31.399856],[115.294057,31.395036],[115.301103,31.384063],[115.31356,31.383448],[115.327212,31.391139],[115.335957,31.403394],[115.355271,31.399958],[115.373641,31.405752],[115.383392,31.418671],[115.385657,31.443324],[115.389809,31.450293],[115.377667,31.470532],[115.371565,31.495838],[115.377164,31.502957],[115.389621,31.507566],[115.398366,31.516067],[115.415918,31.52595],[115.428563,31.547196],[115.431583,31.559021],[115.428249,31.563371],[115.438881,31.579953],[115.440013,31.588703],[115.47537,31.606712],[115.486569,31.610089],[115.490658,31.623593],[115.477132,31.645431],[115.484241,31.649061],[115.486128,31.66118],[115.495376,31.672938],[115.515068,31.682855],[115.531865,31.698547],[115.553507,31.695276],[115.564894,31.709023],[115.582636,31.713929],[115.586977,31.721696],[115.601446,31.731659],[115.619125,31.738351],[115.637243,31.755616],[115.65964,31.760213],[115.676564,31.778393],[115.689775,31.776555],[115.697136,31.76864],[115.710851,31.770887],[115.719407,31.76578],[115.736456,31.763277],[115.734254,31.776044],[115.741992,31.782121],[115.762691,31.782325],[115.767912,31.78784],[115.787226,31.780436],[115.793769,31.773593],[115.808428,31.772572],[115.815348,31.762358],[115.831013,31.777576],[115.837493,31.773593],[115.850264,31.786767],[115.858317,31.773695],[115.885244,31.776096],[115.900783,31.792026],[115.91022,31.792333],[115.915001,31.811885],[115.913114,31.820103],[115.904054,31.829392],[115.892982,31.83327],[115.895687,31.867507],[115.898329,31.88026],[115.910597,31.894949],[115.92016,31.920445],[115.916134,31.935994],[115.909025,31.943232],[115.911352,31.958013],[115.92318,31.985479],[115.924564,31.995617],[115.931107,31.994496],[115.927835,32.02358],[115.919531,32.027858],[115.927709,32.036311],[115.922236,32.049652],[115.925382,32.057543],[115.9396,32.065841],[115.942557,32.07765],[115.932491,32.084266],[115.926577,32.105283],[115.93916,32.138961],[115.937901,32.151777],[115.94155,32.166423],[115.933686,32.180456],[115.923369,32.191691],[115.922865,32.203636],[115.912736,32.227623],[115.914687,32.254855],[115.921481,32.268519],[115.911038,32.284161],[115.90827,32.299243],[115.90028,32.301426],[115.906948,32.31158],[115.904558,32.34102],[115.89921,32.344978],[115.897889,32.373596],[115.899084,32.390792],[115.88927,32.413462],[115.889396,32.424263],[115.87933,32.432324],[115.883356,32.438814],[115.882727,32.456099],[115.864231,32.458937],[115.873479,32.470594],[115.88128,32.472469],[115.883545,32.489241],[115.874486,32.497804],[115.873165,32.504694],[115.853033,32.50444],[115.845735,32.501806],[115.84737,32.509557],[115.856996,32.517965],[115.873039,32.525816],[115.87587,32.542477],[115.899399,32.556198],[115.91022,32.566982],[115.929282,32.567235],[115.911856,32.577561],[115.891535,32.576245],[115.887571,32.56764],[115.8614,32.537413],[115.845986,32.53164],[115.839947,32.524803],[115.841457,32.501198],[115.823841,32.502262],[115.80415,32.485441],[115.788736,32.468922],[115.781313,32.468466],[115.787415,32.480121],[115.785654,32.489393],[115.771498,32.505301],[115.760237,32.481996],[115.741992,32.476371],[115.719344,32.485644],[115.701225,32.495321],[115.692103,32.487519],[115.692229,32.480628],[115.700785,32.472874],[115.698772,32.468212],[115.675872,32.466438],[115.68166,32.450473],[115.68059,32.43998],[115.674425,32.430854],[115.666938,32.409405],[115.656306,32.408746],[115.657816,32.428826],[115.645611,32.417519],[115.627115,32.40545],[115.604529,32.425936],[115.586096,32.419243],[115.563888,32.403015],[115.553633,32.407478],[115.569109,32.414629],[115.5676,32.421626],[115.547279,32.424719],[115.537465,32.438966],[115.523183,32.442007],[115.524127,32.447837],[115.515571,32.450625],[115.502863,32.48306],[115.497515,32.492535],[115.484996,32.503934],[115.485059,32.512292],[115.477635,32.511836],[115.477761,32.51989],[115.465745,32.520143],[115.438944,32.532551],[115.443725,32.543287],[115.434666,32.545211],[115.431646,32.5523],[115.418057,32.552958],[115.410004,32.548097],[115.412772,32.559793],[115.411577,32.574777],[115.403273,32.576701],[115.391948,32.566324],[115.38767,32.57088],[115.329602,32.561211],[115.32048,32.562628],[115.324003,32.554831],[115.304186,32.553768],[115.296511,32.562729],[115.300348,32.568399],[115.310855,32.570576],[115.297769,32.576347],[115.30557,32.58318],[115.299404,32.58814],[115.294812,32.581054],[115.289213,32.589861],[115.267193,32.578068],[115.254737,32.585002],[115.26128,32.591683],[115.2548,32.595225],[115.243538,32.593505],[115.227118,32.578624],[115.229509,32.590569],[115.212145,32.588494],[115.201136,32.591834],[115.192013,32.603018],[115.175341,32.605346],[115.152127,32.590012],[115.145647,32.580143],[115.137028,32.587026],[115.140362,32.599223],[115.12476,32.607573],[115.111548,32.607421],[115.099532,32.619868],[115.098022,32.63378],[115.090599,32.637017],[115.065182,32.629075],[115.05002,32.640153],[115.030077,32.6486],[114.985472,32.659322],[114.957791,32.659979],[114.93357,32.649308],[114.919351,32.648903],[114.911047,32.653405],[114.901296,32.648954],[114.901799,32.634741],[114.89167,32.61749],[114.884875,32.616225],[114.862856,32.624117],[114.856565,32.61926],[114.822404,32.622853],[114.813785,32.611165],[114.806172,32.609495],[114.79403,32.613695],[114.788997,32.607168],[114.791325,32.584141],[114.802649,32.583433],[114.810136,32.569007],[114.808877,32.558882],[114.785789,32.545616],[114.781133,32.535539],[114.786858,32.52384],[114.793527,32.521764],[114.789689,32.50824],[114.774024,32.508696],[114.752319,32.523942],[114.736088,32.516901],[114.729545,32.519333],[114.724512,32.541464],[114.713062,32.543743],[114.702115,32.535134],[114.701927,32.517357],[114.676699,32.514977],[114.666067,32.527183],[114.650338,32.527842],[114.615737,32.509911],[114.606866,32.512697],[114.582393,32.51371],[114.571258,32.508088],[114.569559,32.495119],[114.574781,32.486353],[114.571509,32.466793],[114.585665,32.455136],[114.582142,32.445657],[114.570125,32.435721],[114.576542,32.425733],[114.603595,32.41833],[114.634673,32.39982],[114.647759,32.387597],[114.644551,32.375879],[114.623727,32.370602],[114.620141,32.363398],[114.623349,32.352539],[114.610767,32.350002],[114.607998,32.33701],[114.5929,32.321326],[114.575976,32.316402],[114.582519,32.308432],[114.563645,32.306401],[114.550685,32.289036],[114.535083,32.286091],[114.521934,32.298684],[114.498342,32.301527],[114.492177,32.299953],[114.490856,32.28665],[114.483621,32.285177],[114.468333,32.294165],[114.452479,32.281368],[114.438324,32.288478],[114.429328,32.289341],[114.421589,32.279134],[114.397054,32.293353],[114.376607,32.292032],[114.369813,32.298735],[114.368177,32.313407],[114.349303,32.323002],[114.348422,32.347566],[114.34276,32.365021],[114.315142,32.37324],[114.293877,32.36492],[114.286894,32.369892],[114.28098,32.407428],[114.288467,32.418939],[114.277961,32.418888],[114.269027,32.409253],[114.254117,32.424516],[114.247511,32.436583],[114.249084,32.450625],[114.243485,32.458583],[114.226876,32.454122],[114.221214,32.445961],[114.204479,32.445252],[114.201522,32.453514],[114.210078,32.45838],[114.209135,32.468719],[114.198314,32.46877],[114.197433,32.486353],[114.192274,32.492585],[114.167675,32.487012],[114.163397,32.469986],[114.16497,32.461877],[114.157421,32.458279],[114.136723,32.461978],[114.112564,32.447786],[114.097654,32.451639],[114.085512,32.450777],[114.080731,32.454832],[114.078529,32.479614],[114.087336,32.481236],[114.07639,32.493548],[114.071357,32.505909],[114.072992,32.517205],[114.066638,32.527031],[114.067204,32.534881],[114.056258,32.539033],[114.053867,32.523233],[114.014861,32.51599],[114.007375,32.507784],[113.982147,32.503579],[113.962204,32.505403],[113.95434,32.514268],[113.953837,32.526575],[113.938046,32.555996],[113.940373,32.576195],[113.932824,32.578219],[113.92238,32.59396],[113.919738,32.605295],[113.911811,32.607775],[113.893315,32.604891],[113.886646,32.607016],[113.87268,32.622751],[113.86513,32.623814],[113.850409,32.617338],[113.843614,32.622245],[113.826691,32.622397],[113.820337,32.619109],[113.820211,32.601804],[113.814423,32.600842],[113.805301,32.597705],[113.789698,32.586368],[113.782023,32.566172],[113.769126,32.559287],[113.763212,32.547895],[113.774285,32.537362],[113.768245,32.534425],[113.759375,32.508797],[113.764219,32.489951],[113.761828,32.470645],[113.753398,32.465425],[113.741319,32.465374],[113.73767,32.453362],[113.730498,32.46061],[113.730875,32.449307],[113.725339,32.436025],[113.710555,32.421221],[113.718608,32.417215],[113.735279,32.410876],[113.740753,32.393125],[113.751699,32.390031],[113.753209,32.38435],[113.743835,32.369435],[113.751448,32.36081],[113.760381,32.369182],[113.768874,32.369486],[113.770699,32.358628],[113.758494,32.352235],[113.753838,32.342085],[113.753838,32.32823],[113.7651,32.319448],[113.773907,32.306147],[113.769063,32.301324],[113.768182,32.28406],[113.769944,32.275985],[113.758305,32.276747],[113.749057,32.272684]]],[[[113.768182,32.28406],[113.769063,32.301324],[113.748491,32.291931],[113.743898,32.283603],[113.749057,32.272684],[113.758305,32.276747],[113.754027,32.288275],[113.758494,32.291931],[113.768182,32.28406]]]]}},{type:"Feature",properties:{adcode:411600,name:"周口市",center:[114.649653,33.620357],centroid:[114.883192,33.721762],childrenNum:10,level:"city",parent:{adcode:41e4},subFeatureIndex:15,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[114.897269,33.08658],[114.897206,33.093676],[114.906266,33.11657],[114.902931,33.12955],[114.910229,33.136592],[114.926649,33.138503],[114.93445,33.15329],[114.966095,33.147104],[114.968863,33.133674],[114.981446,33.129097],[114.99233,33.120947],[114.990505,33.102885],[115.012021,33.097651],[115.023345,33.090757],[115.041275,33.08663],[115.05153,33.092468],[115.057444,33.083762],[115.067636,33.086228],[115.111108,33.082956],[115.153259,33.084416],[115.167918,33.088744],[115.172448,33.108067],[115.197109,33.12145],[115.209817,33.113501],[115.22435,33.126229],[115.236996,33.126733],[115.246307,33.136391],[115.266501,33.132719],[115.269584,33.137849],[115.290345,33.132417],[115.292862,33.143382],[115.301481,33.141622],[115.300159,33.162995],[115.294372,33.177878],[115.296762,33.201303],[115.326394,33.211355],[115.316265,33.218391],[115.316328,33.223818],[115.331741,33.235625],[115.329728,33.250546],[115.340109,33.261145],[115.340927,33.271391],[115.333818,33.284749],[115.335013,33.298055],[115.346966,33.301017],[115.360178,33.298105],[115.358794,33.311459],[115.365022,33.336003],[115.34835,33.338963],[115.34684,33.358683],[115.338536,33.362998],[115.341619,33.371175],[115.316139,33.370974],[115.313245,33.377094],[115.329414,33.40167],[115.317334,33.418216],[115.315636,33.431452],[115.319033,33.441477],[115.316391,33.448895],[115.323877,33.449045],[115.324569,33.457615],[115.335957,33.447291],[115.345771,33.449747],[115.348854,33.478962],[115.343821,33.480866],[115.351244,33.490384],[115.345393,33.502707],[115.366595,33.523441],[115.395094,33.506463],[115.396793,33.502006],[115.405349,33.51668],[115.401763,33.524342],[115.41466,33.541617],[115.421958,33.556786],[115.463731,33.567197],[115.47191,33.558037],[115.484933,33.558638],[115.500598,33.564794],[115.511293,33.553331],[115.528594,33.562692],[115.552752,33.565545],[115.559358,33.561941],[115.56609,33.576356],[115.601132,33.578157],[115.63976,33.585113],[115.625038,33.625637],[115.6173,33.633189],[115.601635,33.657692],[115.602516,33.67259],[115.599622,33.688285],[115.607171,33.689035],[115.596288,33.70033],[115.601572,33.71692],[115.595281,33.732957],[115.583516,33.747243],[115.574834,33.752237],[115.56999,33.765321],[115.563133,33.771663],[115.565209,33.780201],[115.582258,33.788738],[115.590563,33.783696],[115.614218,33.775658],[115.621201,33.796775],[115.62334,33.811949],[115.616608,33.820034],[115.625605,33.823627],[115.626297,33.836201],[115.636111,33.84119],[115.633532,33.86733],[115.620886,33.876108],[115.605724,33.867429],[115.591632,33.868327],[115.579553,33.877005],[115.564202,33.87132],[115.557974,33.876108],[115.546146,33.875509],[115.546587,33.888425],[115.555332,33.888574],[115.55464,33.900342],[115.568543,33.910013],[115.559798,33.91455],[115.562629,33.92721],[115.56999,33.932842],[115.569172,33.9455],[115.57754,33.950134],[115.57905,33.973949],[115.588361,33.976987],[115.591066,33.986202],[115.584083,33.988643],[115.592702,34.009857],[115.606605,34.013243],[115.600943,34.023798],[115.615035,34.033356],[115.62139,34.030121],[115.642214,34.032261],[115.649889,34.036194],[115.648001,34.046298],[115.653601,34.060084],[115.641962,34.084166],[115.627555,34.087499],[115.619754,34.083171],[115.573702,34.086404],[115.543693,34.084564],[115.547593,34.074414],[115.549921,34.047542],[115.547782,34.037737],[115.53564,34.021757],[115.53023,34.018819],[115.513369,34.019367],[115.502989,34.015434],[115.489274,34.017575],[115.462599,34.006023],[115.458824,33.987099],[115.439573,33.986053],[115.402581,33.993374],[115.375403,34.00677],[115.361813,34.01628],[115.349042,34.018222],[115.33539,34.006969],[115.32092,34.004828],[115.312742,33.995715],[115.292484,33.996163],[115.28959,34.003981],[115.295441,34.018172],[115.288395,34.019516],[115.258449,34.015334],[115.252975,34.008861],[115.254548,33.995117],[115.252283,33.982467],[115.240959,33.975144],[115.23039,33.974148],[115.203778,33.988942],[115.195473,33.987398],[115.204722,33.974447],[115.189497,33.958106],[115.176474,33.950732],[115.148541,33.950184],[115.142375,33.958306],[115.124257,33.963089],[115.115009,33.961096],[115.106453,33.94844],[115.107207,33.936331],[115.085251,33.93354],[115.070026,33.935583],[115.050398,33.941962],[115.049957,33.950035],[115.05801,33.95721],[115.065748,33.97355],[115.062351,33.979329],[115.070089,33.990635],[115.083238,34.003185],[115.074871,34.014438],[115.074241,34.022802],[115.083364,34.024893],[115.107962,34.022703],[115.121363,34.02569],[115.13967,34.050628],[115.140048,34.055854],[115.128661,34.064164],[115.116707,34.066353],[115.120608,34.078196],[115.118217,34.098642],[115.126144,34.105207],[115.119538,34.120475],[115.12671,34.133652],[115.127906,34.146777],[115.133442,34.154234],[115.133127,34.170835],[115.11872,34.189966],[115.12627,34.209441],[115.107207,34.208845],[115.093556,34.219277],[115.082609,34.222555],[115.052474,34.224641],[115.041087,34.246342],[115.012965,34.253393],[114.998558,34.250116],[114.986605,34.253393],[114.98088,34.262975],[114.962258,34.261883],[114.940804,34.274243],[114.933695,34.282135],[114.912179,34.281837],[114.901988,34.284567],[114.896514,34.265804],[114.867763,34.271066],[114.845492,34.280696],[114.832847,34.281937],[114.8314,34.268138],[114.812778,34.259003],[114.788242,34.261138],[114.781196,34.255627],[114.76465,34.254436],[114.758736,34.238397],[114.752697,34.23363],[114.730426,34.225237],[114.723946,34.228018],[114.71388,34.241327],[114.702241,34.244505],[114.679341,34.244307],[114.667514,34.250265],[114.647319,34.250315],[114.634044,34.261883],[114.611459,34.261088],[114.602085,34.271017],[114.58988,34.273747],[114.556662,34.267989],[114.551189,34.272059],[114.551629,34.284964],[114.528603,34.282234],[114.524703,34.306253],[114.519355,34.313448],[114.509855,34.309727],[114.493876,34.31191],[114.485949,34.325057],[114.479343,34.32962],[114.462042,34.330166],[114.46179,34.319947],[114.452857,34.319997],[114.438576,34.328033],[114.439897,34.336366],[114.427692,34.333837],[114.436059,34.330265],[114.434486,34.313894],[114.424546,34.309032],[114.430649,34.302284],[114.442539,34.300696],[114.455688,34.294096],[114.440652,34.270719],[114.434927,34.267145],[114.417689,34.265308],[114.405798,34.248031],[114.385729,34.24386],[114.356412,34.247186],[114.344207,34.251804],[114.328857,34.267294],[114.301175,34.26774],[114.287901,34.276527],[114.274626,34.274889],[114.267517,34.256968],[114.259905,34.251854],[114.272676,34.24237],[114.273053,34.227869],[114.286013,34.218234],[114.287649,34.206958],[114.276199,34.190811],[114.275255,34.174661],[114.28746,34.137033],[114.285133,34.120873],[114.273808,34.107545],[114.273431,34.102571],[114.262107,34.095856],[114.270411,34.063219],[114.271103,34.053813],[114.281987,34.046597],[114.287523,34.022902],[114.295324,34.007467],[114.311745,34.001492],[114.312248,33.98162],[114.307026,33.978233],[114.31036,33.96],[114.299917,33.953024],[114.305642,33.889572],[114.3164,33.880446],[114.311304,33.87142],[114.315834,33.865734],[114.312122,33.853263],[114.301112,33.852365],[114.301301,33.842188],[114.310738,33.842637],[114.316085,33.833207],[114.323383,33.832908],[114.325082,33.818337],[114.313066,33.80012],[114.309983,33.781349],[114.290354,33.771813],[114.249776,33.779252],[114.242604,33.790785],[114.217565,33.793131],[114.211525,33.798123],[114.19888,33.797374],[114.190638,33.801917],[114.179503,33.799321],[114.178308,33.806409],[114.161447,33.79982],[114.15503,33.809304],[114.145404,33.810551],[114.134772,33.806409],[114.133703,33.791484],[114.139931,33.783097],[114.142007,33.765921],[114.133262,33.768118],[114.098032,33.765072],[114.10319,33.756832],[114.106839,33.739051],[114.095263,33.728061],[114.091489,33.71642],[114.097717,33.683187],[114.115836,33.684587],[114.118226,33.67159],[114.116402,33.651392],[114.125398,33.652842],[114.149745,33.650442],[114.152639,33.662242],[114.162265,33.669941],[114.169563,33.664791],[114.186235,33.67219],[114.186549,33.682538],[114.196489,33.690934],[114.214231,33.691334],[114.249084,33.704328],[114.250783,33.693233],[114.259842,33.680588],[114.260849,33.661942],[114.264183,33.654742],[114.264938,33.635239],[114.277332,33.621735],[114.279659,33.604427],[114.265881,33.597923],[114.265378,33.593219],[114.278653,33.57015],[114.282868,33.558688],[114.295324,33.553782],[114.289348,33.522089],[114.281106,33.513976],[114.283371,33.500353],[114.279785,33.489282],[114.284629,33.472548],[114.307907,33.481316],[114.347227,33.462376],[114.349429,33.452604],[114.362137,33.454057],[114.368932,33.44659],[114.382143,33.454508],[114.402967,33.457064],[114.407937,33.460873],[114.446628,33.464581],[114.459777,33.454458],[114.464118,33.437467],[114.480098,33.443131],[114.490415,33.43481],[114.488654,33.417565],[114.52313,33.418969],[114.537663,33.426589],[114.554146,33.42714],[114.563016,33.42333],[114.57239,33.406835],[114.572013,33.396053],[114.577423,33.390035],[114.575536,33.376392],[114.585728,33.374837],[114.589314,33.362847],[114.605293,33.35778],[114.615925,33.344383],[114.623664,33.341723],[114.645557,33.34624],[114.654491,33.341924],[114.662481,33.322954],[114.669715,33.31944],[114.665563,33.313416],[114.684122,33.314671],[114.685255,33.298205],[114.705764,33.302171],[114.722373,33.301117],[114.728853,33.289368],[114.73074,33.261597],[114.717529,33.221808],[114.69897,33.208139],[114.697648,33.197081],[114.681354,33.170487],[114.704003,33.160531],[114.705764,33.14821],[114.717592,33.144036],[114.720863,33.125626],[114.731621,33.120746],[114.742757,33.106709],[114.761756,33.10535],[114.765845,33.090858],[114.77069,33.087184],[114.77157,33.069517],[114.7951,33.068561],[114.800447,33.05819],[114.817937,33.060456],[114.833917,33.059449],[114.850022,33.052753],[114.854552,33.055421],[114.857446,33.075306],[114.897206,33.080591],[114.897269,33.08658]]]]}},{type:"Feature",properties:{adcode:411700,name:"驻马店市",center:[114.024736,32.980169],centroid:[114.156353,32.922684],childrenNum:10,level:"city",parent:{adcode:41e4},subFeatureIndex:16,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[113.814423,32.600842],[113.820211,32.601804],[113.820337,32.619109],[113.826691,32.622397],[113.843614,32.622245],[113.850409,32.617338],[113.86513,32.623814],[113.87268,32.622751],[113.886646,32.607016],[113.893315,32.604891],[113.911811,32.607775],[113.919738,32.605295],[113.92238,32.59396],[113.932824,32.578219],[113.940373,32.576195],[113.938046,32.555996],[113.953837,32.526575],[113.95434,32.514268],[113.962204,32.505403],[113.982147,32.503579],[114.007375,32.507784],[114.014861,32.51599],[114.053867,32.523233],[114.056258,32.539033],[114.067204,32.534881],[114.066638,32.527031],[114.072992,32.517205],[114.071357,32.505909],[114.07639,32.493548],[114.087336,32.481236],[114.078529,32.479614],[114.080731,32.454832],[114.085512,32.450777],[114.097654,32.451639],[114.112564,32.447786],[114.136723,32.461978],[114.157421,32.458279],[114.16497,32.461877],[114.163397,32.469986],[114.167675,32.487012],[114.192274,32.492585],[114.197433,32.486353],[114.198314,32.46877],[114.209135,32.468719],[114.210078,32.45838],[114.201522,32.453514],[114.204479,32.445252],[114.221214,32.445961],[114.226876,32.454122],[114.243485,32.458583],[114.249084,32.450625],[114.247511,32.436583],[114.254117,32.424516],[114.269027,32.409253],[114.277961,32.418888],[114.288467,32.418939],[114.28098,32.407428],[114.286894,32.369892],[114.293877,32.36492],[114.315142,32.37324],[114.34276,32.365021],[114.348422,32.347566],[114.349303,32.323002],[114.368177,32.313407],[114.369813,32.298735],[114.376607,32.292032],[114.397054,32.293353],[114.421589,32.279134],[114.429328,32.289341],[114.438324,32.288478],[114.452479,32.281368],[114.468333,32.294165],[114.483621,32.285177],[114.490856,32.28665],[114.492177,32.299953],[114.498342,32.301527],[114.521934,32.298684],[114.535083,32.286091],[114.550685,32.289036],[114.563645,32.306401],[114.582519,32.308432],[114.575976,32.316402],[114.5929,32.321326],[114.607998,32.33701],[114.610767,32.350002],[114.623349,32.352539],[114.620141,32.363398],[114.623727,32.370602],[114.644551,32.375879],[114.647759,32.387597],[114.634673,32.39982],[114.603595,32.41833],[114.576542,32.425733],[114.570125,32.435721],[114.582142,32.445657],[114.585665,32.455136],[114.571509,32.466793],[114.574781,32.486353],[114.569559,32.495119],[114.571258,32.508088],[114.582393,32.51371],[114.606866,32.512697],[114.615737,32.509911],[114.650338,32.527842],[114.666067,32.527183],[114.676699,32.514977],[114.701927,32.517357],[114.702115,32.535134],[114.713062,32.543743],[114.724512,32.541464],[114.729545,32.519333],[114.736088,32.516901],[114.752319,32.523942],[114.774024,32.508696],[114.789689,32.50824],[114.793527,32.521764],[114.786858,32.52384],[114.781133,32.535539],[114.785789,32.545616],[114.808877,32.558882],[114.810136,32.569007],[114.802649,32.583433],[114.791325,32.584141],[114.788997,32.607168],[114.79403,32.613695],[114.806172,32.609495],[114.813785,32.611165],[114.822404,32.622853],[114.856565,32.61926],[114.862856,32.624117],[114.884875,32.616225],[114.89167,32.61749],[114.901799,32.634741],[114.901296,32.648954],[114.911047,32.653405],[114.919351,32.648903],[114.93357,32.649308],[114.957791,32.659979],[114.985472,32.659322],[115.030077,32.6486],[115.05002,32.640153],[115.065182,32.629075],[115.090599,32.637017],[115.098022,32.63378],[115.099532,32.619868],[115.111548,32.607421],[115.12476,32.607573],[115.140362,32.599223],[115.137028,32.587026],[115.145647,32.580143],[115.152127,32.590012],[115.175341,32.605346],[115.192013,32.603018],[115.204029,32.606662],[115.209125,32.612936],[115.199437,32.619665],[115.202079,32.632464],[115.19453,32.63125],[115.194907,32.642379],[115.202708,32.645515],[115.209503,32.636714],[115.208874,32.649864],[115.219443,32.659221],[115.203967,32.65391],[115.205162,32.672924],[115.193649,32.682885],[115.189434,32.678789],[115.19692,32.672722],[115.182954,32.666755],[115.18459,32.678284],[115.178487,32.682885],[115.182702,32.694512],[115.179116,32.701943],[115.184338,32.720391],[115.179368,32.726354],[115.189623,32.770913],[115.183583,32.776923],[115.182073,32.787326],[115.19107,32.790053],[115.206923,32.785306],[115.212334,32.787175],[115.206357,32.797678],[115.19692,32.802121],[115.189937,32.812522],[115.195599,32.828877],[115.188868,32.840435],[115.202645,32.843514],[115.198619,32.854363],[115.191132,32.857492],[115.176222,32.856281],[115.159802,32.862285],[115.154958,32.877269],[115.142501,32.884332],[115.140551,32.897496],[115.116141,32.90022],[115.102426,32.894268],[115.086258,32.903246],[115.067321,32.903246],[115.029762,32.906827],[115.027435,32.91434],[115.036746,32.916307],[115.035425,32.932341],[115.023975,32.933702],[115.009253,32.940155],[114.978803,32.941314],[114.959993,32.9395],[114.943573,32.935013],[114.936023,32.952152],[114.924133,32.958956],[114.91608,32.971304],[114.893809,32.972664],[114.886071,32.978611],[114.882799,32.990351],[114.901547,33.000326],[114.891922,33.020525],[114.915388,33.016093],[114.924321,33.016697],[114.936967,33.025511],[114.923,33.036087],[114.922497,33.048322],[114.91501,33.059801],[114.91954,33.068812],[114.914004,33.082805],[114.897269,33.08658],[114.897206,33.080591],[114.857446,33.075306],[114.854552,33.055421],[114.850022,33.052753],[114.833917,33.059449],[114.817937,33.060456],[114.800447,33.05819],[114.7951,33.068561],[114.77157,33.069517],[114.77069,33.087184],[114.765845,33.090858],[114.761756,33.10535],[114.742757,33.106709],[114.731621,33.120746],[114.720863,33.125626],[114.717592,33.144036],[114.705764,33.14821],[114.704003,33.160531],[114.681354,33.170487],[114.697648,33.197081],[114.69897,33.208139],[114.717529,33.221808],[114.73074,33.261597],[114.728853,33.289368],[114.722373,33.301117],[114.705764,33.302171],[114.685255,33.298205],[114.684122,33.314671],[114.665563,33.313416],[114.669715,33.31944],[114.662481,33.322954],[114.654491,33.341924],[114.645557,33.34624],[114.623664,33.341723],[114.615925,33.344383],[114.605293,33.35778],[114.589314,33.362847],[114.585728,33.374837],[114.575536,33.376392],[114.577423,33.390035],[114.572013,33.396053],[114.57239,33.406835],[114.563016,33.42333],[114.554146,33.42714],[114.537663,33.426589],[114.52313,33.418969],[114.488654,33.417565],[114.490415,33.43481],[114.480098,33.443131],[114.464118,33.437467],[114.459777,33.454458],[114.446628,33.464581],[114.407937,33.460873],[114.402967,33.457064],[114.382143,33.454508],[114.368932,33.44659],[114.362137,33.454057],[114.349429,33.452604],[114.347227,33.462376],[114.307907,33.481316],[114.284629,33.472548],[114.266636,33.461625],[114.247574,33.45967],[114.230714,33.451551],[114.211399,33.453757],[114.195294,33.447692],[114.190575,33.426489],[114.171324,33.440926],[114.180384,33.453656],[114.171639,33.459019],[114.159937,33.456713],[114.150312,33.460372],[114.151507,33.468139],[114.131501,33.472298],[114.130683,33.495093],[114.115836,33.488631],[114.103505,33.491586],[114.104071,33.499351],[114.118101,33.502406],[114.116276,33.51027],[114.099101,33.503108],[114.075572,33.517782],[114.055692,33.523942],[114.052168,33.528999],[114.038579,33.5296],[114.033735,33.523892],[114.014924,33.522039],[114.01354,33.511071],[114.001084,33.510671],[113.998693,33.500904],[113.981329,33.482268],[113.9712,33.482619],[113.967929,33.477408],[113.95434,33.473901],[113.94528,33.465633],[113.933768,33.465884],[113.914139,33.478511],[113.865508,33.479362],[113.856134,33.47796],[113.847515,33.466836],[113.825999,33.460723],[113.805804,33.446189],[113.799513,33.43481],[113.771139,33.435713],[113.766861,33.432154],[113.721187,33.432705],[113.713197,33.430249],[113.710429,33.417013],[113.693065,33.418216],[113.688347,33.407737],[113.676897,33.378298],[113.655003,33.371175],[113.639149,33.355221],[113.642106,33.34905],[113.640282,33.325162],[113.627448,33.312212],[113.618766,33.291477],[113.613167,33.261798],[113.606875,33.237786],[113.613796,33.211506],[113.627511,33.186475],[113.644623,33.186575],[113.64846,33.182402],[113.63506,33.160833],[113.626001,33.150423],[113.617004,33.147255],[113.600144,33.163146],[113.593601,33.157715],[113.573846,33.15691],[113.561201,33.161134],[113.550254,33.140113],[113.541321,33.14308],[113.532324,33.152736],[113.521378,33.154698],[113.514772,33.162492],[113.499987,33.156206],[113.46029,33.156458],[113.449217,33.160581],[113.432545,33.15681],[113.413105,33.156659],[113.397881,33.14997],[113.388821,33.128393],[113.386619,33.113451],[113.357239,33.091613],[113.333836,33.085976],[113.325469,33.079181],[113.313138,33.075608],[113.301436,33.080138],[113.271427,33.08049],[113.257335,33.083409],[113.250477,33.077822],[113.237077,33.077017],[113.219273,33.064584],[113.206124,33.070826],[113.190019,33.067202],[113.18574,33.056932],[113.165546,33.048977],[113.161456,33.038906],[113.142016,33.016647],[113.127358,33.010552],[113.120312,33.001182],[113.116097,32.986421],[113.108799,32.97332],[113.097789,32.946406],[113.109805,32.94202],[113.11553,32.932996],[113.140129,32.930627],[113.145854,32.940306],[113.15592,32.936122],[113.161897,32.92745],[113.181714,32.920644],[113.199015,32.920291],[113.208137,32.916408],[113.201154,32.888821],[113.205558,32.884937],[113.195681,32.871871],[113.187062,32.866422],[113.177059,32.852446],[113.167999,32.847046],[113.165797,32.838063],[113.175737,32.83241],[113.187062,32.819943],[113.17838,32.806665],[113.184294,32.801364],[113.185237,32.788286],[113.177247,32.775307],[113.199959,32.750253],[113.201343,32.738835],[113.193982,32.733378],[113.191528,32.717712],[113.207697,32.717257],[113.213736,32.703055],[113.231226,32.701488],[113.241103,32.691429],[113.236259,32.682581],[113.259914,32.677778],[113.269351,32.662053],[113.258467,32.653961],[113.252679,32.666907],[113.243305,32.66984],[113.236196,32.679143],[113.220594,32.684452],[113.210276,32.678941],[113.20172,32.660333],[113.18788,32.652241],[113.186181,32.646476],[113.19222,32.635398],[113.20279,32.632262],[113.201783,32.614504],[113.196121,32.606156],[113.200651,32.585103],[113.198575,32.579536],[113.205432,32.569969],[113.221286,32.570424],[113.243871,32.578827],[113.249785,32.593555],[113.280486,32.595984],[113.282311,32.591986],[113.303135,32.586723],[113.31037,32.579536],[113.315717,32.587988],[113.321631,32.58733],[113.326349,32.577561],[113.342832,32.567893],[113.351577,32.573664],[113.364537,32.569462],[113.372024,32.576245],[113.382216,32.593353],[113.400712,32.61324],[113.422354,32.605245],[113.437893,32.589203],[113.447393,32.584698],[113.458528,32.585508],[113.458843,32.575689],[113.472621,32.578574],[113.492752,32.567741],[113.512759,32.571538],[113.513513,32.579384],[113.524397,32.593505],[113.542264,32.589152],[113.565416,32.602715],[113.571582,32.624775],[113.583535,32.633577],[113.588882,32.650421],[113.596243,32.649763],[113.594041,32.661092],[113.619332,32.667362],[113.616941,32.69158],[113.609832,32.696484],[113.614676,32.711344],[113.623358,32.706138],[113.642987,32.703106],[113.649089,32.708261],[113.668404,32.692389],[113.696274,32.695624],[113.717727,32.683694],[113.729114,32.669688],[113.761199,32.652697],[113.771894,32.655276],[113.781079,32.652595],[113.791963,32.642075],[113.785169,32.631402],[113.799072,32.620879],[113.809264,32.603828],[113.814423,32.600842]]]]}},{type:"Feature",properties:{adcode:419001,name:"济源市",center:[112.590047,35.090378],centroid:[112.398673,35.099131],childrenNum:0,level:"city",parent:{adcode:41e4},subFeatureIndex:17,acroutes:[1e5,41e4]},geometry:{type:"MultiPolygon",coordinates:[[[[112.758,35.204436],[112.744662,35.205123],[112.735351,35.210424],[112.720315,35.206448],[112.71264,35.18701],[112.703077,35.20154],[112.707418,35.216951],[112.695339,35.218718],[112.684267,35.227256],[112.682694,35.233733],[112.67288,35.234272],[112.655012,35.244232],[112.651426,35.259242],[112.645009,35.260566],[112.639159,35.247862],[112.633056,35.265569],[112.618335,35.254043],[112.617643,35.244575],[112.634188,35.239326],[112.637208,35.225686],[112.619027,35.220043],[112.602544,35.22284],[112.574988,35.221122],[112.567879,35.211749],[112.559071,35.21278],[112.536234,35.223429],[112.513523,35.21857],[112.489805,35.229955],[112.482444,35.224655],[112.472378,35.230298],[112.45772,35.226373],[112.423999,35.23805],[112.401413,35.241877],[112.390718,35.238786],[112.376751,35.224115],[112.367315,35.22019],[112.320697,35.21911],[112.306667,35.220975],[112.288548,35.21754],[112.304465,35.251884],[112.294462,35.252816],[112.282823,35.242024],[112.261307,35.24119],[112.242748,35.234812],[112.21664,35.240209],[112.220792,35.247028],[112.217269,35.253258],[112.191097,35.256348],[112.173545,35.263803],[112.134287,35.271258],[112.120006,35.265275],[112.110947,35.27013],[112.115665,35.273072],[112.093961,35.279202],[112.075842,35.277143],[112.058793,35.279889],[112.055018,35.271454],[112.067978,35.265275],[112.079617,35.242367],[112.08119,35.221613],[112.058919,35.206301],[112.042058,35.200264],[112.041492,35.189808],[112.051935,35.177044],[112.066279,35.153522],[112.060177,35.140752],[112.067223,35.136233],[112.056276,35.098449],[112.056591,35.089061],[112.062756,35.078591],[112.062127,35.055779],[112.053571,35.044223],[112.038912,35.045501],[112.035075,35.033845],[112.042436,35.027845],[112.09352,35.029911],[112.108242,35.029222],[112.125857,35.021204],[112.1514,35.015399],[112.169896,35.00241],[112.1877,34.972981],[112.212047,34.965007],[112.226831,34.956589],[112.247844,34.940735],[112.258099,34.942212],[112.267284,34.953537],[112.28188,34.960232],[112.301068,34.945462],[112.3212,34.941375],[112.334537,34.941425],[112.360268,34.931428],[112.384993,34.924533],[112.39097,34.918574],[112.433247,34.920987],[112.462501,34.915668],[112.489616,34.90286],[112.496536,34.895717],[112.505659,34.898821],[112.521072,34.892761],[112.534221,34.893746],[112.537304,34.916013],[112.527426,34.929163],[112.515976,34.929212],[112.511447,34.92084],[112.496914,34.921726],[112.505155,34.942459],[112.519436,34.940341],[112.527867,34.932019],[112.551207,34.938569],[112.563853,34.949696],[112.5692,34.958608],[112.579392,34.971751],[112.596001,34.971013],[112.614182,34.98002],[112.624752,34.977903],[112.644695,34.978888],[112.653062,34.988681],[112.666462,34.9875],[112.675962,34.993504],[112.684581,35.012497],[112.698988,35.023221],[112.72711,35.035026],[112.735289,35.043338],[112.736043,35.060008],[112.743341,35.06458],[112.753219,35.08508],[112.754288,35.098891],[112.766304,35.107196],[112.761963,35.158041],[112.76687,35.182985],[112.758,35.204436]]]]}}]}},"97ee":function(e,t,r){"use strict";r("ce74")},9939:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:"物品分发",width:"900px",loading:e.loading},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"部门",prop:"departmentId"}},[r("el-select",{ref:"department",staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择"},model:{value:e.formData.departmentId,callback:function(t){e.$set(e.formData,"departmentId",t)},expression:"formData.departmentId"}},e._l(e.departmentOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id,clearable:""}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领取人",prop:"operatorName"}},[r("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.formData.operatorName,callback:function(t){e.$set(e.formData,"operatorName",t)},expression:"formData.operatorName"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"联系电话",prop:"tel"}},[r("el-input",{attrs:{placeholder:"请输入",clearable:""},model:{value:e.formData.tel,callback:function(t){e.$set(e.formData,"tel",e._n(t))},expression:"formData.tel"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"领取时间",prop:"createTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",clearable:"","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.createTime,callback:function(t){e.$set(e.formData,"createTime",t)},expression:"formData.createTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"分发审批手续",prop:"procureDoc"}},[r("upload",{ref:"uploadRef",attrs:{values:e.fileList,settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.transferGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"transferGoods."+n+".baseCategoryId",rules:{required:!0,message:"请选择物品分类",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"transferGoods."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"规格型号",prop:"transferGoods."+n+".modelsIds",rules:{required:!0,message:"请选择规格型号",trigger:"change"}}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:t.baseGoodsTemplateId?"请选择规格型号":"请先选择物品名称",disabled:!t.baseGoodsTemplateId},on:{change:function(t){return e.modelChange(t,n)},"remove-tag":function(t){return e.modelRemoveTag(t,n)}},model:{value:t.modelsIds,callback:function(r){e.$set(t,"modelsIds",r)},expression:"goodsItem.modelsIds"}},e._l(t.modelsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.modelName,value:e.id}})})),1)],1)],1)],1),e._v(" "),e._l(t.models,(function(a,o){return r("el-row",{key:o,staticClass:"card3"},[r("el-col",{staticStyle:{padding:"15px 0"},attrs:{span:10}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"规格型号:"}},[e._v("\n "+e._s(e.getGoodsModelsName(a.baseGoodsModelsId))+"\n ")])],1),e._v(" "),r("el-col",{staticStyle:{padding:"15px 0"},attrs:{span:4}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"剩余数量:","label-width":"80"}},[e._v("\n "+e._s(a.worehouseCount)+"\n ")])],1),e._v(" "),"A"===t.classification?r("el-col",{attrs:{span:24}},[r("el-table",{attrs:{data:a.procureModelUserList,stripe:!0}},[r("el-table-column",{attrs:{label:"分发数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.$index,s=t.row;return[r("el-form-item",{attrs:{prop:"transferGoods."+n+".models."+o+".procureModelUserList."+i+".goodsNum",rules:[{validator:e.checkCounts,type:1,userList:a.procureModelUserList,worehouseCount:a.worehouseCount,trigger:["blur","change"]}],"label-width":"0"}},[r("el-input",{staticStyle:{width:"100%"},model:{value:s.goodsNum,callback:function(t){e.$set(s,"goodsNum",e._n(t))},expression:"row.goodsNum"}})],1)]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"nowUserName",label:"使用人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index,i=t.row;return[r("el-form-item",{attrs:{prop:"transferGoods."+n+".models."+o+".procureModelUserList."+a+".nowUserName",rules:[{required:!0,message:"请输入使用人姓名",trigger:["blur","change"]}],"label-width":"0"}},[r("el-input",{staticStyle:{width:"100%"},model:{value:i.nowUserName,callback:function(t){e.$set(i,"nowUserName",t)},expression:"row.nowUserName"}})],1)]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"nowUserPhone",label:"联系电话",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index,i=t.row;return[r("el-form-item",{attrs:{prop:"transferGoods."+n+".models."+o+".procureModelUserList."+a+".nowUserPhone",rules:[{required:!0,message:"请输入联系电话",trigger:["blur","change"]}],"label-width":"0"}},[r("el-input",{staticStyle:{width:"100%"},model:{value:i.nowUserPhone,callback:function(t){e.$set(i,"nowUserPhone",t)},expression:"row.nowUserPhone"}})],1)]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{align:"left",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[a.procureModelUserList.length>1?r("i",{staticClass:"el-icon-remove-outline",staticStyle:{color:"#f56c6c","font-size":"16px",cursor:"pointer"},on:{click:function(r){return e.handleDel(n,o,t.$index)}}}):e._e(),e._v(" "),a.procureModelUserList.length-1==t.$index?r("i",{staticClass:"el-icon-circle-plus-outline",staticStyle:{color:"#0d997c","font-size":"16px",cursor:"pointer"},on:{click:function(r){return e.handleAdd(n,o,t.$index)}}}):e._e()]}}],null,!0)})],1)],1):r("el-col",{staticStyle:{padding:"15px 0"},attrs:{span:10}},[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"分发数量:",prop:"transferGoods."+n+".models."+o+".counts",rules:[{validator:e.checkCounts,type:2,worehouseCount:a.worehouseCount,trigger:["blur","change"]}],"label-width":"80"}},[r("el-input",{staticStyle:{width:"160px"},model:{value:a.counts,callback:function(t){e.$set(a,"counts",e._n(t))},expression:"mItem.counts"}})],1)],1)],1)})),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.transferGoods.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除\n ")]):e._e(),e._v(" "),e.formData.transferGoods.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品\n ")]):e._e()],1)],2)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.handleSubmit}})],1)],1)},a=[],o=r("5688"),i=r("a083"),s=r("8eb74"),l=r("c56b"),c=r("f6e8"),u=r("f76d"),d=r("decf"),f=r("dee4"),p=r("2f62"),m=r("6f7e"),h=r("6ec5");function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function b(e){return x(e)||_(e)||w(e)||y()}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){if(e){if("string"==typeof e)return S(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e){if(Array.isArray(e))return S(e)}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",m="executing",h="completed",v={};function b(){}function y(){}function w(){}var _={};c(_,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==r&&n.call(S,i)&&(_=S);var k=w.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==g(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?h:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=h,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(g(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function k(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function C(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){k(o,n,a,i,s,"next",e)}function s(e){k(o,n,a,i,s,"throw",e)}i(void 0)}))}}function I(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 j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=D(e,"string");return"symbol"==g(t)?t:t+""}function D(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L={components:{MyButton:c["a"],winMd:u["a"],upload:d["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){if(!r)return n(new Error("请选择"));var a=e.formData.transferGoods.filter((function(e){return e.baseGoodsTemplateId==r}));if(!a||1!=a.length)return n(new Error("已选过此物品"));n()};return{checkCounts:function(e,t,r){if(!t)return r(new Error("请输入分发数量"));if(!Number.isInteger(t))return r(new Error("请输入数字值"));if(t<1)return r(new Error("数字值必须大于0"));if(t>e.worehouseCount)return r(new Error("分发数量不能大于剩余数量"));if(1===e.type){var n=0;if(e.userList.map((function(e){n+=e.goodsNum||0})),n>e.worehouseCount)return r(new Error("分发数量总和不能大于剩余数量"))}r()},loading:!0,fileList:[],departmentOptions:[],categoryOptions:[],modelList:[],formData:{transferBusinessType:1,departmentId:"",departmentName:"",operatorName:"",tel:"",createTime:m["formatDate"](new Date,"yyyyMMddhhmmss"),procureDoc:"",transferGoods:[]},goodsItem:{baseCategoryId:"",classification:"",baseGoodsTemplateId:"",goodsTemplateName:"",goodsOptions:[],modelsOptions:[],models:[],modelsIds:[]},modelsItem:{baseGoodsModelsId:"",procureModelUserList:[],counts:""},clistItem:{goodsNum:null,nowUserName:null,nowUserPhone:null},rules:{departmentId:[{required:!0,message:"请选择部门",trigger:"change"}],operatorName:[{required:!0,message:"请填写领取人",trigger:"blur"}],tel:[{required:!0,message:"请填写联系电话",trigger:"blur"}],createTime:[{required:!0,message:"请选择分发时间",trigger:"change"}],procureDoc:[{required:!0,message:"请上传审批手续",trigger:"change"}],baseCategoryIds:[{required:!0,message:"请选择",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择",trigger:"change"},{validator:t,trigger:["blur","change"]}],modelsIds:[{required:!0,message:"请选择",trigger:"change"}],transferGoods:[{models:[{counts:[{required:!0,message:"请输入",trigger:"change"},{type:"number",message:"数量必须为整数"}],procureModelUserList:[{goodsNum:[{required:!0,message:"请输入",trigger:"blur"}],nowUserName:[{required:!0,message:"请输入",trigger:"blur"}],nowUserPhone:[{required:!0,message:"请输入",trigger:"blur"}]}]}]}]},uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(f["d"])(),multiple:!0,disabled:!1}}},computed:j({},Object(p["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=C(O().mark((function e(){var t;return O().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getdeptmentList();case 2:return e.next=4,Object(l["b"])();case 4:t=e.sent,this.categoryOptions=this.removeEmptyChildren(t),this.loading=!1,this.getgoodsTemplate(),this.getgoodsModel();case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getdeptmentList:function(){var e=this;Object(s["d"])({tenantId:this.userInfo.tenantId}).then((function(t){e.departmentOptions=t,e.formData.transferGoods.push(JSON.parse(JSON.stringify(e.goodsItem)))})).catch((function(e){console.log("err",e)}))},removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(e,t){var r=this;Object(o["b"])({categoryId:e||"",agencyId:this.userInfo.tenantId}).then((function(e){t||0==t?(r.$set(r.formData.transferGoods[t],"goodsOptions",e),r.$set(r.formData.transferGoods[t],"classification",e[0].classification)):r.goodsTemplatelAll=e}))},getgoodsModel:function(e,t){var r=this;Object(o["a"])({goodsTemplatesId:e||"",agencyId:this.userInfo.tenantId}).then((function(e){t||0==t?r.$set(r.formData.transferGoods[t],"modelsOptions",e):r.goodsModelAll=e}))},getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.transferGoods[t].goodsOptions=[],this.formData.transferGoods[t].baseGoodsTemplateId="",this.formData.transferGoods[t].goodsTemplateName="",this.formData.transferGoods[t].modelsOptions=[],this.formData.transferGoods[t].modelsIds=[],this.formData.transferGoods[t].models=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.transferGoods[t].modelsOptions=[],this.formData.transferGoods[t].modelsIds=[],this.formData.transferGoods[t].models=[],this.formData.transferGoods[t].goodsTemplateName=this.getGoodsTemplateName(e),this.getgoodsModel(e,t)},modelChange:function(){var e=C(O().mark((function e(t,r){var n,a,o,i,s,l,c;return O().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=b(this.formData.transferGoods[r].models),a=JSON.stringify(n),o=v(t),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=15;break}if(s=i.value,-1!==a.indexOf(s)){e.next=13;break}return e.next=10,Object(h["r"])({baseGoodsModelsId:s,states:1,agencyId:this.userInfo.tenantId});case 10:l=e.sent,c=[JSON.parse(JSON.stringify(this.clistItem))],n.push(j(j({},this.modelsItem),{},{baseGoodsModelsId:s,procureModelUserList:c,worehouseCount:l}));case 13:e.next=5;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](3),o.e(e.t0);case 20:return e.prev=20,o.f(),e.finish(20);case 23:this.formData.transferGoods[r].models=n;case 24:case"end":return e.stop()}}),e,this,[[3,17,20,23]])})));function t(t,r){return e.apply(this,arguments)}return t}(),modelRemoveTag:function(e,t){var r=this.formData.transferGoods[t].models,n=r.findIndex((function(t){return t.baseGoodsModelsId==e}));this.formData.transferGoods[t].models.splice(n,1)},handleAdd:function(e,t,r){this.formData.transferGoods[e].models[t].procureModelUserList.push(JSON.parse(JSON.stringify(this.clistItem)))},handleDel:function(e,t,r){this.formData.transferGoods[e].models[t].procureModelUserList.splice(r,1)},priceChange:function(e,t,r){this.formData.transferGoods[t].models[r].price=100*e},uploadChange:function(){var e=this.$refs.uploadRef.fileList;this.formData.procureDoc=JSON.stringify(e)},addGoods:function(){this.formData.transferGoods.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.transferGoods.splice(e,1)},handleSubmit:function(){var e=this;console.log("formData",this.formData),this.$refs["ruleForm"].validate((function(t){if(t){if(e.formData.transferGoods.map((function(e){e.models.map((function(t){if("A"===e.classification){var r=0;t.procureModelUserList.map((function(e){r+=parseInt(e.goodsNum||"0")})),t.counts=r}}))})),e.formData.departmentName=e.$refs.department.selected.currentLabel,e.formData.outAgencyId=e.userInfo.tenantId,e.loading)return;e.loading=!0,Object(i["d"])(e.formData).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,console.log("create err",t)}))}else e.$message.error("校验未通过,请检查。")}))},close:function(){this.formData={warehouseId:"",procureTime:"",transferGoods:[]},this.$emit("close")}}},P=L,E=(r("11e2"),r("2877")),$=Object(E["a"])(P,n,a,!1,null,"68f6d552",null);t["default"]=$.exports},9960:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.dialogShow?r("el-dialog",{attrs:{width:"40%",center:!0,"close-on-click-modal":!1,"close-on-press-escape":!1,title:e.dialogTitle,"before-close":e.beforeClose,modal:e.modal,visible:e.dialogShow}},[r("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"element-loading-text":"数据导入中"}},[r("el-col",{attrs:{span:24}},[r("el-form",[null!=e.templateSettings.templateUrl?r("el-form-item",{attrs:{label:"下载模板:",prop:"lon"}},[r("a",{staticClass:"blue-txt",staticStyle:{color:"#409EFF"},attrs:{href:e.templateSettings.templateUrl,target:"_blank",rel:"noreferrer noopener"}},[e._v(e._s(e.templateSettings.templateName))])]):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"选取文件:",prop:"lon"}},[r("el-upload",{ref:e.fileSettings.ref,staticClass:"upload-demo",attrs:{headers:e.headers,name:"file",data:e.fileSettings.data,action:e.fileSettings.uploadUrl,"before-upload":e.beforeAvatarUpload,"on-success":e.handleUploadSuccess,"on-change":e.file,multiple:e.fileSettings.multiple,limit:e.fileSettings.num,accept:e.fileSettings.accept,"auto-upload":e.fileSettings.autoUpload}},[r("el-button",{attrs:{size:"small",type:"primary"}},[e._v(e._s(e.fileSettings.title))]),e._v(" "),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传"+e._s(e.fileSettings.num)+"个格式为"+e._s(e.fileSettings.accept)+"的文件,且不超过"+e._s(e.fileSettings.max)+"kb")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"导入数据:",prop:"lon"}},[r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"success"},on:{click:e.handleSubmit}},[e._v("开始导入")])],1)],1)],1)],1)],1):e._e()},a=[],o=r("5f87"),i=r("83d6"),s={props:{importSetting:{type:Object,default:function(){return{}}},dialogShow:{type:Boolean,default:!1},modal:{type:Boolean,default:!1},dialogTitle:{type:String,default:""}},data:function(){return{headers:{},loading:!1,fileSettings:{ref:"myFile",data:{},title:"点击上传",max:1024,num:1,accept:".xlsx",uploadUrl:"",type:"text",multiple:!1,disabled:!1,autoUpload:!1,onSuccess:null},isUpload:!1,templateSettings:{templateName:"模板下载",templateUrl:null}}},watch:{dialogShow:function(e){e&&(this.fileSettings=Object.assign(this.fileSettings,this.importSetting.fileSettings),this.templateSettings=Object.assign(this.templateSettings,this.importSetting.templateSettings),console.log(this.templateSettings),this.fileSettings.onSuccess=this.importSetting.onSuccess)}},mounted:function(){this.headers[i["sessionToken"]]=Object(o["a"])()},methods:{beforeClose:function(){var e=this;this.loading?this.$confirm("正在执行导入,确认关闭?").then((function(){e.importSetting.dialogShow=!1,e.loading=!1})).catch():this.importSetting.dialogShow=!1},beforeAvatarUpload:function(e){var t=this.fileSettings.accept.split(",").indexOf(e.name.substr(e.name.lastIndexOf("."),e.name.length).toLocaleString())>-1;t||this.$message.error("上传文件只能是 ".concat(this.fileSettings.accept," 格式!"));var r=e.size/1024<this.fileSettings.max;return r||this.$message.error("上传文件大小不能超过 "+this.fileSettings.max+"kb!"),t&&r},handleSubmit:function(){this.isUpload?this.$refs[this.fileSettings.ref].submit():this.$message.error("请上传文件")},file:function(e,t){e&&(this.isUpload=!0)},handleUploadSuccess:function(e,t,r){var n=this;this.fileSettings.onSuccess&&(this.loading=!0,this.fileSettings.onSuccess(e,(function(){n.loading=!1,n.importSetting.dialogShow=!1})))}}},l=s,c=r("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"9af9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-sm",{attrs:{title:e.setting.title},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"所属机构",prop:"tenantIds"}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{disabled:"",options:e.treeList,props:{checkStrictly:!0,value:"id"}},model:{value:e.formData.tenantIds,callback:function(t){e.$set(e.formData,"tenantIds",t)},expression:"formData.tenantIds"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"部门名称",prop:"name"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"编号",prop:"code"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.code,callback:function(t){e.$set(e.formData,"code",t)},expression:"formData.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-radio-group",{model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}},[r("el-radio",{attrs:{label:1}},[e._v("正常")]),e._v(" "),r("el-radio",{attrs:{label:0}},[e._v("禁用")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"顺序",prop:"orderNum"}},[r("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.formData.orderNum,callback:function(t){e.$set(e.formData,"orderNum",t)},expression:"formData.orderNum"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"备注",prop:"summary"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.summary,callback:function(t){e.$set(e.formData,"summary",t)},expression:"formData.summary"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("8eb74"),i=r("e694"),s=r("f6e8"),l=r("6ec5"),c=r("ed08"),u={components:{winSm:i["a"],myButton:s["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{treeList:[],formData:{tenantIds:[],tenantId:"",name:"",code:"",status:1,orderNum:1},rules:{name:[{required:!0,message:"请输入",trigger:"blur"}],code:[{required:!0,message:"请输入",trigger:"blur"}]}}},created:function(){var e=this;console.log(this.setting),this.setting.info?Object(o["b"])({id:this.setting.id}).then((function(t){e.formData=t})):this.formData.tenantId=this.setting.tenantId,this.tree_List()},methods:{tree_List:function(){var e=this;l["l"]().then((function(t){t&&(e.treeList=t,e.$set(e.formData,"tenantIds",Object(c["a"])(e.treeList,e.formData.tenantId)),console.log(e.formData))}))},close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);e.setting.id?Object(o["c"])(r).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")})):Object(o["a"])(r).then((function(t){e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){console.log(t),e.$message.error(""+t.msg)}))}else e.$message.error("校验未通过,请检查。")}))}}},d=u,f=r("2877"),p=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"9b42":function(e,t){function r(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r["return"]&&(i=r["return"](),Object(i)!==i))return}finally{if(c)throw a}}return s}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9bf0":function(e,t,r){},"9c807":function(e,t,r){var n={"./LBJETJ.vue":"8638","./LBSLTJ.vue":"73f6","./XYZC.vue":"d472"};function a(e){var t=o(e);return r(t)}function o(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}a.keys=function(){return Object.keys(n)},a.resolve=o,e.exports=a,a.id="9c807"},"9d1a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("div",{staticStyle:{display:"flex"}},[r("el-card",{staticClass:"box-card"},[r("el-tabs",{attrs:{"tab-position":"left"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[r("el-tab-pane",{attrs:{label:"基本资料",name:"userinfo"}}),e._v(" "),r("el-tab-pane",{attrs:{label:"修改密码",name:"resetPwd"}})],1)],1),e._v(" "),r("el-card",{staticClass:"box-card",staticStyle:{flex:"1","margin-left":"16px"}},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[e._v(e._s("userinfo"===e.activeTab?"基本资料":"修改密码"))])]),e._v(" "),"userinfo"===e.activeTab?r("userInfo"):e._e(),e._v(" "),"resetPwd"===e.activeTab?r("resetPwd"):e._e()],1)],1)])},a=[],o=r("efd6"),i=r("2359"),s={name:"Profile",components:{userInfo:o["default"],resetPwd:i["default"]},data:function(){return{roleGroup:{},postGroup:{},activeTab:"userinfo"}},methods:{}},l=s,c=(r("fd6b"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,"18de01c0",null);t["default"]=u.exports},"9dae":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:"调拨申请",width:"800px"},on:{close:e.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"调拨机构",prop:"outAgencyId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.formData.outAgencyId,callback:function(t){e.$set(e.formData,"outAgencyId",t)},expression:"formData.outAgencyId"}},e._l(e.agencyOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"调拨时间",clearable:"",prop:"createTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",clearable:"",value:"yyyy-MM-dd HH:mm:ss","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.createTime,callback:function(t){e.$set(e.formData,"createTime",t)},expression:"formData.createTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"调拨手续",prop:"procureDoc"}},[r("upload",{ref:"uploadRef",attrs:{settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.transferGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"transferGoods."+n+".baseCategoryId",rules:{required:!0,message:"请选择物品分类",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"transferGoods."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"规格型号",prop:"transferGoods["+n+"].modelsIds",rules:{required:!0,message:"请选择",trigger:"change"}}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",clearable:"",placeholder:t.baseGoodsTemplateId?"请选择规格型号":"请先选择物品名称",disabled:!t.baseGoodsTemplateId},on:{change:function(t){return e.modelChange(t,n)},"remove-tag":function(t){return e.modelRemoveTag(t,n)},clear:function(t){return e.modelRemoveTag(-1,n)}},model:{value:t.modelsIds,callback:function(r){e.$set(t,"modelsIds",r)},expression:"goodsItem.modelsIds"}},e._l(t.modelsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.modelName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-table",{attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsId",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.getGoodsModelsName(t.row.baseGoodsModelsId))+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"剩余库存",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.worehouseCount)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"申请数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{"label-width":"0",prop:"transferGoods["+n+"].models["+t.$index+"].counts",rules:e.rules.counts}},[r("el-input",{attrs:{placeholder:"请输入"},on:{change:function(r){return e.countsChange(r,n,t.$index)}},model:{value:t.row.counts,callback:function(r){e.$set(t.row,"counts",e._n(r))},expression:"scope.row.counts"}})],1)]}}],null,!0)})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.transferGoods.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除")]):e._e(),e._v(" "),e.formData.transferGoods.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品")]):e._e()],1)],1)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.handleSubmit}})],1)],1)},a=[],o=r("a083"),i=r("6ec5"),s=r("f6e8"),l=r("f76d"),c=r("decf"),u=r("dee4"),d=r("2f62"),f=r("6f7e");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=v(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function h(e){return y(e)||b(e)||v(e)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"==typeof e)return w(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",h="executing",g="completed",v={};function b(){}function y(){}function w(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(x=O);var k=w.prototype=b.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==p(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?g:m,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(p(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function x(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){x(o,n,a,i,s,"next",e)}function s(e){x(o,n,a,i,s,"throw",e)}i(void 0)}))}}function O(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 k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return(t=I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=j(e,"string");return"symbol"==p(t)?t:t+""}function j(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var T={components:{MyButton:s["a"],winMd:l["a"],upload:c["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){if(!r)return n(new Error("请选择"));var a=e.formData.transferGoods.filter((function(e){return e.baseGoodsTemplateId==r}));if(!a||1!=a.length)return n(new Error("已选过此物品"));n()};return{loading:!0,agencyOptions:[],categoryOptions:[],modelList:[],formData:{transferBusinessType:0,procureDoc:"",outAgencyId:"",createTime:f["formatDate"](new Date,"yyyyMMddhhmmss"),transferGoods:[]},goodsItem:{baseCategoryIds:"",baseCategoryId:"",baseGoodsTemplateId:"",goodsTemplateName:"",goodsOptions:[],modelsOptions:[],models:[],modelsIds:[]},modelsItem:{baseGoodsModelsId:"",worehouseCount:10,counts:null,unit:null},rules:{outAgencyId:[{required:!0,message:"请选择",trigger:"change"}],createTime:[{required:!0,message:"请选择",trigger:"change"}],baseCategoryIds:[{required:!0,message:"请选择",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择",trigger:"change"},{validator:t,trigger:["blur","change"]}],modelsIds:[{required:!0,message:"请选择",trigger:"change"}],counts:[{required:!0,message:"请输入",trigger:"change"},{type:"number",message:"数量必须为整数"}]},uploadSettings:{title:"上传",max:20,num:2,tip:"",uploadUrl:Object(u["d"])(),multiple:!0,disabled:!1}}},computed:k({},Object(d["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=S(_().mark((function e(){return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.handegetParentTenant();case 2:return e.next=4,this.getCategoryTree();case 4:this.loading=!1,this.getgoodsTemplate(),this.getgoodsModel();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handegetParentTenant:function(){var e=S(_().mark((function e(){var t=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["a"])().then((function(e){e.id!=t.userInfo.tenantId?(t.agencyOptions=[e],t.formData.outAgencyId=e.id,t.formData.transferGoods.push(JSON.parse(JSON.stringify(t.goodsItem)))):t.$message.warning("无上级机构")}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),getCategoryTree:function(){var e=S(_().mark((function e(){var t;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["k"])();case 2:t=e.sent,this.categoryOptions=this.removeEmptyChildren(t);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(e,t){var r=this;Object(o["b"])({categoryId:e||"",agencyId:this.formData.outAgencyId}).then((function(e){t||0==t?r.$set(r.formData.transferGoods[t],"goodsOptions",e):r.goodsTemplatelAll=e}))},getgoodsModel:function(e,t){var r=this;Object(i["m"])({goodsTemplatesId:e||""}).then((function(e){t||0==t?r.$set(r.formData.transferGoods[t],"modelsOptions",e):r.goodsModelAll=e}))},getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.transferGoods[t].goodsOptions=[],this.formData.transferGoods[t].baseGoodsTemplateId="",this.formData.transferGoods[t].goodsTemplateName="",this.formData.transferGoods[t].modelsOptions=[],this.formData.transferGoods[t].modelsIds=[],this.formData.transferGoods[t].models=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.transferGoods[t].modelsOptions=[],this.formData.transferGoods[t].modelsIds=[],this.formData.transferGoods[t].models=[],this.formData.transferGoods[t].goodsTemplateName=this.getGoodsTemplateName(e),this.getgoodsModel(e,t)},modelChange:function(){var e=S(_().mark((function e(t,r){var n,a,o,s,l,c=this;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=h(this.formData.transferGoods[r].models),a=JSON.stringify(n),o=m(t),e.prev=3,l=_().mark((function e(){var t,r,o;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=s.value,-1!=a.indexOf(t)){e.next=7;break}return r=c.goodsModelAll.find((function(e){return e.id==t})),e.next=5,Object(i["r"])({baseGoodsModelsId:t,warehouseType:0,states:1,buyType:1,agencyId:c.formData.outAgencyId});case 5:o=e.sent,n.push(k(k({},c.modelsItem),{},{baseGoodsModelsId:t,unit:r.unit,worehouseCount:o}));case 7:case"end":return e.stop()}}),e)})),o.s();case 6:if((s=o.n()).done){e.next=10;break}return e.delegateYield(l(),"t0",8);case 8:e.next=6;break;case 10:e.next=15;break;case 12:e.prev=12,e.t1=e["catch"](3),o.e(e.t1);case 15:return e.prev=15,o.f(),e.finish(15);case 18:this.formData.transferGoods[r].models=n;case 19:case"end":return e.stop()}}),e,this,[[3,12,15,18]])})));function t(t,r){return e.apply(this,arguments)}return t}(),modelRemoveTag:function(e,t){if(-1!==e){var r=this.formData.transferGoods[t].models,n=r.findIndex((function(t){return t.baseGoodsModelsId==e}));this.formData.transferGoods[t].models.splice(n,1)}else this.formData.transferGoods[t].models=[]},uploadChange:function(e){var t=this.$refs.uploadRef.fileList;this.formData.procureDoc=JSON.stringify(t)},addGoods:function(){this.formData.transferGoods.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.transferGoods.splice(e,1)},countsChange:function(e,t,r){var n=this.formData.transferGoods[t].models[r],a=n.worehouseCount;0==e&&(this.$message.warning("数量不能为0"),n.counts=null),e>a&&(this.$message.warning("数量超过现有库存"),n.counts=a)},handleSubmit:function(){var e=this;this.$refs["ruleForm"].validate((function(t){if(t){if(e.loading)return;e.loading=!0,Object(o["d"])(e.formData).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,console.log("edit err",t),e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。")}))},close:function(){this.$emit("close")}}},N=T,D=(r("5234"),r("2877")),L=Object(D["a"])(N,n,a,!1,null,"3881f82a",null);t["default"]=L.exports},"9e69":function(e,t,r){var n=r("2b3e"),a=n.Symbol;e.exports=a},"9e72":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("div",{staticStyle:{"margin-top":"15px"}},[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)])],1)},a=[],o=r("80cb"),i=r("433d"),s=r("6f7e"),l={components:{MyTableV2:o["a"]},data:function(){return{items:[{type:"text",dataIndex:"userName",label:"登录账号",placeholder:"请输入",defaultValue:""}],filterFrom:{userName:null},table:{showIndex:!0,expand:!1,url:i["a"].apiBaseURL+"/pc/p/login/info/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"登录账号",field:"userName",align:"left",minWidth:110},{title:"登录用户",field:"sysUserName",align:"left",minWidth:80},{title:"登录用户单位",field:"sysUserUnit",align:"left",minWidth:80},{title:"登录IP",field:"ipaddr",align:"center"},{title:"浏览器类型",field:"browser",align:"center"},{title:"登录状态",field:"status",align:"center",formatter:function(e){return{value:1==e.status?"登录成功":"登录失败"}}},{title:"提示消息",field:"msg",align:"left"},{title:"访问时间",field:"login_time",align:"center",width:180,formatter:function(e){return{value:Object(s["LongToDateTime"])(e.loginTime)}}}],operation:{show:!1},paging:{show:!0,page:{small:!1,pageNumber:1,pageSize:10,total:0}}}}},mounted:function(){},methods:{search:function(e){void 0!=e?this.$refs.myTable.search(e):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,"03e34f16",null);t["default"]=d.exports},"9ed6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("img",{staticClass:"logo-name",attrs:{src:r("f6ce"),alt:"低值易耗品库存管理系统"}}),e._v(" "),n("el-row",{staticClass:"flex-1 min-1200",attrs:{type:"flex",justify:"center",align:"center",gutter:20}},[n("el-col",[n("div",{staticClass:"form-main w1050"},[n("el-row",[n("el-col",{attrs:{span:12}},[n("img",{staticClass:"logo-lf",attrs:{src:r("4c5a"),alt:"登录"}})]),e._v(" "),n("el-col",{attrs:{span:12}},[n("div",{staticClass:"login-box"},[n("el-form",{ref:"loginForm",attrs:{id:"loginForm",model:e.loginForm,rules:e.loginRules}},[n("h3",{staticClass:"title"},[e._v("欢迎登录")]),e._v(" "),n("div",{staticClass:"f-lable"},[e._v("账号")]),e._v(" "),n("el-form-item",{attrs:{prop:"account"}},[n("el-input",{ref:"account",attrs:{id:"input-b",placeholder:"请输入账号",name:"account",type:"text","auto-complete":"on"},model:{value:e.loginForm.account,callback:function(t){e.$set(e.loginForm,"account",t)},expression:"loginForm.account"}})],1),e._v(" "),n("div",{staticClass:"f-lable"},[e._v("密码")]),e._v(" "),n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{key:e.passwordType,ref:"pwd",attrs:{id:"input-block",type:e.passwordType,placeholder:"请输入密码",name:"password","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),"code"===e.loginForm.verifyType&&e.captchaEnabled?[n("div",{staticClass:"f-lable"},[e._v("验证码")]),e._v(" "),n("el-form-item",{staticClass:"captcha",attrs:{prop:"code"}},[n("el-input",{staticStyle:{width:"218px"},attrs:{placeholder:"验证码",type:"text",tabindex:"3",autocomplete:"off"},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code","string"===typeof t?t.trim():t)},expression:"loginForm.code"}}),e._v(" "),n("div",{staticClass:"imgs",on:{click:function(t){return e.getCode()}}},[n("img",{attrs:{src:e.codeUrl}}),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showCaptchatImg,expression:"showCaptchatImg"}]},[e._v("已失效")])])],1)]:e._e(),e._v(" "),n("el-button",{staticClass:"login-btn",attrs:{id:"loginBtn",loading:e.loading,disabled:e.disabled},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录\n ")])],2)],1)])],1)],1)])],1)],1)},a=[],o=(r("61f7"),r("c24f")),i=r("a18c"),s={name:"Login",data:function(){return{verify:!1,showCaptchatImg:!1,codeUrl:"",fullWidth:document.body.clientWidth,swiperOption:{pagination:{el:".pagination"},autoplay:{enabled:!1,disableOnInteraction:!1,delay:3e3}},loginForm:{account:"",password:"",uuid:"",code:"",loginType:"user_pass",verifyType:"code"},loginRules:{account:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}],code:[{required:!0,message:"请输入正确的验证码",trigger:"blur"}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{},disabled:!1,isWeixin:this.$wechat.isWeixin(),captchaEnabled:!1}},components:{},watch:{fullWidth:function(e){if(!this.timer){this.screenWidth=e,this.timer=!0;var t=this;setTimeout((function(){t.timer=!1}),400)}},$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},created:function(){var e=this;document.onkeydown=function(t){if(-1!==e.$route.path.indexOf("login")){var r=window.event.keyCode;13===r&&e.handleLogin()}},window.addEventListener("resize",this.handleResize)},mounted:function(){""===this.loginForm.account?this.$refs.account.focus():""===this.loginForm.pwd&&this.$refs.password.focus(),this.getCode()},methods:{verifyTrue:function(){this.verify=!0},verifyFalse:function(){this.verify=!1},checkCapslock:function(e){var t=e.key;this.capsTooltip=t&&1===t.length&&t>="A"&&t<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.pwd.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.success(null)}))},success:function(e){var t=this;this.loginForm.captcha=this.$store.state.user.captcha;var r=this.$loading({lock:!0,text:"正在登录中."});this.$store.dispatch("user/login",this.loginForm).then((function(){t.$store.dispatch("user/getInfo").then((function(e){t.$store.dispatch("permission/generateRoutes",e.roles).then((function(e){i["a"].options.routes=e,i["a"].addRoutes(e),t.$router.push({path:t.redirect||"/dashboard",query:t.otherQuery}),r.close(),t.disabled=!0}))})).catch((function(e){r.close(),t.disabled=!1,t.$wechat.isPhone()&&t.$dialog.error(e.message),t.loginForm.code=null,t.getCode()}))})).catch((function(e){r.close(),t.disabled=!1,t.$wechat.isPhone()&&t.$dialog.error(e.message),t.loginForm.code=null,t.getCode()}))},getCode:function(){var e=this;"code"===this.loginForm.verifyType?Object(o["d"])().then((function(t){e.captchaEnabled=void 0===t.captchaEnabled||t.captchaEnabled,e.captchaEnabled&&(e.codeUrl="data:image/jpeg;base64,"+t.img),e.loginForm.uuid=t.uuid,e.showCaptchatImg=!1,setTimeout((function(){e.showCaptchatImg=!0}),27e4)})).catch((function(e){console.log(e)})):"jigsaw"===this.loginForm.verifyType?(this.loginForm.code="jigsaw",this.loginForm.uuid=""):"slide"===this.loginForm.verifyType||"sms"===this.loginForm.verifyType?Object(o["e"])().then((function(t){e.loginForm.uuid=t.uuid})).catch((function(e){console.error(e)})):this.$message.error("不支持的验证码类型:"+this.loginForm.verifyType)},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,r){return"redirect"!==r&&(t[r]=e[r]),t}),{})}}},l=s,c=(r("97ee"),r("3679"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,"6478b3af",null);t["default"]=u.exports},"9f01":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("出库单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("出库仓库:")]),e._v(" "),r("span",[e._v(e._s(e.detail.warehouseName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("所属机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.agencyName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("创建人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.operatorName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("出库时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.dealTime)))])])],1),e._v(" "),e.fileList&&e.fileList.length?r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("出库手续:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1):e._e(),e._v(" "),e._l(e.detail.fromOutputGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.categoryName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsName))])])],1),e._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.baseGoodsModelsName)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"出库数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.counts)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"totalAmount",label:"金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.totalAmount)+"\n ")]}}],null,!0)})],1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("efdb"),i=r("f76d"),s=r("6f7e"),l=r("dee4"),c=r("c82c"),u=r.n(c),d=(r("0808"),null),f={components:{winMd:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,fileList:[],detail:{categoryName:"",businessFormCode:"",goodsName:"",agencyId:"",agencyName:"",states:"",createName:"",fromOutputGoods:[]}}},filters:{formatTime:function(e){if(e)return s["LongToDateTime"](e)}},created:function(){var e=this;Object(o["b"])({id:this.setting.id}).then((function(t){e.detail=t,e.fileList=e.detail.doc?JSON.parse(e.detail.doc):[],e.loading=!1,e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=d&&d.destroy();var e=document.querySelector("#uploadPreviewImages");d=new u.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}d.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return r.indexOf(t)>=0},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(l["c"])()+e},close:function(){this.$emit("close")}}},p=f,m=(r("3401"),r("2877")),h=Object(m["a"])(p,n,a,!1,null,"145e5635",null);t["default"]=h.exports},"9f17":function(e,t,r){"use strict";r("6ccf")},a083:function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"g",(function(){return i})),r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"c",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"k",(function(){return p})),r.d(t,"j",(function(){return m}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/import",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/list",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/pc/fin/sys/tenant/get/parent/tenant",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/pc/base/goods/template/query/warehouse/goods",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/detail",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/output",method:"post",params:e})}function d(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/income",method:"post",params:e})}function f(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/updStatus",method:"post",params:e})}function p(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/use/record",method:"get",params:e})}function m(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/useInfo/update",method:"POST",data:e})}},a118:function(e,t,r){},a19c:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-card",{staticClass:"box-card",attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container",staticStyle:{"margin-bottom":"10px"}},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.filterForm}})],1),e._v(" "),r("div",{staticClass:"title"},[e._v("物品统计表")]),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[r("el-table-column",{attrs:{align:"center",prop:"orgName",label:"机构","min-width":"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"warehouseName",label:"仓库/部门","min-width":"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsCode",label:"物品编码",width:"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"goodsTemplateName",label:"物品名称","min-width":"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"baseGoodsModelsName",label:"规格型号","min-width":"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"zaiKuNum",label:"在库/在用数量",width:"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"baoFeiNum",label:"报废数",width:"150"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"totalNum",label:"总数量",width:"150"}})],1)],1)],1)},a=[],o=r("b775");function i(e){return Object(o["a"])({url:"/pc/warehouse/goodsStatistics",method:"get",params:e})}var s=r("6f7e"),l=r("433d"),c={data:function(){return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"baseWarehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"baseWarehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:l["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"categoryId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:l["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:l["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],tableData:[],loading:!0,params:{examYear:Object(s["formatDate"])(new Date,"yyyyMMdd")}}},mounted:function(){this.getTableData({})},methods:{filterForm:function(e){this.params=e,this.getTableData(e)},getTableData:function(e){var t=this;this.loading=!0,i(e).then((function(e){t.tableData=e,t.loading=!1})).catch((function(){t.loading=!1}))}}},u=c,d=(r("130d"),r("2877")),f=Object(d["a"])(u,n,a,!1,null,"1d47760e",null);t["default"]=f.exports},a1ba:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div")},a=[],o={created:function(){this.b=b}},i=o,s=r("2877"),l=Object(s["a"])(i,n,a,!1,null,null,null);t["default"]=l.exports},a36b:function(e,t,r){e.exports=r.p+"static/img/404.a57b6f31.png"},a387:function(e,t,r){"use strict";r.r(t);var n=r("2f62");function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(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 i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=c(e,"string");return"symbol"==a(t)?t:t+""}function c(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}t["default"]={computed:i({},Object(n["c"])("admin/layout",["showI18n"]))}},a395:function(e,t,r){var n=r("7037")["default"],a=r("e50d");function o(e){var t=a(e,"string");return"symbol"==n(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a5c4:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.search}}):e._e(),e._v(" "),e.inventorySetting.show?r("inventory",{attrs:{setting:e.inventorySetting},on:{close:function(t){e.inventorySetting.show=!1},search:e.search}}):e._e(),e._v(" "),e.inventoryDetail.show?r("detail",{attrs:{setting:e.inventoryDetail},on:{close:function(t){e.inventoryDetail.show=!1},search:e.search}}):e._e()],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("3ef9"),c=r("d87c"),u=r("af77"),d=r("9960"),f=r("dee4"),p=r("806c"),m=r("6f7e"),h=r("2f62"),g=r("271c");function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e){var t=x(e,"string");return"symbol"==v(t)?t:t+""}function x(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var S={name:"index",mixins:[g["default"]],components:{MyButton:i["a"],MyTableV2:o["a"],edit:l["default"],myImport:d["default"],inventory:c["default"],detail:u["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"businessFormCode",label:"盘点单号",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"businessFormName",label:"任务名称",placeholder:"请输入",defaultValue:""},{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"warehouseId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"warehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"date-picker",dataIndex:"startTime",label:"盘点时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(f["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},inventorySetting:{title:"",id:"",orgId:"",show:!1},inventoryDetail:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+Object(p["f"])(),tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd()}}]},columns:[{title:"盘点单号",field:"businessFormCode",align:"center",width:130},{title:"任务名称",field:"businessFormName",align:"left",minWidth:140},{title:"盘点仓库",field:"warehouseName",align:"left",minWidth:130},{title:"盘点人",field:"operatorName",align:"center",width:120},{title:"监盘人",field:"operatorName2",align:"center",width:120},{title:"盘点时间",field:"inventoryDate",align:"center",width:160,formatter:function(e){return{value:e.inventoryDate?m["LongToDateTime"](e.inventoryDate):"-"}}},{title:"创建时间",field:"createTime",align:"center",width:160,formatter:function(e){return{value:m["LongToDateTime"](e.createTime)}}},{title:"状态",field:"states",align:"center",width:90,type:"primary",formatter:function(e){return{value:0==e.states?"未开始":1==e.states?"进行中":"已盘点",type:0==e.states?"danger":1==e.states?"success":"primary"}}}],operation:{show:!0,align:"left",width:"220",attr:[{title:"编辑",hidden:function(e){if(0!=e.states)return!0},events:function(t){e.showAudit(t)}},{title:"删除",hidden:function(e){if(0!=e.states)return!0},events:function(t){e.del(t)}},{title:"盘点",type:"success",hidden:function(e){if(0!=e.states)return!0},events:function(t){e.showInventory(t)}},{title:"继续盘点",type:"success",hidden:function(e){if(1!=e.states)return!0},events:function(t){e.showInventory(t)}},{title:"盘点详情",type:"info",hidden:function(e){if(2!=e.states)return!0},events:function(t){e.showInventoryDetail(t)}},{title:"生成盘点表",type:"primary",hidden:function(e){if(2!=e.states)return!0},events:function(t){e.handleExport("inventoryExport","盘点表-".concat(t.businessFormCode),{id:t.id})}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},computed:y({},Object(h["b"])(["userInfo"])),created:function(){},methods:{importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},del:function(e){var t=this;this.$modal.confirm("是否确认删除单号为:"+e.businessFormCode+" 的数据吗?").then((function(){Object(p["b"])({id:e.id}).then((function(e){t.$message.success("删除成功!"),t.search()}))})).catch((function(){}))},showAdd:function(){var e=this;Object(p["i"])().then((function(t){0==t?e.$message.warning("当前有未完成的盘点任务!"):-1==t?e.$message.warning("当前仓库无物品!"):(e.editSetting.id=null,e.editSetting.info=null,e.editSetting.title="新增",e.editSetting.show=!0)})).catch((function(){}))},showAudit:function(e){this.editSetting.id=e.id,this.editSetting.info=JSON.stringify(e),this.editSetting.title="编辑",this.editSetting.show=!0},showInventory:function(e){this.inventorySetting.id=e.id,this.inventorySetting.info=JSON.stringify(e),this.inventorySetting.title="盘点任务",this.inventorySetting.show=!0},showInventoryDetail:function(e){this.inventoryDetail.id=e.id,this.inventoryDetail.info=JSON.stringify(e),this.inventoryDetail.title="盘点详情",this.inventoryDetail.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()}}},O=S,k=r("2877"),C=Object(k["a"])(O,n,a,!1,null,"0661c544",null);t["default"]=C.exports},a6dc:function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r("b775");function a(e){return Object(n["a"])({url:"/system/menu/list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/system/menu/view/"+e,method:"get"})}function i(){return Object(n["a"])({url:"/system/menu/select/tree",method:"get"})}function s(e){return Object(n["a"])({url:"/system/menu/select/roleMenuTree/"+e,method:"get"})}function l(e){return Object(n["a"])({url:"/system/menu/add",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/system/menu/edit",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/system/menu/remove/"+e,method:"get"})}},a8c4:function(e,t,r){var n={"./views/components/myImport":"9960","./views/components/myImport.vue":"9960","./views/dashboard":"9406","./views/dashboard/":"9406","./views/dashboard/components/LBJETJ":"8638","./views/dashboard/components/LBJETJ.vue":"8638","./views/dashboard/components/LBSLTJ":"73f6","./views/dashboard/components/LBSLTJ.vue":"73f6","./views/dashboard/components/XYZC":"d472","./views/dashboard/components/XYZC.vue":"d472","./views/dashboard/index":"9406","./views/dashboard/index.vue":"9406","./views/dataV/components/batchPlan":"7ef5","./views/dataV/components/batchPlan.vue":"7ef5","./views/dataV/components/cityScore":"c434","./views/dataV/components/cityScore.vue":"c434","./views/dataV/components/dataProgress":"b882","./views/dataV/components/dataProgress.vue":"b882","./views/dataV/components/henan":"97d8","./views/dataV/components/henan.json":"97d8","./views/dataV/components/map":"701e","./views/dataV/components/map.vue":"701e","./views/dataV/components/projectList":"b3ea","./views/dataV/components/projectList.vue":"b3ea","./views/dataV/components/projectType":"fa8e","./views/dataV/components/projectType.vue":"fa8e","./views/dataV/components/projectYear":"e554","./views/dataV/components/projectYear.vue":"e554","./views/dataV/static":"134c","./views/dataV/static.vue":"134c","./views/departmentitem/itemdis/disDetails":"ee4e","./views/departmentitem/itemdis/disDetails/":"ee4e","./views/departmentitem/itemdis/disDetails/edit":"1013","./views/departmentitem/itemdis/disDetails/edit.vue":"1013","./views/departmentitem/itemdis/disDetails/index":"ee4e","./views/departmentitem/itemdis/disDetails/index.vue":"ee4e","./views/departmentitem/itemdis/distribution":"5e19","./views/departmentitem/itemdis/distribution/":"5e19","./views/departmentitem/itemdis/distribution/detail":"9205","./views/departmentitem/itemdis/distribution/detail.vue":"9205","./views/departmentitem/itemdis/distribution/edit":"9939","./views/departmentitem/itemdis/distribution/edit.vue":"9939","./views/departmentitem/itemdis/distribution/index":"5e19","./views/departmentitem/itemdis/distribution/index.vue":"5e19","./views/departmentitem/itemdis/distribution/uploadPage":"b277","./views/departmentitem/itemdis/distribution/uploadPage.vue":"b277","./views/departmentitem/itemret/retDetails":"0a8a","./views/departmentitem/itemret/retDetails/":"0a8a","./views/departmentitem/itemret/retDetails/index":"0a8a","./views/departmentitem/itemret/retDetails/index.vue":"0a8a","./views/departmentitem/itemret/returnNote":"cca1","./views/departmentitem/itemret/returnNote/":"cca1","./views/departmentitem/itemret/returnNote/detail":"f5fa","./views/departmentitem/itemret/returnNote/detail.vue":"f5fa","./views/departmentitem/itemret/returnNote/edit":"6afd","./views/departmentitem/itemret/returnNote/edit.vue":"6afd","./views/departmentitem/itemret/returnNote/index":"cca1","./views/departmentitem/itemret/returnNote/index.vue":"cca1","./views/departmentitem/itemscr/scrappDetails":"ccfe","./views/departmentitem/itemscr/scrappDetails/":"ccfe","./views/departmentitem/itemscr/scrappDetails/index":"ccfe","./views/departmentitem/itemscr/scrappDetails/index.vue":"ccfe","./views/departmentitem/itemscr/scrapping":"64f7","./views/departmentitem/itemscr/scrapping/":"64f7","./views/departmentitem/itemscr/scrapping/detail":"edd4","./views/departmentitem/itemscr/scrapping/detail.vue":"edd4","./views/departmentitem/itemscr/scrapping/edit":"e34e","./views/departmentitem/itemscr/scrapping/edit.vue":"e34e","./views/departmentitem/itemscr/scrapping/index":"64f7","./views/departmentitem/itemscr/scrapping/index.vue":"64f7","./views/departmentitem/ledgerquy/itemQuy":"1160","./views/departmentitem/ledgerquy/itemQuy/":"1160","./views/departmentitem/ledgerquy/itemQuy/index":"1160","./views/departmentitem/ledgerquy/itemQuy/index.vue":"1160","./views/departmentitem/ledgerquy/ledQuy":"1ee6","./views/departmentitem/ledgerquy/ledQuy/":"1ee6","./views/departmentitem/ledgerquy/ledQuy/index":"1ee6","./views/departmentitem/ledgerquy/ledQuy/index.vue":"1ee6","./views/error-log":"c273","./views/error-log/":"c273","./views/error-log/components/ErrorTestA":"ce2f","./views/error-log/components/ErrorTestA.vue":"ce2f","./views/error-log/components/ErrorTestB":"a1ba","./views/error-log/components/ErrorTestB.vue":"a1ba","./views/error-log/index":"c273","./views/error-log/index.vue":"c273","./views/error-page/401":"24e2","./views/error-page/401.vue":"24e2","./views/error-page/404":"1db4","./views/error-page/404.vue":"1db4","./views/foundation/classification":"f7a6","./views/foundation/classification/":"f7a6","./views/foundation/classification/edit":"de19","./views/foundation/classification/edit.vue":"de19","./views/foundation/classification/index":"f7a6","./views/foundation/classification/index.vue":"f7a6","./views/foundation/classification/items":"de37","./views/foundation/classification/items.js":"de37","./views/foundation/material":"c798","./views/foundation/material/":"c798","./views/foundation/material/edit":"0264","./views/foundation/material/edit.vue":"0264","./views/foundation/material/index":"c798","./views/foundation/material/index.vue":"c798","./views/foundation/material/specs/list":"c0cc","./views/foundation/material/specs/list.vue":"c0cc","./views/foundation/material/specs/specsAdd":"b31c","./views/foundation/material/specs/specsAdd.vue":"b31c","./views/foundation/store":"f1c5","./views/foundation/store/":"f1c5","./views/foundation/store/edit":"35f5","./views/foundation/store/edit.vue":"35f5","./views/foundation/store/index":"f1c5","./views/foundation/store/index.vue":"f1c5","./views/foundation/store/person":"5a2a","./views/foundation/store/person.vue":"5a2a","./views/login":"9ed6","./views/login/":"9ed6","./views/login/auth-redirect":"b829","./views/login/auth-redirect.vue":"b829","./views/login/bak-index":"f11b","./views/login/bak-index.vue":"f11b","./views/login/index":"9ed6","./views/login/index.vue":"9ed6","./views/login/mixins":"a387","./views/login/mixins.js":"a387","./views/login/resetPassword":"c02b","./views/login/resetPassword.vue":"c02b","./views/mixins/listPage":"271c","./views/mixins/listPage.js":"271c","./views/mixins/transfer":"822f","./views/mixins/transfer.js":"822f","./views/redirect":"ef3c","./views/redirect/":"ef3c","./views/redirect/index":"ef3c","./views/redirect/index.vue":"ef3c","./views/routerView":"f875","./views/routerView/":"f875","./views/routerView/index":"f875","./views/routerView/index.vue":"f875","./views/statisticalreport/itemReport":"a19c","./views/statisticalreport/itemReport/":"a19c","./views/statisticalreport/itemReport/index":"a19c","./views/statisticalreport/itemReport/index.vue":"a19c","./views/stock/accessStock/outbound":"904d","./views/stock/accessStock/outbound/":"904d","./views/stock/accessStock/outbound/detail":"9f01","./views/stock/accessStock/outbound/detail.vue":"9f01","./views/stock/accessStock/outbound/edit":"ae0b","./views/stock/accessStock/outbound/edit.vue":"ae0b","./views/stock/accessStock/outbound/index":"904d","./views/stock/accessStock/outbound/index.vue":"904d","./views/stock/accessStock/outboundDetails":"f282","./views/stock/accessStock/outboundDetails/":"f282","./views/stock/accessStock/outboundDetails/index":"f282","./views/stock/accessStock/outboundDetails/index.vue":"f282","./views/stock/index.scss":"f027","./views/stock/inventorycount/exceptionDetails":"17de","./views/stock/inventorycount/exceptionDetails/":"17de","./views/stock/inventorycount/exceptionDetails/index":"17de","./views/stock/inventorycount/exceptionDetails/index.vue":"17de","./views/stock/inventorycount/inventorytask":"a5c4","./views/stock/inventorycount/inventorytask/":"a5c4","./views/stock/inventorycount/inventorytask/detail":"af77","./views/stock/inventorycount/inventorytask/detail.vue":"af77","./views/stock/inventorycount/inventorytask/edit":"3ef9","./views/stock/inventorycount/inventorytask/edit.vue":"3ef9","./views/stock/inventorycount/inventorytask/index":"a5c4","./views/stock/inventorycount/inventorytask/index.vue":"a5c4","./views/stock/inventorycount/inventorytask/inventory":"d87c","./views/stock/inventorycount/inventorytask/inventory.vue":"d87c","./views/stock/ledger/alertQuery":"8a53","./views/stock/ledger/alertQuery/":"8a53","./views/stock/ledger/alertQuery/index":"8a53","./views/stock/ledger/alertQuery/index.vue":"8a53","./views/stock/ledger/inventoryAlert":"c4b0","./views/stock/ledger/inventoryAlert/":"c4b0","./views/stock/ledger/inventoryAlert/edit":"db8c","./views/stock/ledger/inventoryAlert/edit.vue":"db8c","./views/stock/ledger/inventoryAlert/index":"c4b0","./views/stock/ledger/inventoryAlert/index.vue":"c4b0","./views/stock/ledger/inventoryQuery":"1684","./views/stock/ledger/inventoryQuery/":"1684","./views/stock/ledger/inventoryQuery/index":"1684","./views/stock/ledger/inventoryQuery/index.vue":"1684","./views/stock/ledger/ledgerQuery":"c906","./views/stock/ledger/ledgerQuery/":"c906","./views/stock/ledger/ledgerQuery/index":"c906","./views/stock/ledger/ledgerQuery/index.vue":"c906","./views/stock/procure/purchaseOrder":"b59f","./views/stock/procure/purchaseOrder/":"b59f","./views/stock/procure/purchaseOrder/detail":"bee9","./views/stock/procure/purchaseOrder/detail.vue":"bee9","./views/stock/procure/purchaseOrder/edit":"6b6f","./views/stock/procure/purchaseOrder/edit.vue":"6b6f","./views/stock/procure/purchaseOrder/index":"b59f","./views/stock/procure/purchaseOrder/index.vue":"b59f","./views/stock/procure/receiptDetails":"3fe1","./views/stock/procure/receiptDetails/":"3fe1","./views/stock/procure/receiptDetails/index":"3fe1","./views/stock/procure/receiptDetails/index.vue":"3fe1","./views/stock/scrap/itemScrapping":"fcc8","./views/stock/scrap/itemScrapping/":"fcc8","./views/stock/scrap/itemScrapping/detail":"4512","./views/stock/scrap/itemScrapping/detail.vue":"4512","./views/stock/scrap/itemScrapping/edit":"54b9","./views/stock/scrap/itemScrapping/edit.vue":"54b9","./views/stock/scrap/itemScrapping/index":"fcc8","./views/stock/scrap/itemScrapping/index.vue":"fcc8","./views/stock/scrap/scrapDetails":"0b76","./views/stock/scrap/scrapDetails/":"0b76","./views/stock/scrap/scrapDetails/index":"0b76","./views/stock/scrap/scrapDetails/index.vue":"0b76","./views/stock/transfer/transferApplication":"ab05","./views/stock/transfer/transferApplication/":"ab05","./views/stock/transfer/transferApplication/detail":"31eb","./views/stock/transfer/transferApplication/detail.vue":"31eb","./views/stock/transfer/transferApplication/edit":"9dae","./views/stock/transfer/transferApplication/edit.vue":"9dae","./views/stock/transfer/transferApplication/index":"ab05","./views/stock/transfer/transferApplication/index.vue":"ab05","./views/stock/transfer/transferApplication/uploadPage":"4f6e","./views/stock/transfer/transferApplication/uploadPage.vue":"4f6e","./views/stock/transfer/transferdetails":"2ffd","./views/stock/transfer/transferdetails/":"2ffd","./views/stock/transfer/transferdetails/edit":"5010","./views/stock/transfer/transferdetails/edit.vue":"5010","./views/stock/transfer/transferdetails/index":"2ffd","./views/stock/transfer/transferdetails/index.vue":"2ffd","./views/stock/transfer/transferissue":"6409","./views/stock/transfer/transferissue/":"6409","./views/stock/transfer/transferissue/detail":"6df5","./views/stock/transfer/transferissue/detail.vue":"6df5","./views/stock/transfer/transferissue/index":"6409","./views/stock/transfer/transferissue/index.vue":"6409","./views/systemManger/org":"add3","./views/systemManger/org/":"add3","./views/systemManger/org/edit":"4791","./views/systemManger/org/edit.vue":"4791","./views/systemManger/org/index":"add3","./views/systemManger/org/index.vue":"add3","./views/systemManger/org/items":"6da8","./views/systemManger/org/items.js":"6da8","./views/systemManger/server/user":"43d4","./views/systemManger/server/user/":"43d4","./views/systemManger/server/user/edit":"145d","./views/systemManger/server/user/edit.vue":"145d","./views/systemManger/server/user/editRole":"2a3d","./views/systemManger/server/user/editRole.vue":"2a3d","./views/systemManger/server/user/index":"43d4","./views/systemManger/server/user/index.vue":"43d4","./views/systemManger/server/user/items":"169e","./views/systemManger/server/user/items.js":"169e","./views/systemSetting/department":"4391","./views/systemSetting/department/":"4391","./views/systemSetting/department/data":"6831","./views/systemSetting/department/data.vue":"6831","./views/systemSetting/department/edit":"9af9","./views/systemSetting/department/edit.vue":"9af9","./views/systemSetting/department/index":"4391","./views/systemSetting/department/index.vue":"4391","./views/systemSetting/dept":"4254","./views/systemSetting/dept/":"4254","./views/systemSetting/dept/index":"4254","./views/systemSetting/dept/index.vue":"4254","./views/systemSetting/dict":"eedf","./views/systemSetting/dict/":"eedf","./views/systemSetting/dict/data":"e58d","./views/systemSetting/dict/data.vue":"e58d","./views/systemSetting/dict/index":"eedf","./views/systemSetting/dict/index.vue":"eedf","./views/systemSetting/dict/items":"1022","./views/systemSetting/dict/items.js":"1022","./views/systemSetting/logs/loginLogs":"9e72","./views/systemSetting/logs/loginLogs.vue":"9e72","./views/systemSetting/menu":"2f04","./views/systemSetting/menu/":"2f04","./views/systemSetting/menu/index":"2f04","./views/systemSetting/menu/index.vue":"2f04","./views/systemSetting/role":"80bd","./views/systemSetting/role/":"80bd","./views/systemSetting/role/authUser":"6d63","./views/systemSetting/role/authUser.vue":"6d63","./views/systemSetting/role/index":"80bd","./views/systemSetting/role/index.vue":"80bd","./views/systemSetting/role/items":"592a","./views/systemSetting/role/items.js":"592a","./views/systemSetting/role/selectUser":"3f97","./views/systemSetting/role/selectUser.vue":"3f97","./views/systemSetting/user":"812e","./views/systemSetting/user/":"812e","./views/systemSetting/user/authRole":"5e16","./views/systemSetting/user/authRole.vue":"5e16","./views/systemSetting/user/index":"812e","./views/systemSetting/user/index.vue":"812e","./views/systemSetting/user/profile":"9d1a","./views/systemSetting/user/profile/":"9d1a","./views/systemSetting/user/profile/index":"9d1a","./views/systemSetting/user/profile/index.vue":"9d1a","./views/systemSetting/user/profile/resetPwd":"2359","./views/systemSetting/user/profile/resetPwd.vue":"2359","./views/systemSetting/user/profile/userInfo":"efd6","./views/systemSetting/user/profile/userInfo.vue":"efd6"};function a(e){var t=o(e);return r(t)}function o(e){var t=n[e];if(!(t+1)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return t}a.keys=function(){return Object.keys(n)},a.resolve=o,e.exports=a,a.id="a8c4"},aa3a:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return i})),r.d(t,"a",(function(){return s})),r.d(t,"f",(function(){return l})),r.d(t,"b",(function(){return c}));var n=r("b775");function a(e){return Object(n["a"])({url:"/system/dict/data/list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/system/dict/data/"+e,method:"get"})}function i(e){return Object(n["a"])({url:"/permit/dict/data/type/"+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/dict/add",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/system/dict/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/system/dict/data/remove/"+e,method:"get"})}},ab05:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{staticClass:"table-tool-bar",staticStyle:{"margin-bottom":"15px"}},[r("my-button",{attrs:{name:"调拨申请",icon:"el-icon-plus",site:"tools",size:"medium"},on:{click:e.handleAdd}})],1),e._v(" "),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:{"overflow-y":"auto",height:"calc(100vh - 352px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("调拨单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))]),e._v(" "),0==t.states&&null!=t.procureDoc?r("div",{staticClass:"states states-warning"},[e._v("待出库")]):e._e(),e._v(" "),0==t.states&&null==t.procureDoc?r("div",{staticClass:"states states-warning"},[e._v("待提交")]):e._e(),e._v(" "),1==t.states?r("div",{staticClass:"states states-warning"},[e._v("待接收")]):e._e(),e._v(" "),2==t.states?r("div",{staticClass:"states states-success"},[e._v("已接收")]):e._e(),e._v(" "),4==t.states?r("div",{staticClass:"states states-info"},[e._v("已撤销")]):e._e()]),e._v(" "),r("div",{staticClass:"card-header-right"},[1==t.states?r("el-button",{attrs:{site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleIncome(t)}}},[e._v("入库")]):e._e(),e._v(" "),0==t.states&&null==t.procureDoc?r("el-button",{attrs:{site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleExport("transferExport","调拨单-"+t.businessFormCode,{id:t.id,type:0})}}},[e._v("下载\n ")]):e._e(),e._v(" "),0==t.states&&null==t.procureDoc?r("el-button",{attrs:{site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleUploadPage(t)}}},[e._v("上传")]):e._e(),e._v(" "),0==t.states?r("el-button",{attrs:{site:"form",type:"danger",size:"mini"},on:{click:function(r){return e.handleRevoke(t)}}},[e._v("撤销")]):e._e(),e._v(" "),2==t.states?r("el-button",{attrs:{site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleExport("transferExport","调拨入库单-"+t.businessFormCode,{id:t.id,type:1})}}},[e._v("导出调拨入库单")]):e._e(),e._v(" "),r("el-button",{attrs:{name:"查看详情",site:"form",type:"info",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("查看详情")])],1)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("接收机构:")]),e._v(e._s(t.inAgencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("申请人:")]),e._v(e._s(t.operatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("申请调拨时间:")]),e._v(e._s(e._f("formatTime")(t.createTime))+"\n ")]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("接收时间:")]),e._v(e._s(e._f("formatTime")(t.inTime)))])]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨机构:")]),e._v(e._s(t.outAgencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨人:")]),e._v(e._s(t.outOperatorName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("调拨时间:")]),e._v(e._s(e._f("formatTime")(t.outputTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.fromTransferTemplateInfoList,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.goodsName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.count))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.uploadPageSetting.show?r("uploadPage",{ref:"uploadRef",attrs:{setting:e.uploadPageSetting},on:{close:function(t){e.uploadPageSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.editSetting.show?r("edit",{ref:"editRef",attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e()],1)},a=[],o=r("a083"),i=r("f6e8"),s=r("9960"),l=r("9dae"),c=r("31eb"),u=r("271c"),d=r("822f"),f=r("433d"),p=r("4f6e"),m=r("ac29"),h=r("dee4");function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=_(e,"string");return"symbol"==g(t)?t:t+""}function _(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var x={name:"index",mixins:[u["default"],d["default"]],components:{MyButton:i["a"],myImport:s["default"],edit:l["default"],detail:c["default"],uploadPage:p["default"]},data:function(){return{loading:!1,list:[],items:[{type:"text",dataIndex:"businessFormCode",label:"调拨单号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:f["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"states",label:"状态",placeholder:"请选择",defaultValue:"",options:[]},{type:"date-picker",dataIndex:"createTimeStart",label:"申请时间",defaultValue:""},{type:"date-picker",dataIndex:"createTimeEnd",label:"至",defaultValue:""},{type:"date-picker",dataIndex:"startTime",label:"接收时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],filterFrom:{}}},created:function(){var e=this;this.filterFrom={inAgencyId:this.userInfo.tenantId},this.fetchData(),this.items.map((function(t){return"状态"==t.label&&(t.options=e.statesOptions),t}))},methods:{fetchData:function(){var e=this;this.loading=!0,Object(o["g"])(b({pageNum:this.pageNum,pageSize:this.pageSize},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1}))},handleIncome:function(e){var t=this;this.$confirm("您确定 单号:".concat(e.businessFormCode," 接收入库吗?"),"接收入库",{beforeClose:function(r,n,a){"confirm"==r?(n.confirmButtonLoading=!0,n.confirmButtonText="执行中...",Object(o["c"])({id:e.id}).then((function(e){t.$message.success("接收入库成功!"),a(),n.confirmButtonLoading=!1,t.search(1)})).catch((function(){a()}))):a()}})},handleRevoke:function(e){var t=this;this.$confirm('您确定撤销单号为"'.concat(e.businessFormCode,'" 的数据吗?'),"撤销").then((function(){Object(o["i"])({id:e.id}).then((function(e){t.$message.success("撤销成功!"),t.search(1)}))}))},handleUploadPage:function(e){this.uploadPageSetting.id=e.id,this.uploadPageSetting.title="导入",this.uploadPageSetting.show=!0},handleExport:function(e,t,r){var n=this,a=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});m[e](r).then((function(e){console.log(e),Object(h["a"])(e),n.$message.success("导出成功!"),a.close()})).catch((function(){a.close()}))}}},S=x,O=(r("fe35"),r("2877")),k=Object(O["a"])(S,n,a,!1,null,"c637a10a",null);t["default"]=k.exports},ac29:function(e,t,r){"use strict";r.r(t),r.d(t,"outputExport",(function(){return a})),r.d(t,"procureExport",(function(){return o})),r.d(t,"transferExport",(function(){return i})),r.d(t,"inventoryExport",(function(){return s})),r.d(t,"scrappedExport",(function(){return l})),r.d(t,"deptScrappedExport",(function(){return c}));var n=r("b775");function a(e){return Object(n["a"])({url:"/pc/l/wh/form/output/list/export",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/pc/whForm/procure/list/export",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/pc/l/wh/form/transfer/list/export",method:"get",params:e})}function s(e){return Object(n["a"])({url:"/pc/l/wh/form/inventory/list/export",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/list/export",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/pc/l/wh/form/scrapped/deptList/export",method:"get",params:e})}},add3:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-card",{staticStyle:{width:"240px","margin-right":"15px"},attrs:{shadow:"never"}},[r("my-tree",{ref:"searchTree",attrs:{"tree-list":e.treeDataList},on:{setNode:e.nodeClick,search:e.search}})],1),e._v(" "),r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.search}}):e._e()],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("befe"),i=r("80cb"),s=r("f6e8"),l=r("433d"),c=r("6da8"),u=r("4791"),d=r("6ec5"),f=r("9960"),p=r("dee4"),m={name:"index",components:{MyButton:s["a"],MyTableV2:i["a"],edit:u["default"],myTree:o["a"],myImport:f["default"]},data:function(){var e=this;return{items:c["default"],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(p["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:l["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate?type=tenant"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:l["a"].apiBaseURL+"/pc/fin/sys/tenant/select/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd(null)}},{name:"机构导入",click:function(){e.importOrg()}}]},columns:[{title:"编号",field:"code",align:"center",width:"150px"},{title:"机构名称",field:"name",align:"left"},{title:"层级",field:"lv",align:"center",width:"80px"},{title:"顺序号",field:"lv",align:"center",width:"80px"},{title:"备注",field:"summary",align:"left",width:"150px"},{field:"belongProvince",title:"状态",align:"center",width:100,switch:function(t){var r={};return 1==t.status?Object.assign(r,{value:!0,label:"是",click:function(){e.updState(t)}}):Object.assign(r,{value:!1,label:"否",click:function(){e.updState(t)}}),r}}],operation:{show:!0,width:"150",attr:[{title:"编辑",events:function(t){e.showAudit(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){this.initTreeData()},methods:{importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},initTreeData:function(){var e=this;d["l"]().then((function(t){var r=t||[];e.treeDataList.splice(0,e.treeDataList.length),e.treeDataList=r,r.length>0&&(e.importSetting.fileSettings.data={pid:r[0].id})}))},updState:function(e){var t=this,r=0==e.status?"启用":"禁用";t.$modal.confirm("确认要"+r+'"'+e.name+'"吗?').then((function(){var n=Object.assign({},e);n.status=1==e.status?0:1,n.isOnlyState="1",d["h"](n).then((function(n){n&&(e.status=1===e.status?0:1,t.$modal.msgSuccess(r+"成功"),t.search())}))}))},del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.name+'"的机构吗?').then((function(){d["e"]({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},showAdd:function(){this.editSetting.orgId?(this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0):this.$message.warning("请先选择左侧机构")},showAudit:function(e){this.editSetting.id=e.id,this.editSetting.info=JSON.stringify(e),this.editSetting.title="编辑",this.editSetting.show=!0},nodeClick:function(e){e=e||{},this.p=Object.assign({},{id:e.id,name:e.name}),void 0!=this.p.id&&null!=this.p.id?(this.filterFrom.tenantId=this.p.id,this.editSetting.orgId=this.p.id):(this.filterFrom.tenantId=null,this.editSetting.orgId=null),this.importSetting.fileSettings.data={pid:e.id},this.search(1)},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},h=m,g=r("2877"),v=Object(g["a"])(h,n,a,!1,null,"1dfcb06f",null);t["default"]=v.exports},ae0b:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-edit",attrs:{title:e.setting.title+"出库",width:"800px"},on:{close:e.close}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"ruleForm",staticClass:"form",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[r("div",{staticClass:"main-w"},[r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"出库仓库",prop:"warehouseId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.formData.warehouseId,callback:function(t){e.$set(e.formData,"warehouseId",t)},expression:"formData.warehouseId"}},e._l(e.warehouseOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.warehouseName,value:e.id}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"出库时间",prop:"dealTime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",clearable:"",value:"yyyy-MM-dd HH:mm:ss","value-format":"yyyyMMddHHmmss",placeholder:"请选择日期"},model:{value:e.formData.dealTime,callback:function(t){e.$set(e.formData,"dealTime",t)},expression:"formData.dealTime"}})],1)],1)],1),e._v(" "),r("el-row",{staticClass:"headerHeight",attrs:{gutter:24}},[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:"出库手续",prop:"doc"}},[r("upload",{ref:"uploadRef",attrs:{settings:e.uploadSettings},on:{"on-change":e.uploadChange}})],1)],1)],1),e._v(" "),e._l(e.formData.goods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品分类",prop:"goods."+n+".baseCategoryId",rules:{required:!0,message:"请选择",trigger:"change"}}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.categoryOptions,placeholder:"请选择物品分类",props:{value:"id",emitPath:!1},"show-all-levels":!1,filterable:"",clearable:""},on:{change:function(t){return e.categoryChange(t,n)}},model:{value:t.baseCategoryId,callback:function(r){e.$set(t,"baseCategoryId",r)},expression:"goodsItem.baseCategoryId"}})],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"物品名称",prop:"goods."+n+".baseGoodsTemplateId",rules:e.rules.baseGoodsTemplateId}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.baseCategoryId?"请选择物品":"请先选择物品分类",filterable:"",clearable:"",disabled:!t.baseCategoryId},on:{change:function(t){return e.goodsTemplateChange(t,n)}},model:{value:t.baseGoodsTemplateId,callback:function(r){e.$set(t,"baseGoodsTemplateId",r)},expression:"goodsItem.baseGoodsTemplateId"}},e._l(t.goodsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.goodsName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"规格型号",prop:"goods."+n+".modelsIds",rules:{required:!0,message:"请选择规格型号",trigger:"change"}}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",clearable:"",placeholder:t.baseGoodsTemplateId?"请选择规格型号":"请先选择物品名称",disabled:!t.baseGoodsTemplateId},on:{change:function(t){return e.modelChange(t,n)},"remove-tag":function(t){return e.modelRemoveTag(t,n)},clear:function(t){return e.modelRemoveTag(-1,n)}},model:{value:t.modelsIds,callback:function(r){e.$set(t,"modelsIds",r)},expression:"goodsItem.modelsIds"}},e._l(t.modelsOptions,(function(e){return r("el-option",{key:e.id,attrs:{label:e.modelName,value:e.id}})})),1)],1)],1)],1),e._v(" "),r("el-table",{attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsId",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.getGoodsModelsName(t.row.baseGoodsModelsId))+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"现有库存",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.worehouseCount)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"出库数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-form-item",{attrs:{"label-width":"0",prop:"goods."+n+".models."+t.$index+".counts",rules:e.rules.counts}},[r("el-input",{attrs:{type:"number"},on:{change:function(r){return e.countsChange(r,n,t.$index)}},model:{value:t.row.counts,callback:function(r){e.$set(t.row,"counts",r)},expression:"scope.row.counts"}})],1)]}}],null,!0)})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.formData.goods.length>1?r("el-button",{attrs:{name:"移除",type:"danger",plain:"",size:"mini"},on:{click:function(t){return e.removeGoods(n)}}},[e._v("移除")]):e._e(),e._v(" "),e.formData.goods.length-1==n?r("el-button",{attrs:{name:"新增物品",type:"primary",plain:"",size:"mini"},on:{click:e.addGoods}},[e._v("新增物品")]):e._e()],1)],1)}))],2)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("el-button",{attrs:{name:"保存",type:"primary",size:"medium",loading:e.btnloading},on:{click:e.handleSubmit}},[e._v("保存")])],1)],1)},a=[],o=r("6ec5"),i=r("efdb"),s=r("c56b"),l=r("f6e8"),c=r("f76d"),u=r("decf"),d=r("dee4"),f=r("2f62"),p=r("6f7e");function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=b(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function g(e){return w(e)||y(e)||b(e)||v()}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function w(e){if(Array.isArray(e))return _(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new L(n||[]);return a(i,"_invoke",{value:j(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",v={};function b(){}function y(){}function w(){}var _={};c(_,i,(function(){return this}));var S=Object.getPrototypeOf,O=S&&S(S(P([])));O&&O!==r&&n.call(O,i)&&(_=O);var k=w.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(a,o,i,s){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==m(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,r,n){var a=f;return function(o,i){if(a===h)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var l=T(s,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=h;var c=d(t,r,n);if("normal"===c.type){if(a=n.done?g:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=g,n.method="throw",n.arg=c.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=d(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(m(t)+" is not iterable")}return y.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(I.prototype),c(I.prototype,s,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new I(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;D(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function S(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){S(o,n,a,i,s,"next",e)}function s(e){S(o,n,a,i,s,"throw",e)}i(void 0)}))}}function k(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 C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=T(e,"string");return"symbol"==m(t)?t:t+""}function T(e,t){if("object"!=m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N={components:{MyButton:l["a"],winMd:c["a"],upload:u["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this,t=function(t,r,n){if(!r)return n(new Error("请选择"));var a=e.formData.goods.filter((function(e){return e.baseGoodsTemplateId==r}));if(!a||1!=a.length)return n(new Error("已选过此物品"));n()};return{loading:!0,btnloading:!1,warehouseOptions:[],categoryOptions:[],modelList:[],formData:{warehouseId:"",dealTime:p["formatDate"](new Date,"yyyyMMddhhmmss"),doc:"",goods:[]},goodsItem:{baseCategoryIds:"",baseCategoryId:"",baseGoodsTemplateId:"",goodsTemplateName:"",goodsOptions:[],modelsOptions:[],models:[],modelsIds:[]},modelsItem:{baseGoodsModelsId:"",worehouseCount:0,counts:null,unit:null,totalAmount:0},rules:{warehouseId:[{required:!0,message:"请选择仓库",trigger:"change"}],dealTime:[{required:!0,message:"请选择时间",trigger:"change"}],doc:[{required:!0,message:"请上传审批手续",trigger:"change"}],baseCategoryId:[{required:!0,message:"请选择物品分类",trigger:"change"}],baseGoodsTemplateId:[{required:!0,message:"请选择物品",trigger:"change"},{validator:t,trigger:["blur","change"]}],modelsIds:[{required:!0,message:"请选择规格型号",trigger:"change"}],counts:[{required:!0,message:"请输入",trigger:"change"}]},uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(d["d"])(),multiple:!0,disabled:!1}}},computed:C({},Object(f["b"])(["userInfo"])),created:function(){this.init()},methods:{init:function(){var e=O(x().mark((function e(){var t;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getWarehouseList();case 2:return e.next=4,this.getgoodsTemplate();case 4:return e.next=6,this.getgoodsModel();case 6:return e.next=8,Object(s["b"])();case 8:t=e.sent,this.categoryOptions=this.removeEmptyChildren(t),this.loading=!1;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getWarehouseList:function(){var e=O(x().mark((function e(){var t=this;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["p"])({agencyId:this.userInfo.tenantId}).then((function(e){t.warehouseOptions=e,e.length&&t.formData.goods.push(JSON.parse(JSON.stringify(t.goodsItem))),t.warehouseOptions.length&&!t.formData.warehouseId&&(t.formData.warehouseId=t.warehouseOptions[0].id)})).catch((function(e){console.log("err",e)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),removeEmptyChildren:function(e){var t=this;return e.forEach((function(e){e.children&&e.children.length?t.removeEmptyChildren(e.children):delete e.children})),e},getgoodsTemplate:function(){var e=O(x().mark((function e(t,r){var n=this;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["n"])({agencyId:this.userInfo.tenantId,categoryId:t||""}).then((function(e){r||0==r?n.$set(n.formData.goods[r],"goodsOptions",e):n.goodsTemplatelAll=e}));case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getgoodsModel:function(){var e=O(x().mark((function e(t,r){var n=this;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["m"])({goodsTemplatesId:t||""}).then((function(e){r||0==r?n.$set(n.formData.goods[r],"modelsOptions",e):n.goodsModelAll=e}));case 2:case"end":return e.stop()}}),e)})));function t(t,r){return e.apply(this,arguments)}return t}(),getGoodsTemplateName:function(e){var t=this.goodsTemplatelAll.find((function(t){return t.id==e}));if(t)return t.goodsName},getGoodsModelsName:function(e){var t=this.goodsModelAll.find((function(t){return t.id==e}));if(t)return t.modelName},categoryChange:function(e,t){this.formData.goods[t].goodsOptions=[],this.formData.goods[t].baseGoodsTemplateId="",this.formData.goods[t].goodsTemplateName="",this.formData.goods[t].modelsOptions=[],this.formData.goods[t].modelsIds=[],this.formData.goods[t].models=[],this.getgoodsTemplate(e,t)},goodsTemplateChange:function(e,t){this.formData.goods[t].modelsOptions=[],this.formData.goods[t].modelsIds=[],this.formData.goods[t].models=[],this.formData.goods[t].goodsTemplateName=this.getGoodsTemplateName(e),this.getgoodsModel(e,t)},modelChange:function(){var e=O(x().mark((function e(t,r){var n,a,i,s,l,c=this;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=g(this.formData.goods[r].models),a=JSON.stringify(n),i=h(t),e.prev=3,l=x().mark((function e(){var t,r,i;return x().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=s.value,-1!=a.indexOf(t)){e.next=7;break}return r=c.goodsModelAll.find((function(e){return e.id==t})),e.next=5,Object(o["s"])({warehouseId:c.formData.warehouseId,baseGoodsModelsId:t,states:1,buyType:null});case 5:i=e.sent,n.push(C(C({},c.modelsItem),{},{baseGoodsModelsId:t,unit:r.unit,worehouseCount:i}));case 7:case"end":return e.stop()}}),e)})),i.s();case 6:if((s=i.n()).done){e.next=10;break}return e.delegateYield(l(),"t0",8);case 8:e.next=6;break;case 10:e.next=15;break;case 12:e.prev=12,e.t1=e["catch"](3),i.e(e.t1);case 15:return e.prev=15,i.f(),e.finish(15);case 18:this.formData.goods[r].models=n;case 19:case"end":return e.stop()}}),e,this,[[3,12,15,18]])})));function t(t,r){return e.apply(this,arguments)}return t}(),modelRemoveTag:function(e,t){if(-1!==e){var r=this.formData.goods[t].models,n=r.findIndex((function(t){return t.baseGoodsModelsId==e}));this.formData.goods[t].models.splice(n,1)}else this.formData.goods[t].models=[]},uploadChange:function(){var e=this.$refs.uploadRef.fileList;this.formData.doc=JSON.stringify(e)},addGoods:function(){this.formData.goods.push(JSON.parse(JSON.stringify(this.goodsItem)))},removeGoods:function(e){this.formData.goods.splice(e,1)},countsChange:function(e,t,r){var n=this.formData.goods[t].models[r],a=n.worehouseCount;0==e&&(this.$message.warning("数额不能为0"),n.counts=null),e>a&&(this.$message.warning("数额超过现有库存"),n.counts=a>0?a:null)},handleSubmit:function(){var e=this;this.$refs["ruleForm"].validate((function(t){if(t){if(e.loading)return;e.loading=!0,e.btnloading=!0,console.log("this.formData",e.formData),Object(i["a"])(e.formData).then((function(t){e.$message.success("保存成功!"),e.btnloading=!1,e.loading=!1,e.close(),e.$emit("search")})).catch((function(t){console.log("edit err",t),e.btnloading=!1,e.loading=!1,e.$message.error("保存失败")}))}else e.$message.error("校验未通过,请检查。"),e.btnloading=!1}))},close:function(){this.formData={warehouseId:"",dealTime:"",goods:[]},this.$emit("close")}}},D=N,L=(r("0bcb"),r("2877")),P=Object(L["a"])(D,n,a,!1,null,"28fdcaf6",null);t["default"]=P.exports},af77:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{attrs:{title:e.setting.title,width:"1200px"},on:{close:e.close}},[r("el-row",{staticStyle:{"margin-bottom":"20px"},attrs:{gutter:20,type:"flex",align:"middle"}},[r("el-col",{attrs:{span:6}},[e._v("盘点单号:"+e._s(e.formData.businessFormCode))]),e._v(" "),r("el-col",{attrs:{span:6}},[e._v("盘点任务:"+e._s(e.formData.businessFormName))]),e._v(" "),r("el-col",{attrs:{span:6}},[e._v("盘点仓库:"+e._s(e.formData.warehouseName))])],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"the-table",attrs:{data:e.formData.formInventoryGoodsList,height:"500",stripe:!0}},[r("el-table-column",{attrs:{prop:"goodsTemplateName",label:"物品名称"}}),e._v(" "),r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"型号",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"inventoryCount",label:"应盘数量",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"realNum",label:"实盘数量",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"status",label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v("\n "+e._s(e._f("typeName")(r.status))+"\n ")]}}])})],1)],1)},a=[],o=r("f76d"),i=r("f6e8"),s=r("806c"),l={components:{winMd:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!1,formData:{businessFormCode:"2023080812",businessFormName:"2023年9月盘点单",warehouseName:"开封市仓库",formInventoryGoodsList:[]}}},filters:{typeName:function(e){switch(e){case 1:return"正常";case 2:return"盘盈";case 3:return"盘亏";default:return""}}},created:function(){var e=this;Object(s["c"])({id:this.setting.id}).then((function(t){e.formData=t}))},methods:{close:function(){this.$emit("close")},save:function(){}}},c=l,u=r("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},b03a:function(e,t,r){},b047:function(e,t,r){var n=r("1a8c"),a=r("408c"),o=r("b4b0"),i="Expected a function",s=Math.max,l=Math.min;function c(e,t,r){var c,u,d,f,p,m,h=0,g=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(i);function y(t){var r=c,n=u;return c=u=void 0,h=t,f=e.apply(n,r),f}function w(e){return h=e,p=setTimeout(S,t),g?y(e):f}function _(e){var r=e-m,n=e-h,a=t-r;return v?l(a,d-n):a}function x(e){var r=e-m,n=e-h;return void 0===m||r>=t||r<0||v&&n>=d}function S(){var e=a();if(x(e))return O(e);p=setTimeout(S,_(e))}function O(e){return p=void 0,b&&c?y(e):(c=u=void 0,f)}function k(){void 0!==p&&clearTimeout(p),h=0,c=m=u=p=void 0}function C(){return void 0===p?f:O(a())}function I(){var e=a(),r=x(e);if(c=arguments,u=this,m=e,r){if(void 0===p)return w(m);if(v)return clearTimeout(p),p=setTimeout(S,t),y(m)}return void 0===p&&(p=setTimeout(S,t)),f}return t=o(t)||0,n(r)&&(g=!!r.leading,v="maxWait"in r,d=v?s(o(r.maxWait)||0,t):d,b="trailing"in r?!!r.trailing:b),I.cancel=k,I.flush=C,I}e.exports=c},b08c:function(e,t,r){"use strict";r("db9e")},b277:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:"导入分发单文件",width:"800px",loading:e.loading},on:{close:e.close}},[r("upload",{ref:"uploadRef",attrs:{values:e.fileList,settings:e.uploadSettings},on:{"on-change":e.uploadChange}}),e._v(" "),r("el-button",{staticStyle:{float:"right","margin-right":"50px","margin-top":"20px"},attrs:{name:"确定分发",site:"form",type:"primary",size:"mini"},on:{click:function(t){return e.distribute()}}},[e._v("\n 确定分发\n ")])],1)},a=[],o=r("f76d"),i=r("6f7e"),s=r("dee4"),l=r("c82c"),c=r.n(l),u=(r("0808"),r("dcec")),d=r("decf"),f=r("a083"),p=null,m={computed:{de:function(){return u["a"]}},components:{winMd:o["a"],upload:d["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{procureDoc:"",uploadSettings:{title:"上传",max:20,num:10,tip:"",uploadUrl:Object(s["d"])(),multiple:!0,disabled:!1},loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(e){return e?i["LongToDateTime"](e):"-"},formatPrice:function(e){return e/100}},created:function(){this.loading=!1,this.fileList=[]},methods:{initPreviewImg:function(){null!=p&&p.destroy();var e=document.querySelector("#uploadPreviewImages");p=new c.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}p.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(s["c"])()+e},close:function(){this.$emit("close")},uploadChange:function(){var e=this.$refs.uploadRef.fileList,t=JSON.stringify(e);console.log(t),this.procureDoc=t;var r=this.setting.id;console.log(r)},distribute:function(){var e=this,t=this.setting.id,r=this.procureDoc;if(null!=t&&""!==r){var n=i["formatDate"](new Date,"yyyyMMddhhmmss");Object(f["f"])({idStr:t,procureDoc:r,opTime:n,type:"1"}).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(t){e.loading=!1,console.log("edit err",t),e.$message.error("保存失败")}))}else this.$message.error("请上传图片!")}}},h=m,g=(r("7b1d"),r("2877")),v=Object(g["a"])(h,n,a,!1,null,"1c8bd289",null);t["default"]=v.exports},b2f5:function(e,t,r){},b31c:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{attrs:{title:"新增规格型号",width:"500px",loading:e.loading},on:{close:e.close}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"型号名称",prop:"modelName"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入型号名称",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.modelName,callback:function(t){e.$set(e.formData,"modelName",t)},expression:"formData.modelName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"单位",prop:"unit"}},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入单位",clearable:"",maxlength:"20","show-word-limit":""},model:{value:e.formData.unit,callback:function(t){e.$set(e.formData,"unit",t)},expression:"formData.unit"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:"states"}},[r("el-radio-group",{model:{value:e.formData.states,callback:function(t){e.$set(e.formData,"states",t)},expression:"formData.states"}},[r("el-radio",{attrs:{label:1,border:""}},[e._v("启用")]),e._v(" "),r("el-radio",{attrs:{label:0,border:""}},[e._v("禁用")])],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}}),e._v(" "),r("my-button",{attrs:{name:"保存",site:"form"},on:{click:e.save}})],1)],1)},a=[],o=r("f76d"),i=r("f6e8"),s=r("2f62"),l=r("f596");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}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 d(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){f(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}function f(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=m(e,"string");return"symbol"==c(t)?t:t+""}function m(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h={name:"specsAdd",components:{winMd:o["a"],myButton:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!1,formData:{goodsTemplatesId:"",modelName:"",unit:"",states:1},rules:{modelName:[{required:!0,message:"请输入型号名称",trigger:"blur"}],unit:[{required:!0,message:"请输入单位",trigger:"blur"}]}}},computed:d({},Object(s["b"])(["userInfo"])),created:function(){},methods:{close:function(){this.$emit("close")},save:function(){var e=this;this.$refs.ruleForm.validate((function(t){if(t){var r=Object.assign({},e.formData);if(r.goodsTemplatesId=e.setting.goodsTemplatesId,e.loading)return;e.loading=!0,Object(l["b"])(r).then((function(t){e.loading=!1,e.$message.success("保存成功!"),e.close(),e.$emit("search")})).catch((function(){e.loading=!1}))}else e.$message.error("校验未通过,请检查。")}))}}},g=h,v=r("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},b3ea:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"the-table",attrs:{data:e.tableData,height:"100%",stripe:!0}},[r("el-table-column",{attrs:{prop:"projectName",label:"项目名称",width:"200"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time1",label:"批复时间",width:"80",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"建设单位"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time2",label:"项目开工",width:"95",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time3",label:"初步验收",width:"95",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time4",label:"竣工验收",width:"95",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time5",label:"决算批复",width:"95",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"time6",label:"预计完工",width:"95",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"unit",label:"进度现状",align:"center",width:"95"}})],1)},a=[],o=r("51ef"),i={data:function(){return{loading:!0,tableData:[{projectName:"洛阳邮件处理中心工程",time1:"2022",unit:"郑州",time2:"2021.08.30",time3:"2021.08.30",time4:"2021.08.30",time5:"2021.08.30",time6:"2021.08.30"}]}},created:function(){var e=this;o["a"].queryProjectList().then((function(t){console.log("aaa",t),e.loading=!1}))}},s=i,l=(r("8311"),r("2877")),c=Object(l["a"])(s,n,a,!1,null,"9cb14cf8",null);t["default"]=c.exports},b4b0:function(e,t,r){var n=r("8d74"),a=r("1a8c"),o=r("ffd6"),i=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(o(e))return i;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):s.test(e)?i:+e}e.exports=d},b59f:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container stock-container"},[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("div",{staticClass:"table-tool-bar",staticStyle:{"margin-bottom":"15px"}},[r("my-button",{attrs:{name:"新增",site:"tools",size:"medium"},on:{click:e.handleAdd}}),e._v(" "),r("my-button",{attrs:{name:"导入",site:"tools",size:"medium"},on:{click:function(t){return e.openImport()}}})],1),e._v(" "),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"margin-bottom":"15px"}},[r("div",{style:{"overflow-y":"auto",height:"calc(100vh - 352px)"}},[e.list.length?r("el-row",{staticClass:"card",attrs:{gutter:5}},e._l(e.list,(function(t,n){return r("el-col",{key:n,staticClass:"cm-item"},[r("el-card",{staticClass:"card-data"},[r("div",{staticClass:"card-container"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"card-header-left"},[r("span",[e._v("入库单号:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.businessFormCode))]),e._v(" "),r("div",{staticClass:"states",class:1==t.states?"":"states-success"},[e._v("\n "+e._s(1==t.states?"待入库":"已入库")+"\n ")])]),e._v(" "),r("div",{staticClass:"card-header-right"},[1==t.states?[r("el-button",{attrs:{name:"编辑",site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleEdit(t)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{name:"入库",site:"form",type:"primary",size:"mini"},on:{click:function(r){return e.handleIncome(t)}}},[e._v("入库")]),e._v(" "),r("el-button",{attrs:{name:"删除",site:"form",type:"danger",size:"mini"},on:{click:function(r){return e.del(t)}}},[e._v("删除")])]:e._e(),e._v(" "),1!=t.states?[r("el-button",{attrs:{site:"form",type:"success",size:"mini"},on:{click:function(r){return e.handleExport("procureExport","采购入库单-"+t.businessFormCode,{id:t.id})}}},[e._v("导出入库单")])]:e._e(),e._v(" "),r("el-button",{attrs:{name:"查看详情",site:"form",type:"info",size:"mini"},on:{click:function(r){return e.handleDetail(t)}}},[e._v("查看详情")])],2)]),e._v(" "),r("div",{staticClass:"one-hed"},[r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("机构:")]),e._v(e._s(t.agencyName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("操作人:")]),e._v(e._s(t.buyerName))]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("采购时间:")]),e._v(e._s(e._f("formatTime")(t.procureTime))+"\n ")]),e._v(" "),r("div",{staticClass:"box"},[r("span",{staticClass:"span-two"},[e._v("入库时间:")]),e._v(e._s(e._f("formatTime")(t.incomeTime))+"\n ")])]),e._v(" "),r("div",{staticClass:"card-end"},e._l(t.fromProcureTemplateInfoList,(function(t,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"name"},[e._v(e._s(t.goodsTemplateName))]),e._v(" "),r("div",{staticClass:"value-box"},[r("div",{staticClass:"value-box-item"},[r("span",{staticClass:"label"},[e._v("数量:")]),e._v(" "),r("span",{staticClass:"value"},[e._v(e._s(t.count))]),e._v(" "),r("span",{staticClass:"unit"},[e._v(e._s(t.unit))])])])])})),0)])])],1)})),1):r("el-empty",{attrs:{description:"暂无数据"}})],1)]),e._v(" "),r("el-pagination",{attrs:{small:!1,"current-page":e.pageNum,"page-sizes":[5,10,20,50,100,200,300,400,500],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{ref:"editRef",attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.refreshData}}):e._e(),e._v(" "),e.detailSetting.show?r("detail",{ref:"detailRef",attrs:{setting:e.detailSetting},on:{close:function(t){e.detailSetting.show=!1}}}):e._e(),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("5688"),i=r("f6e8"),s=r("433d"),l=r("9960"),c=r("6b6f"),u=r("bee9"),d=r("dee4"),f=r("271c");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=b(e,"string");return"symbol"==p(t)?t:t+""}function b(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={name:"index",mixins:[f["default"]],components:{MyButton:i["a"],myImport:l["default"],edit:c["default"],detail:u["default"]},data:function(){return{loading:!1,adddialog:!1,list:[],items:[{type:"text",dataIndex:"businessFormCode",label:"入库单号",placeholder:"请输入",defaultValue:""},{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null},cascader:[{key:"goodsTemplateId",queryKey:"agencyId"}],defaultValue:"",options:[]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"text",dataIndex:"createName",label:"创建人",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"states",label:"状态",placeholder:"请选择",defaultValue:"",options:[{label:"全部",value:""},{label:"待入库",value:"1"},{label:"已入库",value:"2"}]},{type:"date-picker",dataIndex:"startTime",label:"入库时间",defaultValue:""},{type:"date-picker",dataIndex:"endTime",label:"至",defaultValue:""}],treeDataList:[],importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(d["b"])()+"/pc/whForm/procure/import",accept:".xls",type:"text",loading:!0},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate?type=procure"},onSuccess:null}}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.loading=!0,Object(o["h"])(h({pageNum:this.pageNum,pageSize:this.pageSize},this.filterFrom)).then((function(t){e.list=t.datas,e.total=t.totalRows,e.loading=!1}))},importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},handleIncome:function(e){var t=this;this.$confirm("您确定 单号:".concat(e.businessFormCode," 入库吗?"),"采购入库",{beforeClose:function(r,n,a){"confirm"==r?(n.confirmButtonLoading=!0,n.confirmButtonText="执行中...",Object(o["g"])({id:e.id}).then((function(e){t.$message.success("入库成功!"),a(),n.confirmButtonLoading=!1,t.search()})).catch((function(){a()}))):a()}})},del:function(e){var t=this;this.$modal.confirm('是否确认删除入库单号为"'+e.businessFormCode+'"的数据吗?').then((function(){Object(o["d"])({id:e.id}).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))}))},openImport:function(){this.importOrg()}}},w=y,_=(r("2528"),r("2877")),x=Object(_["a"])(w,n,a,!1,null,"4fbf0352",null);t["default"]=x.exports},b829:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div")},a=[],o={name:"AuthRedirect",created:function(){var e=window.location.search.slice(1);window.localStorage&&(window.localStorage.setItem("x-admin-oauth-code",e),window.close())},render:function(e){return e()}},i=o,s=r("2877"),l=Object(s["a"])(i,n,a,!1,null,null,null);t["default"]=l.exports},b882:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"progress-box",style:{height:e.strokeWidth+"px"}},[e.showBlock?r("div",{staticClass:"the-block",style:{left:e.percentage+"%",width:e.strokeWidth+2+"px",height:e.strokeWidth+2+"px"}}):e._e(),e._v(" "),r("div",{staticClass:"bar",style:{background:e.color,width:e.percentage+"%"}})])},a=[],o={props:{color:{type:String,default:"#000"},percentage:{type:Number,default:100},strokeWidth:{type:Number,default:10},showBlock:{type:Boolean,default:!1}}},i=o,s=(r("8bea"),r("2877")),l=Object(s["a"])(i,n,a,!1,null,"0080125c",null);t["default"]=l.exports},ba51:function(e,t,r){},bcdf:function(e,t){function r(){}e.exports=r},bee9:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{staticClass:"stock-detail",attrs:{title:e.setting.title,width:"800px",loading:e.loading},on:{close:e.close}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("入库单号:")]),e._v(" "),r("span",[e._v(e._s(e.detail.businessFormCode))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("入库仓库:")]),e._v(" "),r("span",[e._v(e._s(e.detail.warehouseName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("所属机构:")]),e._v(" "),r("span",[e._v(e._s(e.detail.agencyName))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("状态:")]),e._v(" "),r("span",[e._v(e._s(1==e.detail.states?"待入库":"已入库"))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("创建人:")]),e._v(" "),r("span",[e._v(e._s(e.detail.buyerName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("入库时间:")]),e._v(" "),r("span",[e._v(e._s(e._f("formatTime")(e.detail.incomeTime)))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:12}},[r("span",[e._v("采购类型:")]),e._v(" "),r("span",[e._v(e._s(1==e.detail.buyType?"集采":"自采"))])])],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[r("el-col",{staticClass:"img-row",attrs:{span:24}},[r("span",[e._v("采购手续照片:")]),e._v(" "),e._l(e.fileList,(function(t,n){return r("div",{key:n,staticClass:"img-box",on:{click:function(r){return e.handlePreview(t)}}},[r("img",{staticClass:"img",attrs:{src:e.getUrl(t.path),alt:""}})])}))],2)],1),e._v(" "),e._l(e.detail.procureGoods,(function(t,n){return r("div",{key:n,staticClass:"goods-card"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:8}},[r("span",[e._v("物品分类:")]),e._v(" "),r("span",[e._v(e._s(t.baseCategoryName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("物品名称:")]),e._v(" "),r("span",[e._v(e._s(t.goodsTemplateName))])]),e._v(" "),r("el-col",{attrs:{span:8}},[r("span",[e._v("供货商:")]),e._v(" "),r("span",[e._v(e._s(t.supplier))])])],1),e._v(" "),r("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.models,stripe:!0}},[r("el-table-column",{attrs:{prop:"baseGoodsModelsName",label:"规格型号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.baseGoodsModelsName)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{label:"单位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.unit)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"price",label:"单价",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatPrice")(t.row.price))+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"入库数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.counts)+"\n ")]}}],null,!0)}),e._v(" "),r("el-table-column",{attrs:{prop:"counts",label:"金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatPrice")(t.row.price*t.row.counts))+"\n ")]}}],null,!0)})],1)],1)})),e._v(" "),r("div",{staticStyle:{display:"none"},attrs:{id:"uploadPreviewImages"}},e._l(e.fileList,(function(t,n){return r("span",{key:n},[e.checkImg(t.name)?r("img",{staticClass:"v-img",staticStyle:{width:"100px",height:"100px"},attrs:{src:e.getUrl(t.path),alt:t.name}}):e._e()])})),0)],2)},a=[],o=r("5688"),i=r("f76d"),s=r("6f7e"),l=r("dee4"),c=r("c82c"),u=r.n(c),d=(r("0808"),null),f={components:{winMd:i["a"]},props:{setting:{type:Object,default:function(){}}},data:function(){return{loading:!0,fileList:[],detail:{baseCategoryName:"",businessFormCode:"",goodsTemplateName:"",procureDoc:"",agencyId:"",agencyName:"",states:"",createName:"",time:"",procureGoods:[{},{}],fileKey:Math.random()}}},filters:{formatTime:function(e){return e?s["LongToDateTime"](e):"-"},formatPrice:function(e){return e/100}},created:function(){var e=this;Object(o["e"])({id:this.setting.id}).then((function(t){e.loading=!1,e.detail=t,e.fileList=e.detail.procureDoc?JSON.parse(e.detail.procureDoc):[],e.$nextTick((function(){e.initPreviewImg()}))}))},methods:{initPreviewImg:function(){null!=d&&d.destroy();var e=document.querySelector("#uploadPreviewImages");d=new u.a(e,{})},handlePreview:function(e){if(!this.checkImg(e.name))return!1;for(var t=0,r=0;r<this.fileList.length;r++){var n=this.fileList[r];if(this.checkImg(n.name)){if(e.id==n.id)break;t++}}d.view(t)},checkImg:function(e){var t=e.substring(e.lastIndexOf("."),e.length),r=[".jpg",".jpeg",".png",".bmp"];return!(r.indexOf(t)<0)},getUrl:function(e){return"http://"==e.substr(0,7).toLowerCase()||"https://"==e.substr(0,8).toLowerCase()?e:Object(l["c"])()+e},close:function(){this.$emit("close")}}},p=f,m=(r("9f17"),r("2877")),h=Object(m["a"])(p,n,a,!1,null,"9d632596",null);t["default"]=h.exports},c02b:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"page-main"},[r("div",{staticClass:"form-box"},[r("div",{staticClass:"top-title"},[e._v("请先修改初始密码")]),e._v(" "),r("el-form",{ref:"loginForm",attrs:{rules:e.loginRules,model:e.formData}},[r("el-form-item",{staticStyle:{position:"relative"},attrs:{prop:"password",label:"新密码:"}},[r("el-input",{ref:"newPwd",staticClass:"h-60",attrs:{"prefix-icon":"el-icon-lock",type:e.passwordNewType,placeholder:"请填写新密码","auto-complete":"off",maxlength:"15"},model:{value:e.formData.oldPassword,callback:function(t){e.$set(e.formData,"oldPassword","string"===typeof t?t.trim():t)},expression:"formData.oldPassword"}}),e._v(" "),r("span",{staticClass:"show-pwd",on:{click:e.showNewPwd}},[r("svg-icon",{attrs:{"icon-class":"password"===e.passwordNewType?"eye":"eye-open"}})],1),e._v(" "),r("div",{staticStyle:{"font-size":"12px",color:"#999"}},[r("span",{staticStyle:{color:"red","margin-right":"4px"}},[e._v("*")]),e._v("密码长度在 8 到 12 个字符间,必须包含数字、大小写字母、特殊字符")])],1),e._v(" "),r("el-form-item",{staticStyle:{position:"relative"},attrs:{prop:"password",label:"确认新密码:"}},[r("el-input",{ref:"subimtPwd",staticClass:"h-60",attrs:{"prefix-icon":"el-icon-lock",type:e.passwordType,placeholder:"请确认新密码","auto-complete":"off",maxlength:"15"},model:{value:e.formData.newPassword,callback:function(t){e.$set(e.formData,"newPassword","string"===typeof t?t.trim():t)},expression:"formData.newPassword"}}),e._v(" "),r("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[r("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"f-r f-r-center m-b-20"},[r("el-button",{staticClass:"sub-btn",attrs:{type:"primary"},on:{click:e.updatePassword}},[e._v("提交")])],1)],1)])},a=[],o=r("21f2"),i=r("c24f"),s={name:"resetPassword",data:function(){return{formData:{oldPassword:"",newPassword:""},passwordNewType:"password",passwordType:"password",loginRules:{oldPassword:[{required:!0,trigger:"blur",message:"请输入密码"},{min:6,message:"长度不小于6字符",trigger:"blur"}],newPassword:[{required:!0,trigger:"blur",message:"请输入确认密码"},{min:6,message:"长度不小于6字符",trigger:"blur"}]}}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.subimtPwd.focus()}))},showNewPwd:function(){var e=this;"password"===this.passwordNewType?this.passwordNewType="":this.passwordNewType="password",this.$nextTick((function(){e.$refs.newPwd.focus()}))},updatePassword:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;if(e.formData.oldPassword===e.formData.newPassword){var r={encryptPassword:Object(o["a"])(e.formData.newPassword)};Object(i["c"])(r).then((function(t){e.$message.success("修改密码成功~跳转首页"),e.$store.dispatch("user/getInfo").then((function(t){e.$store.commit("user/SET_ROLES",[]),e.$router.push({path:e.redirect||"/dashboard",query:e.otherQuery})})).catch((function(e){}))}))}else e.$message.error("两次输入密码不一致")}))}}},l=s,c=(r("f556"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,"c2afab22",null);t["default"]=u.exports},c0c7:function(e,t,r){"use strict";r.d(t,"g",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"e",(function(){return i})),r.d(t,"a",(function(){return s})),r.d(t,"j",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"d",(function(){return f})),r.d(t,"i",(function(){return p}));var n=r("b775");function a(e){return Object(n["a"])({url:"/system/user/list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/system/user/view/"+e,method:"get"})}function i(e){return Object(n["a"])({url:"/system/user/select/role/"+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/user/add",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/system/user/edit",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/system/user/remove/"+e,method:"get"})}function u(e,t){var r={id:e,password:t};return Object(n["a"])({url:"/system/user/resetPwd",method:"post",data:r})}function d(e,t){var r={id:e,status:t};return Object(n["a"])({url:"/system/user/select/changeStatus",method:"post",data:r})}function f(e){return Object(n["a"])({url:"/system/user/select/authRole/"+e,method:"get"})}function p(e){return Object(n["a"])({url:"/system/user/select/saveAuthRole",method:"post",params:e})}},c0cc:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("win-md",{attrs:{title:"规格型号",width:"800px"},on:{close:e.close}},[r("my-table-v2",{ref:"myTable",attrs:{filter:{goodsTemplatesId:e.setting.goodsTemplatesId},table:e.table}}),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer",align:"center"},slot:"footer"},[r("my-button",{attrs:{name:"取消",site:"form"},on:{click:e.close}})],1),e._v(" "),e.specsSetting.show?r("specsAdd",{attrs:{setting:e.specsSetting},on:{close:function(t){e.specsSetting.show=!1},search:e.search}}):e._e()],1)},a=[],o=r("f76d"),i=r("f6e8"),s=r("f596"),l=r("b31c"),c=r("2f62"),u=r("80cb"),d=r("433d");function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=v(e,"string");return"symbol"==f(t)?t:t+""}function v(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"specs",components:{MyTableV2:u["a"],winMd:o["a"],myButton:i["a"],specsAdd:l["default"]},props:{setting:{type:Object,default:function(){}}},data:function(){var e=this;return{specsSetting:{title:"",id:"",show:!1},table:{autoLoad:!1,showIndex:!0,expand:!1,dataIndex:"goodsTemplatesId",url:d["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd(null)}}]},columns:[{title:"规格型号",field:"modelName",align:"left",minWidth:120},{title:"单位",field:"unit",align:"center",width:100},{field:"states",title:"状态",align:"center",width:100,switch:function(t){var r={};return 1==t.states?Object.assign(r,{value:!0,label:"是",click:function(){e.updState(t)}}):Object.assign(r,{value:!1,label:"否",click:function(){e.updState(t)}}),r}}],operation:{show:!0,width:100,attr:[{title:"删除",events:function(t){e.del(t)}}]},paging:{show:!1,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},computed:m({},Object(c["b"])(["userInfo"])),mounted:function(){var e=this;this.$nextTick((function(){e.search()}))},methods:{showAdd:function(){this.specsSetting.goodsTemplatesId=this.setting.goodsTemplatesId,this.specsSetting.show=!0},updState:function(e){var t=this,r=0==e.states?"启用":"禁用";t.$modal.confirm("确认要"+r+'"'+e.modelName+'"规格吗?').then((function(){var n=Object.assign({},e);n.states=1==e.states?0:1,Object(s["g"])(n).then((function(n){n&&(e.states=1===e.states?0:1,t.$modal.msgSuccess(r+"成功"),t.search())}))}))},del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.modelName+'"的规格吗?').then((function(){Object(s["d"])({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.$refs.myTable.search()})).catch((function(){}))},close:function(){this.$emit("close")},search:function(){this.$refs.myTable.search()}}},y=b,w=r("2877"),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},c135:function(e,t){function r(e){if(Array.isArray(e))return e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c240:function(e,t){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c273:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"errPage-container"},[r("ErrorA"),e._v(" "),r("ErrorB"),e._v(" "),r("h3",[e._v("Please click the bug icon in the upper right corner")]),e._v(" "),e._m(0),e._v(" "),e._m(1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("aside",[e._v("\n Now the management system are basically the form of the spa, it enhances the user experience, but it also\n increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately\n Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.\n "),r("a",{staticClass:"link-type",attrs:{rel:"noreferrer noopener",target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/guide/advanced/error.html"}},[e._v("\n Document introduction\n ")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a",{attrs:{href:"#"}},[r("img",{attrs:{src:"https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif"}})])}],o=r("ce2f"),i=r("a1ba"),s={name:"ErrorLog",components:{ErrorA:o["default"],ErrorB:i["default"]}},l=s,c=(r("e134"),r("2877")),u=Object(c["a"])(l,n,a,!1,null,"074bf1c6",null);t["default"]=u.exports},c434:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"module-box"},[r("div",{staticClass:"chang-btn",on:{click:function(t){e.isUp=!e.isUp,e.setOption()}}},[e._v("\n "+e._s(e.isUp?"升序▲":"降序▼")+"\n ")]),e._v(" "),r("div",{ref:"cityScore",staticClass:"city-score"})])},a=[],o=r("313e"),i=r.n(o);function s(e){return d(e)||u(e)||c(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function u(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p=null,m={name:"city-score",data:function(){return{isUp:!0,dataList:[{name:"郑州",score:153},{name:"洛阳",score:153},{name:"南阳",score:243},{name:"信阳",score:53}]}},methods:{setOption:function(){var e=this;if(p){var t=this.dataList.sort((function(t,r){return e.isUp?t.score-r.score:r.score-t.score})),r=t.map((function(e){return e.name})),n=t.map((function(e){return e.score})),a=Math.floor(1.4*Math.max.apply(Math,s(n)));a=t.map((function(){return a})),p.setOption({tooltip:{trigger:"axis"},grid:{right:20,left:50,top:30,bottom:20},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#0D496E"}},axisLabel:{show:!0,textStyle:{fontSize:12,color:"#ADB1B4"}},data:r},{type:"category",show:!1,data:r}],yAxis:{type:"value",splitLine:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,textStyle:{fontSize:12,color:"#ADB1B4"}}},series:[{name:"评分",data:n,type:"pictorialBar",barWidth:48,symbol:"triangle",label:{show:!0,position:"top",textStyle:{fontSize:16,color:"#fff"}},itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(30, 231, 231, 0.87)"},{offset:1,color:"rgba(30, 231, 231, 0)"}],global:!1}}},{tooltip:{show:!1},xAxisIndex:1,itemStyle:{color:"rgba(180, 180, 180, 0.2)"},data:a,barWidth:48,emphasis:{itemStyle:{color:{type:"linear",x:0,x2:0,y:0,y2:1,colorStops:[{offset:0,color:"rgba(64, 247, 176, 0.25)"},{offset:1,color:"rgba(17, 34, 64, 0.25)"}]}}},type:"bar"}]})}}},mounted:function(){var e=this;p=i.a.init(this.$refs.cityScore),window.addEventListener("resize",(function(){e.$nextTick((function(){p.resize()}))})),this.setOption()}},h=m,g=(r("9602"),r("2877")),v=Object(g["a"])(h,n,a,!1,null,"132052ec",null);t["default"]=v.exports},c4b0:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.search}}):e._e()],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("db8c"),c=r("9960"),u=r("dee4"),d=r("2c4d"),f=r("2f62");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=v(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=b(e,"string");return"symbol"==p(t)?t:t+""}function b(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],edit:l["default"],myImport:c["default"]},data:function(){var e=this;return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"warehouseId",queryKey:"agencyId"},{key:"baseGoodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"warehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"cascader",dataIndex:"categoryId",label:"分类",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"label",value:"id",url:s["a"].apiBaseURL+"/pc/base/category/select/tree",props:{checkStrictly:!1,emitPath:!1,value:"id"}},cascader:[{key:"baseGoodsTemplateId",queryKey:"categoryId"}]},{type:"select",dataIndex:"baseGoodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(u["b"])()+"/pc/warehouse/warningConfig/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/warehouse/warningConfig/getWarnConfImportTemplate"},onSuccess:null},filterFrom:{warehouseType:0},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/warehouse/warningConfig/getList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd(null)}},{name:"导入",click:function(){e.importOrg()}}]},columns:[{title:"机构",field:"agencyName",align:"left",minWidth:130},{title:"仓库",field:"warehouseName",align:"left",minWidth:130},{title:"分类",field:"categoryName",align:"left",minWidth:130},{title:"所属类别",field:"costType",align:"center",width:80},{title:"物品名称",field:"goodsName",align:"left",minWidth:130},{title:"规格型号",field:"modelName",align:"left",minWidth:130},{title:"保底库存",field:"lowerLimit",align:"center",width:100},{title:"封顶库存",field:"upperLimit",align:"center",width:100}],operation:{show:!0,width:"150",attr:[{title:"编辑",events:function(t){e.showAudit(t)}},{title:"删除",events:function(t){e.del(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},computed:h({},Object(f["b"])(["userInfo"])),created:function(){},methods:{del:function(e){var t=this;this.$modal.confirm("是否确认删除此条的数据吗?").then((function(){Object(d["f"])({id:e.id}).then((function(e){t.$message.success("删除成功!"),t.search()}))}))},showAdd:function(){this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0},showAudit:function(e){this.editSetting.id=e.id,this.editSetting.info=JSON.stringify(e),this.editSetting.title="编辑",this.editSetting.show=!0},importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.filterFrom.agencyId&&this.filterFrom.agencyId.length&&(this.filterFrom.agencyId=this.filterFrom.agencyId[this.filterFrom.agencyId.length-1]),this.search(1)}}},w=y,_=r("2877"),x=Object(_["a"])(w,n,a,!1,null,"5c6e392b",null);t["default"]=x.exports},c55a:function(e,t,r){"use strict";r("490c")},c56b:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i}));var n=r("b775"),a=r("433d");function o(e){return n["a"].get(a["a"].apiBaseURL+"/pc/base/category/select/tree",{params:e})}function i(e){return Object(n["a"])({url:"/pc/base/category/detail",method:"get",params:e})}},c798:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1),e._v(" "),e.editSetting.show?r("edit",{attrs:{setting:e.editSetting},on:{close:function(t){e.editSetting.show=!1},search:e.search}}):e._e(),e._v(" "),e.specsSetting.show?r("specs",{attrs:{setting:e.specsSetting},on:{close:function(t){e.specsSetting.show=!1},search:e.search}}):e._e(),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("6f7e"),i=r("befe"),s=r("80cb"),l=r("f6e8"),c=r("433d"),u=r("0264"),d=r("f596"),f=r("9960"),p=r("dee4"),m=r("c0cc"),h={name:"index",components:{Specs:m["default"],MyButton:l["a"],MyTableV2:s["a"],edit:u["default"],myTree:i["a"],myImport:f["default"]},data:function(){var e=this;return{items:[{type:"text",dataIndex:"goodsName",label:"物品名称",placeholder:"请输入",defaultValue:""},{type:"text",dataIndex:"goodsCode",label:"物品编号",placeholder:"请输入",defaultValue:""},{type:"select",dataIndex:"classification",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"A"},{label:"B",value:"B"},{label:"C",value:"C"}]},{type:"select",dataIndex:"states",label:"状态",placeholder:"请选择",defaultValue:"1",options:[{label:"启用",value:"1"},{label:"禁用",value:"0"}]}],filterFrom:{tenantId:null,userName:null,userPhone:null,states:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(p["b"])()+"/pc/base/goods/template/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:c["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate?type=goods"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},specsSetting:{title:"",id:"",show:!1},table:{showIndex:!0,expand:!1,url:c["a"].apiBaseURL+"/pc/base/goods/template/list",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"新增",click:function(){e.showAdd(null)}},{name:"导入",click:function(){e.importOrg()}}]},columns:[{title:"物品编号",field:"goodsCode",align:"center",width:120},{title:"物品名称",field:"goodsName",align:"left",minWidth:140},{title:"分类",field:"categoryName",align:"left",minWidth:140},{title:"类别",field:"classification",align:"center",width:80},{title:"所属机构",field:"agencyName",align:"left",minWidth:140},{title:"创建时间",field:"createDate",align:"center",width:160,formatter:function(e){return{value:o["LongToDateTime"](e.createDate)}}},{field:"states",title:"状态",align:"center",width:100,switch:function(t){var r={};return 1==t.states?Object.assign(r,{value:!0,label:"是",click:function(){e.updState(t)}}):Object.assign(r,{value:!1,label:"否",click:function(){e.updState(t)}}),r}}],operation:{show:!0,width:250,attr:[{title:"编辑",events:function(t){e.showAdd(t.id)}},{title:"删除",events:function(t){e.del(t)}},{title:"规格型号",type:"primary",events:function(t){e.showSpecs(t)}}]},paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{importOrg:function(){var e=this;this.importSetting.dialogShow=!0,this.importSetting.onSuccess=function(t,r){1===t.code?(e.$message.success(t.msg),e.search(1)):e.$message.warning(t.msg),r()}},updState:function(e){var t=this,r=0==e.states?"启用":"禁用";t.$modal.confirm("确认要"+r+'"'+e.goodsName+'"物品吗?').then((function(){var n=Object.assign({},e);n.states=1==e.states?0:1,Object(d["h"])(n).then((function(n){n&&(e.states=1===e.states?0:1,t.$modal.msgSuccess(r+"成功"),t.search())}))}))},del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.goodsName+'"的物品吗?').then((function(){Object(d["c"])({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},showAdd:function(e){this.editSetting.id=e,this.editSetting.title=e?"编辑":"新增",this.editSetting.show=!0},showSpecs:function(e){this.specsSetting.goodsTemplatesId=e.id,this.specsSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},g=h,v=r("2877"),b=Object(v["a"])(g,n,a,!1,null,"f5b30466",null);t["default"]=b.exports},c906:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-container",[r("el-container",[r("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[r("div",{staticClass:"filter-container"},[r("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),r("el-row",{staticStyle:{"margin-top":"15px"}},[r("el-col",[r("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1),e._v(" "),r("my-import",{attrs:{"import-setting":e.importSetting,"dialog-show":e.importSetting.dialogShow,"dialog-title":e.importSetting.dialogTitle}})],1)},a=[],o=r("80cb"),i=r("f6e8"),s=r("433d"),l=r("6ec5"),c=r("9960"),u=r("dee4"),d=r("6f7e"),f=r("ecfc"),p={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"],myImport:c["default"]},data:function(){return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"warehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"warehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:s["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"baseGoodsModelsId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"baseGoodsModelsId",label:"规格型号",placeholder:"请输入",defaultValue:"",options:[],optionsConfig:{label:"modelName",value:"id",url:s["a"].apiBaseURL+"/pc/base/goods/models/query/goodsModel"}},{type:"select",dataIndex:"flowType",label:"类型",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"dict_label",value:"dict_value",url:s["a"].apiBaseURL+"/permit/dict/data/type/FLOW_TYPE"}},{type:"text",dataIndex:"businessFormCode",label:"单号",placeholder:"请输入",defaultValue:""},{type:"date-picker",dataIndex:"dealTimeStart",label:"时间",defaultValue:""},{type:"date-picker",dataIndex:"dealTimeEnd",label:"至",defaultValue:""}],treeDataList:[],filterFrom:{tenantId:null,userName:null,userPhone:null,status:1},importSetting:{dialogTitle:"导入",dialogShow:!1,fileSettings:{data:{},uploadUrl:Object(u["b"])()+"/pc/fin/sys/tenant/import",accept:".xls",type:"text",loading:!1},templateSettings:{templateName:"导入模板.xls",templateUrl:s["a"].apiBaseURL+"/pc/fin/sys/tenant/getImportTemplate"},onSuccess:null},editSetting:{title:"",id:"",orgId:"",show:!1},table:{showIndex:!0,expand:!1,url:s["a"].apiBaseURL+"/pc/warehouse/flow/getTaiZhangList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[]},columns:[{title:"机构",field:"agencyName",align:"left",width:130},{title:"仓库",field:"warehouseName",align:"left",width:130},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:130},{title:"规格型号",field:"baseGoodsModelsName",align:"left",width:130},{title:"类型",field:"summary",align:"center",formatter:function(e){var t=Object(f["a"])(e);return{value:t}}},{title:"单号",field:"businessFormCode",align:"center",width:130},{title:"数量",field:"thisCount",align:"center",width:100},{title:"操作前数量",field:"initialCount",align:"center",width:100},{title:"操作后数量",field:"endCount",align:"center",width:100},{title:"在途",field:"zaiTuCount",align:"center",width:100},{title:"操作时间",field:"dealTime",align:"center",width:160,formatter:function(e){return{value:d["LongToDateTime"](e.dealTime)}}}],paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{del:function(e){var t=this;this.$modal.confirm('是否确认删除名称为"'+e.name+'"的机构吗?').then((function(){l["e"]({id:e.id}).then((function(e){}))})).then((function(e){t.$message.success("删除成功!"),t.search()})).catch((function(){}))},showAdd:function(){this.editSetting.id=null,this.editSetting.info=null,this.editSetting.title="新增",this.editSetting.show=!0},showAudit:function(e){this.editSetting.id=e.id,this.editSetting.info=JSON.stringify(e),this.editSetting.title="编辑",this.editSetting.show=!0},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},m=p,h=r("2877"),g=Object(h["a"])(m,n,a,!1,null,null,null);t["default"]=g.exports},ca17:function(e,t,r){
|