|
@ -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] |
|
|