diff --git a/pages/stock/agrWarehouse.vue b/pages/stock/agrWarehouse.vue index e13447c..2929d2d 100644 --- a/pages/stock/agrWarehouse.vue +++ b/pages/stock/agrWarehouse.vue @@ -93,7 +93,7 @@ import request from '@/common/request' return{ fields:{ specName:{label:"规格", disabled:true, agr:true}, - number:{label:"入库数量", type:"digit",suffix:"袋", tip:"",agr:true}, + number:{label:"入库数量", type:"digit",suffix:"袋", tip:""}, inOutBatchNo:{label:"入库批次号",agr:true, btnText:"生成", btnFun:()=>this.formData.inOutBatchNo=`RK${new Date().format('yyyyMMdd')}${new Date().getTime()}`}, warehouseId:{label:"选择仓库", type:"select",columns:[],value:[],agr:true}, inOutType:{label:"入库类型",type:"select",columns:[],value:[]}, @@ -112,6 +112,8 @@ import request from '@/common/request' operateTime:"", pic:[], remark:"", + + substanceType: 1, }, rules:{ number:{required:true,type:"number", message:"入库数量必填!"}, @@ -192,7 +194,7 @@ import request from '@/common/request' submit(){ this.$refs.form.validate().then(async valid=>{ if(valid){ - var res=await request("/api/InventoryManageApi/addInventory",{ + var res=await request("/api/Inventory/addInventory",{ method:"post", body: { ...this.formData,