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

1 line
6.3 KiB
JavaScript
Raw Normal View History

2022-09-30 14:43:03 +08:00
webpackJsonp([35],{p0Q0:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={data:function(){return{visible:!1,dataForm:{id:0,status:"",isEmpty:"",productId:"",specModel:"",productCode:"",productName:"",quantity:"",warehousPositionId:"",warehousPositionName:"",dateNum:"",remark:""},dataRule:{status:[{required:!0,message:"表示库位状态 -1:不可用0:空库位, 1:空货架, 2:货物正常, 3:货物预入库, 4:货物预出库不能为空",trigger:"blur"}],isEmpty:[{required:!0,message:"是否为空0表示空1表示有货不能为空",trigger:"blur"}],productId:[{required:!0,message:"产品id关联产品表mt_product不能为空",trigger:"blur"}],specModel:[{required:!0,message:"详细规格不能为空",trigger:"blur"}],productCode:[{required:!0,message:"产品编码不能为空",trigger:"blur"}],productName:[{required:!0,message:"板材名称不能为空",trigger:"blur"}],quantity:[{required:!0,message:"货物数量, 货物总的数量不能为空",trigger:"blur"}],warehousPositionId:[{required:!0,message:"库位id关联表mt_warehous_rank不能为空",trigger:"blur"}],warehousPositionName:[{required:!0,message:"库位名称不能为空",trigger:"blur"}],dateNum:[{required:!0,message:"批次号不能为空",trigger:"blur"}]}}},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.$nextTick(function(){e.$refs.dataForm.resetFields(),e.dataForm.id&&e.$http({url:e.$http.adornUrl("/work/mtwarehouspositionrelatlog/info/"+e.dataForm.id),method:"get",params:e.$http.adornParams()}).then(function(t){var a=t.data;a&&0===a.code&&(e.dataForm=a.mtWarehousPositionRelatLog)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("/work/mtwarehouspositionrelatlog/"+(t.dataForm.id?"update":"save")),method:"post",data:t.$http.adornData({id:t.dataForm.id||void 0,status:t.dataForm.status,isEmpty:t.dataForm.isEmpty,productId:t.dataForm.productId,specModel:t.dataForm.specModel,productCode:t.dataForm.productCode,productName:t.dataForm.productName,quantity:t.dataForm.quantity,warehousPositionId:t.dataForm.warehousPositionId,warehousPositionName:t.dataForm.warehousPositionName,dateNum:t.dataForm.dateNum,remark:t.dataForm.remark})}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dataForm.id?"修改":"新增","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"库位状态",prop:"status"}},[a("el-input",{attrs:{placeholder:"表示库位状态 -1:不可用0:空库位, 1:空货架, 2:货物正常, 3:货物预入库, 4:货物预出库",clearable:""},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"是否为空",prop:"isEmpty"}},[a("el-input",{attrs:{placeholder:"是否为空0表示空1表示有货",clearable:""},model:{value:t.dataForm.isEmpty,callback:function(e){t.$set(t.dataForm,"isEmpty",e)},expression:"dataForm.isEmpty"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"产品id",prop:"productId"}},[a("el-input",{attrs:{placeholder:"产品id关联产品表mt_product",clearable:""},model:{value:t.dataForm.productId,callback:function(e){t.$set(t.dataForm,"productId",e)},expression:"dataForm.productId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"详细规格",prop:"specModel"}},[a("el-input",{attrs:{placeholder:"详细规格",clearable:""},model:{value:t.dataForm.specModel,callback:function(e){t.$set(t.dataForm,"specModel",e)},expression:"da