YM-WMS-WCS/dist/js/chunk-ebf8bf38.7ec67829.js

1 line
8.5 KiB
JavaScript
Raw Normal View History

2023-04-14 15:56:50 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ebf8bf38","chunk-2a99da18"],{2617:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-sys__user"},[a("search-bar",{ref:"searchBarForm",attrs:{formConfigs:e.formConfig},on:{headBtnClick:e.buttonClick}}),a("base-table",{attrs:{"table-props":e.tableProps,page:e.listQuery.page,limit:e.listQuery.limit,"table-data":e.tableData}},[e.tableBtn.length?a("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作","method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),a("pagination",{attrs:{limit:e.listQuery.limit,page:e.listQuery.page,total:e.listQuery.total},on:{"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},"update:page":function(t){return e.$set(e.listQuery,"page",t)},pagination:e.getDataList}}),a("base-dialog",{attrs:{dialogTitle:e.addOrEditTitle,dialogVisible:e.addOrUpdateVisible,"before-close":e.handleCancel},on:{cancel:e.handleCancel,confirm:e.handleConfirm}},[a("add-or-update",{ref:"addOrUpdate",on:{successSubmit:e.successSubmit}})],1)],1)])},r=[],l=(a("b0c0"),a("80b7")),i=a("ed26"),n=a("f44d"),s=[{prop:"createTime",label:"添加时间"},{prop:"anotherName",label:"别名"},{prop:"columnCode",label:"列标"},{prop:"rowCode",label:"行标"},{prop:"regionName",label:"区域名称"},{prop:"direction",label:"方向",filter:Object(n["a"])("direction")},{prop:"isOccupy",label:"是否被占用",filter:Object(n["a"])("isOccupy")},{prop:"positionCode",label:"库位编码"},{prop:"sequence",label:"顺序号"},{prop:"remark",label:"备注"}],c=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],d={mixins:[i["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtWarehouseRank/page",deleteURL:"/code/mtWarehouseRank",exportUrl:"/code/mtWarehouseRank/export"},tableProps:s,tableBtn:c,tableData:[],formConfig:[{type:"input",label:"名称",placeholder:"请输入名称",param:"name"},{type:"input",label:"编码",placeholder:"请输入编码",param:"code"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"新增",name:"add",color:"primary",plain:!0},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}]}},components:{AddOrUpdate:l["default"]},methods:{buttonClick:function(e){switch(e.btnName){case"search":this.listQuery.name=e.name,this.listQuery.code=e.code,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;case"export":this.exportHandle("库位管理");break;default:console.log(e)}}}},u=d,p=a("2877"),m=Object(p["a"])(u,o,r,!1,null,null,null);t["default"]=m.exports},"3d7b":function(e,t,a){"use strict";a("99af"),a("4160"),a("159b");t["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(e){var t=this;this.dataForm.id=e||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){t.$refs["dataForm"].resetFields(),t.dataForm.id?t.$http.get("".concat(t.urlOptions.infoURL,"/").concat(t.dataForm.id)).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.dataForm=a.data,t.setData&&t.setDataForm()})).catch((function(){})):t.isGetCode&&t.getCode()}))},getArr:function(){var e=this;this.urlOptions.optionArrUrl.forEach((function(t,a){e.$http.get(t,{params:{page:1,limit:500}}).then((function(t){var o=t.data;if(0!==o.code)return e.$message.error(o.msg);e.$set(e.urlOptions.optionArr,"arr".concat(a),o.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(!t)return!1;e.$http[e.dataForm.id?"put":"post"](e.urlOptions.submitURL,e.dataForm).then((function(t){var a=t.data;if(0!==a.code)return e.$message.error(a.msg);e.$message({message:e.$t("prompt.success"),type:"