question.vue
8.3 KB
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<template>
<view class="box">
<view class="head">
<view class="headleft">
<input type="text" placeholder="输入名称查询" @input="enterxiangmu" />
</view>
<view class="headright" @click="chaxun">查询</view>
</view>
<view class="nodata" v-if="zixunlist.length==0">暂无数据</view>
<view class="fenzulist" v-else>
<view class="fenzuitem" v-for="(item,index) in zixunlist" :key="index">
<view class="fenzutop">
<view class="fenzutopleft">
<view class="fenzutopshang">
<text class="bianhao">项目编号:</text><text class="bianhaonum"> {{item.fnumber}}</text>
</view>
<!-- <view class="fenzutopshang">
<text class="bianhao">任务编号:</text><text class="bianhaonum"> {{item.fbillno}}</text>
</view> -->
</view>
<view class="fenzutopright">
<view class="fenzunoimg">
<image src="../../static/img/yifen.png" mode="" v-if="item.fproblemstatus=='已回复'"></image>
<image src="../../static/img/nofen.png" mode="" v-else></image>
</view>
<view class="fenzunoname">{{item.fproblemstatus}}</view>
</view>
</view>
<view class="fenzuobottom">
<view class="fenzutopshang">
<text class="bianhao">项目名称:</text><text class="bianhaonum">
{{item.fname}}
</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">评审类型:</text><text class="bianhaonum">{{item.freviewtype}}</text>
</view>
<view class="fenzubottom">
<view class="fenzubtn" @click='xiangmuzufen(item)'>查看</view>
</view>
<!-- <view class="fenzutopshang">
<text class="bianhao">项目类型:</text><text class="bianhaonum"> {{item.projecttype}}</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目组:</text><text class="bianhaonum">{{item.fteam==null?'':item.fteam}} </text>
</view>
<view class="fenzutopshang">
<text class="bianhao">评审类型:</text><text class="bianhaonum">{{item.freviewtype}} </text>
</view>
<view class="fenzutopshang">
<text class="bianhao">评审类型:</text><text class="bianhaonum">{{item.freviewtype}} </text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目组分配状态:</text><text class="bianhaonum">{{item.ftaskprocess}}</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">任务状态:</text><text class="bianhaonum" v-if="item.ftaskstatus==null"></text><text class="bianhaonum"
v-else>{{item.ftaskstatus}}</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">评审报告状态:</text><text class="bianhaonum" v-if="item.freporttatus==null"></text><text class="bianhaonum"
v-else>{{item.freporttatus}}</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">合同发票状态:</text><text class="bianhaonum" v-if="item.fservicestatus==null"></text><text class="bianhaonum"
v-else>{{item.fservicestatus}}</text>
</view>
<view class="fenzubottom" @click="xiangmuzufen" :data-item="item">
<view class="fenzubtn">项目组分配</view>
</view> -->
</view>
</view>
<!-- <view class="fenzuitem">
<view class="fenzutop">
<view class="fenzutopleft">
<view class="fenzutopshang">
<text class="bianhao">项目编号:</text><text class="bianhaonum"> 20191115001</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">任务编号:</text><text class="bianhaonum"> 20191115001</text>
</view>
</view>
<view class="fenzutopright">
<view class="fenzunoimg">
<image src="../../static/img/yifen.png" mode=""></image>
</view>
<view class="fenzunoname">未分配</view>
</view>
</view>
<view class="fenzuobottom">
<view class="fenzutopshang">
<text class="bianhao">项目名称:</text><text class="bianhaonum">
机关服务中心会务处保安服务项目
</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目类型:</text><text class="bianhaonum"> 预算</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目组:</text><text class="bianhaonum"> </text>
</view>
<view class="fenzubottom">
<view class="fenzubtn">项目组分配</view>
</view>
</view>
</view>
-->
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
zixunlist: [],
keyword: '',
querylist: [],
quesprojectid:''
}
},
onLoad(options) {
// this.quesprojectid=options.quesprojectid;
},
methods: {
// 查看问题
xiangmuzufen(item) {
let newitem = JSON.stringify(item)
uni.navigateTo({
url: '../seequestion/seequestion?item='+ newitem
})
},
getquestionlist() {
let that = this;
let url = "project/Select_Question";
let param = {
qid: '',
userid:uni.getStorageSync("userid"),
role:uni.getStorageSync("role"),
fprojectid:that.quesprojectid
}
console.log('8877665544',param)
app.post(url, param, 'get').then(r => {
console.log('问题列表',r);
that.zixunlist = r.data;
that.querylist = r.data;
}).catch(err => {
console.log(err)
})
},
enterxiangmu(e) {
console.log(e)
this.keyword = e.target.value;
},
chaxun() {
if (this.keyword == '') {
this.getquestionlist();
// this.getdanweilist();
} else {
console.log(9988776655)
let newxiangmuarr = [];
let newzixunlist = this.querylist;
let name = [];
for (var obj of newzixunlist) {
name.push(obj.fname);
}
console.log('名称', name)
for (var i = 0; i < newzixunlist.length; i++) {
for (var j = 0; j < name.length; j++) {
if (name[j].indexOf(this.keyword) >= 0) {
if (j == i) {
newxiangmuarr.push(newzixunlist[i])
}
// console.log(9999)
}
}
}
console.log('9999000777', newxiangmuarr);
this.zixunlist = newxiangmuarr;
}
}
},
onShow:function(){
console.log(2838398)
this.quesprojectid=uni.getStorageSync("questionid");
this.getquestionlist();
// this.getdanweilist();
}
}
</script>
<style>
page {
background: #F9F9F9;
}
.head {
display: flex;
align-items: center;
padding: 20rpx 32rpx;
box-sizing: border-box;
background: #fff;
position: fixed;
top: 0;
left: 0
}
.fenzulist {
margin-top: 100rpx;
}
.headleft {
width: 572rpx;
height: 60rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
padding: 10rpx 24rpx;
box-sizing: border-box;
display: felex;
align-items: center;
display: flex;
align-items: center;
}
.headleft input {
color: #BDC4CE;
font-size: 28rpx;
}
.headright {
width: 98rpx;
height: 60rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #fff;
font-size: 22rpx;
text-align: center;
line-height: 60rpx;
margin-left: 16rpx;
}
.fenzuitem {
width: 686rpx;
/* height: 484rpx; */
background: rgba(255, 255, 255, 1);
box-shadow: 0px 6rpx 6rpx rgba(0, 0, 0, 0.03);
opacity: 1;
border-radius: 20rpx;
margin: 20rpx auto 0;
padding: 28rpx 32rpx 40rpx;
box-sizing: border-box;
}
.fenzutopright {}
.fenzunoimg {
width: 28rpx;
height: 28rpx;
font-size: 0;
margin-right: 10rpx;
}
.fenzunoimg image {
width: 100%;
height: 100%;
}
.bianhao {
color: #8C9198;
font-size: 24rpx;
}
.bianhaonum {
color: #06121E;
font-size: 24rpx;
letter-spacing: 2rpx;
}
.fenzunoname {
color: #3D444D;
font-size: 24rpx;
}
.fenzutopright {
display: flex;
align-items: center;
width: 126rpx;
height: 48rpx;
border: 1rpx solid rgba(189, 196, 206, 1);
opacity: 1;
border-radius: 8rpx;
padding: 0 5rpx;
box-sizing: border-box;
}
.fenzutop {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f5f5f5;
}
.fenzuobottom {
margin-top: 16rpx
}
.fenzubottom {
display: flex;
justify-content: flex-end;
margin-top: 16rpx
}
.fenzubtn {
width: 200rpx;
height: 64rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #F9F9F9;
font-size: 24rpx;
text-align: center;
line-height: 64rpx;
}
</style>