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

1 line
6.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([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 移库",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:"status"}},[t("el-input",{attrs:{placeholder:"状态\t\t0接收数据1数据接收中2数据接收完成4等待接收数据",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:"taskCode"}},[t("el-input",{attrs:{placeholder:"任务编码E代表入库O代表出库出入口加时间到毫秒EA120190912331724",clearable:""},model:{value:e.dataForm.taskCode,callback:function(a){e.$set(e.dataForm,"taskCode",a)},expression:"dataForm.taskCode"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"产品id",prop:"productId"}},[t("el-input",{attrs:{placeholder:"产品id关联产品表mt_product",clearable:""},model:{value:e.dataForm.productId,callback:function(a){e.$set(e.dataForm,"productId",a)},expression:"dataForm.productId"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"产品编码",prop:"productCode"}},[t("el-input",{attrs:{placeholder:"产品编码",clearable:""},model:{value:e.dataForm.productCode,callback:function(a){e.$set(e.dataForm,"productCode",a)},expression:"dataForm.productCode"}})],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:"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}});