|
@@ -275,16 +275,20 @@ export default {
|
|
|
handleSubmit() {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
- const quantity = this.form.goodsList[0].quantity;
|
|
|
+ // const quantity = this.form.goodsList[0].quantity;
|
|
|
this.submitData = {
|
|
|
purchaseId: this.backForm.purchaseId,
|
|
|
- quantity,
|
|
|
contacts: this.form.contacts,
|
|
|
phone: this.form.phone,
|
|
|
cityId: this.form.cityId,
|
|
|
provinceId: this.form.provinceId,
|
|
|
countryId: this.form.countryId,
|
|
|
detailedAddress: this.form.detailedAddress,
|
|
|
+ goodsList: this.form.goodsList.map((x) => ({
|
|
|
+ goodsId: x.goodsId,
|
|
|
+ quantity: x.quantity,
|
|
|
+ unitPrice: x.unitPrice,
|
|
|
+ })),
|
|
|
};
|
|
|
this.loading = true;
|
|
|
this.$emit("submit", this.submitData);
|