diff --git a/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/Form.vue b/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/Form.vue index 57cfd23..f5f2264 100644 --- a/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/Form.vue +++ b/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/Form.vue @@ -10,7 +10,7 @@ - + @@ -161,7 +161,7 @@ dataForm: { id:'', spmc:undefined, - pl:undefined, + pl:[], pp:undefined, spbm:undefined, dyspid:undefined, @@ -313,6 +313,9 @@ this.dataForm = res.data; if(!this.dataForm.spzt)this.dataForm.spzt=[]; if(!this.dataForm.xsmd)this.dataForm.xsmd=[]; + // 商品品类:接口为逗号分隔的多个 F_Id + const plRaw = this.dataForm.pl; + this.dataForm.pl = plRaw ? String(plRaw).split(',').map(s => s.trim()).filter(Boolean) : []; this.getStock(this.dataForm.spbm); }) } else { @@ -386,7 +389,9 @@ tcfs_bl: this.dataForm.tcfs_bl || null, spxlhType: this.dataForm.spxlhType || null, xsqd: this.dataForm.xsqd || null, - pl: this.dataForm.pl || null, + pl: Array.isArray(this.dataForm.pl) && this.dataForm.pl.length + ? this.dataForm.pl.join(',') + : (this.dataForm.pl && typeof this.dataForm.pl === 'string' ? this.dataForm.pl : null), pp: this.dataForm.pp || null, spbm: this.dataForm.spbm || null, dyspid: this.dataForm.dyspid || null, diff --git a/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/index.vue b/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/index.vue index 23df5a4..37d376d 100644 --- a/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/index.vue +++ b/Antis.Erp.Plat/antis-ncc-admin/src/views/wtSp/index.vue @@ -1,4 +1,4 @@ -