1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c7d68bd4"],{"04ff":function(t,e,a){var o=a("437b"),i=a("1519"),r=Array.prototype;t.exports=function(t){var e=t.find;return t===r||o(r,t)&&e===r.find?i:e}},"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));var o=a("2b0b"),i=a.n(o);Math.easeInOutQuad=function(t,e,a,o){return t/=o/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){i()(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function c(t,e,a){var o=s(),i=t-o,c=20,l=0;e="undefined"===typeof e?500:e;var u=function t(){l+=c;var s=Math.easeInOutQuad(l,o,i,e);n(s),l<e?r(t):a&&"function"===typeof a&&a()};u()}},1519:function(t,e,a){a("bdf4");var o=a("a169");t.exports=o("Array").find},"2b1b":function(t,e,a){var o=a("04ff");t.exports=o},7975:function(t,e,a){"use strict";a("bf5f")},a84c:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"listQuery",attrs:{model:t.listQuery,inline:!0},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList()}}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.LocationName"),prop:"currLocationId"}},[a("el-select",{style:{width:"100%"},attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.Warehouse.LocationName")]),clearable:"",filterable:""},model:{value:t.listQuery.currLocationId,callback:function(e){t.$set(t.listQuery,"currLocationId",e)},expression:"listQuery.currLocationId"}},t._l(t.LocationList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.locationName,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.StorageBoxNumber"),prop:"storageBoxId"}},[a("el-select",{style:{width:"100%"},attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.Warehouse.StorageBoxNumber")]),clearable:"",filterable:""},model:{value:t.listQuery.storageBoxId,callback:function(e){t.$set(t.listQuery,"storageBoxId",e)},expression:"listQuery.storageBoxId"}},t._l(t.storageBoxList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.code,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v(t._s(t._f("i18nFilter")("btn.search")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addNew()}}},[t._v(t._s(t._f("i18nFilter")("btn.add")))])],1)],1),t._v(" "),a("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}},[a("method-btn",{attrs:{slot:"handleBtn",width:t.trueWidth,"method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}}),t._v(" "),t.addOrUpdateVisible?a("Factory-add",{ref:"addOrUpdate",on:{refreshDataList:t.getList}}):t._e()],1)},i=[],r=a("a3e3"),n=a.n(r),s=a("3393"),c=a.n(s),l=a("fe12"),u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t._f("i18nFilter")(t.dataForm.id?"btn.edit":"btn.add"),visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.LocationName"),prop:"currLocationId"}},[a("el-select",{style:{width:"100%"},attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.Warehouse.LocationName")]),clearable:"",filterable:""},on:{change:t.selectGetLabel1},model:{value:t.dataForm.currLocationId,callback:function(e){t.$set(t.dataForm,"currLocationId",e)},expression:"dataForm.currLocationId"}},t._l(t.LocationList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.locationName,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.StorageBoxNumber"),prop:"storageBoxId"}},[a("el-select",{style:{width:"100%"},attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.Warehouse.StorageBoxNumber")]),clearable:"",filterable:""},on:{change:t.selectGetLabel2},model:{value:t.dataForm.storageBoxId,callback:function(e){t.$set(t.dataForm,"storageBoxId",e)},expression:"dataForm.storageBoxId"}},t._l(t.storageBoxList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.code,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.BoxStatus"),prop:"status"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#AAAAAA"},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}})],1),t._v(" "),a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.IsEmptyBox"),prop:"isEmpty"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#AAAAAA"},model:{value:t.dataForm.isEmpty,callback:function(e){t.$set(t.dataForm,"isEmpty",e)},expression:"dataForm.isEmpty"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v(t._s(t._f("i18nFilter")("btn.cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.dataFormSubmit()}}},[t._v(t._s(t._f("i18nFilter")("btn.confirm")))])],1)],1)},d=[],m=a("fc56"),f=a.n(m),b={data:function(){return{visible:!1,dataForm:{id:0,code:"",locationName:"",currLocationId:"",storageBoxId:"",status:"",isEmpty:""},LocationList:[],storageBoxList:[],dataRule:{currLocationId:[{required:!0,message:this.$i18nForm(["placeholder.input",this.$t("module.basicData.Warehouse.LocationName")]),trigger:"blur"}],storageBoxId:[{required:!0,message:this.$i18nForm(["placeholder.input",this.$t("module.basicData.Warehouse.StorageBoxNumber")]),trigger:"blur"}]}}},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0;var a={current:1,size:100};Object(l["j"])(a).then((function(t){e.LocationList=t.data})),Object(l["c"])(a).then((function(t){e.storageBoxList=t.data.records})),this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id&&Object(l["e"])(e.dataForm.id).then((function(t){e.dataForm=t.data}))}))},selectGetLabel1:function(t){var e,a={};a=f()(e=this.LocationList).call(e,(function(e){return e.id===t})),this.dataForm.locationName=a.locationName},selectGetLabel2:function(t){var e,a={};a=f()(e=this.storageBoxList).call(e,(function(e){return e.id===t})),this.dataForm.code=a.code},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=t.dataForm;t.dataForm.id?Object(l["g"])(a).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})})):Object(l["b"])(a).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})}))}}))}}},p=b,h=a("2877"),v=Object(h["a"])(p,u,d,!1,null,null,null),g=v.exports,y=a("c0ee"),L=a("333d"),x=a("ebe9"),F=a("8975"),$=a("cac5"),B=a("9923"),O=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],w=[{prop:"createTime",label:B["a"].t("module.basicData.factory.createTime"),filter:F["timeFormatter"],align:"center"},{prop:"code",label:B["a"].t("module.basicData.Warehouse.StorageBoxNumber"),align:"center"},{prop:"status",label:B["a"].t("module.basicData.Warehouse.BoxStatus"),filter:Object($["a"])("enableState"),align:"center"},{prop:"currLocation",label:B["a"].t("module.basicData.Warehouse.LocationName"),align:"center"},{prop:"currLocationName",label:B["a"].t("module.basicData.Warehouse.LocationCode"),align:"center"},{prop:"isEmpty",label:B["a"].t("module.basicData.Warehouse.IsEmptyBox"),filter:Object($["a"])("yesOrNo"),align:"center"}],_={name:"StorageBoxInfo",components:{Pagination:L["a"],BaseTable:y["a"],MethodBtn:x["a"],FactoryAdd:g},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{keyName:B["a"].t("module.basicData.Warehouse.StorageBoxNumber"),placeholderName:this.$t("module.basicData.Warehouse.StorageBoxNumber"),addOrUpdateVisible:!1,tableBtn:O,trueWidth:200,tableProps:w,list:[],total:0,LocationList:[],storageBoxList:[],listLoading:!0,listQuery:{current:1,size:10,storageBoxId:"",currLocationId:""}}},created:function(){var t=this;this.getList();var e={current:1,size:100};Object(l["j"])(e).then((function(e){t.LocationList=e.data})),Object(l["c"])(e).then((function(e){t.storageBoxList=e.data.records}))},methods:{handleClick:function(t){var e,a=this;(console.log(t),"delete"===t.type)?this.$confirm(n()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.code,"]?"),this.$t("module.basicData.visual.Tips"),{confirmButtonText:this.$t("module.basicData.visual.confirmButtonText"),cancelButtonText:this.$t("module.basicData.visual.cancelButtonText"),type:"warning"}).then((function(){Object(l["d"])(t.data.id).then((function(t){a.$message({message:a.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){a.getList()}})}))}))["catch"]((function(){})):this.addNew(t.data.id)},getList:function(){var t=this;this.listLoading=!0,Object(l["f"])(this.listQuery).then((function(e){var a;e.data.records?t.list=e.data.records:c()(a=t.list).call(a,0,t.list.length);t.total=e.data.total,t.listLoading=!1}))},addNew:function(t){var e=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){e.$refs.addOrUpdate.init(t)}))}}},k=_,D=(a("7975"),Object(h["a"])(k,o,i,!1,null,"be3f5ace",null));e["default"]=D.exports},bdf4:function(t,e,a){"use strict";var o=a("a5eb"),i=a("dee0").find,r=a("c44e"),n="find",s=!0;n in[]&&Array(1)[n]((function(){s=!1})),o({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(n)},bf5f:function(t,e,a){},cac5:function(t,e,a){"use strict";var o=a("9923"),i={yesOrNo:{0:o["a"].t("baseDict.yesOrNo.no"),1:o["a"].t("baseDict.yesOrNo.yes")},enableState:{0:o["a"].t("basicDataFilter.enableState.disable"),1:o["a"].t("basicDataFilter.enableState.enable")}};e["a"]=function(t){return function(e){var a;return null===i||void 0===i||null===(a=i[t])||void 0===a?void 0:a[e]}}},fc56:function(t,e,a){t.exports=a("2b1b")},fe12:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"f",(function(){return r})),a.d(e,"j",(function(){return n})),a.d(e,"e",(function(){return s})),a.d(e,"g",(function(){return c})),a.d(e,"b",(function(){return l})),a.d(e,"c",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"h",(function(){return m})),a.d(e,"i",(function(){return f}));var o=a("b775");function i(t){return Object(o["a"])({url:"/api/wms/storage/box/circ/info/his/page/by/code",method:"post",data:t})}function r(t){return Object(o["a"])({url:"/api/wms/storage/box/circ/info/page/for/bind",method:"post",data:t})}function n(t){return Object(o["a"])({url:"/api/wms/location/list",method:"post",data:t})}function s(t){var e={id:t};return Object(o["a"])({url:"/api/wms/storage/box/circ/info/get",method:"post",data:e})}function c(t){return Object(o["a"])({url:"/api/wms/storage/box/circ/info/update",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/api/wms/storage/box/circ/info/add",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/api/wms/storagebox/page",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/api/wms/storage/box/circ/info/delete",method:"post",data:{id:t}})}function m(t){return Object(o["a"])({url:"/api/wms/processlocation/batchList",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/api/wms/processlocation/locationByProcess",method:"post",data:t})}}}]); |