1 line
7.7 KiB
JavaScript
1 line
7.7 KiB
JavaScript
|
webpackJsonp([40],{twIQ:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,warehousRankId:"",warehousRankName:"",taskId:"",taskType:"",startPosition:"",targetPosition:"",status:"",taskDetCode:"",specModel:"",num:"",unit:"",isHeight:"",isWeight:"",dateNum:"",remarks:""},dataRule:{warehousRankId:[{required:!0,message:"库位id 关联库位表:mt_warehous_rank不能为空",trigger:"blur"}],warehousRankName:[{required:!0,message:"库位名称不能为空",trigger:"blur"}],taskId:[{required:!0,message:"任务id,关联任务表:mt_task_info不能为空",trigger:"blur"}],taskType:[{required:!0,message:"任务类型,0 出库,1入库2 移库不能为空",trigger:"blur"}],startPosition:[{required:!0,message:"起点不能为空",trigger:"blur"}],targetPosition:[{required:!0,message:"终点不能为空",trigger:"blur"}],status:[{required:!0,message:"状态0接收数据,1数据接收中,2数据接收完成不能为空",trigger:"blur"}],taskDetCode:[{required:!0,message:"任务编码,E代表入库,O代表出库,出入口,加时间到秒,如:EA120190912331724不能为空",trigger:"blur"}],specModel:[{required:!0,message:"型号不能为空",trigger:"blur"}],num:[{required:!0,message:"数量不能为空",trigger:"blur"}],unit:[{required:!0,message:"单位不能为空",trigger:"blur"}],isHeight:[{required:!0,message:"是否超高,0不超高,1,超高不能为空",trigger:"blur"}],isWeight:[{required:!0,message:"是否超重,0不超重,1,超重不能为空",trigger:"blur"}],dateNum:[{required:!0,message:"批次号不能为空",trigger:"blur"}]}}},methods:{init:function(a){var e=this;this.dataForm.id=a||"",this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.$http({url:e.$http.adornUrl("/work/mttaskinfodet/info/"+e.dataForm.id),method:"get",params:e.$http.adornParams()}).then(function(a){var t=a.data;t&&0===t.code&&(e.dataForm=t.mtTaskInfoDet)})})},dataFormSubmit:function(){var a=this;this.$refs.dataForm.validate(function(e){e&&a.$http({url:a.$http.adornUrl("/work/mttaskinfodet/"+(a.dataForm.id?"update":"save")),method:"post",data:a.$http.adornData({id:a.dataForm.id||void 0,warehousRankId:a.dataForm.warehousRankId,warehousRankName:a.dataForm.warehousRankName,taskId:a.dataForm.taskId,taskType:a.dataForm.taskType,startPosition:a.dataForm.startPosition,targetPosition:a.dataForm.targetPosition,status:a.dataForm.status,taskDetCode:a.dataForm.taskDetCode,specModel:a.dataForm.specModel,num:a.dataForm.num,unit:a.dataForm.unit,isHeight:a.dataForm.isHeight,isWeight:a.dataForm.isWeight,dateNum:a.dataForm.dateNum,remarks:a.dataForm.remarks})}).then(function(e){var t=e.data;t&&0===t.code?a.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){a.visible=!1,a.$emit("refreshDataList")}}):a.$message.error(t.msg)})})}}},o={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("el-dialog",{attrs:{title:a.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:a.visible},on:{"update:visible":function(e){a.visible=e}}},[t("el-form",{ref:"dataForm",attrs:{model:a.dataForm,rules:a.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&a._k(e.keyCode,"enter",13,e.key,"Enter"))return null;a.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"库位id",prop:"warehousRankId"}},[t("el-input",{attrs:{placeholder:"库位id 关联库位表:mt_warehous_rank",clearable:""},model:{value:a.dataForm.warehousRankId,callback:function(e){a.$set(a.dataForm,"warehousRankId",e)},expression:"dataForm.warehousRankId"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"库位名称",prop:"warehousRankName"}},[t("el-input",{attrs:{placeholder:"库位名称",clearable:""},model:{value:a.dataForm.warehousRankName,callback:function(e){a.$set(a.dataForm,"warehousRankName",e)},expression:"dataForm.warehousRankName"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"任务id",prop:"taskId"}},[t("el-input",{attrs:{placeholder:"任务id,关联任务表:mt_tas
|