邓宏 2 years ago
parent
commit
fdcf9085b5
  1. 2
      pages/purchase/apply.vue
  2. 7
      pages/purchase/specs.vue

2
pages/purchase/apply.vue

@ -152,7 +152,7 @@ export default {
async init(){
var res=await request("/api/purchase/purchaseUserShow",{
params:{
plantBaseInfoId:this.$store.getters['userInfo'].plantBaseInfoId,
plantBaseInfoId:this.$store.state.plantBaseInfoId,
}
})
if(res.statu){

7
pages/purchase/specs.vue

@ -280,8 +280,11 @@ export default{
}
},
async searchStock(id){
var res=await request("/api/goods/stockShow?goodsSpecificationId",{
params:{goodsSpecificationId:id}
var res=await request("/api/goods/stockShow",{
params:{
goodsSpecificationId:id,
plantBaseInfoId:this.$store.state.plantBaseInfoId,
}
})
if(res.data.packing&&res.data.heft){
this.specStr=`${res.data.packing}(${res.data.heft})`

Loading…
Cancel
Save