qy-renren-qt/dist/2209301437/static/js/39.js
2022-09-30 14:43:03 +08:00

1 line
8.6 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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