提交 c469e02b 编写于 作者: guangjun.yang's avatar guangjun.yang

添加关闭医生小店功能

上级 f20354e3
...@@ -78,3 +78,16 @@ export const refundApply = (params) => { ...@@ -78,3 +78,16 @@ export const refundApply = (params) => {
description: '退货', description: '退货',
}) })
}; };
// 关闭医生店铺
export const closeShop = (params) => {
return fetch({
headers,
url: getBaseUrl('store/close'),
method: 'post',
data: params,
description: '退货',
})
};
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
<el-button @click="editShop(scope.row)" type="text" size="small">编辑</el-button> <el-button @click="editShop(scope.row)" type="text" size="small">编辑</el-button>
<el-button @click="shopManage(scope.row)" type="text" size="small">商品管理</el-button> <el-button @click="shopManage(scope.row)" type="text" size="small">商品管理</el-button>
<el-button @click="orderManage(scope.row)" type="text" size="small">订单管理</el-button> <el-button @click="orderManage(scope.row)" type="text" size="small">订单管理</el-button>
<el-button v-if="scope.row.tradeStore.storeType == 3 && scope.row.tradeStore.storeStatus == 0" @click="closeShopAction(scope.row)" type="text" size="small">关闭店铺</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
<script> <script>
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { queryStore, queryShopAuth } from '@/utils/shop'; import { queryStore, queryShopAuth, closeShop } from '@/utils/shop';
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -238,6 +239,15 @@ ...@@ -238,6 +239,15 @@
this.searchForm.pageNo = val; this.searchForm.pageNo = val;
this.searchList(); this.searchList();
}, },
// 关闭医生小店
closeShopAction(row) {
closeShop({id: row.id}).then(res => {
if (res.code == '000000') {
this.searchList();
}
})
}
}, },
filters: { filters: {
storeTypeFormat: function(value){ storeTypeFormat: function(value){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册