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

1 line
6.3 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([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:"dataForm.specModel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"产品编码",prop:"productCode"}},[a("el-input",{attrs:{placeholder:"产品编码",clearable:""},model:{value:t.dataForm.productCode,callback:function(e){t.$set(t.dataForm,"productCode",e)},expression:"dataForm.productCode"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"板材名称",prop:"productName"}},[a("el-input",{attrs:{placeholder:"板材名称",clearable:""},model:{value:t.dataForm.productName,callback:function(e){t.$set(t.dataForm,"productName",e)},expression:"dataForm.productName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"货物数量",prop:"quantity"}},[a("el-input",{attrs:{placeholder:"货物数量, 货物总的数量",clearable:""},model:{value:t.dataForm.quantity,callback:function(e){t.$set(t.dataForm,"quantity",e)},expression:"dataForm.quantity"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"库位id",prop:"warehousPositionId"}},[a("el-input",{attrs:{placeholder:"库位id关联表mt_warehous_rank",clearable:""},model:{value:t.dataForm.warehousPositionId,callback:function(e){t.$set(t.dataForm,"warehousPositionId",e)},expression:"dataForm.warehousPositionId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"库位名称",prop:"warehousPositionName"}},[a("el-input",{attrs:{placeholder:"库位名称",clearable:""},model:{value:t.dataForm.warehousPositionName,callback:function(e){t.$set(t.dataForm,"warehousPositionName",e)},expression:"dataForm.warehousPositionName"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"批次号",prop:"dateNum"}},[a("el-input",{attrs:{placeholder:"批次号",clearable:""},model:{value:t.dataForm.dateNum,callback:function(e){t.$set(t.dataForm,"dateNum",e)},expression:"dataForm.dateNum"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{placeholder:"备注",clearable:""},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},l=a("VU/8")(r,o,!1,null,null,null);e.default=l.exports}});