|
|
@@ -1712,11 +1712,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.fromValue.orderProductStoreList = arrList;
|
|
|
- let loading1 = this.$toast.loading({
|
|
|
- duration: 0,
|
|
|
- message: '加载中...',
|
|
|
- forbidClick: true,
|
|
|
- });
|
|
|
+ this.toastLoading(0, '上传中...', true);
|
|
|
var fromValue = this.fromValue;
|
|
|
var telrg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
|
|
if (fromValue.orgId == '') {
|
|
|
@@ -1851,7 +1847,7 @@ export default {
|
|
|
this.verifyStoreType(this.fromValue.storeCategory) &&
|
|
|
this.verifyStoreType(this.fromValue.storeCategory).type == 'fxd'
|
|
|
) {
|
|
|
- loading1.clear();
|
|
|
+ this.toastLoading().clear();
|
|
|
this.$dialog
|
|
|
.confirm({
|
|
|
title: '系统提示',
|
|
|
@@ -1860,11 +1856,7 @@ export default {
|
|
|
cancelButtonText: '修改门店信息',
|
|
|
})
|
|
|
.then(() => {
|
|
|
- let loading1 = this.$toast.loading({
|
|
|
- duration: 0,
|
|
|
- message: '加载中...',
|
|
|
- forbidClick: true,
|
|
|
- });
|
|
|
+ this.toastLoading(0, '上传中...', true);
|
|
|
this.addStoreFun();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -1874,7 +1866,7 @@ export default {
|
|
|
// 添加门店
|
|
|
addStoreFun() {
|
|
|
addStore(this.fromValue).then((res) => {
|
|
|
- loading1.clear();
|
|
|
+ this.toastLoading().clear();
|
|
|
if (res.code == 200) {
|
|
|
if (res.data.serverCode) {
|
|
|
this.fromValue.storeCode = res.data.sfaStore.storeCode;
|