|
|
@@ -818,6 +818,7 @@ import {
|
|
|
getCustomerNatureList,
|
|
|
getpotentialCustomerTypeList,
|
|
|
getDictOption,
|
|
|
+ recognizeDisplayPhoto,
|
|
|
} from '@/api/index';
|
|
|
import uploadImg from '@/components/uploadImgVStore';
|
|
|
import uploadImgc from '@/components/uploadImgVStorec';
|
|
|
@@ -1583,8 +1584,8 @@ export default {
|
|
|
// ***********************************
|
|
|
// ***************************************
|
|
|
// ****************************** */
|
|
|
- // this.addVisits();
|
|
|
- this.beforeAddFn();
|
|
|
+ this.addVisits();
|
|
|
+ // this.beforeAddFn();
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
this.beforeAddFn();
|
|
|
@@ -1879,6 +1880,7 @@ export default {
|
|
|
this.moreTypeShow = false;
|
|
|
},
|
|
|
onSubmit() {
|
|
|
+ this.fromValue.tempStoreCode = null;
|
|
|
var that = this;
|
|
|
var arrList = [];
|
|
|
for (var n2 = 0; n2 < this.sfaOrderProducts.length; n2++) {
|
|
|
@@ -2080,7 +2082,20 @@ export default {
|
|
|
this.fromValue.orgName.indexOf('BMD') != -1
|
|
|
) {
|
|
|
this.progress();
|
|
|
- this.addStoreFun('BMD');
|
|
|
+ recognizeDisplayPhoto({ imgSed: this.fromValue.imgSed })
|
|
|
+ .then((response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ this.fromValue.tempStoreCode = response.data.storeCode;
|
|
|
+ this.addStoreFun();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.resetProgress();
|
|
|
+ this.$dialog.alert({
|
|
|
+ title: '系统提示',
|
|
|
+ message: response.msg,
|
|
|
+ });
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$dialog
|
|
|
.confirm({
|
|
|
@@ -2101,7 +2116,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 添加门店
|
|
|
- addStoreFun(BMDtype) {
|
|
|
+ addStoreFun() {
|
|
|
addStore(this.fromValue)
|
|
|
.then((res) => {
|
|
|
this.toastLoading().clear();
|