Browse Source

农资入库 修改保存接口

master
邓宏 2 years ago
parent
commit
807e946843
  1. 6
      pages/stock/agrWarehouse.vue

6
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,

Loading…
Cancel
Save