Procházet zdrojové kódy

feature_20250722_门店建议订单

zhujindu před 4 měsíci
rodič
revize
dce5ac26bc

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

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

+ 25 - 2
src/views/deviceOutside/productItem.vue

@@ -2,7 +2,9 @@
   <div class="bgcolor productItem">
     <div class="navBarTOP">
       <van-nav-bar class="navBar" title="产品列表" left-arrow @click-left="onClickLeft">
-        <template #right> </template>
+        <template #right>
+          <span style="color: #0057ba" @click="placeOrderFn"> 去下单 </span>
+        </template>
       </van-nav-bar>
     </div>
     <div class="lineGrey"></div>
@@ -28,6 +30,7 @@
 
 <script>
 import { getItemList } from '@/api';
+import { getOrderUrlByStoreId } from '@/api/inventory';
 export default {
   data() {
     return {
@@ -67,7 +70,27 @@ export default {
         }
       });
     },
-
+    placeOrderFn() {
+      let loading1 = this.$toast.loading({
+        duration: 0,
+        message: '加载中...',
+        forbidClick: true,
+      });
+      getOrderUrlByStoreId({
+        storeId: this.$route.query.id,
+        from: this.$route.query.from || '',
+      }).then((res) => {
+        loading1.clear();
+        if (res.code == 200 && res.data) {
+          window.location.href = res.data;
+        } else {
+          this.Toast({
+            message: res.msg,
+            duration: 5000,
+          });
+        }
+      });
+    },
     onClickLeft() {
       this.$router.go(-1);
     },

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

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

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

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

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

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