Jelajahi Sumber

feature_20250722_门店建议订单

zhujindu 4 bulan lalu
induk
melakukan
a7c6647a2e

+ 7 - 1
src/views/deviceOutside/index.vue

@@ -908,7 +908,13 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', from: 'outPlan',storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          from: 'outPlan',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 3 - 1
src/views/deviceOutside/productItem.vue

@@ -2,7 +2,7 @@
   <div class="bgcolor productItem">
     <div class="navBarTOP">
       <van-nav-bar class="navBar" title="产品列表" left-arrow @click-left="onClickLeft">
-        <template #right>
+        <template #right v-if="showOrderButton">
           <span style="color: #0057ba" @click="placeOrderFn"> 去下单 </span>
         </template>
       </van-nav-bar>
@@ -58,9 +58,11 @@ export default {
       tabVal: '0',
       detail: null,
       timeData: '',
+      showOrderButton: false,
     };
   },
   activated() {
+    this.showOrderButton = this.$route.query.showOrderButton || false;
     this.tabVal = '0';
     buryingPoint({
       systemModel: '门店列表',

+ 7 - 1
src/views/deviceOutside/rangeStore.vue

@@ -934,7 +934,13 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', from: 'outPlan', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          from: 'outPlan',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 7 - 1
src/views/deviceOutside/topStore.vue

@@ -1039,7 +1039,13 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', from: 'topStore', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          from: 'topStore',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 7 - 1
src/views/deviceWithin/index.vue

@@ -619,7 +619,13 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', from: 'inPlan', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          from: 'inPlan',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 6 - 1
src/views/home/hintTabPage/unCreateStore.vue

@@ -345,7 +345,12 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 6 - 1
src/views/storeManagement/index.vue

@@ -535,7 +535,12 @@ export default {
       localStorage.setItem('tabVal', this.tabVal);
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     linkimg(val) {

+ 6 - 1
src/views/storeManagement/storeAddress.vue

@@ -123,7 +123,12 @@ export default {
     linkList(val) {
       this.$router.push({
         path: '/pItem',
-        query: { id: val.storeId, detilId: 'a', storeCode: val.storeCode },
+        query: {
+          id: val.storeId,
+          detilId: 'a',
+          storeCode: val.storeCode,
+          showOrderButton: val.showOrderButton,
+        },
       });
     },
     onLoad() {