Browse Source

1. 完成美团ota

MONSTER-ygh 5 months ago
parent
commit
e02727b2e1
2 changed files with 11 additions and 11 deletions
  1. 3 3
      src/views/otaMr/meituan/dialog/dataEdit.vue
  2. 8 8
      src/views/otaMr/meituan/index.vue

+ 3 - 3
src/views/otaMr/meituan/dialog/dataEdit.vue

@@ -19,7 +19,7 @@
     <div class="dialog">
       <div>
         <el-form :model="form" ref="form" size="small" :rules="rules" :inline="true" label-width="100px">
-          <el-form-item label="门店POIID" prop="poiId">
+          <!-- <el-form-item label="门店POIID" prop="poiId">
             <el-input
               v-model="form.poiId"
               placeholder="请输入门店POIID"
@@ -42,7 +42,7 @@
                 :value="dict.value"
               />
             </el-select>
-          </el-form-item>
+          </el-form-item> -->
         </el-form>
       </div>
       <el-table 
@@ -61,7 +61,7 @@
             <el-input-number v-else v-model="scope.row.actualAmount" controls-position="right"></el-input-number>
           </template>
         </el-table-column>
-        <el-table-column label="划线价" align="center" prop="originAmount" width="250">
+        <el-table-column label="结算价" align="center" prop="originAmount" width="250">
           <template slot-scope="scope">
             <span v-if="!isCheck(scope.row)">{{ scope.row.originAmount }}</span>
             <el-input-number v-else v-model="scope.row.originAmount" controls-position="right"></el-input-number>

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

@@ -17,16 +17,16 @@
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-          <span v-hasPermi="['otaMr:tiktok:push']" style="display: inline-block;">
+          <span v-hasPermi="['otaMr:meituan:push']" style="display: inline-block;">
             <el-button
               size="mini"
               type="text"
               style="margin-left: 10px;"
               @click="handlePush(scope.row,scope.index)"
-              v-if="(scope.row.status == 0 || scope.row.status == 1) && scope.row.process == 4"
-            >{{ scope.row.status == 0 ? '上线' : '下线' }}</el-button>
+              v-if="(scope.row.status == -1 || scope.row.status == 1)"
+            >{{ scope.row.status == -1 ? '上线' : '下线' }}</el-button>
           </span>
-          <!-- <span v-hasPermi="['otaMr:tiktok:push']" style="display: inline-block;">
+          <!-- <span v-hasPermi="['otaMr:meituan:push']" style="display: inline-block;">
             <el-button
               size="mini"
               type="text"
@@ -39,7 +39,7 @@
             size="mini"
             type="text"
             @click="handleUpdate(scope.row,scope.index)"
-            v-hasPermi="['otaMr:tiktok:scheduling']"
+            v-hasPermi="['otaMr:meituan:scheduling']"
           >排期推送</el-button>
         </template>
       </el-table-column>
@@ -163,13 +163,13 @@ export default {
     },
     /** 推送 */
     handlePush(row) {
-      this.$modal.confirm(`是否确认${ row.status == 0 ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
+      this.$modal.confirm(`是否确认${ row.status == -1 ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
         return updateById({
           id: row.id,
-          status: row.status == 0 ? 1 : 0
+          status: row.status == -1 ? 1 : -1
         });
       }).then(() => {
-        this.$modal.msgSuccess(`${ row.status == 0 ? '上线': row.status == 1 ?'下线':''}成功`);
+        this.$modal.msgSuccess(`${ row.status == -1 ? '上线': row.status == 1 ?'下线':''}成功`);
         this.getList();
       }).catch(() => {