This commit is contained in:
weipengfei 2023-12-14 12:03:38 +08:00
parent 4a3f59d2a8
commit 7415eb9f60
4 changed files with 47 additions and 16 deletions

View File

@ -141,4 +141,12 @@ export function getNavigation(data) {
return request.get("navigation", data, { return request.get("navigation", data, {
noAuth: true noAuth: true
}); });
}
/**
* 获取供货采购分类
* @param data string 获取供货采购分类
*/
export function systemGroupValue(data) {
return request.get("system_group_value", data);
} }

View File

@ -1083,16 +1083,16 @@ import { Toast } from '../../libs/uniApi';
}) })
break; break;
case 3: case 3:
// uni.navigateTo({ uni.navigateTo({
// url: '/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=' + url: '/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=' +
// this.userInfoData.mer_info.category_id this.userInfoData.mer_info.category_id
// }) })
// uni.navigateTo({ // uni.navigateTo({
// url: `/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${this.userInfoData.mer_info.category_id}` // url: `/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${this.userInfoData.mer_info.category_id}`
// }) // })
uni.navigateTo({ // uni.navigateTo({
url:`/pages/nongKe/cloud_entrepot/indexb?type_id=12` // url:`/pages/nongKe/cloud_entrepot/indexb?type_id=12`
}) // })
break; break;
case 4: case 4:
uni.navigateTo({ uni.navigateTo({

View File

@ -135,22 +135,22 @@
<view class="special_work-titleb" v-if='codenote[0].status==0'>交易申请状态待审核</view> <view class="special_work-titleb" v-if='codenote[0].status==0'>交易申请状态待审核</view>
</view> </view>
<view class="content "> <view class="content ">
<!-- <view class="examine" <view class="examine"
@click="navigator(`/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)"> @click="navigator(`/pages/users/supply_procurement/index?type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)">
<image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image> <image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image>
<text class="text">供货采购</text> <text class="text">供货采购</text>
</view> --> </view>
<!-- <view class="examine" <!-- <view class="examine"
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)"> @click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${userInfoData.mer_info.category_id}`)">
<image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image> <image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image>
<text class="text">供货采购</text> <text class="text">供货采购</text>
</view> --> </view> -->
<view class="examine" <!-- <view class="examine"
@click="navigator(`/pages/nongKe/cloud_entrepot/indexb?type_id=12`)"> @click="navigator(`/pages/nongKe/cloud_entrepot/indexb?type_id=12`)">
<image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image> <image class="icon_img" src="@/static/images/index4.png" mode="aspectFit"></image>
<text class="text">供货采购</text> <text class="text">供货采购</text>
</view> </view> -->
<view class="examine" @click="navigator('/pages/users/order_list/indexCopy?status=-1&product_type=98')"> <view class="examine" @click="navigator('/pages/users/order_list/indexCopy?status=-1&product_type=98')">
<image class="icon_img" src="@/static/images/index5.png" mode="aspectFit"></image> <image class="icon_img" src="@/static/images/index5.png" mode="aspectFit"></image>
<text class="text">进货管理</text> <text class="text">进货管理</text>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="conent"> <view class="conent">
<view class="con_kuo" <!-- <view class="con_kuo"
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${id}`)"> @click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${id}`)">
<image class="con_img" src="@/static/images/bg1.png" mode=""></image> <image class="con_img" src="@/static/images/bg1.png" mode=""></image>
<image class="con_ico" src="@/static/images/bgic1.png" mode=""></image> <image class="con_ico" src="@/static/images/bgic1.png" mode=""></image>
@ -17,22 +17,44 @@
<h3>先货后款</h3> <h3>先货后款</h3>
<span>先发货后付款</span> <span>先发货后付款</span>
</view> </view>
</view> </view> -->
<view class="con_kuo"
v-for="(item, index) in list"
:key="item.value"
@click="navigator(`/pages/nongKe/supply_chain/supplierA?tit=1&type_id=12&isDetail=1&product_type=98&cate_id=${id}`)">
<image class="con_img" src="@/static/images/bg1.png" mode=""></image>
<image class="con_ico" src="@/static/images/bgic1.png" mode=""></image>
<view class="con_text">
<h3>{{item.name}}</h3>
<span>先付款后发货</span>
</view>
</view>
</view> </view>
</template> </template>
<script> <script>
import { systemGroupValue } from "@/api/public.js"
export default { export default {
data() { data() {
return { return {
id: '' id: '',
list: []
} }
}, },
onLoad(option) { onLoad(option) {
this.id = option.cate_id;
this.id = option.cate_id this.initList();
}, },
methods: { methods: {
initList(){
systemGroupValue({
name: 'purchasing_navigation'
}).then(res=>{
console.log(res);
this.list = res.data;
console.log(this.list);
})
},
navigator(url, t) { navigator(url, t) {
uni.navigateTo({ uni.navigateTo({
url: url url: url
@ -52,6 +74,7 @@
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
flex-wrap: wrap;
margin-top: 20px; margin-top: 20px;
.con_kuo { .con_kuo {