|
@@ -99,7 +99,7 @@
|
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/admin/stat/cgItem'})">采购统计</button>
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/admin/stat/cgItem'})">采购统计</button>
|
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="suggest()">改进建议</button>
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="suggest()">改进建议</button>
|
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/pagesPurchase/pb'})">已屏蔽商家</button>
|
|
<button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/pagesPurchase/pb'})">已屏蔽商家</button>
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/pagesPurchase/open'})">申请完整功能</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com mini-btn blue" style="margin-left:13upx;padding-top:15upx;padding-bottom:15upx;" @click="pageTo({url:'/pagesPurchase/open'})">开启完整功能</button>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
|
|
<view class="ghs_box flex-col justify-end" v-for="(ghsInfo, index) in supplierList" :key="index">
|
|
@@ -147,14 +147,15 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters, mapState } from "vuex";
|
|
import { mapGetters, mapState } from "vuex";
|
|
|
-import { getWeixinId } from "@/api/invite/index";
|
|
|
|
|
|
|
+import { getWeixinId } from "@/api/invite";
|
|
|
import { getStat } from '@/api/console'
|
|
import { getStat } from '@/api/console'
|
|
|
import { getShopInfo } from "@/utils/auth";
|
|
import { getShopInfo } from "@/utils/auth";
|
|
|
import { consoleIndex } from "@/api/workbench";
|
|
import { consoleIndex } from "@/api/workbench";
|
|
|
import NotLogin from "@/components/not-login";
|
|
import NotLogin from "@/components/not-login";
|
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
-import { ghsList } from "@/api/purchase/index";
|
|
|
|
|
|
|
+import { ghsList } from "@/api/purchase";
|
|
|
|
|
+import { changeDelStatus } from "@/api/ghs";
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
components: { NotLogin,AppWrapperEmpty },
|
|
components: { NotLogin,AppWrapperEmpty },
|
|
@@ -259,8 +260,19 @@ export default {
|
|
|
const { id } = item
|
|
const { id } = item
|
|
|
this.pageTo({url: '/pagesPurchase/bookProduct?id='+id})
|
|
this.pageTo({url: '/pagesPurchase/bookProduct?id='+id})
|
|
|
},
|
|
},
|
|
|
- bpSj(item){
|
|
|
|
|
-
|
|
|
|
|
|
|
+ bpSj(ghs){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认屏蔽此商家?',okText:'确认'},() => {
|
|
|
|
|
+ that.confirmPb(ghs)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ confirmPb(ghs){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ changeDelStatus({delStatus:1,ghsId:ghs.id}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.getGHSList()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
enterShop(item) {
|
|
enterShop(item) {
|
|
|
if(item.isOpen == 0){
|
|
if(item.isOpen == 0){
|
|
@@ -786,7 +798,7 @@ export default {
|
|
|
background-size: 137upx 137upx;
|
|
background-size: 137upx 137upx;
|
|
|
width: 130upx;
|
|
width: 130upx;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- left: 585upx;
|
|
|
|
|
|
|
+ left: 575upx;
|
|
|
top: 105upx;
|
|
top: 105upx;
|
|
|
border-radius:39upx;
|
|
border-radius:39upx;
|
|
|
.text_13 {
|
|
.text_13 {
|