qy-renren-qt/dist/2209301437/static/js/39.js

1 line
8.6 KiB
JavaScript
Raw Permalink Normal View History

2022-09-30 14:43:03 +08:00
webpackJsonp([39],{qyvl:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,userId:"",userName:"",warehousRankId:"",warehousRankName:"",taskId:"",taskType:"",startPosition:"",targetPosition:"",status:"",taskDetCode:"",specModel:"",num:"",unit:"",isHeight:"",isWeight:"",dateNum:"",remarks:""},dataRule:{userId:[{required:!0,message:"操作员账号id关联表sys_user不能为空",trigger:"blur"}],userName:[{required:!0,message:"操作员名称,如果是系统对接数据,名称显示为空不能为空",trigger:"blur"}],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(e){var a=this;this.dataForm.id=e||"",this.visible=!0,this.$nextTick(function(){a.$refs.dataForm.resetFields(),a.dataForm.id&&a.$http({url:a.$http.adornUrl("/work/mttaskinfodetlog/info/"+a.dataForm.id),method:"get",params:a.$http.adornParams()}).then(function(e){var t=e.data;t&&0===t.code&&(a.dataForm=t.mtTaskInfoDetLog)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(a){a&&e.$http({url:e.$http.adornUrl("/work/mttaskinfodetlog/"+(e.dataForm.id?"update":"save")),method:"post",data:e.$http.adornData({id:e.dataForm.id||void 0,userId:e.dataForm.userId,userName:e.dataForm.userName,warehousRankId:e.dataForm.warehousRankId,warehousRankName:e.dataForm.warehousRankName,taskId:e.dataForm.taskId,taskType:e.dataForm.taskType,startPosition:e.dataForm.startPosition,targetPosition:e.dataForm.targetPosition,status:e.dataForm.status,taskDetCode:e.dataForm.taskDetCode,specModel:e.dataForm.specModel,num:e.dataForm.num,unit:e.dataForm.unit,isHeight:e.dataForm.isHeight,isWeight:e.dataForm.isWeight,dateNum:e.dataForm.dateNum,remarks:e.dataForm.remarks})}).then(function(a){var t=a.data;t&&0===t.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}}):e.$message.error(t.msg)})})}}},o={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(a){e.visible=a}}},[t("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(a){if(!("button"in a)&&e._k(a.keyCode,"enter",13,a.key,"Enter"))return null;e.dataFormSubmit()}}},[t("el-form-item",{attrs:{label:"操作员账号id",prop:"userId"}},[t("el-input",{attrs:{placeholder:"操作员账号id关联表sys_user",clearable:""},model:{value:e.dataForm.userId,callback:function(a){e.$set(e.dataForm,"userId",a)},expression:"dataForm.userId"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"操作员名称",prop:"userName"}},[t("el-input",{attrs:{placeholder:"操作员名称如果是系<EFBFBD>