vue2-client 1.15.30 → 1.15.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -19,6 +19,7 @@ export default {
|
|
19
19
|
return {
|
20
20
|
selectAddressVisible: false,
|
21
21
|
addAddressFlag: false,
|
22
|
+
confirmLoading: false,
|
22
23
|
form: {
|
23
24
|
f_address_type: '',
|
24
25
|
f_residential_area_id: '',
|
@@ -120,25 +121,36 @@ export default {
|
|
120
121
|
this.$message.warning('请选择小区')
|
121
122
|
return
|
122
123
|
}
|
123
|
-
this.
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
124
|
+
this.confirmLoading = true
|
125
|
+
try {
|
126
|
+
this.deleteAddressData()
|
127
|
+
runLogic('addAddress', Object.assign({}, this.form, {
|
128
|
+
f_address: this.generateAddressString()
|
129
|
+
}, {
|
130
|
+
orgid: this.currUser.orgid,
|
131
|
+
f_orgid: this.currUser.orgid,
|
132
|
+
f_orgname: this.currUser.orgs,
|
133
|
+
f_depid: this.currUser.depids,
|
134
|
+
f_depname: this.currUser.deps,
|
135
|
+
f_operatorid: this.currUser.id,
|
136
|
+
f_operator: this.currUser.name,
|
137
|
+
f_filialeid: this.currUser.orgid
|
138
|
+
}), 'af-revenue').then(res => {
|
139
|
+
if (res) {
|
140
|
+
this.$message.success(`${this.addAddressMsg}成功`)
|
141
|
+
}
|
142
|
+
}).catch(() => {
|
143
|
+
this.$message.error('添加地址失败')
|
144
|
+
}).finally(() => {
|
145
|
+
this.confirmLoading = false
|
138
146
|
this.addAddressFlag = false
|
139
147
|
this.$refs.selAddressXFormTable.refreshTable(true)
|
140
|
-
}
|
141
|
-
})
|
148
|
+
})
|
149
|
+
} catch (error) {
|
150
|
+
this.$message.error('添加地址失败')
|
151
|
+
this.confirmLoading = false
|
152
|
+
this.addAddressFlag = false
|
153
|
+
}
|
142
154
|
},
|
143
155
|
// 删除 addressData 中存在 addressModel 不存在的字段
|
144
156
|
deleteAddressData () {
|
@@ -215,6 +227,8 @@ export default {
|
|
215
227
|
:dialog-style="{ top: '30px' }"
|
216
228
|
:z-index="1005"
|
217
229
|
@ok="addressSubmit"
|
230
|
+
:ok-button-props="{ loading: confirmLoading }"
|
231
|
+
:confirm-loading="confirmLoading"
|
218
232
|
@cancel="addAddressFlag = false"
|
219
233
|
title="新增地址信息"
|
220
234
|
:destroyOnClose="true">
|