mt-ck-wms-ui/dist/static/js/chunk-799950e4.27abaab4.js
2022-06-07 15:13:51 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-799950e4"],{"09f4":function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));var r=e("2b0b"),o=e.n(r);Math.easeInOutQuad=function(t,a,e,r){return t/=r/2,t<1?e/2*t*t+a:(t--,-e/2*(t*(t-2)-1)+a)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){o()(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(t,a,e){var r=l(),o=t-r,n=20,d=0;a="undefined"===typeof a?500:a;var u=function t(){d+=n;var l=Math.easeInOutQuad(d,r,o,a);s(l),d<a?i(t):e&&"function"===typeof e&&e()};u()}},1:function(t,a){},2:function(t,a){},3999:function(t,a,e){"use strict";e.r(a);var r=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,"show-add":!1},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("Factory-add",{ref:"addOrUpdate",on:{refreshDataList:t.getList}}):t._e()],1)},o=[],i=e("3393"),s=e.n(i),l=(e("7f7f"),e("de20")),n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-dialog",{attrs:{title:t._f("i18nFilter")("btn.see"),visible:t.visible,width:"70%"},on:{"update:visible":function(a){t.visible=a}}},[e("el-row",{attrs:{gutter:10}},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,size:"medium","label-width":"180px","label-position":"left"}},[e("el-col",{attrs:{span:8}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderName"),prop:"name"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderName"),readonly:""},model:{value:t.dataForm.name,callback:function(a){t.$set(t.dataForm,"name",a)},expression:"dataForm.name"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderStatus"),prop:"status"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderStatus"),readonly:""},model:{value:t.dataForm.status,callback:function(a){t.$set(t.dataForm,"status",a)},expression:"dataForm.status"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.PlanProcessQuantity"),prop:"planQuantity"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.PlanProcessQuantity"),readonly:""},model:{value:t.dataForm.planQuantity,callback:function(a){t.$set(t.dataForm,"planQuantity",a)},expression:"dataForm.planQuantity"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.Priority"),prop:"priority"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.Priority"),readonly:""},model:{value:t.dataForm.priority,callback:function(a){t.$set(t.dataForm,"priority",a)},expression:"dataForm.priority"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.CompletionTime"),prop:"finishProduceTime"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.CompletionTime"),readonly:""},model:{value:t.dataForm.finishProduceTime,callback:function(a){t.$set(t.dataForm,"finishProduceTime",a)},expression:"dataForm.finishProduceTime"}})],1)],1)],1)],1),t._v(" "),e("el-col",{attrs:{span:8}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderCode"),prop:"code"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderCode"),readonly:""},model:{value:t.dataForm.code,callback:function(a){t.$set(t.dataForm,"code",a)},expression:"dataForm.code"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.startProduceTime"),prop:"startProduceTime"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.startProduceTime"),readonly:""},model:{value:t.dataForm.startProduceTime,callback:function(a){t.$set(t.dataForm,"startProduceTime",a)},expression:"dataForm.startProduceTime"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.actualProcessQuantity"),prop:"actualQuantity"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.actualProcessQuantity"),readonly:""},model:{value:t.dataForm.actualQuantity,callback:function(a){t.$set(t.dataForm,"actualQuantity",a)},expression:"dataForm.actualQuantity"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.triggerOrigin"),prop:"triggerOrigin"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.triggerOrigin"),readonly:""},model:{value:t.dataForm.triggerOrigin,callback:function(a){t.$set(t.dataForm,"triggerOrigin",a)},expression:"dataForm.triggerOrigin"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.ProcessOrNot"),prop:"ProcessOrNot"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.ProcessOrNot"),readonly:""},model:{value:t.dataForm.ProcessOrNot,callback:function(a){t.$set(t.dataForm,"ProcessOrNot",a)},expression:"dataForm.ProcessOrNot"}})],1)],1)],1)],1),t._v(" "),e("el-col",{attrs:{span:8}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.TotalProcessName"),prop:"craftName"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.TotalProcessName"),readonly:""},model:{value:t.dataForm.craftName,callback:function(a){t.$set(t.dataForm,"craftName",a)},expression:"dataForm.craftName"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.SubProcessName"),prop:"subProccessName"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.SubProcessName"),readonly:""},model:{value:t.dataForm.subProccessName,callback:function(a){t.$set(t.dataForm,"subProccessName",a)},expression:"dataForm.subProccessName"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.scrapQuantity"),prop:"scrapQuantity"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.scrapQuantity"),readonly:""},model:{value:t.dataForm.scrapQuantity,callback:function(a){t.$set(t.dataForm,"scrapQuantity",a)},expression:"dataForm.scrapQuantity"}})],1)],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderType"),prop:"type"}},[e("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderType"),readonly:""},model:{value:t.dataForm.type,callback:function(a){t.$set(t.dataForm,"type",a)},expression:"dataForm.type"}})],1)],1)],1)],1)],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")))])],1)],1)},d=[],u=e("8975"),c={data:function(){return{visible:!1,dataForm:{id:0,name:void 0,priority:"",actualQuantity:"",startProduceTime:"",finishProduceTime:"",scrapQuantity:"",triggerOrigin:"",type:"",code:void 0,status:void 0,craftName:void 0,planQuantity:void 0,subProccessName:void 0}}},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(l["a"])(a.dataForm.id).then((function(t){t.data.status=a.statusfilter("orderStatus",t.data.status),t.data.type=a.statusfilter("orderType",t.data.type),t.data.priority=a.statusfilter("priority",t.data.priority),t.data.triggerOrigin=a.statusfilter("triggerOrigin",t.data.triggerOrigin),t.data.finishProduceTime=Object(u["timeFormatter"])(t.data.finishProduceTime),t.data.startProduceTime=Object(u["timeFormatter"])(t.data.startProduceTime),t.data.ProcessOrNot=t.data.processId?"是":"否",a.dataForm=t.data}))}))},statusfilter:function(t,a){var e,r={orderStatus:{1:"未激活",2:"等待",3:"激活",4:"暂停",9:"完成"},priority:{1:"低",2:"正常",3:"高"},orderType:{1:"生产工单",2:"重工工单",3:"测试工单"},triggerOrigin:{1:"MES",2:"ERP",3:"PID1",4:"00A",5:"00C"}};return null===r||void 0===r||null===(e=r[t])||void 0===e?void 0:e[a]}}},m=c,p=e("2877"),b=Object(p["a"])(m,n,d,!1,null,null,null),f=b.exports,h=e("bb1e"),y=e("c0ee"),F=e("333d"),v=e("ebe9"),g=e("546f"),D=e("9923"),w=[{type:"see",btnName:"btn.see"}],O=[{prop:"name",label:D["a"].t("module.basicData.Warehouse.OrderName"),align:"center"},{prop:"createTime",label:D["a"].t("module.basicData.Warehouse.IssueOrderTime"),filter:u["timeFormatter"],align:"center"},{prop:"craftName",label:D["a"].t("module.basicData.Warehouse.TotalProcessName"),align:"center"},{prop:"priority",label:D["a"].t("module.basicData.Warehouse.Priority"),filter:Object(g["a"])("priority"),align:"center"},{prop:"status",label:D["a"].t("module.basicData.Warehouse.OrderStatus"),filter:Object(g["a"])("workOrderStatus"),align:"center"}],$={name:"ExecutionInfo",components:{Pagination:F["a"],BaseTable:y["a"],MethodBtn:v["a"],HeadForm:h["a"],FactoryAdd:f},filters:{statusFilter:function(t){var a={published:"success",draft:"info",deleted:"danger"};return a[t]}},data:function(){return{keyName:D["a"].t("module.basicData.Warehouse.OrderName"),placeholderName:this.$t("module.basicData.Warehouse.OrderName"),addOrUpdateVisible:!1,tableBtn:w,trueWidth:200,tableProps:O,list:[],total:0,listLoading:!0,listQuery:{current:1,size:10,name:"",code:""}}},created:function(){this.getList()},methods:{handleClick:function(t){this.addNew(t.data.id)},getList:function(t){var a=this;this.listLoading=!0,this.listQuery.name=t,Object(l["b"])(this.listQuery).then((function(t){var e;t.data.records?a.list=t.data.records:s()(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)}))}}},P=$,k=(e("7e31"),Object(p["a"])(P,r,o,!1,null,"206ab25c",null));a["default"]=k.exports},"546f":function(t,a,e){"use strict";var r=e("9923"),o={sex:{0:r["a"].t("basicDataFilter.sex.woman"),1:r["a"].t("basicDataFilter.sex.man")},onDuty:{0:r["a"].t("basicDataFilter.onDuty.no"),1:r["a"].t("basicDataFilter.onDuty.yes")},orderStatus:{1:r["a"].t("basicDataFilter.orderStatus.add"),2:r["a"].t("basicDataFilter.orderStatus.start"),3:r["a"].t("basicDataFilter.orderStatus.stop"),4:r["a"].t("basicDataFilter.orderStatus.issued"),9:r["a"].t("basicDataFilter.orderStatus.complete")},workOrderStatus:{1:r["a"].t("basicDataFilter.workOrderStatus.notactive"),2:r["a"].t("basicDataFilter.workOrderStatus.waiting"),3:r["a"].t("basicDataFilter.workOrderStatus.active"),4:r["a"].t("basicDataFilter.workOrderStatus.stop"),9:r["a"].t("basicDataFilter.workOrderStatus.complete")},source:{1:"MES",2:"ERP",3:"PID1",4:"00A",5:"00C"},priority:{1:r["a"].t("basicDataFilter.priority.low"),2:r["a"].t("basicDataFilter.priority.normal"),3:r["a"].t("basicDataFilter.priority.high")},workStatus:{0:r["a"].t("basicDataFilter.workStatus.fail"),1:r["a"].t("basicDataFilter.workStatus.success")},roleType:{1:"pc",2:"app",3:"wechat",4:"miniapp",5:"pda"},menuType:{0:r["a"].t("basicDataFilter.menuType.catalogue"),1:r["a"].t("basicDataFilter.menuType.menu"),2:r["a"].t("basicDataFilter.menuType.button")},enableState:{0:r["a"].t("basicDataFilter.enableState.disable"),1:r["a"].t("basicDataFilter.enableState.enable")},storage:{0:r["a"].t("basicDataFilter.storage.normal"),1:r["a"].t("basicDataFilter.storage.repairing"),2:r["a"].t("basicDataFilter.storage.scrap")}};a["a"]=function(t){return function(a){var e;return null===o||void 0===o||null===(e=o[t])||void 0===e?void 0:e[a]}}},"6ff6":function(t,a,e){},"7e31":function(t,a,e){"use strict";e("6ff6")},de20:function(t,a,e){"use strict";e.d(a,"d",(function(){return o})),e.d(a,"e",(function(){return i})),e.d(a,"c",(function(){return s})),e.d(a,"b",(function(){return l})),e.d(a,"a",(function(){return n}));var r=e("b775");function o(t){return Object(r["a"])({url:"/api/wms/work/order/page",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/wms/work/order/update",method:"post",data:t})}function s(t){var a={id:t};return Object(r["a"])({url:"/api/wms/work/order/get",method:"post",data:a})}function l(t){return Object(r["a"])({url:"/api/wms/work/order/execute/page",method:"post",data:t})}function n(t){var a={id:t};return Object(r["a"])({url:"/api/wms/work/order/execute/get",method:"post",data:a})}}}]);