1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e303e21"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var r=a("2b0b"),o=a.n(r);Math.easeInOutQuad=function(t,e,a,r){return t/=r/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};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 n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var r=n(),o=t-r,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var n=Math.easeInOutQuad(u,r,o,e);s(n),u<e?i(t):a&&"function"===typeof a&&a()};c()}},1:function(t,e){},2:function(t,e){},"4e1e":function(t,e,a){"use strict";a("b9f8")},"546f":function(t,e,a){"use strict";var r=a("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")}};e["a"]=function(t){return function(e){var a;return null===o||void 0===o||null===(a=o[t])||void 0===a?void 0:a[e]}}},b9f8:function(t,e,a){},de20:function(t,e,a){"use strict";a.d(e,"d",(function(){return o})),a.d(e,"e",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return l}));var r=a("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 e={id:t};return Object(r["a"])({url:"/api/wms/work/order/get",method:"post",data:e})}function n(t){return Object(r["a"])({url:"/api/wms/work/order/execute/page",method:"post",data:t})}function l(t){var e={id:t};return Object(r["a"])({url:"/api/wms/work/order/execute/get",method:"post",data:e})}},e242:function(t,e,a){"use strict";a.d(e,"g",(function(){return o})),a.d(e,"f",(function(){return i})),a.d(e,"d",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"l",(function(){return l})),a.d(e,"a",(function(){return u})),a.d(e,"h",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"b",(function(){return p})),a.d(e,"k",(function(){return m})),a.d(e,"j",(function(){return b})),a.d(e,"e",(function(){return f}));var r=a("b775");function o(t){return Object(r["a"])({url:"/api/process/process-flow/page",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/process/process-flow/get",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/process/process-flow/enabled",method:"post",data:t})}function n(t){return Object(r["a"])({url:"/api/process/process-flow/delete",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/api/process/process-flow/update",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/api/process/process-flow/add",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/api/process/process-flow-equipment/allEquipmentBomList",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/api/process/process-flow-equipment/allEquipmentRecipeList",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/api/process/process-flow-equipment/add",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/api/process/process-flow-equipment/list",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/api/process/work-sequence/list",method:"post",data:t})}function f(){return Object(r["a"])({url:"/api/process/process-flow/getCode",method:"post"})}},e9be:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("head-form",{attrs:{"placeholder-name":t.placeholderName,"key-name":t.keyName,"show-add":!1},on:{getDataList:t.getList,add:t.addNew}}),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)},o=[],i=a("3393"),s=a.n(i),n=(a("7f7f"),a("de20")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t._f("i18nFilter")("btn.see"),visible:t.visible,width:"70%"},on:{"update:visible":function(e){t.visible=e}}},[a("el-row",{attrs:{gutter:10}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,size:"medium","label-width":"180px","label-position":"left"}},[a("el-col",{attrs:{span:8}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderName"),prop:"name"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderName"),readonly:""},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},expression:"dataForm.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderStatus"),prop:"status"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderStatus"),readonly:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.PlanProcessQuantity"),prop:"planQuantity"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.PlanProcessQuantity"),readonly:""},model:{value:t.dataForm.planQuantity,callback:function(e){t.$set(t.dataForm,"planQuantity",e)},expression:"dataForm.planQuantity"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.Priority"),prop:"priority"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.Priority"),readonly:""},model:{value:t.dataForm.priority,callback:function(e){t.$set(t.dataForm,"priority",e)},expression:"dataForm.priority"}})],1)],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderCode"),prop:"code"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderCode"),readonly:""},model:{value:t.dataForm.code,callback:function(e){t.$set(t.dataForm,"code",e)},expression:"dataForm.code"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.startProduceTime"),prop:"startProduceTime"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.startProduceTime"),readonly:""},model:{value:t.dataForm.startProduceTime,callback:function(e){t.$set(t.dataForm,"startProduceTime",e)},expression:"dataForm.startProduceTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.actualProcessQuantity"),prop:"actualQuantity"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.actualProcessQuantity"),readonly:""},model:{value:t.dataForm.actualQuantity,callback:function(e){t.$set(t.dataForm,"actualQuantity",e)},expression:"dataForm.actualQuantity"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.triggerOrigin"),prop:"triggerOrigin"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.triggerOrigin"),readonly:""},model:{value:t.dataForm.triggerOrigin,callback:function(e){t.$set(t.dataForm,"triggerOrigin",e)},expression:"dataForm.triggerOrigin"}})],1)],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.TotalProcessName"),prop:"craftName"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.TotalProcessName"),readonly:""},model:{value:t.dataForm.craftName,callback:function(e){t.$set(t.dataForm,"craftName",e)},expression:"dataForm.craftName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.SubProcessName"),prop:"subProccessName"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.SubProcessName"),readonly:""},model:{value:t.dataForm.subProccessName,callback:function(e){t.$set(t.dataForm,"subProccessName",e)},expression:"dataForm.subProccessName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.scrapQuantity"),prop:"scrapQuantity"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.scrapQuantity"),readonly:""},model:{value:t.dataForm.scrapQuantity,callback:function(e){t.$set(t.dataForm,"scrapQuantity",e)},expression:"dataForm.scrapQuantity"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$t("module.basicData.Warehouse.OrderType"),prop:"type"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:t.$t("module.basicData.Warehouse.OrderType"),readonly:""},model:{value:t.dataForm.type,callback:function(e){t.$set(t.dataForm,"type",e)},expression:"dataForm.type"}})],1)],1)],1)],1)],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")))])],1)],1)},u=[],c=a("8975"),d={data:function(){return{visible:!1,dataForm:{id:0,name:void 0,priority:"",actualQuantity:"",startProduceTime:"",scrapQuantity:"",triggerOrigin:"",type:"",code:void 0,status:void 0,craftName:void 0,planQuantity:void 0,subProccessName:void 0}}},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id&&Object(n["c"])(e.dataForm.id).then((function(t){t.data.status=e.statusfilter("orderStatus",t.data.status),t.data.type=e.statusfilter("orderType",t.data.type),t.data.priority=e.statusfilter("priority",t.data.priority),t.data.triggerOrigin=e.statusfilter("triggerOrigin",t.data.triggerOrigin),t.data.startProduceTime=Object(c["timeFormatter"])(t.data.startProduceTime),e.dataForm=t.data}))}))},statusfilter:function(t,e){var a,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===(a=r[t])||void 0===a?void 0:a[e]}}},p=d,m=a("2877"),b=Object(m["a"])(p,l,u,!1,null,null,null),f=b.exports,h=a("bb1e"),y=a("c0ee"),v=a("333d"),F=a("ebe9"),g=a("546f"),w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",[a("el-select",{attrs:{placeholder:t.$t("module.basicData.Warehouse.RelateProcess")},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[t._v(t._s(t._f("i18nFilter")("btn.cancel")))]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.emitClick}},[t._v(t._s(t._f("i18nFilter")("btn.confirm")))])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v(t._s(t.$t("module.basicData.Warehouse.RelateProcess")))])],1)],1)},D=[],O=a("e242"),$={props:{injectData:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,options:[],value:""}},created:function(){this.init()},methods:{init:function(){var t=this;Object(O["g"])({current:1,size:999}).then((function(e){t.options=e.data.records})),this.value=this.injectData.processId},emitClick:function(){var t=this,e={id:this.injectData.id,subProcessId:this.value};Object(n["e"])(e).then((function(e){t.$message({message:t.$t("module.basicData.visual.success"),type:"success",duration:1500,onClose:function(){t.visible=!1}})}))}}},k=$,P=Object(m["a"])(k,w,D,!1,null,null,null),_=P.exports,W=a("9923"),j=[{type:"see",btnName:"btn.see"}],N=[{prop:"name",label:W["a"].t("module.basicData.Warehouse.OrderName"),align:"center"},{prop:"createTime",label:W["a"].t("module.basicData.Warehouse.IssueOrderTime"),filter:c["timeFormatter"],align:"center"},{prop:"craftName",label:W["a"].t("module.basicData.Warehouse.TotalProcessName"),align:"center"},{prop:"priority",label:W["a"].t("module.basicData.Warehouse.Priority"),filter:Object(g["a"])("priority"),align:"center"},{prop:"status",label:W["a"].t("module.basicData.Warehouse.OrderStatus"),filter:Object(g["a"])("workOrderStatus"),align:"center"},{prop:"attribute",label:W["a"].t("module.basicData.Warehouse.RelateProcess"),subcomponent:_,align:"center"}],Q={name:"ProcessInfo",components:{Pagination:v["a"],BaseTable:y["a"],MethodBtn:F["a"],HeadForm:h["a"],FactoryAdd:f},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{keyName:W["a"].t("module.basicData.Warehouse.OrderName"),placeholderName:this.$t("module.basicData.Warehouse.OrderName"),addOrUpdateVisible:!1,tableBtn:j,trueWidth:200,tableProps:N,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 e=this;this.listLoading=!0,this.listQuery.name=t,Object(n["d"])(this.listQuery).then((function(t){var a;t.data.records?e.list=t.data.records:s()(a=e.list).call(a,0,e.list.length);e.total=t.data.total,e.listLoading=!1}))},addNew:function(t){var e=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){e.$refs.addOrUpdate.init(t)}))}}},T=Q,x=(a("4e1e"),Object(m["a"])(T,r,o,!1,null,"07c420b7",null));e["default"]=x.exports}}]); |