1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b74f4e0"],{"09f4":function(t,a,e){"use strict";e.d(a,"a",(function(){return l}));var o=e("2b0b"),i=e.n(o);Math.easeInOutQuad=function(t,a,e,o){return t/=o/2,t<1?e/2*t*t+a:(t--,-e/2*(t*(t-2)-1)+a)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){i()(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,a,e){var o=n(),i=t-o,l=20,c=0;a="undefined"===typeof a?500:a;var u=function t(){c+=l;var n=Math.easeInOutQuad(c,o,i,a);s(n),c<a?r(t):e&&"function"===typeof e&&e()};u()}},1:function(t,a){},2:function(t,a){},2257:function(t,a,e){},"302f":function(t,a,e){"use strict";e("2257")},"546f":function(t,a,e){"use strict";var o=e("9923"),i={sex:{0:o["a"].t("basicDataFilter.sex.woman"),1:o["a"].t("basicDataFilter.sex.man")},onDuty:{0:o["a"].t("basicDataFilter.onDuty.no"),1:o["a"].t("basicDataFilter.onDuty.yes")},orderStatus:{1:o["a"].t("basicDataFilter.orderStatus.add"),2:o["a"].t("basicDataFilter.orderStatus.start"),3:o["a"].t("basicDataFilter.orderStatus.stop"),4:o["a"].t("basicDataFilter.orderStatus.issued"),9:o["a"].t("basicDataFilter.orderStatus.complete")},workOrderStatus:{1:o["a"].t("basicDataFilter.workOrderStatus.notactive"),2:o["a"].t("basicDataFilter.workOrderStatus.waiting"),3:o["a"].t("basicDataFilter.workOrderStatus.active"),4:o["a"].t("basicDataFilter.workOrderStatus.stop"),9:o["a"].t("basicDataFilter.workOrderStatus.complete")},source:{1:"MES",2:"ERP",3:"PID1",4:"00A",5:"00C"},priority:{1:o["a"].t("basicDataFilter.priority.low"),2:o["a"].t("basicDataFilter.priority.normal"),3:o["a"].t("basicDataFilter.priority.high")},workStatus:{0:o["a"].t("basicDataFilter.workStatus.fail"),1:o["a"].t("basicDataFilter.workStatus.success")},roleType:{1:"pc",2:"app",3:"wechat",4:"miniapp",5:"pda"},menuType:{0:o["a"].t("basicDataFilter.menuType.catalogue"),1:o["a"].t("basicDataFilter.menuType.menu"),2:o["a"].t("basicDataFilter.menuType.button")},enableState:{0:o["a"].t("basicDataFilter.enableState.disable"),1:o["a"].t("basicDataFilter.enableState.enable")},storage:{0:o["a"].t("basicDataFilter.storage.normal"),1:o["a"].t("basicDataFilter.storage.repairing"),2:o["a"].t("basicDataFilter.storage.scrap")}};a["a"]=function(t){return function(a){var e;return null===i||void 0===i||null===(e=i[t])||void 0===e?void 0:e[a]}}},"92e4":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-container"},[e("head-form",{attrs:{"placeholder-name":t.placeholderName,"key-name":t.keyName},on:{getDataList:t.getList,add:t.addNew}}),t._v(" "),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}},[e("method-btn",{attrs:{slot:"handleBtn",width:t.trueWidth,"method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"})],1),t._v(" "),e("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(a){return t.$set(t.listQuery,"current",a)},"update:limit":function(a){return t.$set(t.listQuery,"size",a)},pagination:function(a){return t.getList()}}}),t._v(" "),t.addOrUpdateVisible?e("storageBox-add",{ref:"addOrUpdate",attrs:{"cache-id":t.listQuery.cacheId},on:{refreshDataList:t.getList}}):t._e()],1)},i=[],r=e("a3e3"),s=e.n(r),n=e("3393"),l=e.n(n),c=e("9923"),u=e("bb1e"),d=e("c0ee"),m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-dialog",{attrs:{title:t._f("i18nFilter")(t.dataForm.id?"btn.edit":"btn.add"),visible:t.visible},on:{"update:visible":function(a){t.visible=a}}},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"130px"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.storageBox.name"),prop:"storageBoxName"}},[e("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.storageBox.name")]),clearable:""},model:{value:t.dataForm.storageBoxName,callback:function(a){t.$set(t.dataForm,"storageBoxName",a)},expression:"dataForm.storageBoxName"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("module.basicData.storageBox.code"),prop:"code"}},[e("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.storageBox.code")]),clearable:""},model:{value:t.dataForm.code,callback:function(a){t.$set(t.dataForm,"code",a)},expression:"dataForm.code"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("module.basicData.visual.EnglishName"),prop:"enName"}},[e("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.visual.EnglishName")]),clearable:""},model:{value:t.dataForm.enName,callback:function(a){t.$set(t.dataForm,"enName",a)},expression:"dataForm.enName"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("module.basicData.storageBox.status"),prop:"status"}},[e("el-select",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.storageBox.status")]),clearable:""},model:{value:t.dataForm.status,callback:function(a){t.$set(t.dataForm,"status",a)},expression:"dataForm.status"}},t._l(t.options,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("module.basicData.visual.storageBoxFid"),prop:"storageBoxFid"}},[e("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.visual.storageBoxFid")]),clearable:""},model:{value:t.dataForm.storageBoxFid,callback:function(a){t.$set(t.dataForm,"storageBoxFid",a)},expression:"dataForm.storageBoxFid"}})],1),t._v(" "),e("el-form-item",{attrs:{label:t.$t("module.basicData.visual.Remarks"),prop:"note"}},[e("el-input",{attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.basicData.visual.Remarks")]),clearable:""},model:{value:t.dataForm.note,callback:function(a){t.$set(t.dataForm,"note",a)},expression:"dataForm.note"}})],1)],1),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(a){t.visible=!1}}},[t._v(t._s(t._f("i18nFilter")("btn.cancel")))]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(a){return t.dataFormSubmit()}}},[t._v(t._s(t._f("i18nFilter")("btn.confirm")))])],1)],1)},b=[],p=e("a19e"),f={data:function(){return{visible:!1,dataForm:{id:0,storageBoxName:"",code:"",status:"",enName:"",note:"",storageBoxFid:""},options:[{value:0,label:this.$t("module.basicData.storageBox.normal")},{value:1,label:this.$t("module.basicData.storageBox.repairing")},{value:2,label:this.$t("module.basicData.storageBox.scrapped")}],dataRule:{storageBoxName:[{required:!0,message:this.$i18nForm(["placeholder.input",this.$t("module.basicData.storageBox.name")]),trigger:"blur"}],code:[{required:!0,message:this.$i18nForm(["placeholder.input",this.$t("module.basicData.storageBox.code")]),trigger:"blur"}]}}},methods:{init:function(t){var a=this;this.dataForm.id=t||"",this.visible=!0,this.$nextTick((function(){a.$refs["dataForm"].resetFields(),a.dataForm.id?Object(p["f"])(a.dataForm.id).then((function(t){a.dataForm=t.data})):Object(p["d"])().then((function(t){a.dataForm.code=t.data}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(a){if(a){var e=t.dataForm;e.id=t.dataForm.id,t.dataForm.id?Object(p["h"])(e).then((function(a){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})})):Object(p["c"])(e).then((function(a){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}})}))}}))}}},g=f,h=e("2877"),F=Object(h["a"])(g,m,b,!1,null,null,null),v=F.exports,D=e("333d"),x=e("ebe9"),$=e("8975"),y=e("546f"),B=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"}],w=[{prop:"createTime",label:c["a"].t("module.basicData.factory.createTime"),filter:$["timeFormatter"],align:"center"},{prop:"code",label:c["a"].t("module.basicData.storageBox.code"),align:"center"},{prop:"storageBoxName",label:c["a"].t("module.basicData.storageBox.name"),align:"center"},{prop:"enName",label:c["a"].t("module.basicData.visual.EnglishName"),align:"center"},{prop:"status",label:c["a"].t("module.basicData.storageBox.status"),filter:Object(y["a"])("storage"),align:"center"},{prop:"storageBoxFid",label:c["a"].t("module.basicData.visual.storageBoxFid"),align:"center"},{prop:"note",label:c["a"].t("module.basicData.storageBox.remark"),align:"center"}],k={name:"Area",components:{Pagination:D["a"],BaseTable:d["a"],MethodBtn:x["a"],HeadForm:u["a"],storageBoxAdd:v},filters:{statusFilter:function(t){var a={published:"success",draft:"info",deleted:"danger"};return a[t]}},data:function(){return{addOrUpdateVisible:!1,keyName:this.$t("module.basicData.storageBox.name"),placeholderName:this.$t("module.basicData.storageBox.name"),tableBtn:B,trueWidth:200,tableProps:w,list:[],areaList:[],total:0,listLoading:!0,listQuery:{current:1,size:10}}},created:function(){this.getList()},methods:{handleClick:function(t){var a,e=this;"delete"===t.type?this.$confirm(s()(a="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(a,t.data.storageBoxName,"]?"),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(p["e"])(t.data.id).then((function(t){e.$message({message:e.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){e.getList()}})}))}))["catch"]((function(){})):"edit"===t.type?this.addNew(t.data.id):this.addNew(t.data.id,!0)},getList:function(t){var a=this;this.listLoading=!0,this.listQuery.storageBoxName=t,Object(p["g"])(this.listQuery).then((function(t){var e;t.data.records?(a.list=t.data.records,console.log(a.list)):l()(e=a.list).call(e,0,a.list.length);a.total=t.data.total,a.listLoading=!1}))},addNew:function(t){var a=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){a.$refs.addOrUpdate.init(t,!0)}))}}},O=k,N=(e("302f"),Object(h["a"])(O,o,i,!1,null,"49689e8c",null));a["default"]=N.exports},a19e:function(t,a,e){"use strict";e.d(a,"g",(function(){return i})),e.d(a,"f",(function(){return r})),e.d(a,"h",(function(){return s})),e.d(a,"c",(function(){return n})),e.d(a,"d",(function(){return l})),e.d(a,"e",(function(){return c})),e.d(a,"a",(function(){return u})),e.d(a,"b",(function(){return d}));var o=e("b775");function i(t){return Object(o["a"])({url:"/api/wms/storagebox/page",method:"post",data:t})}function r(t){return Object(o["a"])({url:"/api/wms/storagebox/getById",method:"post",data:{id:t}})}function s(t){return Object(o["a"])({url:"/api/wms/storagebox/update",method:"post",data:t})}function n(t){return Object(o["a"])({url:"/api/wms/storagebox/add",method:"post",data:t})}function l(){return Object(o["a"])({url:"/api/wms/storagebox/getCode",method:"post"})}function c(t){return Object(o["a"])({url:"/api/wms/storagebox/delete",method:"post",data:{id:t}})}function u(t){return Object(o["a"])({url:"/api/wms/storagebox/add",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/api/wms/storagebox-site/page",method:"post",data:t})}}}]); |