|
|
@ -166,6 +166,13 @@ export default {
|
|
|
|
getInfoByInvId({invId: this.invId}).then((res) => {
|
|
|
|
getInfoByInvId({invId: this.invId}).then((res) => {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
this.formData = res.data;
|
|
|
|
this.formData = res.data;
|
|
|
|
|
|
|
|
if(res.data.lowStock==null || res.data.lackStock==null || res.data.overStock==null || res.data.expireDate==null || res.data.recentDate==null){
|
|
|
|
|
|
|
|
this.formData.lowStock=false;
|
|
|
|
|
|
|
|
this.formData.lackStock=false;
|
|
|
|
|
|
|
|
this.formData.overStock=false;
|
|
|
|
|
|
|
|
this.formData.expireDate=false;
|
|
|
|
|
|
|
|
this.formData.recentDate=false;
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.meesage);
|
|
|
|
this.$message.error(res.meesage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|