|
|
@@ -0,0 +1,338 @@
|
|
|
+<template>
|
|
|
+<view class="app-content">
|
|
|
+ <view class="input-wrap_box">
|
|
|
+ <view>
|
|
|
+ <AppSearchModule placeholder="输入拼音首字母搜索" @input="searchFn"/>
|
|
|
+ </view>
|
|
|
+ <view style="padding:0 10upx 0 20upx;" >
|
|
|
+ <button class="admin-button-com middle blue" @click="addGhs()">添加供货商</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-page">
|
|
|
+ <view class="order_list" >
|
|
|
+ <block>
|
|
|
+ <block v-if="!$util.isEmpty(supplierList)">
|
|
|
+ <view class="list_item" v-for="(item, index) in supplierList" :key="index" @click="goToCg(item)" >
|
|
|
+
|
|
|
+ <view class="store_name">
|
|
|
+ <image :src="item.avatar"></image>
|
|
|
+ <view class="store_title">{{item.name}}</view>
|
|
|
+ <view class="accumulative"></view>
|
|
|
+ </view>
|
|
|
+ <view class="store_btn">
|
|
|
+ <view class="btn_entrance" @click.stop="pageTo({ url: '/admin/clear/list?ghsId'+item.id})"> 结账记录 </view>
|
|
|
+ <view class="btn_entrance" @click.stop="getDebtList()"> 欠款变动明细 </view>
|
|
|
+ <view class="btn_entrance" @click.stop="pageTo({url:'/pagesPurchase/order?ghsId='+item.id})">采购记录</view>
|
|
|
+ <view class="cg-button">采购</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="box_6 flex-row" @click.stop="goToDebtList(item)" v-if="Number(item.debtAmount)>0">
|
|
|
+ <view class="show_clear_area flex-row justify-between">
|
|
|
+ <image class="icon_2" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps2pvfa1l5i34w5vqj2k7b3kejml3i3nmrba1421bf-caa2-491b-8773-af413df7e96d.png" />
|
|
|
+ <text class="waite_clear_order">待结订单 {{item.debtNum}}笔 ¥{{item.debtAmount?parseFloat(item.debtAmount):0}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="image-text_9 flex-row justify-between">
|
|
|
+ <text class="text-group_4">查看明细</text>
|
|
|
+ <image class="icon_3" referrerpolicy="no-referrer" src="/static/lanhu_020105gongyingshangliebiao/ps83ag7scu3a8bfq22ciodg5hiu0x9cesxjbfb4c9ca-ee3f-45ec-a6d7-6f166e13d6e6.png" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(supplierList)" />
|
|
|
+ </block>
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</view>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
+import { getList } from "@/api/ghs";
|
|
|
+import AppSearchModule from "@/components/module/app-search";
|
|
|
+export default {
|
|
|
+ components: { AppWrapperEmpty, AppSearchModule },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ list: {
|
|
|
+ data: []
|
|
|
+ },
|
|
|
+ supplierList: [],
|
|
|
+ tabIndex: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ uni.removeStorageSync('newGhs');
|
|
|
+ this.getGHSList('')
|
|
|
+ },
|
|
|
+ onPullDownRefresh() {
|
|
|
+ this.getGHSList().then(res => {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ addGhs(){
|
|
|
+ this.pageTo({url:'/pagesPurchase/suppAdd?location=1'})
|
|
|
+ },
|
|
|
+ getDebtList(){
|
|
|
+ this.$msg('开发中')
|
|
|
+ },
|
|
|
+ settleAccounts (item) {
|
|
|
+ //this.pageTo({ url: '/pagesPurchase/gathering?id='+item.id})
|
|
|
+ },
|
|
|
+ init() {
|
|
|
+ this.getGHSList('')
|
|
|
+ },
|
|
|
+ searchFn(e) {
|
|
|
+ this.getGHSList(e)
|
|
|
+ },
|
|
|
+ getGHSList (name) {
|
|
|
+ return getList({ pageSize:300, name:name,location:1 }).then(res => {
|
|
|
+ this.supplierList = res.data.list
|
|
|
+ })
|
|
|
+ },
|
|
|
+ goToDebtList(item) {
|
|
|
+ this.pageTo({url: '/pagesGys/details?id='+item.id})
|
|
|
+ },
|
|
|
+ goToCg (item) {
|
|
|
+ this.pageTo({url: '/pagesPurchase/add?ghsId='+item.id+'&ghsName='+item.name,type:2})
|
|
|
+ //this.pageTo({url: '/pagesPurchase/bookProduct?ghsId='+item.id+'&ghsName='+item.name,type:2})
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.input-wrap_box {
|
|
|
+ background-color: #fff;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ z-index: 10;
|
|
|
+ /* 手机mobile屏幕小于1000px */
|
|
|
+ @media screen and (max-width: 1100px) {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ /* 收银台cashier屏幕大于1000px */
|
|
|
+ @media screen and (min-width:1100px) {
|
|
|
+ width: 40%;
|
|
|
+ }
|
|
|
+ height: 100upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 30upx;
|
|
|
+ & > view:nth-child(1) {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+.order-page {
|
|
|
+ margin-top:100upx;
|
|
|
+ padding-bottom:100upx;
|
|
|
+ .tabs {
|
|
|
+ height: 80upx;
|
|
|
+ line-height: 80upx;
|
|
|
+ & > view {
|
|
|
+ // padding: 0 80upx;
|
|
|
+ width: 50%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 28upx;
|
|
|
+ color: #666;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ & > .active {
|
|
|
+ position: relative;
|
|
|
+ color: #3385ff;
|
|
|
+ font-weight: 700;
|
|
|
+ }
|
|
|
+ & > .active::after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ width: 70upx;
|
|
|
+ height: 6upx;
|
|
|
+ background: #3385ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .order_list {
|
|
|
+ height: 100%;
|
|
|
+ background-color: #ece5e5;
|
|
|
+ padding: 0 0 20upx;
|
|
|
+
|
|
|
+ .flex-col {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ .flex-row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ }
|
|
|
+ .justify-start {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ }
|
|
|
+ .justify-center {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .justify-end {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ }
|
|
|
+ .justify-evenly {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-evenly;
|
|
|
+ }
|
|
|
+ .justify-around {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ }
|
|
|
+ .justify-between {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .align-start {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-start;
|
|
|
+ }
|
|
|
+ .align-center {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .align-end {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+ }
|
|
|
+
|
|
|
+ .list_item {
|
|
|
+ margin: 20upx 0 0;
|
|
|
+ position: relative;
|
|
|
+ height: 280upx;
|
|
|
+ padding-bottom:60upx;
|
|
|
+ width: 100vw;
|
|
|
+ background: #fff;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ & > .store_name {
|
|
|
+ margin-left: 30upx;
|
|
|
+ width: 700upx;
|
|
|
+ display: block;
|
|
|
+ image{
|
|
|
+ width:48upx;
|
|
|
+ height:48upx;
|
|
|
+ border-radius:60upx;
|
|
|
+ float:left;
|
|
|
+ }
|
|
|
+ & > .store_title {
|
|
|
+ margin-bottom: 58upx;
|
|
|
+ margin-left:10upx;
|
|
|
+ width: 400upx;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ word-break: break-all;
|
|
|
+ font-size: 36upx;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #333;
|
|
|
+ display:inline-block;
|
|
|
+ }
|
|
|
+ & > .accumulative {
|
|
|
+ font-size: 26upx;
|
|
|
+ color: #999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ & > .store_btn {
|
|
|
+ position: absolute;
|
|
|
+ top:130upx;
|
|
|
+ left: 0upx;
|
|
|
+ & > .btn_entrance {
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 30upx;
|
|
|
+ color: #666666;
|
|
|
+ padding: 10upx 20upx;
|
|
|
+ margin-left: 20upx;
|
|
|
+ text-decoration:underline;
|
|
|
+ }
|
|
|
+ .cg-button{
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 28upx;
|
|
|
+ color: white;
|
|
|
+ border: 1upx solid #3385FF;
|
|
|
+ border-radius: 80upx;
|
|
|
+ padding: 18upx 32upx;
|
|
|
+ background: #3385FF;
|
|
|
+ position: absolute;
|
|
|
+ top:-80upx;
|
|
|
+ right:-110upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .box_6 {
|
|
|
+ background-color: rgb(248, 242, 242);
|
|
|
+ width: 750upx;
|
|
|
+ height:85upx;
|
|
|
+ position:absolute;
|
|
|
+ top:197upx;
|
|
|
+ .show_clear_area {
|
|
|
+ width: 247upx;
|
|
|
+ height: 29upx;
|
|
|
+ margin: 26upx 0 0 30upx;
|
|
|
+ .icon_2 {
|
|
|
+ width: 22upx;
|
|
|
+ height: 26upx;
|
|
|
+ margin-top: 2upx;
|
|
|
+ }
|
|
|
+ .waite_clear_order {
|
|
|
+ width: 214upx;
|
|
|
+ height: 29upx;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(255, 40, 66, 1);
|
|
|
+ font-size: 30upx;
|
|
|
+ text-align: left;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 29upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .image-text_9 {
|
|
|
+ width: 134upx;
|
|
|
+ height: 27upx;
|
|
|
+ margin: 26upx 29upx 0 310upx;
|
|
|
+ .text-group_4 {
|
|
|
+ width: 111upx;
|
|
|
+ height: 27upx;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ color: rgba(255, 40, 66, 1);
|
|
|
+ font-size: 30upx;
|
|
|
+ text-align: left;
|
|
|
+ white-space: nowrap;
|
|
|
+ line-height: 27upx;
|
|
|
+ }
|
|
|
+ .icon_3 {
|
|
|
+ width: 14upx;
|
|
|
+ height: 24upx;
|
|
|
+ margin-top: 2upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .pay_list {
|
|
|
+ padding-top: 20upx;
|
|
|
+ background-color: #f0f2f6;
|
|
|
+ }
|
|
|
+}
|
|
|
+.app-footer {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ .cg-set{
|
|
|
+ margin-right:60upx;
|
|
|
+ color:#3385ff;
|
|
|
+ font-size:30upx;
|
|
|
+ }
|
|
|
+ .add-ghs{
|
|
|
+ margin-right:30upx;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|