|
|
@ -93,7 +93,7 @@ import request from '@/common/request' |
|
|
|
return{ |
|
|
|
fields:{ |
|
|
|
specName:{label:"规格", disabled:true, agr:true}, |
|
|
|
warning:{label:"预计值",type:"digit",suffix:"",agr:true}, |
|
|
|
warning:{label:"预警值",type:"digit",suffix:"",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}, |
|
|
@ -171,11 +171,14 @@ import request from '@/common/request' |
|
|
|
}) |
|
|
|
} |
|
|
|
//仓库下拉选项 |
|
|
|
var res=await request("/api/WarehouseManageApi/queryWarehouseByBaseId",{ |
|
|
|
params:{baseId: this.$store.state.plantBaseInfoId} |
|
|
|
var res=await request("/api/plantHarvest/getWarehouse",{ |
|
|
|
params:{ |
|
|
|
plantBaseId:this.$store.state.plantBaseInfoId, |
|
|
|
type:1,//1 农资,2 农产品 |
|
|
|
} |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.fields.warehouseId.columns=[res.data] |
|
|
|
this.fields.warehouseId.columns=[res.data.map(v=>({label:v.warehouseName,value:v.id}))] |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
|