|
@@ -503,9 +503,8 @@ export default {
|
|
|
method: 'post',
|
|
|
data
|
|
|
}).then(({ data }) => {
|
|
|
- if(type == 'submit') {
|
|
|
- this.submit(2)
|
|
|
- } else {
|
|
|
+
|
|
|
+ // } else {
|
|
|
this.ruleForm.goodsList.forEach((item, index) => {
|
|
|
this.calculateKeyList.forEach(key => {
|
|
|
item[key] = data[index][key]
|
|
@@ -513,8 +512,11 @@ export default {
|
|
|
// item.purchaseGuaranteeMoney = data[index].purchaseGuaranteeMoney
|
|
|
})
|
|
|
this.calculateTotal()
|
|
|
+ if(type == 'submit') {
|
|
|
+ this.submit(2)
|
|
|
+ }
|
|
|
// this.isLoading = false
|
|
|
- }
|
|
|
+ // }
|
|
|
}, () => {
|
|
|
// this.isLoading = false
|
|
|
})
|