shish %!s(int64=3) %!d(string=hai) anos
pai
achega
61ba5f74b9
Modificáronse 2 ficheiros con 20 adicións e 6 borrados
  1. 11 6
      pt/src/saas/shop/shop.vue
  2. 9 0
      pt/src/service/saas/shop/index.js

+ 11 - 6
pt/src/saas/shop/shop.vue

@@ -20,7 +20,7 @@
             </template>
             <!-- 充值 -->
             <template #slot-apply="{scope}">
-              <el-button type="text" @click="topUp(scope.row.shopName, scope.row.id)">充值</el-button>
+              <el-button type="text" @click="changeOnlyCg(scope.row)">调整仅采购</el-button>
             </template>
         </x-crud>
 
@@ -126,6 +126,12 @@
                                 width: '120',
                                 align: 'center'
                             },
+                            {
+                                prop: 'ptStyle',
+                                label: '类型',
+                                width: '100',
+                                align: 'center'
+                            },
                             {
                                 prop: 'balance',
                                 label: '余额',
@@ -218,11 +224,10 @@
                     .done();
                 app.refresh();
             },
-            // 充值
-            topUp(name, id) {
-              this.dialogTitle = name
-              this.topForm.shopId = id
-              this.wxPayDialog = true
+            changeOnlyCg(item) {
+                  this.$service.saasShop.changeOnlyCg({id:item.id}).then(res => {
+                    this.$message.success('操作成功')
+                  })
             },
              resetForm () {
               this.$refs['adForm'].resetFields();

+ 9 - 0
pt/src/service/saas/shop/index.js

@@ -99,6 +99,15 @@ export class ShopService extends BaseService {
             params: data,
         });
     }
+
+    //调整仅采购
+    changeOnlyCg(data) {
+        return this.request({
+            url: '/shop/change-only-cg',
+            params: data,
+        });
+    }
+
 }
 
 export default new ShopService();