parent
b85c4ec20d
commit
ac722e2784
@ -0,0 +1,15 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 采购协同列表-App
|
||||
export function getOrderList(params) {
|
||||
let data = {
|
||||
orderStatus: params.orderStatus,
|
||||
moduleId: "591255416864768197",
|
||||
menuId: "591260119262560581",
|
||||
};
|
||||
return request({
|
||||
url: "/api/example/YysMaterialProcurementOrder/list",
|
||||
method: "POST",
|
||||
data,
|
||||
});
|
||||
}
|
@ -1,102 +1,94 @@
|
||||
<template>
|
||||
<view class="category">
|
||||
<template v-if="list.length">
|
||||
<view class="module" v-for="item in list">
|
||||
<view
|
||||
class="category-item"
|
||||
hover-class="none"
|
||||
v-for="item2 in item.children"
|
||||
:key="item2.path"
|
||||
@click="handleToBooking(item2)"
|
||||
>
|
||||
<image
|
||||
v-if="item2.auth"
|
||||
class="icon"
|
||||
:src="item2.imgUrl"
|
||||
mode="scaleToFill"
|
||||
></image>
|
||||
<image
|
||||
v-else
|
||||
class="icon"
|
||||
:src="item2.defaultImgUrl"
|
||||
mode="scaleToFill"
|
||||
></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view v-else class="empty-data">
|
||||
<image
|
||||
class="icon"
|
||||
src="/static/images/home-empty.png"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="category">
|
||||
<template v-if="list.length">
|
||||
<view class="module" v-for="item in list">
|
||||
<view class="category-item" hover-class="none" v-for="item2 in item.children" :key="item2.path"
|
||||
@click="handleToBooking(item2)">
|
||||
<image v-if="item2.auth" class="icon" :src="item2.imgUrl" mode="scaleToFill"></image>
|
||||
<image v-else class="icon" :src="item2.defaultImgUrl" mode="scaleToFill"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<view v-else class="empty-data">
|
||||
<image class="icon" src="/static/images/home-empty.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
||||
import { mapGetters } from "vuex";
|
||||
import { getIMReply, relocation } from "@/api/message.js";
|
||||
export default {
|
||||
props: ["list"],
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
};
|
||||
},
|
||||
watch: {},
|
||||
computed: {},
|
||||
onLoad() {},
|
||||
onUnload() {},
|
||||
methods: {
|
||||
handleToBooking(item) {
|
||||
console.log(item);
|
||||
},
|
||||
},
|
||||
};
|
||||
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
||||
import {
|
||||
mapGetters
|
||||
} from "vuex";
|
||||
import {
|
||||
getIMReply,
|
||||
relocation
|
||||
} from "@/api/message.js";
|
||||
export default {
|
||||
props: ["list"],
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
isLoading: false,
|
||||
};
|
||||
},
|
||||
watch: {},
|
||||
computed: {},
|
||||
onLoad() {},
|
||||
onUnload() {},
|
||||
methods: {
|
||||
handleToBooking(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/yys/materialProcurementOrder/index?test=1'
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scope>
|
||||
.category {
|
||||
padding: 32rpx 10rpx;
|
||||
margin: 16rpx;
|
||||
border-radius: 4rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
// min-height: 80vh;
|
||||
.module {
|
||||
width: 100%;
|
||||
// margin: 10rpx 0;
|
||||
.module-title {
|
||||
font-size: 32rpx;
|
||||
color: #1d2129;
|
||||
}
|
||||
.category-item {
|
||||
border-radius: 16rpx;
|
||||
margin: 40rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0px 3px 12px 0px rgba(63, 112, 157, 0.5);
|
||||
width: 100%;
|
||||
.icon {
|
||||
width: 100%;
|
||||
height: 240rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.category {
|
||||
padding: 32rpx 10rpx;
|
||||
margin: 16rpx;
|
||||
border-radius: 4rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.empty-data {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 480rpx;
|
||||
height: 528rpx;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
// min-height: 80vh;
|
||||
.module {
|
||||
width: 100%;
|
||||
|
||||
// margin: 10rpx 0;
|
||||
.module-title {
|
||||
font-size: 32rpx;
|
||||
color: #1d2129;
|
||||
}
|
||||
|
||||
.category-item {
|
||||
border-radius: 16rpx;
|
||||
margin: 40rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0px 3px 12px 0px rgba(63, 112, 157, 0.5);
|
||||
width: 100%;
|
||||
|
||||
.icon {
|
||||
width: 100%;
|
||||
height: 240rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.empty-data {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 480rpx;
|
||||
height: 528rpx;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<u-navbar :is-back="true" title="采购协同" :background="{backgroundColor: '#375AC8'}" title-color="white" back-icon-color="white">
|
||||
<!-- <view class="slot-wrap">
|
||||
<u-image
|
||||
width="100%"
|
||||
height="100%"
|
||||
src="/static/images/yyslogo.png"
|
||||
mode="aspectFit"
|
||||
></u-image>
|
||||
</view> -->
|
||||
</u-navbar>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scope>
|
||||
.sty-nav /deep/ .u-slot-content {
|
||||
height: 100%;
|
||||
.slot-wrap {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #375AC8;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue