ERP/static/js/chunk-cc6d.94d047f8.js
beyond e4cd916a0c beyond 8.1 version2
beyond 8.1 version2
2019-08-01 19:52:12 +08:00

1 line
27 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cc6d"],{NaS3:function(e,t,a){},Q2t7:function(e,t,a){"use strict";a.r(t);var n=a("P2sY"),i=a.n(n),s=a("moiu"),r=a("ZySA"),o=a("Mz3J"),l=a("gDS+"),c=a.n(l),p=a("6HaC"),d={components:{MyEmp:a("1ZjH").a},props:{control:{type:Boolean,default:!1},editdata:{type:Object,default:null}},data:function(){return{region:[],editVisible:this.control,personalForm:this.editdata,stepHandler:"",handlerName:"",empcontrol:!1,categorys:[],validRules:{step:[{required:!0,message:"请输入流程步骤",trigger:"blur"}],money:[{required:!0,message:"请输入流转条件",trigger:"blue"}],handlerName:[{required:!0,message:"请选择步骤处理人",trigger:"blue"}]},moreaction:"",loading:!1,list2:[],regions:[],repositories:[],props:{value:"id",label:"regionName",children:"regionListVos"},personalrules:{processName:[{required:!0,message:"请输入流程名称",trigger:"blur"}],type:[{required:!0,message:"请选择单据类型",trigger:"change"}],region:[{required:!0,message:"请选择区域",trigger:"change"}]}}},watch:{control:function(){this.editVisible=this.control},editdata:function(){this.personalForm=this.editdata,console.log(this.list2),this.getnationlist()}},created:function(){this.getnationlist()},methods:{getnationlist:function(){var e=this;Object(p.d)().then(function(t){200===t.data.ret?e.regions=e.tranKTree(t.data.data.content):e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(s.n)(this.personalForm.id).then(function(t){200===t.data.ret?e.list2=t.data.data.detail:e.$notify.error({title:"错误",message:"出错了",offset:100})}),Object(s.q)().then(function(t){200===t.data.ret?e.categorys=t.data.data.content:e.$notify.error({title:"错误",message:"出错了",offset:100})})},tranKTree:function(e){var t=this;if(e&&e.length)return e.map(function(e){return{id:e.id,regionName:e.regionName,regionListVos:t.tranKTree(e.regionListVos)}})},handlechange4:function(e){var t=this,a=e[e.length-1];this.personalForm.effect_region=a,Object(p.e)(a).then(function(e){console.log(e),200===e.data.ret?t.repositories=e.data.data.content.list:t.$notify.error({title:"错误",message:"出错了",offset:100})})},restAllForm:function(){this.personalForm={}},handlechoose:function(){this.empcontrol=!0},fuzhi:function(e){e.row.handlerName=this.handlerName},personName:function(e){this.handlerName=e.personName,this.stepHandler=e.id},chuli:function(e){e.row.handlerName=this.handlerName,e.row.stepHandler=this.stepHandler},selectEvent:function(e,t){console.log(e),console.log(t)},insertEvent:function(e){var t=this,a=this.$refs.editable.insertAt({money:0},e);this.$nextTick(function(){return t.$refs.editable.setActiveCell(a,"handlerName")})},currentChangeEvent:function(e,t){console.log(e)},handleEditok:function(){var e=this;console.log(this.personalForm);var t=c()(this.$refs.editable.getRecords());console.log(t),Object(s.s)(this.personalForm,t).then(function(t){200===t.data.ret?(e.$notify({title:"操作成功",message:"操作成功",type:"success",duration:1e3,offset:100}),e.$emit("rest",!0),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields(),e.editVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handlecancel:function(){this.$refs.personalForm.clearValidate(),this.$refs.personalForm.resetFields(),this.editVisible=!1}}},u=(a("emNW"),a("KHd+")),f=Object(u.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.editVisible,control:e.control,editdata:e.editdata,"close-on-press-escape":!1,top:"10px",title:"修改供应商"},on:{"update:visible":function(t){e.editVisible=t},close:function(t){e.$emit("update:control",!1)}}},[a("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{ref:"personalForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,rules:e.personalrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.process_name"),prop:"processName"}},[a("el-input",{attrs:{placeholder:"请输入流程名称",clearable:""},model:{value:e.personalForm.processName,callback:function(t){e.$set(e.personalForm,"processName",t)},expression:"personalForm.processName"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.is_effective")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择启用状态"},model:{value:e.personalForm.isEffective,callback:function(t){e.$set(e.personalForm,"isEffective",t)},expression:"personalForm.isEffective"}},[a("el-option",{attrs:{label:"active",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.type3"),prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择单据类型",filterable:"",disabled:""},model:{value:e.personalForm.type,callback:function(t){e.$set(e.personalForm,"type",t)},expression:"personalForm.type"}},e._l(e.categorys,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.categoryName}})}))],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.is_message")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.personalForm.isMessage,callback:function(t){e.$set(e.personalForm,"isMessage",t)},expression:"personalForm.isMessage"}},[a("el-option",{attrs:{label:"发送",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"不发送",value:"2"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.effect_region"),prop:"process_name"}},[a("el-input",{attrs:{disabled:""},model:{value:e.personalForm.regionName,callback:function(t){e.$set(e.personalForm,"regionName",t)},expression:"personalForm.regionName"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.effect_repository"),prop:"process_name"}},[a("el-input",{attrs:{disabled:""},model:{value:e.personalForm.repositoryName,callback:function(t){e.$set(e.personalForm,"repositoryName",t)},expression:"personalForm.repositoryName"}})],1)],1)],1),e._v(" "),a("h2",{ref:"fuzhu",staticClass:"form-name"},[e._v("审批流程步骤")]),e._v(" "),a("div",{staticClass:"buttons",staticStyle:{"margin-top":"50px"}},[a("el-button",{attrs:{type:"success"},on:{click:function(t){e.insertEvent(-1)}}},[e._v("添加")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.$refs.editable.removeSelecteds()}}},[e._v("删除")])],1),e._v(" "),a("div",{staticClass:"container",staticStyle:{"margin-top":"20px"}},[a("el-editable",{ref:"editable",staticClass:"click-table1",staticStyle:{width:"100%"},attrs:{data:e.list2,"edit-config":{showIcon:!1,showStatus:!0},"edit-rules":e.validRules,stripe:"",border:"",size:"medium"},on:{"update:data":function(t){e.list2=t},select:e.selectEvent,"current-change":e.currentChangeEvent}},[a("el-editable-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-editable-column",{attrs:{"edit-render":{name:"ElInputNumber",attrs:{min:1,max:5e3}},label:"流程步骤",prop:"step",align:"center",width:"210px"}}),e._v(" "),a("el-editable-column",{attrs:{"edit-render":{name:"ElInput"},prop:"description",align:"center",label:"步骤描述",width:"200px"}}),e._v(" "),a("el-editable-column",{attrs:{"edit-render":{name:"ElInputNumber",attrs:{min:0}},prop:"money",align:"center",label:"流转条件",width:"200px"}}),e._v(" "),a("el-editable-column",{attrs:{"edit-render":{type:"default"},prop:"handlerName",align:"center",label:"步骤处理人",width:"250px"},scopedSlots:e._u([{key:"edit",fn:function(t){return[a("input",{staticClass:"editable-custom_input",on:{focus:e.handlechoose}}),e._v(" "),a("my-emp",{attrs:{control:e.empcontrol},on:{"update:control":function(t){e.empcontrol=t},personName:e.personName,chuli:function(a){e.chuli(t)}}})]}}])})],1)],1),e._v(" "),a("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px","margin-left":"30px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleEditok()}}},[e._v("修改")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])},[],!1,null,"330cec0c",null);f.options.__file="MyDialog.vue";var m=f.exports,v={name:"ApprovalProcess",directives:{waves:r.a},components:{Pagination:o.a,MyDialog:m},filters:{genderFilter:function(e){return{1:"发布",2:"停用"}[e]},isMessageFilter:function(e){return{1:"是",2:"否"}[e]}},data:function(){return{moreaction:"",downloadLoading:!1,list:[],total:0,tableKey:0,listLoading:!0,getemplist:{pagenum:1,pagesize:10},personalForm:{},editVisible:!1}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this;this.listLoading=!0,Object(s.p)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100}),setTimeout(function(){e.listLoading=!1},50)})},handleFilter:function(){var e=this;Object(s.p)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handleEdit:function(e){var t=this;console.log(e),Object(s.n)(e.id).then(function(e){console.log(e),t.personalForm.detail=e.data.data.detail}),this.editVisible=!0,this.personalForm=i()({},e),this.personalForm.isEffective=String(e.isEffective),this.personalForm.isMessage=String(e.isMessage)},refreshlist:function(e){!0===e&&this.getlist()},handleSelectionChange:function(e){this.moreaction=e},handleCommand:function(e){var t=this,a=this.moreaction.map(function(e){return e.id}).join();"delete"===e&&this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.f)(a).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleDelete:function(e){var t=this;this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.f)(e.id).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleAdd:function(){this.$router.push("/BasicSettings/NewApprovalProcess")},handleExport:function(){var e=this;this.downloadLoading=!0,Promise.all([a.e("chunk-ef4a"),a.e("chunk-6b3a")]).then(a.bind(null,"S/jZ")).then(function(t){var a=e.formatJson(["id","BasicSettingsName","BasicSettingsShortName","typeName","regionName","buyerName","levelName","createName","createTime"],e.list);t.export_json_to_excel({header:["供应商编号","供应商名称","供应商简称","供应商类别","所在区域","采购员","供应商优质级别","建档人","建档日期"],data:a,filename:"经销商资料表"}),e.downloadLoading=!1})},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return t[e]})})},handlePrint:function(){console.log(456)}}},g=(a("hTkm"),Object(u.a)(v,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ERP-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("BasicSettings.process_name"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.getemplist.process_name,callback:function(t){e.$set(e.getemplist,"process_name",t)},expression:"getemplist.process_name"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.is_effective,placeholder:"请选择状态",clearable:""},model:{value:e.getemplist.is_effective,callback:function(t){e.$set(e.getemplist,"is_effective",t)},expression:"getemplist.is_effective"}},[a("el-option",{attrs:{label:"active",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1),e._v(" "),a("el-select",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{value:e.getemplist.type,placeholder:"请选择单据类型",clearable:""},model:{value:e.getemplist.type,callback:function(t){e.$set(e.getemplist,"type",t)},expression:"getemplist.type"}},[a("el-option",{attrs:{label:"active",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(e._s(e.$t("public.search")))]),e._v(" "),a("el-dropdown",{on:{command:e.handleCommand}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"}},[e._v("\n "+e._s(e.$t("public.batchoperation"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{staticStyle:{width:"140px"},attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticStyle:{"text-align":"left"},attrs:{command:"delete"}},[a("svg-icon",{staticStyle:{width:"40px"},attrs:{"icon-class":"shanchu"}}),e._v(e._s(e.$t("public.delete")))],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{loading:e.downloadLoading},on:{click:e.handleExport}},[a("svg-icon",{attrs:{"icon-class":"daochu"}}),e._v(e._s(e.$t("public.export")))],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{icon:"el-icon-printer"},on:{click:e.handlePrint}},[e._v(e._s(e.$t("public.print")))]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px",float:"right"},attrs:{icon:"el-icon-plus",type:"success"},on:{click:e.handleAdd}},[e._v(e._s(e.$t("public.add")))])],1),e._v(" "),a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("BasicSettings.id2"),resizable:!1,prop:"id",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("BasicSettings.process_name"),resizable:!1,prop:"processName",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.processName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("BasicSettings.isEffective"),resizable:!1,prop:"isEffective",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("genderFilter")(t.row.isEffective)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("BasicSettings.type3"),resizable:!1,align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.typeName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("BasicSettings.isMessage"),resizable:!1,prop:"isMessage",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("isMessageFilter")(t.row.isMessage)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("public.actions"),resizable:!1,align:"center","min-width":"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.handleEdit(t.row)}}},[e._v(e._s(e.$t("public.edit")))]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.handleDelete(t.row)}}},[e._v(e._s(e.$t("public.delete")))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getemplist.pagenum,limit:e.getemplist.pagesize},on:{"update:page":function(t){e.$set(e.getemplist,"pagenum",t)},"update:limit":function(t){e.$set(e.getemplist,"pagesize",t)},pagination:e.getlist}}),e._v(" "),a("my-dialog",{attrs:{control:e.editVisible,editdata:e.personalForm},on:{"update:control":function(t){e.editVisible=t},"update:editdata":function(t){e.personalForm=t},rest:e.refreshlist}})],1)])},[],!1,null,"20a98eb3",null));g.options.__file="ApprovalProcess.vue";t.default=g.exports},emNW:function(e,t,a){"use strict";var n=a("kpnM");a.n(n).a},"gDS+":function(e,t,a){e.exports={default:a("oh+g"),__esModule:!0}},hTkm:function(e,t,a){"use strict";var n=a("NaS3");a.n(n).a},kpnM:function(e,t,a){},moiu:function(e,t,a){"use strict";a.d(t,"q",function(){return i}),a.d(t,"m",function(){return s}),a.d(t,"g",function(){return r}),a.d(t,"b",function(){return o}),a.d(t,"r",function(){return l}),a.d(t,"k",function(){return c}),a.d(t,"a",function(){return p}),a.d(t,"u",function(){return d}),a.d(t,"i",function(){return u}),a.d(t,"o",function(){return f}),a.d(t,"e",function(){return m}),a.d(t,"t",function(){return v}),a.d(t,"h",function(){return g}),a.d(t,"l",function(){return h}),a.d(t,"j",function(){return y}),a.d(t,"d",function(){return _}),a.d(t,"c",function(){return b}),a.d(t,"n",function(){return w}),a.d(t,"p",function(){return N}),a.d(t,"f",function(){return S}),a.d(t,"s",function(){return $});var n=a("t3Un");function i(){return Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/searchcategory",method:"post"})}function s(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/search",method:"post",data:t})}function r(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("ids",e),Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/delete",method:"post",data:t})}function o(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/create",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/update",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.modelname&&null!==e.modelname&&void 0!==e.modelname&&t.append("modelname",e.modelname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/messageModel/modellist",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.modelname&&null!==e.modelname&&void 0!==e.modelname&&t.append("modelname",e.modelname),""!==e.content&&null!==e.content&&void 0!==e.content&&t.append("content",e.content),Object(n.a)({url:"http://192.168.1.45:8080/messageModel/addmodel",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("modelid",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.modelName&&null!==e.modelName&&void 0!==e.modelName&&t.append("modelname",e.modelName),""!==e.content&&null!==e.content&&void 0!==e.content&&t.append("content",e.content),Object(n.a)({url:"http://192.168.1.45:8080/messageModel/updatemodel",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/messageModel/deletemodel",method:"post",data:t})}function f(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.categoryname&&null!==e.categoryname&&void 0!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/measurement/search",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.category&&null!==e.category&&void 0!==e.category&&t.append("category",e.category),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.categoryname&&null!==e.categoryname&&void 0!==e.categoryname&&t.append("categoryname",e.categoryname),Object(n.a)({url:"http://192.168.1.45:8080/measurement/create",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.categoryName&&null!==e.categoryName&&void 0!==e.categoryName&&t.append("categoryname",e.categoryName),Object(n.a)({url:"http://192.168.1.45:8080/measurement/update",method:"post",data:t})}function g(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/measurement/delete",method:"post",data:t})}function h(){return Object(n.a)({url:"http://192.168.1.45:8080/parameter/search",method:"post"})}function y(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("isEffective",e.isEffective),Object(n.a)({url:"http://192.168.1.45:8080/parameter/effective",method:"post",data:t})}function _(e,t){var a=new URLSearchParams;return""!==e.process_name&&null!==e.process_name&&void 0!==e.process_name&&a.append("process_name",e.process_name),""!==e.type&&null!==e.type&&void 0!==e.type&&a.append("type",e.type),""!==e.is_message&&null!==e.is_message&&void 0!==e.is_message&&a.append("is_message",e.is_message),""!==e.is_effective&&null!==e.is_effective&&void 0!==e.is_effective&&a.append("is_effective",e.is_effective),""!==e.effect_region&&null!==e.effect_region&&void 0!==e.effect_region&&a.append("effect_region",e.effect_region),""!==e.effect_repository&&null!==e.effect_repository&&void 0!==e.effect_repository&&a.append("effect_repository",e.effect_repository),""!==e.country_id&&null!==e.country_id&&void 0!==e.country_id&&a.append("country_id",e.country_id),""!==t&&null!==t&&void 0!==t&&a.append("detailJson",t),Object(n.a)({url:"http://192.168.1.45:8080/approvalProcess/create",method:"post",data:a})}function b(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/NumberingRules/create",method:"post",data:t})}function w(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("id",e),Object(n.a)({url:"http://192.168.1.45:8080/approvalProcess/searchDetail",method:"post",data:t})}function N(e){var t=new URLSearchParams;return""!==e.process_name&&null!==e.process_name&&void 0!==e.process_name&&t.append("process_name",e.process_name),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.is_effective&&null!==e.is_effective&&void 0!==e.is_effective&&t.append("is_effective",e.is_effective),t.append("pagesize",e.pagesize),t.append("pagenum",e.pagenum),Object(n.a)({url:"http://192.168.1.45:8080/approvalProcess/search",method:"post",data:t})}function S(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/approvalProcess/delete",method:"post",data:t})}function $(e,t){var a=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&a.append("id",e.id),""!==e.processName&&null!==e.processName&&void 0!==e.processName&&a.append("process_name",e.processName),""!==e.type&&null!==e.type&&void 0!==e.type&&a.append("type",e.type),""!==e.isMessage&&null!==e.isMessage&&void 0!==e.isMessage&&a.append("is_message",e.isMessage),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&a.append("is_effective",e.isEffective),""!==e.effect_region&&null!==e.effect_region&&void 0!==e.effect_region&&a.append("effect_region",e.effect_region),""!==e.effect_repository&&null!==e.effect_repository&&void 0!==e.effect_repository&&a.append("effect_repository",e.effect_repository),""!==e.countryId&&null!==e.countryId&&void 0!==e.countryId&&a.append("country_id",e.countryId),""!==t&&null!==t&&void 0!==t&&a.append("detailJson",t),Object(n.a)({url:"http://192.168.1.45:8080/approvalProcess/update",method:"post",data:a})}},"oh+g":function(e,t,a){var n=a("WEpk"),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}}}]);