mt-ck-wms-ui/dist/static/js/chunk-0f24abb6.1e288ea7.js
2022-06-07 10:43:58 +08:00

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f24abb6"],{"0283":function(e,a,t){"use strict";t("e2ca")},"09f4":function(e,a,t){"use strict";t.d(a,"a",(function(){return n}));var o=t("2b0b"),l=t.n(o);Math.easeInOutQuad=function(e,a,t,o){return e/=o/2,e<1?t/2*e*e+a:(e--,-t/2*(e*(e-2)-1)+a)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){l()(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,a,t){var o=s(),l=e-o,n=20,d=0;a="undefined"===typeof a?500:a;var u=function e(){d+=n;var s=Math.easeInOutQuad(d,o,l,a);i(s),d<a?r(e):t&&"function"===typeof t&&t()};u()}},"1bb6":function(e,a,t){"use strict";t.d(a,"d",(function(){return l})),t.d(a,"c",(function(){return r})),t.d(a,"b",(function(){return i})),t.d(a,"a",(function(){return s}));var o=t("b775");function l(e){return Object(o["a"])({url:"/api/wms/car/task/execution/info/his/page",method:"post",data:e})}function r(e){var a={id:e};return Object(o["a"])({url:"/api/wms/car/task/execution/info/his/get",method:"post",data:a})}function i(e){return Object(o["a"])({url:"/api/wms/car/task/execution/info/page",method:"post",data:e})}function s(e){var a={id:e};return Object(o["a"])({url:"/api/wms/car/task/execution/info/get",method:"post",data:a})}},"7d13":function(e,a,t){"use strict";t.r(a);var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-container"},[t("el-form",{ref:"formData",attrs:{model:e.formData,inline:!0,size:"medium"}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskType"),prop:"taskType"}},[t("el-select",{attrs:{filterable:"",placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.Warehouse.TaskType")]),clearable:""},model:{value:e.formData.taskType,callback:function(a){e.$set(e.formData,"taskType",a)},expression:"formData.taskType"}},e._l(e.taskTypeList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskStatus"),prop:"status"}},[t("el-select",{attrs:{filterable:"",placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.Warehouse.TaskStatus")]),clearable:""},model:{value:e.formData.status,callback:function(a){e.$set(e.formData,"status",a)},expression:"formData.status"}},e._l(e.TaskStatusList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.VehicleName"),prop:"equipmentId"}},[t("el-select",{attrs:{filterable:"",placeholder:e.$i18nForm(["placeholder.input",e.$t("module.basicData.Warehouse.VehicleName")]),clearable:""},model:{value:e.formData.equipmentId,callback:function(a){e.$set(e.formData,"equipmentId",a)},expression:"formData.equipmentId"}},e._l(e.VehicleNameList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.getList()}}},[e._v(" "+e._s(e._f("i18nFilter")("btn.search"))+" ")])],1)],1),e._v(" "),t("base-table",{attrs:{page:e.formData.current,limit:e.formData.size,"table-config":e.tableProps,"table-data":e.list,"is-loading":e.listLoading}},[t("method-btn",{attrs:{slot:"handleBtn",width:e.trueWidth,"method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"})],1),e._v(" "),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.formData.current,limit:e.formData.size},on:{"update:page":function(a){return e.$set(e.formData,"current",a)},"update:limit":function(a){return e.$set(e.formData,"size",a)},pagination:function(a){return e.getList()}}}),e._v(" "),e.addOrUpdateVisible?t("historical-task-info",{ref:"addOrUpdate",on:{refreshDataList:e.getList}}):e._e()],1)},l=[],r=t("3393"),i=t.n(r),s=t("1bb6"),n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("el-dialog",{attrs:{title:e._f("i18nFilter")("btn.see"),visible:e.visible,width:"60%"},on:{"update:visible":function(a){e.visible=a}}},[t("el-row",{attrs:{gutter:10}},[t("el-form",{ref:"dataForm",attrs:{model:e.dataForm,size:"medium","label-width":"170px","label-position":"left"}},[t("el-col",{attrs:{span:8}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.Code"),prop:"taskCode"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.taskCode,callback:function(a){e.$set(e.dataForm,"taskCode",a)},expression:"dataForm.taskCode"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.OrderName"),prop:"orderName"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.orderName,callback:function(a){e.$set(e.dataForm,"orderName",a)},expression:"dataForm.orderName"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskBoxNumber"),prop:"fullCode"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.fullCode,callback:function(a){e.$set(e.dataForm,"fullCode",a)},expression:"dataForm.fullCode"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.VehicleName"),prop:"name"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.name,callback:function(a){e.$set(e.dataForm,"name",a)},expression:"dataForm.name"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.EmptyFork"),prop:"field124"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field124,callback:function(a){e.$set(e.dataForm,"field124",a)},expression:"dataForm.field124"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.EmptyHandlingTime"),prop:"field119"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field119,callback:function(a){e.$set(e.dataForm,"field119",a)},expression:"dataForm.field119"}})],1)],1)],1)],1),e._v(" "),t("el-col",{attrs:{span:8}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.ExecutionTime"),prop:"createTime"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.createTime,callback:function(a){e.$set(e.dataForm,"createTime",a)},expression:"dataForm.createTime"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskType"),prop:"taskType"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.taskType,callback:function(a){e.$set(e.dataForm,"taskType",a)},expression:"dataForm.taskType"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.FullBoxNumber"),prop:"emptyCode"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.emptyCode,callback:function(a){e.$set(e.dataForm,"emptyCode",a)},expression:"dataForm.emptyCode"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskLocation"),prop:"anotherCurrLocation"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.anotherCurrLocation,callback:function(a){e.$set(e.dataForm,"anotherCurrLocation",a)},expression:"dataForm.anotherCurrLocation"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskBoxFork"),prop:"field121"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field121,callback:function(a){e.$set(e.dataForm,"field121",a)},expression:"dataForm.field121"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskBoxHandlingTime"),prop:"field122"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field122,callback:function(a){e.$set(e.dataForm,"field122",a)},expression:"dataForm.field122"}})],1)],1)],1)],1),e._v(" "),t("el-col",{attrs:{span:8}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TaskSource"),prop:"taskSource"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.taskSource,callback:function(a){e.$set(e.dataForm,"taskSource",a)},expression:"dataForm.taskSource"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.PreviousOperation"),prop:"anotherCurrProcessCode"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.anotherCurrProcessCode,callback:function(a){e.$set(e.dataForm,"anotherCurrProcessCode",a)},expression:"dataForm.anotherCurrProcessCode"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.NextOperation"),prop:"anotherNextProcessCode"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.anotherNextProcessCode,callback:function(a){e.$set(e.dataForm,"anotherNextProcessCode",a)},expression:"dataForm.anotherNextProcessCode"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.TargetLocation"),prop:"anotherTargetLocation"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.anotherTargetLocation,callback:function(a){e.$set(e.dataForm,"anotherTargetLocation",a)},expression:"dataForm.anotherTargetLocation"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.CompletionTime"),prop:"field125"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field125,callback:function(a){e.$set(e.dataForm,"field125",a)},expression:"dataForm.field125"}})],1)],1),e._v(" "),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:e.$t("module.basicData.Warehouse.BoxStatus"),prop:"field126"}},[t("el-input",{style:{width:"100%"},attrs:{readonly:""},model:{value:e.dataForm.field126,callback:function(a){e.$set(e.dataForm,"field126",a)},expression:"dataForm.field126"}})],1)],1)],1)],1)],1)],1),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(a){e.visible=!1}}},[e._v(e._s(e._f("i18nFilter")("btn.cancel")))])],1)],1)},d=[],u={data:function(){return{visible:!1,dataForm:{id:"",taskCode:void 0,orderName:void 0,fullCode:void 0,name:void 0,field124:void 0,field119:void 0,createTime:void 0,taskType:void 0,emptyCode:void 0,anotherCurrLocation:void 0,field121:void 0,field122:void 0,taskSource:void 0,anotherCurrProcessCode:void 0,anotherNextProcessCode:void 0,anotherTargetLocation:void 0,field125:void 0,field126:void 0}}},methods:{init:function(e){var a=this;this.dataForm.id=e,this.visible=!0,this.$nextTick((function(){a.$refs["dataForm"].resetFields(),Object(s["c"])(a.dataForm.id).then((function(e){a.dataForm=e.data}))}))}}},c=u,m=t("2877"),p=Object(m["a"])(c,n,d,!1,null,null,null),f=p.exports,b=t("9923"),h=t("c0ee"),v=t("333d"),k=t("ebe9"),F=t("8975"),y=[{type:"view",btnName:"btn.see"}],T=[{prop:"taskCode",label:b["a"].t("module.basicData.Warehouse.Code"),align:"center"},{prop:"createTime",label:b["a"].t("module.basicData.Warehouse.ExecutionTime"),filter:F["timeFormatter"],align:"center"},{prop:"taskSource",label:b["a"].t("module.basicData.Warehouse.TaskSource"),align:"center"},{prop:"taskType",label:b["a"].t("module.basicData.Warehouse.TaskType"),align:"center"},{prop:"fullCode",label:b["a"].t("module.basicData.Warehouse.TaskBoxNumber"),align:"center"},{prop:"emptyCode",label:b["a"].t("module.basicData.Warehouse.FullBoxNumber"),align:"center"},{prop:"wcurrProcessCode",label:b["a"].t("module.basicData.Warehouse.PreviousOperation"),align:"center"},{prop:"wnextProcessCode",label:b["a"].t("module.basicData.Warehouse.NextOperation"),align:"center"},{prop:"anotherCurrLocation",label:b["a"].t("module.basicData.Warehouse.StartLocation"),align:"center"},{prop:"anotherTargetLocation",label:b["a"].t("module.basicData.Warehouse.TargetLocation"),align:"center"},{prop:"currLocation",label:b["a"].t("module.basicData.Warehouse.FullBoxStartLocation"),align:"center"},{prop:"name",label:b["a"].t("module.basicData.Warehouse.VehicleName"),align:"center"}],D={name:"ScrapInfo",components:{Pagination:v["a"],BaseTable:h["a"],MethodBtn:k["a"],HistoricalTaskInfo:f},data:function(){return{trueWidth:100,addOrUpdateVisible:!1,tableProps:T,tableBtn:y,list:[],total:0,listLoading:!1,formData:{taskType:"",status:"",equipmentId:"",current:1,size:10},taskTypeList:[{label:"出库",value:0},{label:"入库",value:1},{label:"流转",value:2}],TaskStatusList:[{label:"初始化",value:0},{label:"损坏",value:1}],VehicleNameList:[{label:"小车1",value:0},{label:"小车2",value:1}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["d"])(this.formData).then((function(a){var t;a.data.records?e.list=a.data.records:i()(t=e.list).call(t,0,e.list.length);e.total=a.data.total,e.listLoading=!1}))},handleClick:function(e){console.log(e),this.addNew(e.data.id)},addNew:function(e){var a=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){a.$refs.addOrUpdate.init(e)}))}}},$=D,w=(t("0283"),Object(m["a"])($,o,l,!1,null,"5282d6b8",null));a["default"]=w.exports},e2ca:function(e,a,t){}}]);