qy-renren-qt/dist/2209300913/static/js/38.js

1 line
6.6 KiB
JavaScript
Raw Normal View History

2022-09-30 09:18:17 +08:00
webpackJsonp([38],{"0X3f":function(e,a,t){"use strict";Object.defineProperty(a,"__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 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/mttaskinfolog/info/"+a.dataForm.id),method:"get",params:a.$http.adornParams()}).then(function(e){var t=e.data;t&&0===t.code&&(a.dataForm=t.mtTaskInfoLog)})})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(a){a&&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(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:"来源",prop:"source"}},[t("el-input",{attrs:{placeholder:"来源如果是系统对接数据显示为erp,其他显示操作员名称",clearable:""},model:{value:e.dataForm.source,callback:function(a){e.$set(e.dataForm,"source",a)},expression:"dataForm.source"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"任务类型",prop:"taskType"}},[t("el-input",{attrs:{placeholder:"任务类型0 出库1入库2 移库",clearabl