819527061@qq.com
2023-11-28 1c7b86f984498eab66968c8d9e9ece42634b96bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<template>
    <!-- 新增申请 -->
    <view class="new-application">
        <!-- 搜索区域 -->
        <!-- <view class="searchBox">
            <view class="search">
                <u-search @clickIcon="searchIconClick" :clearabled="false" :showAction="false" placeholder="请输入标题" v-model="searchData" shape="square"></u-search>
            </view>
            <view class="data-selet" @click="statusSeletShow = true">
                <view class="content">
                    <text>{{ dataSeletText }}</text>
                </view>
                <view class="uni-select__icon"><image src="@/static/icon/select.png" mode="加载失败"></image></view>
            </view>
        </view> -->
        <combined-title title="申请模板"></combined-title>
        <!-- 卡片区域 -->
    <template v-if="permissions.yunxiao_xswaybill_add">
      <view
          class="newApplicationCard"
          @click="toNewApplicationDetails"
          v-for="(item, index) in newApplicationData" :key="index">
        <view class="card">
          <view class="card-left">
            <view class="card-left_top">
              <text>{{ item.description }}</text>
            </view>
            <view class="card-left_bottom">
              <text>版本:v{{ item.version }}</text>
              <text>所属分类:{{ item.categoryTitle|| '' }}</text>
            </view>
          </view>
          <view class="card-right">
            <view class="icon"><image src="@/static/groupAppTotalImg/back_1.png" mode=""></image></view>
          </view>
        </view>
      </view>
    </template>
 
        <view
        v-if="permissions.yunxiao_gatheringbill_add"
        class="newApplicationCard shoukuanDetailCard"
        @click="ToPaymentForm">
            <view class="card">
                <view class="card-left">
                    <view class="card-left_bottom">
                        <text>添加收款明细</text>
                    </view>
                </view>
                <view class="card-right">
                    <view class="icon"><image src="@/static/groupAppTotalImg/back_1.png" mode=""></image></view>
                </view>
            </view>
        </view>
 
 
        <!-- 选择器 -->
        <u-picker @cancel="statusSeletShow = false" @confirm="statusConfirm" :show="statusSeletShow" :columns="statusList"></u-picker>
 
        <!-- 菜单栏 -->
        <popup-menu @menuShow="menushow" ref="menuRef"></popup-menu>
    </view>
</template>
 
<script>
import popupMenu from '@/components/common/popup-menu/popup-menu.vue';
import combinedTitle from '@/components/common/combined-title/combined-title.vue';
import {mapGetters} from 'vuex'
export default {
    name: 'new-application',
  computed:{
    ...mapGetters(['permissions']),
  },
    data() {
        return {
            searchData: '',
            dataSeletText: '请选择状态',
            // 选择器
            statusSeletShow: false,
            statusList: [['中国', '美国', '日本']],
            menuShow: false,
            updateData: {
                showLatest: true,
                filter: true,
                status: 1,
                pageNumber: 1,
                pageSize: 10,
                sort: 'createTime',
                order: 'desc'
            },
            newApplicationData: []
        };
    },
    onShow() {
        if (this.menuShow == true) {
            this.$refs.menuRef.menuClick();
        }
        this.init();
    },
    getCurrentPages(e) {
    },
    // 点击导航栏菜单后
    onNavigationBarButtonTap(e) {
        // console.log(e);
        this.$refs.menuRef.menuClick();
    },
    components: {
        popupMenu,
        combinedTitle
    },
    methods: {
        init() {
            this.newApplicationData = [];
            uni.showLoading({
                title:'加载中...'
            })
            this.$reqGet('getNewProcessDataList', this.updateData).then(res => {
                uni.hideLoading();
                if (res.code === 0) {
                    res.data.records.forEach(item => {
                        if (item.name == '发运通知单'||item.description == '发运通知单') {
                            this.newApplicationData.push(item);
                        }
                    });
                    console.log('新增', res);
                }
            });
        },
        menushow(e) {
            this.menuShow = e;
        },
        // 搜索
        searchIconClick() {
            console.log(1111, this.searchData);
        },
        // 新增申请表单页
        toNewApplicationDetails() {
            uni.navigateTo({
                url: '/pages/new-application-form-data/new-application-form-data'
            });
        },
        //新增收款明细
        ToPaymentForm() {
            uni.navigateTo({
                url:'/pages/payment-form-data/payment-form-data'
            })
        }
    }
};
</script>
 
<style lang="scss" scoped>
::v-deep.new-application {
    // 搜索框
    .searchBox {
        width: 91%;
        display: flex;
        justify-content: space-between;
        margin: vww(16) auto;
        .search {
            width: vww(160);
            border: 1px solid #d1d1d1;
            border-radius: vww(4);
            .u-search {
                .u-search__content {
                    height: 40px;
                    background-color: #ffffff !important;
                    .u-search__content__icon {
                        width: 10px;
                        height: 5.5px;
                    }
                    .u-search__content__input {
                        background-color: #ffffff !important;
                    }
                }
            }
        }
        // 下拉菜单
        .data-selet {
            border: 1px solid #d1d1d1;
            border-radius: 4px;
            width: vww(160);
            // width: 100%;
            height: 40px;
            display: flex;
            align-items: center;
            font-size: 13px;
            color: #666;
            .uni-select__icon {
                display: flex;
                align-content: center;
                margin: 0 10px;
                image {
                    width: 10px;
                    height: 5.5px;
                }
            }
            .content {
                margin-left: vww(8);
                width: vww(150);
            }
        }
    }
 
    // 卡片
    .newApplicationCard {
        width: 91%;
        margin: vww(16) auto;
        .card {
            width: 100%;
            height: vww(81);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(0, 122, 255, 0.18);
            background: rgba(0, 122, 255, 0.04);
            border-radius: vww(4);
            .card-left {
                margin-left: vww(16);
                width: 80%;
                .card-left_top {
                    font-size: vww(16);
                }
                .card-left_bottom {
                    font-size: vww(13);
                    margin-top: vww(12);
                    text {
                        margin-right: vww(16);
                    }
                }
            }
            .card-right {
                margin-right: vww(16);
                .icon {
                    image {
                        width: vww(9.7);
                        height: vww(16);
                    }
                }
            }
        }
    }
    .shoukuanDetailCard{
        .card{
            height: auto;
            .card-left_bottom {
                font-size: vww(13);
                margin: vww(12) 0;
                text {
                    margin-right: vww(16);
                }
            }
        }
    }
}
</style>