2023-04-21 16:53:32 +08:00
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25362e2c","chunk-dd3803bc"],{"2ab6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"100px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"产品名称",prop:"productName"}},[a("el-input",{attrs:{clearable:"",placeholder:"产品名称"},model:{value:t.dataForm.productName,callback:function(e){t.$set(t.dataForm,"productName",e)},expression:"dataForm.productName"}})],1),a("el-form-item",{attrs:{label:"批次号",prop:"dateNum"}},[a("el-input",{attrs:{clearable:"",placeholder:"批次号"},model:{value:t.dataForm.dateNum,callback:function(e){t.$set(t.dataForm,"dateNum",e)},expression:"dataForm.dateNum"}})],1),a("el-form-item",{attrs:{label:"货物数量",prop:"quantity"}},[a("el-input",{attrs:{clearable:"",placeholder:"货物数量"},model:{value:t.dataForm.quantity,callback:function(e){t.$set(t.dataForm,"quantity",e)},expression:"dataForm.quantity"}})],1),a("el-form-item",{attrs:{label:"是否为空",prop:"isEmpty"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择是否为空"},model:{value:t.dataForm.isEmpty,callback:function(e){t.$set(t.dataForm,"isEmpty",e)},expression:"dataForm.isEmpty"}},t._l(t.options,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"库位状态",prop:"status"}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择库位状态"},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},t._l(t.options1,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("el-form-item",{attrs:{label:"详细规格",prop:"specModel"}},[a("el-input",{attrs:{clearable:"",placeholder:"详细规格"},model:{value:t.dataForm.specModel,callback:function(e){t.$set(t.dataForm,"specModel",e)},expression:"dataForm.specModel"}})],1),a("el-form-item",{attrs:{label:"库位名称",prop:"warehousePositionName"}},[a("el-input",{attrs:{clearable:"",placeholder:"库位名称"},model:{value:t.dataForm.warehousePositionName,callback:function(e){t.$set(t.dataForm,"warehousePositionName",e)},expression:"dataForm.warehousePositionName"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{clearable:"",placeholder:"备注"},model:{value:t.dataForm.remark,callback:function(e){t.$set(t.dataForm,"remark",e)},expression:"dataForm.remark"}})],1)],1)},o=[],r=a("3d7b"),s={mixins:[r["a"]],data:function(){return{urlOptions:{submitURL:"/code/mtWarehousePositionRelat/",infoURL:"/code/mtWarehousePositionRelat"},isGetCode:!0,dataForm:{id:"",productName:"",quantity:"",dateNum:"",specModel:"",isEmpty:"",status:"",warehousePositionName:"",remark:""},options:[{value:0,label:"空"},{value:1,label:"有货"}],options1:[{value:-1,label:"不可用"},{value:0,label:"空库位"},{value:1,label:"空货架"},{value:2,label:"货物正常"},{value:3,label:"货物预入库"},{value:4,label:"货物预出库"}],dataRule:{productName:[{required:!0,message:"产品名称不能为空",trigger:"blur"}]}}},methods:{getCode:function(){var t=this;this.$http.get("/code/mtWarehousePositionRelat/getCode").then((function(e){var a=e.data;t.dataForm.whCode=a})).catch((function(){}))}}},l=s,n=a("2877"),d=Object(n["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports},"3d7b":function(t,e,a){"use strict";a("99af"),a("4160"),a("159b");e["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id?e.$http.get("".concat(e.urlOptions.infoURL,"/")
|