manage-client 1.22.53-ca → 1.22.54-ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,288 +1,288 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
-
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
-
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
8
|
-
<label class="font_normal_body _zoom4" >卡号</label>
|
|
9
|
-
<input type="text" class="form-control" v-numfilter v-model="model.f_userinfo_code" style="width: 60%"
|
|
10
|
-
condition="f_userinfo_code = '{}' " placeholder="卡号">
|
|
11
|
-
</div>
|
|
12
|
-
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
13
|
-
<label class="font_normal_body _zoom4" >用户姓名</label>
|
|
14
|
-
<input type="text" class="form-control" v-model="model.f_user_name" style="width: 60%"
|
|
15
|
-
condition=" f_user_name like '%{}%'" placeholder='用户姓名'>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
18
|
-
<label class="font_normal_body _zoom4" >用户地址</label>
|
|
19
|
-
<input type="text" class="form-control" v-model="model.f_address" style="width: 60%"
|
|
20
|
-
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
23
|
-
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
24
|
-
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
25
|
-
v-model="model.startDate"
|
|
26
|
-
:value.sync="model.startDate"
|
|
27
|
-
:format="'yyyy-MM-dd'"
|
|
28
|
-
:show-reset-button="true"
|
|
29
|
-
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
30
|
-
</datepicker>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
33
|
-
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
34
|
-
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
35
|
-
v-model="model.endDate"
|
|
36
|
-
:value.sync="model.endDate"
|
|
37
|
-
:format="'yyyy-MM-dd'"
|
|
38
|
-
:show-reset-button="true"
|
|
39
|
-
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
40
|
-
</datepicker>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
</div>
|
|
44
|
-
<div class="row">
|
|
45
|
-
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
46
|
-
<button class="btn btn-success" @click="search()">查询</button>
|
|
47
|
-
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
-
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
49
|
-
|
|
50
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
51
|
-
:field="$parent.$parent.getfield"
|
|
52
|
-
sqlurl="rs/logic/exportfile" sql-name="AbndonQuery" template-name='弃用查询导出' :choose-col="true"></export-excel>
|
|
53
|
-
<div
|
|
54
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
55
|
-
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</criteria>
|
|
60
|
-
|
|
61
|
-
<data-grid :model="model" partial='list' v-ref:grid >
|
|
62
|
-
<template partial='head'>
|
|
63
|
-
<tr>
|
|
64
|
-
<th><nobr>卡号</nobr></th>
|
|
65
|
-
<th><nobr>用户姓名</nobr></th>
|
|
66
|
-
<th><nobr>用户地址</nobr></th>
|
|
67
|
-
<th><nobr>弃用原因</nobr></th>
|
|
68
|
-
<th style="padding: 10px 150px"><nobr>备注</nobr></th>
|
|
69
|
-
<th><nobr>状态</nobr></th>
|
|
70
|
-
<th><nobr>弃用前状态</nobr></th>
|
|
71
|
-
<th><nobr>弃用日期</nobr></th>
|
|
72
|
-
<th><nobr>操作员</nobr></th>
|
|
73
|
-
<th><nobr>营业网点</nobr></th>
|
|
74
|
-
<th><nobr>分公司</nobr></th>
|
|
75
|
-
</tr>
|
|
76
|
-
</template>
|
|
77
|
-
<template partial='body'>
|
|
78
|
-
<td style="text-align: center;"><nobr>
|
|
79
|
-
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
80
|
-
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
81
|
-
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
82
|
-
<td style="text-align: center;"><nobr>{{row.f_reason}} {{row.f_othereason}}</nobr></td>
|
|
83
|
-
<td style="text-align: center;word-break: break-word;">
|
|
84
|
-
<p :id="'f_remark-'+$index" style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;margin: 0"
|
|
85
|
-
@click="$parent.$parent.$parent.p_click('f_remark-'+$index,'f_remarkinput-'+$index)">
|
|
86
|
-
{{row.f_remark}}</p>
|
|
87
|
-
<textarea rows="2" style="display: none;margin: 0;width: 100%;border: 1px solid #e4f9f5"
|
|
88
|
-
@blur="$parent.$parent.$parent.input_blur('f_remark-'+$index,'f_remarkinput-'+$index)"
|
|
89
|
-
:id="'f_remarkinput-'+$index" >{{row.f_remark}}</textarea>
|
|
90
|
-
</td>
|
|
91
|
-
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
92
|
-
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
93
|
-
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
94
|
-
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
95
|
-
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
96
|
-
<td style="text-align: center;"><nobr>{{row.f_filiale}}</nobr></td>
|
|
97
|
-
</template>
|
|
98
|
-
<template partial='foot'></template>
|
|
99
|
-
</data-grid>
|
|
100
|
-
</criteria-paged>
|
|
101
|
-
|
|
102
|
-
<table class="table-hover">
|
|
103
|
-
<tr class="table-bordered">
|
|
104
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
105
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计: {{sumsmodel.f_fillgas}}</td>
|
|
106
|
-
</tr>
|
|
107
|
-
</table>
|
|
108
|
-
<!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
|
|
109
|
-
<!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
|
|
110
|
-
<!--<header slot="modal-header" class="modal-header text-center">-->
|
|
111
|
-
<!--<h4 class="modal-title">打印列选择</h4>-->
|
|
112
|
-
<!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
|
|
113
|
-
<!--<label for="f_generations" class="font-size">全选</label>-->
|
|
114
|
-
<!--</header>-->
|
|
115
|
-
<!--<article slot="modal-body">-->
|
|
116
|
-
<!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
|
|
117
|
-
<!--<div class="col-sm-3" v-for="f in fields">-->
|
|
118
|
-
<!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
|
|
119
|
-
<!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
|
|
120
|
-
<!--</div>-->
|
|
121
|
-
<!--</div>-->
|
|
122
|
-
<!--</article>-->
|
|
123
|
-
<!--<footer slot="modal-footer" class="modal-footer">-->
|
|
124
|
-
<!--<center>-->
|
|
125
|
-
<!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
|
|
126
|
-
<!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
|
|
127
|
-
<!--<print-table :model='model' v-show="false" v-ref:print-->
|
|
128
|
-
<!--:top='40' :left='60' :right='40' :bottom='60'-->
|
|
129
|
-
<!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
|
|
130
|
-
<!--:fields="modelval" :printpage="true">-->
|
|
131
|
-
<!--</print-table>-->
|
|
132
|
-
<!--</center>-->
|
|
133
|
-
<!--</footer>-->
|
|
134
|
-
<!--</modal>-->
|
|
135
|
-
</div>
|
|
136
|
-
</template>
|
|
137
|
-
|
|
138
|
-
<script>
|
|
139
|
-
import { PagedList } from 'vue-client'
|
|
140
|
-
import defaultPrint from '../config/DefaultPrint'
|
|
141
|
-
import exportConfig from '../config/exportConfig'
|
|
142
|
-
|
|
143
|
-
let readySomething = async function (self) {
|
|
144
|
-
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
145
|
-
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
146
|
-
//self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
|
|
147
|
-
/* await self.$refs.paged.$refs.cri.search()
|
|
148
|
-
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums*/
|
|
149
|
-
}
|
|
150
|
-
export default {
|
|
151
|
-
data() {
|
|
152
|
-
return {
|
|
153
|
-
data: {},
|
|
154
|
-
model: new PagedList('rs/sql/AbndonQuery', 20,{tablename:' "t_abandon" '}),
|
|
155
|
-
criteriaShow: true,
|
|
156
|
-
headData: ["用户编号","用户姓名","操作人","操作日期","弃用状态","弃用原因","其他弃用原因","同步状态"],
|
|
157
|
-
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_reason", "f_othereason", "f_sendsuccess"],
|
|
158
|
-
|
|
159
|
-
filialeNameStr: null,
|
|
160
|
-
filialeCodeStr: this.$login.f.f_orgids,
|
|
161
|
-
userid: this.$login.f.id,
|
|
162
|
-
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
163
|
-
|
|
164
|
-
modelval: [],
|
|
165
|
-
printshow: false,
|
|
166
|
-
all: false,
|
|
167
|
-
fields: {},
|
|
168
|
-
thead: '',
|
|
169
|
-
tfoot: '',
|
|
170
|
-
//合计数据
|
|
171
|
-
sumsmodel: {}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
ready(){
|
|
175
|
-
readySomething(this).then(() => {
|
|
176
|
-
this.$emit('ready')
|
|
177
|
-
}).catch((error) => {
|
|
178
|
-
this.$emit('error', error)
|
|
179
|
-
})
|
|
180
|
-
},
|
|
181
|
-
methods: {
|
|
182
|
-
//p标签点击方法
|
|
183
|
-
p_click(p_id,i_id){
|
|
184
|
-
document.getElementById(p_id).style.display="none"
|
|
185
|
-
document.getElementById(i_id).style.display="inline-block"
|
|
186
|
-
document.getElementById(i_id).select()
|
|
187
|
-
console.log(p_id,i_id)
|
|
188
|
-
},
|
|
189
|
-
//input失去焦点方法
|
|
190
|
-
input_blur(p_id,i_id){
|
|
191
|
-
document.getElementById(p_id).style.display="-webkit-box"
|
|
192
|
-
document.getElementById(i_id).style.display="none"
|
|
193
|
-
console.log(p_id,i_id)
|
|
194
|
-
},
|
|
195
|
-
selfSearch (args) {
|
|
196
|
-
this.model.search(args.condition, args.model)
|
|
197
|
-
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
198
|
-
},
|
|
199
|
-
clear(){
|
|
200
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
201
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
202
|
-
})
|
|
203
|
-
},
|
|
204
|
-
show(){
|
|
205
|
-
this.criteriaShow = true
|
|
206
|
-
},
|
|
207
|
-
hidden(){
|
|
208
|
-
this.criteriaShow = !this.criteriaShow
|
|
209
|
-
},
|
|
210
|
-
getRes(obj) {
|
|
211
|
-
this.filialeNameStr = obj.res
|
|
212
|
-
this.filialeCodeStr = obj.resids
|
|
213
|
-
},
|
|
214
|
-
stamp () {
|
|
215
|
-
this.all = false
|
|
216
|
-
//默认选择要打印的列
|
|
217
|
-
this.modelval = defaultPrint.config
|
|
218
|
-
this.fields = this.getfield
|
|
219
|
-
console.log('所有打印字段',this.fields)
|
|
220
|
-
this.printshow = true
|
|
221
|
-
this.put()
|
|
222
|
-
},
|
|
223
|
-
put () {
|
|
224
|
-
// 对Modelval进行排序
|
|
225
|
-
this.sortModelval()
|
|
226
|
-
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
227
|
-
for (let key of this.modelval) {
|
|
228
|
-
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
229
|
-
}
|
|
230
|
-
this.thead += '</tr>'
|
|
231
|
-
},
|
|
232
|
-
dealmsg (val) {
|
|
233
|
-
console.log('---------------dealmsg')
|
|
234
|
-
val.model = this.model.model
|
|
235
|
-
this.$dispatch('deal-msg',val)
|
|
236
|
-
},
|
|
237
|
-
print () {
|
|
238
|
-
this.$refs.print.PrintAsFile()
|
|
239
|
-
this.printshow = false
|
|
240
|
-
},
|
|
241
|
-
close () {
|
|
242
|
-
this.printshow = false
|
|
243
|
-
this.all = false
|
|
244
|
-
},
|
|
245
|
-
// 对选择的列进行排序
|
|
246
|
-
sortModelval () {
|
|
247
|
-
let sortModel = []
|
|
248
|
-
Object.keys(this.fields).forEach((key) => {
|
|
249
|
-
if (this.modelval.includes(key)) {
|
|
250
|
-
sortModel.push(key)
|
|
251
|
-
}
|
|
252
|
-
})
|
|
253
|
-
this.modelval = sortModel
|
|
254
|
-
console.log('选择的打印的字段', this.modelval)
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
watch:{
|
|
258
|
-
'all' (val) {
|
|
259
|
-
if (val) {
|
|
260
|
-
this.modelval = this.bodyData
|
|
261
|
-
} else {
|
|
262
|
-
this.modelval = defaultPrint.config
|
|
263
|
-
this.put()
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
'modelval.length' () {
|
|
267
|
-
this.put()
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
computed:{
|
|
271
|
-
getCondition(){
|
|
272
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition} `}
|
|
273
|
-
},
|
|
274
|
-
getfield(){
|
|
275
|
-
return exportConfig.disableConfig
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
</script>
|
|
280
|
-
<style scoped>
|
|
281
|
-
.cell{
|
|
282
|
-
width:500px
|
|
283
|
-
}
|
|
284
|
-
.sp{
|
|
285
|
-
width: 500px;
|
|
286
|
-
word-break: break-word;
|
|
287
|
-
}
|
|
288
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
8
|
+
<label class="font_normal_body _zoom4" >卡号</label>
|
|
9
|
+
<input type="text" class="form-control" v-numfilter v-model="model.f_userinfo_code" style="width: 60%"
|
|
10
|
+
condition="f_userinfo_code = '{}' " placeholder="卡号">
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
13
|
+
<label class="font_normal_body _zoom4" >用户姓名</label>
|
|
14
|
+
<input type="text" class="form-control" v-model="model.f_user_name" style="width: 60%"
|
|
15
|
+
condition=" f_user_name like '%{}%'" placeholder='用户姓名'>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
18
|
+
<label class="font_normal_body _zoom4" >用户地址</label>
|
|
19
|
+
<input type="text" class="form-control" v-model="model.f_address" style="width: 60%"
|
|
20
|
+
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
23
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
24
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
25
|
+
v-model="model.startDate"
|
|
26
|
+
:value.sync="model.startDate"
|
|
27
|
+
:format="'yyyy-MM-dd'"
|
|
28
|
+
:show-reset-button="true"
|
|
29
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
30
|
+
</datepicker>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
33
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
34
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
35
|
+
v-model="model.endDate"
|
|
36
|
+
:value.sync="model.endDate"
|
|
37
|
+
:format="'yyyy-MM-dd'"
|
|
38
|
+
:show-reset-button="true"
|
|
39
|
+
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
40
|
+
</datepicker>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
</div>
|
|
44
|
+
<div class="row">
|
|
45
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
46
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
47
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
49
|
+
|
|
50
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
51
|
+
:field="$parent.$parent.getfield"
|
|
52
|
+
sqlurl="rs/logic/exportfile" sql-name="AbndonQuery" template-name='弃用查询导出' :choose-col="true"></export-excel>
|
|
53
|
+
<div
|
|
54
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
55
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</criteria>
|
|
60
|
+
|
|
61
|
+
<data-grid :model="model" partial='list' v-ref:grid >
|
|
62
|
+
<template partial='head'>
|
|
63
|
+
<tr>
|
|
64
|
+
<th><nobr>卡号</nobr></th>
|
|
65
|
+
<th><nobr>用户姓名</nobr></th>
|
|
66
|
+
<th><nobr>用户地址</nobr></th>
|
|
67
|
+
<th><nobr>弃用原因</nobr></th>
|
|
68
|
+
<th style="padding: 10px 150px"><nobr>备注</nobr></th>
|
|
69
|
+
<th><nobr>状态</nobr></th>
|
|
70
|
+
<th><nobr>弃用前状态</nobr></th>
|
|
71
|
+
<th><nobr>弃用日期</nobr></th>
|
|
72
|
+
<th><nobr>操作员</nobr></th>
|
|
73
|
+
<th><nobr>营业网点</nobr></th>
|
|
74
|
+
<th><nobr>分公司</nobr></th>
|
|
75
|
+
</tr>
|
|
76
|
+
</template>
|
|
77
|
+
<template partial='body'>
|
|
78
|
+
<td style="text-align: center;"><nobr>
|
|
79
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
80
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
81
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
82
|
+
<td style="text-align: center;"><nobr>{{row.f_reason}} {{row.f_othereason}}</nobr></td>
|
|
83
|
+
<td style="text-align: center;word-break: break-word;">
|
|
84
|
+
<p :id="'f_remark-'+$index" style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;margin: 0"
|
|
85
|
+
@click="$parent.$parent.$parent.p_click('f_remark-'+$index,'f_remarkinput-'+$index)">
|
|
86
|
+
{{row.f_remark}}</p>
|
|
87
|
+
<textarea rows="2" style="display: none;margin: 0;width: 100%;border: 1px solid #e4f9f5"
|
|
88
|
+
@blur="$parent.$parent.$parent.input_blur('f_remark-'+$index,'f_remarkinput-'+$index)"
|
|
89
|
+
:id="'f_remarkinput-'+$index" >{{row.f_remark}}</textarea>
|
|
90
|
+
</td>
|
|
91
|
+
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
92
|
+
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
93
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
94
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
95
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
96
|
+
<td style="text-align: center;"><nobr>{{row.f_filiale}}</nobr></td>
|
|
97
|
+
</template>
|
|
98
|
+
<template partial='foot'></template>
|
|
99
|
+
</data-grid>
|
|
100
|
+
</criteria-paged>
|
|
101
|
+
|
|
102
|
+
<table class="table-hover">
|
|
103
|
+
<tr class="table-bordered">
|
|
104
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
105
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计: {{sumsmodel.f_fillgas}}</td>
|
|
106
|
+
</tr>
|
|
107
|
+
</table>
|
|
108
|
+
<!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
|
|
109
|
+
<!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
|
|
110
|
+
<!--<header slot="modal-header" class="modal-header text-center">-->
|
|
111
|
+
<!--<h4 class="modal-title">打印列选择</h4>-->
|
|
112
|
+
<!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
|
|
113
|
+
<!--<label for="f_generations" class="font-size">全选</label>-->
|
|
114
|
+
<!--</header>-->
|
|
115
|
+
<!--<article slot="modal-body">-->
|
|
116
|
+
<!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
|
|
117
|
+
<!--<div class="col-sm-3" v-for="f in fields">-->
|
|
118
|
+
<!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
|
|
119
|
+
<!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
|
|
120
|
+
<!--</div>-->
|
|
121
|
+
<!--</div>-->
|
|
122
|
+
<!--</article>-->
|
|
123
|
+
<!--<footer slot="modal-footer" class="modal-footer">-->
|
|
124
|
+
<!--<center>-->
|
|
125
|
+
<!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
|
|
126
|
+
<!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
|
|
127
|
+
<!--<print-table :model='model' v-show="false" v-ref:print-->
|
|
128
|
+
<!--:top='40' :left='60' :right='40' :bottom='60'-->
|
|
129
|
+
<!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
|
|
130
|
+
<!--:fields="modelval" :printpage="true">-->
|
|
131
|
+
<!--</print-table>-->
|
|
132
|
+
<!--</center>-->
|
|
133
|
+
<!--</footer>-->
|
|
134
|
+
<!--</modal>-->
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
|
|
138
|
+
<script>
|
|
139
|
+
import { PagedList } from 'vue-client'
|
|
140
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
141
|
+
import exportConfig from '../config/exportConfig'
|
|
142
|
+
|
|
143
|
+
let readySomething = async function (self) {
|
|
144
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
145
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
146
|
+
//self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
|
|
147
|
+
/* await self.$refs.paged.$refs.cri.search()
|
|
148
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums*/
|
|
149
|
+
}
|
|
150
|
+
export default {
|
|
151
|
+
data() {
|
|
152
|
+
return {
|
|
153
|
+
data: {},
|
|
154
|
+
model: new PagedList('rs/sql/AbndonQuery', 20,{tablename:' "t_abandon" '}),
|
|
155
|
+
criteriaShow: true,
|
|
156
|
+
headData: ["用户编号","用户姓名","操作人","操作日期","弃用状态","弃用原因","其他弃用原因","同步状态"],
|
|
157
|
+
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_reason", "f_othereason", "f_sendsuccess"],
|
|
158
|
+
|
|
159
|
+
filialeNameStr: null,
|
|
160
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
161
|
+
userid: this.$login.f.id,
|
|
162
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
163
|
+
|
|
164
|
+
modelval: [],
|
|
165
|
+
printshow: false,
|
|
166
|
+
all: false,
|
|
167
|
+
fields: {},
|
|
168
|
+
thead: '',
|
|
169
|
+
tfoot: '',
|
|
170
|
+
//合计数据
|
|
171
|
+
sumsmodel: {}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
ready(){
|
|
175
|
+
readySomething(this).then(() => {
|
|
176
|
+
this.$emit('ready')
|
|
177
|
+
}).catch((error) => {
|
|
178
|
+
this.$emit('error', error)
|
|
179
|
+
})
|
|
180
|
+
},
|
|
181
|
+
methods: {
|
|
182
|
+
//p标签点击方法
|
|
183
|
+
p_click(p_id,i_id){
|
|
184
|
+
document.getElementById(p_id).style.display="none"
|
|
185
|
+
document.getElementById(i_id).style.display="inline-block"
|
|
186
|
+
document.getElementById(i_id).select()
|
|
187
|
+
console.log(p_id,i_id)
|
|
188
|
+
},
|
|
189
|
+
//input失去焦点方法
|
|
190
|
+
input_blur(p_id,i_id){
|
|
191
|
+
document.getElementById(p_id).style.display="-webkit-box"
|
|
192
|
+
document.getElementById(i_id).style.display="none"
|
|
193
|
+
console.log(p_id,i_id)
|
|
194
|
+
},
|
|
195
|
+
selfSearch (args) {
|
|
196
|
+
this.model.search(args.condition, args.model)
|
|
197
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
198
|
+
},
|
|
199
|
+
clear(){
|
|
200
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
201
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
show(){
|
|
205
|
+
this.criteriaShow = true
|
|
206
|
+
},
|
|
207
|
+
hidden(){
|
|
208
|
+
this.criteriaShow = !this.criteriaShow
|
|
209
|
+
},
|
|
210
|
+
getRes(obj) {
|
|
211
|
+
this.filialeNameStr = obj.res
|
|
212
|
+
this.filialeCodeStr = obj.resids
|
|
213
|
+
},
|
|
214
|
+
stamp () {
|
|
215
|
+
this.all = false
|
|
216
|
+
//默认选择要打印的列
|
|
217
|
+
this.modelval = defaultPrint.config
|
|
218
|
+
this.fields = this.getfield
|
|
219
|
+
console.log('所有打印字段',this.fields)
|
|
220
|
+
this.printshow = true
|
|
221
|
+
this.put()
|
|
222
|
+
},
|
|
223
|
+
put () {
|
|
224
|
+
// 对Modelval进行排序
|
|
225
|
+
this.sortModelval()
|
|
226
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
227
|
+
for (let key of this.modelval) {
|
|
228
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
229
|
+
}
|
|
230
|
+
this.thead += '</tr>'
|
|
231
|
+
},
|
|
232
|
+
dealmsg (val) {
|
|
233
|
+
console.log('---------------dealmsg')
|
|
234
|
+
val.model = this.model.model
|
|
235
|
+
this.$dispatch('deal-msg',val)
|
|
236
|
+
},
|
|
237
|
+
print () {
|
|
238
|
+
this.$refs.print.PrintAsFile()
|
|
239
|
+
this.printshow = false
|
|
240
|
+
},
|
|
241
|
+
close () {
|
|
242
|
+
this.printshow = false
|
|
243
|
+
this.all = false
|
|
244
|
+
},
|
|
245
|
+
// 对选择的列进行排序
|
|
246
|
+
sortModelval () {
|
|
247
|
+
let sortModel = []
|
|
248
|
+
Object.keys(this.fields).forEach((key) => {
|
|
249
|
+
if (this.modelval.includes(key)) {
|
|
250
|
+
sortModel.push(key)
|
|
251
|
+
}
|
|
252
|
+
})
|
|
253
|
+
this.modelval = sortModel
|
|
254
|
+
console.log('选择的打印的字段', this.modelval)
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
watch:{
|
|
258
|
+
'all' (val) {
|
|
259
|
+
if (val) {
|
|
260
|
+
this.modelval = this.bodyData
|
|
261
|
+
} else {
|
|
262
|
+
this.modelval = defaultPrint.config
|
|
263
|
+
this.put()
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
'modelval.length' () {
|
|
267
|
+
this.put()
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
computed:{
|
|
271
|
+
getCondition(){
|
|
272
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition} `}
|
|
273
|
+
},
|
|
274
|
+
getfield(){
|
|
275
|
+
return exportConfig.disableConfig
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
</script>
|
|
280
|
+
<style scoped>
|
|
281
|
+
.cell{
|
|
282
|
+
width:500px
|
|
283
|
+
}
|
|
284
|
+
.sp{
|
|
285
|
+
width: 500px;
|
|
286
|
+
word-break: break-word;
|
|
287
|
+
}
|
|
288
|
+
</style>
|