|
@@ -92,16 +92,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import {
|
|
|
|
|
- getStoreGroupTask,
|
|
|
|
|
- endVisits,
|
|
|
|
|
- editDwellTime,
|
|
|
|
|
- suishenbangStoreSale,
|
|
|
|
|
- stopVisit,
|
|
|
|
|
- buryingPoint,
|
|
|
|
|
-} from '@/api/index';
|
|
|
|
|
-import { getChainsGroupTask } from '@/api/agentList';
|
|
|
|
|
-import { saveVisitsParams, getOrderUrlByStoreId } from '@/api/inventory';
|
|
|
|
|
|
|
+import { getChainsGroupTask, endVisits, stopVisit, editDwellTime } from '@/api/agentList';
|
|
|
import store from '@/store';
|
|
import store from '@/store';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'visitPage',
|
|
name: 'visitPage',
|
|
@@ -219,45 +210,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- overbookingFn(val) {
|
|
|
|
|
- buryingPoint({
|
|
|
|
|
- systemModel: '拜访页',
|
|
|
|
|
- buryingPointType: 1,
|
|
|
|
|
- buryingPointValue: valchainsName + '(' + val.chainCode + ')',
|
|
|
|
|
- buryingPointName: '去下单',
|
|
|
|
|
- buryingPointPosition: '拜访页',
|
|
|
|
|
- });
|
|
|
|
|
- this.toastLoading(0, '加载中...', true);
|
|
|
|
|
- getOrderUrlByStoreId({
|
|
|
|
|
- chainId: this.$route.query.chainId,
|
|
|
|
|
- from: this.$route.query.from,
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- this.toastLoading().clear();
|
|
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
|
|
- window.location.href = res.data;
|
|
|
|
|
- } else {
|
|
|
|
|
- this.Toast({
|
|
|
|
|
- message: res.msg,
|
|
|
|
|
- duration: 5000,
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- visitFn(val) {
|
|
|
|
|
- var that = this;
|
|
|
|
|
- suishenbangStoreSale({ chainCode: val }).then((res) => {
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- if (res.data.num != '0') {
|
|
|
|
|
- window.location.href =
|
|
|
|
|
- process.env.VUE_APP_SSB_LINK + '/order/storeDetail/index?shopCode=' + val;
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$toast(res.data.msg);
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$toast(res.msg);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
getLocation() {
|
|
getLocation() {
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
// 授权
|
|
// 授权
|