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

1 line
11 KiB
JavaScript
Raw Normal View History

2022-09-30 14:43:03 +08:00
webpackJsonp([18,38],{"0X3f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,userId:"",userName:"",source:"",taskType:"",status:"",taskCode:"",productId:"",productCode:"",specModel:"",num:"",unit:"",remarks:""},dataRule:{userId:[{required:!0,message:"操作员账号id关联表sys_user不能为空",trigger:"blur"}],userName:[{required:!0,message:"操作员名称,如果是系统对接数据,名称显示为空不能为空",trigger:"blur"}],source:[{required:!0,message:"来源如果是系统对接数据显示为erp,其他显示操作员名称不能为空",trigger:"blur"}],taskType:[{required:!0,message:"任务类型0 出库1入库2 移库不能为空",trigger:"blur"}],status:[{required:!0,message:"状态0接收数据1数据接收中2数据接收完成4等待接收数据不能为空",trigger:"blur"}],taskCode:[{required:!0,message:"任务编码E代表入库O代表出库出入口加时间到毫秒EA120190912331724不能为空",trigger:"blur"}],productId:[{required:!0,message:"产品id关联产品表mt_product不能为空",trigger:"blur"}],productCode:[{required:!0,message:"产品编码不能为空",trigger:"blur"}],specModel:[{required:!0,message:"具体型号不能为空",trigger:"blur"}],num:[{required:!0,message:"数量不能为空",trigger:"blur"}],unit:[{required:!0,message:"单位不能为空",trigger:"blur"}]}}},methods:{init:function(e){var t=this;this.dataForm.id=e||"",this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.dataForm.id&&t.$http({url:t.$http.adornUrl("/work/mttaskinfolog/info/"+t.dataForm.id),method:"get",params:t.$http.adornParams()}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.mtTaskInfoLog)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("/work/mttaskinfolog/"+(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,source:e.dataForm.source,taskType:e.dataForm.taskType,status:e.dataForm.status,taskCode:e.dataForm.taskCode,productId:e.dataForm.productId,productCode:e.dataForm.productCode,specModel:e.dataForm.specModel,num:e.dataForm.num,unit:e.dataForm.unit,remarks:e.dataForm.remarks})}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.visible=!1,e.$emit("refreshDataList")}}):e.$message.error(a.msg)})})}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"操作员账号id",prop:"userId"}},[a("el-input",{attrs:{placeholder:"操作员账号id关联表sys_user",clearable:""},model:{value:e.dataForm.userId,callback:function(t){e.$set(e.dataForm,"userId",t)},expression:"dataForm.userId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"操作员名称",prop:"userName"}},[a("el-input",{attrs:{placeholder:"操作员名称,如果是系统对接数据,名称显示为空",clearable:""},model:{value:e.dataForm.userName,callback:function(t){e.$set(e.dataForm,"userName",t)},expression:"dataForm.userName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"来源",prop:"source"}},[a("el-input",{attrs:{placeholder:"来源如果是系统对接数据显示为erp,其他显示操作员名称",clearable:""},model:{value:e.dataForm.source,callback:function(t){e.$set(e.dataForm,"source",t)},expression:"dataForm.source"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[a("el-input",{attrs:{placeholder:"任务类型0 出库1入库2 移库",clear