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_task_info",clearable:""},model:{value:a.dataForm.taskId,callback:function(e){a.$set(a.dataForm,"taskId",e)},expression:"dataForm.taskId"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[t("el-input",{attrs:{placeholder:"任务类型,0 出库,1入库2 移库",clearable:""},model:{value:a.dataForm.taskType,callback:function(e){a.$set(a.dataForm,"taskType",e)},expression:"dataForm.taskType"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"起点",prop:"startPosition"}},[t("el-input",{attrs:{placeholder:"起点",clearable:""},model:{value:a.dataForm.startPosition,callback:function(e){a.$set(a.dataForm,"startPosition",e)},expression:"dataForm.startPosition"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"终点",prop:"targetPosition"}},[t("el-input",{attrs:{placeholder:"终点",clearable:""},model:{value:a.dataForm.targetPosition,callback:function(e){a.$set(a.dataForm,"targetPosition",e)},expression:"dataForm.targetPosition"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"状态",prop:"status"}},[t("el-input",{attrs:{placeholder:"状态\t\t0接收数据,1数据接收中,2数据接收完成",clearable:""},model:{value:a.dataForm.status,callback:function(e){a.$set(a.dataForm,"status",e)},expression:"dataForm.status"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"任务编码",prop:"taskDetCode"}},[t("el-input",{attrs:{placeholder:"任务编码,E代表入库,O代表出库,出入口,加时间到秒,如:EA120190912331724",clearable:""},model:{value:a.dataForm.taskDetCode,callback:function(e){a.$set(a.dataForm,"taskDetCode",e)},expression:"dataForm.taskDetCode"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"型号",prop:"specModel"}},[t("el-input",{attrs:{placeholder:"型号",clearable:""},model:{value:a.dataForm.specModel,callback:function(e){a.$set(a.dataForm,"specModel",e)},expression:"dataForm.specModel"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"数量",prop:"num"}},[t("el-input",{attrs:{placeholder:"数量",clearable:""},model:{value:a.dataForm.num,callback:function(e){a.$set(a.dataForm,"num",e)},expression:"dataForm.num"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"单位",prop:"unit"}},[t("el-input",{attrs:{placeholder:"单位",clearable:""},model:{value:a.dataForm.unit,callback:function(e){a.$set(a.dataForm,"unit",e)},expression:"dataForm.unit"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"是否超高",prop:"isHeight"}},[t("el-input",{attrs:{placeholder:"是否超高,0不超高,1,超高",clearable:""},model:{value:a.dataForm.isHeight,callback:function(e){a.$set(a.dataForm,"isHeight",e)},expression:"dataForm.isHeight"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"是否超重",prop:"isWeight"}},[t("el-input",{attrs:{placeholder:"是否超重,0不超重,1,超重",clearable:""},model:{value:a.dataForm.isWeight,callback:function(e){a.$set(a.dataForm,"isWeight",e)},expression:"dataForm.isWeight"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"批次号",prop:"dateNum"}},[t("el-input",{attrs:{placeholder:"批次号",clearable:""},model:{value:a.dataForm.dateNum,callback:function(e){a.$set(a.dataForm,"dateNum",e)},expression:"dataForm.dateNum"}})],1),a._v(" "),t("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[t("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:a.dataForm.remarks,callback:function(e){a.$set(a.dataForm,"remarks",e)},expression:"dataForm.remarks"}})],1)],1),a._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){a.visible=!1}}},[a._v("取消")]),a._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(e){a.dataFormSubmit()}}},[a._v("确定")])],1)],1)},staticRenderFns:[]},s=t("VU/8")(r,o,!1,null,null,null);e.default=s.exports}}); |