| | |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | }, |
| | | // 查询异地寄送规则列表 |
| | | // 查询预计时效 |
| | | fetchEstimatedDelivery () { |
| | | estimatedDelivery(this.form.cityId) |
| | | .then(data => { |
| | | this.timeTableData = [ |
| | | data |
| | | ] |
| | | this.timeTableData = data |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | |
| | | Promise.all([ |
| | | batchSave({ cityId: this.form.cityId, items: this.jiudiTableData }), |
| | | batchSaveRemoteDelivery({ cityId: this.form.cityId, items: this.remoteTableData }), |
| | | batchSaveEstimatedDelivery({ cityId: this.form.cityId, ...this.timeTableData[0] }), |
| | | batchSaveEstimatedDelivery({ cityId: this.form.cityId, items: this.timeTableData }), |
| | | batchSaveStoreDeposit({ cityId: this.form.cityId, items: this.storeDepositData }), |
| | | batchSaveRevenueShare({ cityId: this.form.cityId, items: this.shareTableData }) |
| | | ]) |
| | | .then(() => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('保存成功') |
| | | // this.$tip.apiSuccess('保存成功') |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |