Kaynağa Gözat

OTA管理:美团,日历库存推送

shipeng 1 ay önce
ebeveyn
işleme
391c782116
2 değiştirilmiş dosya ile 13 ekleme ve 4 silme
  1. 9 0
      src/api/otaMr/meituan.js
  2. 4 4
      src/views/otaMr/meituan/index.vue

+ 9 - 0
src/api/otaMr/meituan.js

@@ -17,6 +17,15 @@ export const pushById = (data) => {
     })
 }
 
+/** 系统-美团-ota-(日历库存推送)  */
+export const stockPushById = (data) => {
+    return request({
+        url: '/thirdapi/meituan/product/price/stock/push',
+        method: 'post',
+        data: data
+    })
+}
+
 /** 系统-美团(商品上下架)  */
 export const updateById = (data) => {
   return request({

+ 4 - 4
src/views/otaMr/meituan/index.vue

@@ -25,7 +25,7 @@
               @click="handlePush(scope.row,scope.index)"
             >{{ (scope.row.status == -1 || !scope.row.status) ? '上线' : '下线' }}</el-button>
           </span>
-          <!-- <span v-hasPermi="['otaMr:meituan:tuisong']" style="display: inline-block;">
+          <span v-hasPermi="['otaMr:meituan:tuisong']" style="display: inline-block;">
             <el-button
               size="mini"
               type="text"
@@ -33,7 +33,7 @@
               @click="handleInventory(scope.row,scope.index)"
               v-if="scope.row.status == 1"
             >日历库存推送</el-button>
-          </span> -->
+          </span>
           <span v-hasPermi="['otaMr:meituan:time']" style="display: inline-block;margin-right: 10px;">
             <el-button
               size="mini"
@@ -70,7 +70,7 @@
 
 <script>
 
-import { pageList, updateById,stockUpdateById } from '@/api/otaMr/meituan'
+import { pageList, updateById, stockUpdateById, stockPushById } from '@/api/otaMr/meituan'
 import dataEdit from "./dialog/dataEdit.vue";
 
 export default {
@@ -184,7 +184,7 @@ export default {
     },
     handleInventory(row) {
       this.$modal.confirm(`是否确认推送此商品的日历库存?`).then(function() {
-        return stockUpdateById({
+        return stockPushById({
           id: row.id,
         });
       }).then(() => {