Browse Source

修改入库类型下拉选接口参数

master
邓宏 2 years ago
parent
commit
5369b3173a
  1. 5
      pages/stock/list.vue
  2. 2
      pages/stock/prodWarehouse.vue

5
pages/stock/list.vue

@ -207,6 +207,8 @@ export default{
this.detail=e this.detail=e
if(this.formData.substanceType==1){ if(this.formData.substanceType==1){
this.fields.number.suffix=(e.specDescribe.match(/\/(.+)/)||['',''])[1] this.fields.number.suffix=(e.specDescribe.match(/\/(.+)/)||['',''])[1]
}else{
this.fields.number.suffix="kg"
} }
this.formData.goodsId=e.id this.formData.goodsId=e.id
}) })
@ -216,7 +218,8 @@ export default{
async init(){ async init(){
var res=await request("/common/api/dict/queryDictItemByDictCode",{ var res=await request("/common/api/dict/queryDictItemByDictCode",{
method:"post", method:"post",
params:{dictCode: ({out:"out_type",in:"in_type"})[this.mode]} //product_
params: {dictCode: (this.formData.substanceType=="2"?"product_":"")+({out:"out_type",in:"in_type"})[this.mode]}
}) })
if(res.statu){ if(res.statu){
this.fields.inOutType.columns=[res.data] this.fields.inOutType.columns=[res.data]

2
pages/stock/prodWarehouse.vue

@ -71,7 +71,7 @@ export default {
// //
var res=await request("/common/api/dict/queryDictItemByDictCode",{ var res=await request("/common/api/dict/queryDictItemByDictCode",{
method:"post", method:"post",
params:{dictCode:"in_type"} params:{dictCode:"product_in_type"}
}) })
if(res.statu){ if(res.statu){
this.fields.inOutType.columns=[res.data] this.fields.inOutType.columns=[res.data]

Loading…
Cancel
Save