apply-clients 6.0.3 → 6.0.6
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,268 +1,268 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<partial-view v-ref:pv>
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
5
|
-
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
6
|
-
<div novalidate class="flex-row select-overspread" partial style="white-space: nowarp;">
|
|
7
|
-
<div class="form-group">
|
|
8
|
-
<!-- <label>用户编号:</label> -->
|
|
9
|
-
<input type="text" class="form-control width-100" v-model="model.f_userinfo_id" placeholder='报建编号' condition="f_userinfo_id = '{}'">
|
|
10
|
-
</div>
|
|
11
|
-
<div class="form-group" style="flex: 1;">
|
|
12
|
-
<!-- <label>操作类型:</label> -->
|
|
13
|
-
<v-select id="f_paytype"
|
|
14
|
-
v-model="model.f_operat_type"
|
|
15
|
-
placeholder='操作类型'
|
|
16
|
-
:value.sync="model.f_operat_type"
|
|
17
|
-
:options='$parent.$parent.$parent.operationtypes'
|
|
18
|
-
condition="f_operat_type = '{}'"
|
|
19
|
-
close-on-select ></v-select>
|
|
20
|
-
<partial name="cardcriteria"></partial>
|
|
21
|
-
</div>
|
|
22
|
-
<!-- <div class="form-group">
|
|
23
|
-
<partial name="cardcriteria"></partial>
|
|
24
|
-
</div> -->
|
|
25
|
-
<div class="form-group">
|
|
26
|
-
<button class="btn btn-success width-100" @click="search()" id=base-rightVie-cardLis-查询>查询</button>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
</div>
|
|
30
|
-
</criteria>
|
|
31
|
-
<accordion :one-at-atime="true" type="info" partial="list">
|
|
32
|
-
<panel type="info" v-for="row in model.rows" :is-open="true" :is-click="false" v-show="row.type==='终止报建'">
|
|
33
|
-
<span class="panel-title row" slot="header" style="cursor: pointer;">
|
|
34
|
-
<div class="col-sm-11">
|
|
35
|
-
<div class="row">
|
|
36
|
-
<strong class="col-sm-4">{{row.f_userinfo_id}}</strong>
|
|
37
|
-
<span class="col-sm-4">{{$parent.$parent.$parent.dateDes(row.f_operate_date)}}</span>
|
|
38
|
-
<span class="col-sm-4">{{row.type}}</span>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-sm-1" v-if="$parent.$parent.$parent.isOperate">
|
|
42
|
-
<!--<dropdown class="auto" v-if="row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' || row.type === '换表' || row.type === '报建收费' || row.type === '报建费用变更' || row.type === '报建费用减免' || row.state === 1">-->
|
|
43
|
-
<dropdown class="auto" v-if="row.type === '终止报建'">
|
|
44
|
-
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
45
|
-
<span class="glyphicon glyphicon-th-list"></span>
|
|
46
|
-
</button>
|
|
47
|
-
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right" style=" min-width: 60px;">
|
|
48
|
-
<!--<li v-if="row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' || row.type === '换表'">-->
|
|
49
|
-
<!--<a href="#" @click.stop="$parent.$parent.$parent.operate('票据补打', row)">票据补打</a>-->
|
|
50
|
-
<!--</li>-->
|
|
51
|
-
<!-- <li v-if="row.state === 1 && row.type !== '档案变更' && row.type !== '新增户档案' && row.type !== '银行代扣' && row.type !== '发卡售气' && row.type !== '卡表收费'&& row.type !== '补气'"> -->
|
|
52
|
-
<li v-if="row.type === '终止报建'">
|
|
53
|
-
<a href="#" @click.stop="$parent.$parent.$parent.operate('撤销', row)">撤销</a>
|
|
54
|
-
</li>
|
|
55
|
-
</ul>
|
|
56
|
-
</dropdown>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<!--</span>-->
|
|
60
|
-
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
61
|
-
<!--<build-apply-detail v-if="row.type === '报建收费'" :data="row"></build-apply-detail>-->
|
|
62
|
-
<!--<change-apply-detail v-if="row.type === '报建费用变更'" :data="row"></change-apply-detail>-->
|
|
63
|
-
<!--<reduce-apply-detail v-if="row.type === '报建费用减免'" :data="row"></reduce-apply-detail>-->
|
|
64
|
-
<stopapply-apply-detail v-if="row.type === '终止报建'" :data="row"></stopapply-apply-detail>
|
|
65
|
-
<stopapply-apply-detail v-if="row.type === '终止报建'" :data="row"></stopapply-apply-detail>
|
|
66
|
-
</div>
|
|
67
|
-
<div v-if="!$parent.$parent.$parent.isSelected(row)" style="margin-top: 8px;background: #FFF;">
|
|
68
|
-
<p>{{row.f_describe}}</p>
|
|
69
|
-
</div>
|
|
70
|
-
</panel>
|
|
71
|
-
</accordion>
|
|
72
|
-
|
|
73
|
-
</criteria-paged>
|
|
74
|
-
</partial-view>
|
|
75
|
-
</div>
|
|
76
|
-
</template>
|
|
77
|
-
<script>
|
|
78
|
-
/**
|
|
79
|
-
*操作记录信息
|
|
80
|
-
*/
|
|
81
|
-
import { PagedList } from 'vue-client'
|
|
82
|
-
import co from 'co'
|
|
83
|
-
import AppData from '../../../../stores/AppData'
|
|
84
|
-
|
|
85
|
-
let cancelGen = function * (self, data) {
|
|
86
|
-
let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
|
|
87
|
-
if (msgRet === 'cancel') return
|
|
88
|
-
// 撤销操作完成,刷新界面
|
|
89
|
-
self.search()
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export default {
|
|
93
|
-
title: '操作汇总',
|
|
94
|
-
data () {
|
|
95
|
-
return {
|
|
96
|
-
operationtypes: this.$appdata.getParam('报建业务类型'),
|
|
97
|
-
model: new PagedList(`${this.sqlurl}`, 9999,
|
|
98
|
-
{condition:'"' +'f_operator= \''+this.$login.f.name+'\''+ '"',items: '"' + this.items + '"', tablename: '"' + this.tablename + '"', orderitem: '"' + this.orderitem + '"'}),
|
|
99
|
-
show: false,
|
|
100
|
-
asideTitle: '用户操作',
|
|
101
|
-
row: Object,
|
|
102
|
-
comp: null
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
props: {
|
|
106
|
-
sqlurl: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: 'rs/sql/getinstallrecord'
|
|
109
|
-
},
|
|
110
|
-
items: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: '*'
|
|
113
|
-
},
|
|
114
|
-
tablename: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: 't_stopapply'
|
|
117
|
-
},
|
|
118
|
-
orderitem: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: 'f_date desc'
|
|
121
|
-
},
|
|
122
|
-
btns: {
|
|
123
|
-
type: Array
|
|
124
|
-
},
|
|
125
|
-
operationtype: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: ''
|
|
128
|
-
},
|
|
129
|
-
userinfoid: {},
|
|
130
|
-
isOperate: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: true
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
ready () {
|
|
136
|
-
this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
137
|
-
this.search()
|
|
138
|
-
for (var i = 0; i < this.model.length; i++) {
|
|
139
|
-
this.model[i].f_operate_date = this.model[i].f_operate_date.substring(16)
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
methods: {
|
|
143
|
-
dateDes (date) {
|
|
144
|
-
return this.$login.dateDescripte(date)
|
|
145
|
-
},
|
|
146
|
-
selected (row) {
|
|
147
|
-
if (this.row === row) {
|
|
148
|
-
this.row = null
|
|
149
|
-
} else {
|
|
150
|
-
this.row = row
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
isSelected (row) {
|
|
154
|
-
return this.row === row
|
|
155
|
-
},
|
|
156
|
-
search () {
|
|
157
|
-
let condition = '1=1'
|
|
158
|
-
// this.$refs.paged.$refs.cri.search()
|
|
159
|
-
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
160
|
-
condition += `and
|
|
161
|
-
}
|
|
162
|
-
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
163
|
-
if (a.data.length === 0) {
|
|
164
|
-
this.model.rows = []
|
|
165
|
-
this.model.state = '错误'
|
|
166
|
-
this.model.error = '没有符合条件的记录'
|
|
167
|
-
return
|
|
168
|
-
}
|
|
169
|
-
this.model.state = '正确'
|
|
170
|
-
this.model.rows = a.data
|
|
171
|
-
})
|
|
172
|
-
},
|
|
173
|
-
disEvent (btn) {
|
|
174
|
-
this.$dispatch(`${btn.eventName}`)
|
|
175
|
-
},
|
|
176
|
-
operate (title, row) {
|
|
177
|
-
if (title === '票据补打' && (row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气')) {
|
|
178
|
-
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
179
|
-
tablename: 't_sellinggas', condition: 'id = ' + row.id}}).then((res) => {
|
|
180
|
-
row = Object.assign({}, row, res.data[0])
|
|
181
|
-
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-bill', row)
|
|
182
|
-
}).catch((error) => {
|
|
183
|
-
if (error.status) {
|
|
184
|
-
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
185
|
-
return
|
|
186
|
-
}
|
|
187
|
-
throw error
|
|
188
|
-
})
|
|
189
|
-
} else if (title === '票据补打' && row.type === '其他收费') {
|
|
190
|
-
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
191
|
-
tablename: 't_othercharge', condition: 'id = ' + row.id}}).then((res) => {
|
|
192
|
-
if (res.data[0].f_charge_type === '国税发票') {
|
|
193
|
-
row = Object.assign({}, row, res.data[0])
|
|
194
|
-
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-other-bill', row)
|
|
195
|
-
} else {
|
|
196
|
-
row = Object.assign({}, row, res.data[0])
|
|
197
|
-
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-tax-other-bill', row)
|
|
198
|
-
}
|
|
199
|
-
}).catch((error) => {
|
|
200
|
-
if (error.status) {
|
|
201
|
-
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
202
|
-
return
|
|
203
|
-
}
|
|
204
|
-
throw error
|
|
205
|
-
})
|
|
206
|
-
} else if (title === '票据补打' && row.type === '换表') {
|
|
207
|
-
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
208
|
-
tablename: 't_changemeter', condition: 'id = ' + row.id}}).then((res) => {
|
|
209
|
-
row = Object.assign({}, row, res.data[0])
|
|
210
|
-
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-change-meter-bill', row)
|
|
211
|
-
}).catch((error) => {
|
|
212
|
-
if (error.status) {
|
|
213
|
-
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
214
|
-
return
|
|
215
|
-
}
|
|
216
|
-
throw error
|
|
217
|
-
})
|
|
218
|
-
} else if (title === '撤销') {
|
|
219
|
-
this.$dispatch('list-select-oper', '撤销', 'apply-record-cancel', row)
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
// 撤销为统一操作,所以写到基础组件中
|
|
224
|
-
operateCancel (row) {
|
|
225
|
-
let cancel = cancelGen(this, row)
|
|
226
|
-
co(cancel)
|
|
227
|
-
},
|
|
228
|
-
selfSearch (args) {
|
|
229
|
-
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
230
|
-
args.condition += `and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
231
|
-
}
|
|
232
|
-
// args.condition = `${args.condition} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
233
|
-
this.model.search(args.condition, args.model)
|
|
234
|
-
}
|
|
235
|
-
// isClose (val) {
|
|
236
|
-
// // 再次点击收缩
|
|
237
|
-
// if (val.oldVal && val.oldVal.id === val.val.id) {
|
|
238
|
-
// this.$refs.paged.$refs.list.select(null)
|
|
239
|
-
// }
|
|
240
|
-
// }
|
|
241
|
-
},
|
|
242
|
-
watch: {
|
|
243
|
-
// 'userinfoid' (newVal) {
|
|
244
|
-
// if (newVal && newVal !== '') {
|
|
245
|
-
// this.$nextTick(function () {
|
|
246
|
-
// this.$refs.paged.$refs.cri.model.f_userinfo_id = newVal
|
|
247
|
-
// }.bind(this))
|
|
248
|
-
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
249
|
-
// let condition = `f_userinfo_id = ${newVal} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
250
|
-
// this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
251
|
-
// if (a.data.length === 0) {
|
|
252
|
-
// this.model.rows = []
|
|
253
|
-
// this.model.state = '错误'
|
|
254
|
-
// this.model.error = '没有符合条件的记录'
|
|
255
|
-
// return
|
|
256
|
-
// }
|
|
257
|
-
// this.model.state = '正确'
|
|
258
|
-
// this.model.rows = a.data
|
|
259
|
-
// })
|
|
260
|
-
// } else {
|
|
261
|
-
// this.$refs.paged.$refs.cri.model.f_userinfo_id = ''
|
|
262
|
-
// this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
263
|
-
// this.search()
|
|
264
|
-
// }
|
|
265
|
-
// }
|
|
266
|
-
},
|
|
267
|
-
}
|
|
268
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
5
|
+
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
6
|
+
<div novalidate class="flex-row select-overspread" partial style="white-space: nowarp;">
|
|
7
|
+
<div class="form-group">
|
|
8
|
+
<!-- <label>用户编号:</label> -->
|
|
9
|
+
<input type="text" class="form-control width-100" v-model="model.f_userinfo_id" placeholder='报建编号' condition="f_userinfo_id = '{}'">
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-group" style="flex: 1;">
|
|
12
|
+
<!-- <label>操作类型:</label> -->
|
|
13
|
+
<v-select id="f_paytype"
|
|
14
|
+
v-model="model.f_operat_type"
|
|
15
|
+
placeholder='操作类型'
|
|
16
|
+
:value.sync="model.f_operat_type"
|
|
17
|
+
:options='$parent.$parent.$parent.operationtypes'
|
|
18
|
+
condition="f_operat_type = '{}'"
|
|
19
|
+
close-on-select ></v-select>
|
|
20
|
+
<partial name="cardcriteria"></partial>
|
|
21
|
+
</div>
|
|
22
|
+
<!-- <div class="form-group">
|
|
23
|
+
<partial name="cardcriteria"></partial>
|
|
24
|
+
</div> -->
|
|
25
|
+
<div class="form-group">
|
|
26
|
+
<button class="btn btn-success width-100" @click="search()" id=base-rightVie-cardLis-查询>查询</button>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
</criteria>
|
|
31
|
+
<accordion :one-at-atime="true" type="info" partial="list">
|
|
32
|
+
<panel type="info" v-for="row in model.rows" :is-open="true" :is-click="false" v-show="row.type==='终止报建'">
|
|
33
|
+
<span class="panel-title row" slot="header" style="cursor: pointer;">
|
|
34
|
+
<div class="col-sm-11">
|
|
35
|
+
<div class="row">
|
|
36
|
+
<strong class="col-sm-4">{{row.f_userinfo_id}}</strong>
|
|
37
|
+
<span class="col-sm-4">{{$parent.$parent.$parent.dateDes(row.f_operate_date)}}</span>
|
|
38
|
+
<span class="col-sm-4">{{row.type}}</span>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="col-sm-1" v-if="$parent.$parent.$parent.isOperate">
|
|
42
|
+
<!--<dropdown class="auto" v-if="row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' || row.type === '换表' || row.type === '报建收费' || row.type === '报建费用变更' || row.type === '报建费用减免' || row.state === 1">-->
|
|
43
|
+
<dropdown class="auto" v-if="row.type === '终止报建'">
|
|
44
|
+
<button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
|
|
45
|
+
<span class="glyphicon glyphicon-th-list"></span>
|
|
46
|
+
</button>
|
|
47
|
+
<ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right" style=" min-width: 60px;">
|
|
48
|
+
<!--<li v-if="row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' || row.type === '换表'">-->
|
|
49
|
+
<!--<a href="#" @click.stop="$parent.$parent.$parent.operate('票据补打', row)">票据补打</a>-->
|
|
50
|
+
<!--</li>-->
|
|
51
|
+
<!-- <li v-if="row.state === 1 && row.type !== '档案变更' && row.type !== '新增户档案' && row.type !== '银行代扣' && row.type !== '发卡售气' && row.type !== '卡表收费'&& row.type !== '补气'"> -->
|
|
52
|
+
<li v-if="row.type === '终止报建'">
|
|
53
|
+
<a href="#" @click.stop="$parent.$parent.$parent.operate('撤销', row)">撤销</a>
|
|
54
|
+
</li>
|
|
55
|
+
</ul>
|
|
56
|
+
</dropdown>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<!--</span>-->
|
|
60
|
+
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
61
|
+
<!--<build-apply-detail v-if="row.type === '报建收费'" :data="row"></build-apply-detail>-->
|
|
62
|
+
<!--<change-apply-detail v-if="row.type === '报建费用变更'" :data="row"></change-apply-detail>-->
|
|
63
|
+
<!--<reduce-apply-detail v-if="row.type === '报建费用减免'" :data="row"></reduce-apply-detail>-->
|
|
64
|
+
<stopapply-apply-detail v-if="row.type === '终止报建'" :data="row"></stopapply-apply-detail>
|
|
65
|
+
<stopapply-apply-detail v-if="row.type === '终止报建'" :data="row"></stopapply-apply-detail>
|
|
66
|
+
</div>
|
|
67
|
+
<div v-if="!$parent.$parent.$parent.isSelected(row)" style="margin-top: 8px;background: #FFF;">
|
|
68
|
+
<p>{{row.f_describe}}</p>
|
|
69
|
+
</div>
|
|
70
|
+
</panel>
|
|
71
|
+
</accordion>
|
|
72
|
+
|
|
73
|
+
</criteria-paged>
|
|
74
|
+
</partial-view>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
<script>
|
|
78
|
+
/**
|
|
79
|
+
*操作记录信息
|
|
80
|
+
*/
|
|
81
|
+
import { PagedList } from 'vue-client'
|
|
82
|
+
import co from 'co'
|
|
83
|
+
import AppData from '../../../../stores/AppData'
|
|
84
|
+
|
|
85
|
+
let cancelGen = function * (self, data) {
|
|
86
|
+
let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
|
|
87
|
+
if (msgRet === 'cancel') return
|
|
88
|
+
// 撤销操作完成,刷新界面
|
|
89
|
+
self.search()
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default {
|
|
93
|
+
title: '操作汇总',
|
|
94
|
+
data () {
|
|
95
|
+
return {
|
|
96
|
+
operationtypes: this.$appdata.getParam('报建业务类型'),
|
|
97
|
+
model: new PagedList(`${this.sqlurl}`, 9999,
|
|
98
|
+
{condition:'"' +'f_operator= \''+this.$login.f.name+'\''+ '"',items: '"' + this.items + '"', tablename: '"' + this.tablename + '"', orderitem: '"' + this.orderitem + '"'}),
|
|
99
|
+
show: false,
|
|
100
|
+
asideTitle: '用户操作',
|
|
101
|
+
row: Object,
|
|
102
|
+
comp: null
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
props: {
|
|
106
|
+
sqlurl: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: 'rs/sql/getinstallrecord'
|
|
109
|
+
},
|
|
110
|
+
items: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: '*'
|
|
113
|
+
},
|
|
114
|
+
tablename: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: 't_stopapply'
|
|
117
|
+
},
|
|
118
|
+
orderitem: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: 'f_date desc'
|
|
121
|
+
},
|
|
122
|
+
btns: {
|
|
123
|
+
type: Array
|
|
124
|
+
},
|
|
125
|
+
operationtype: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: ''
|
|
128
|
+
},
|
|
129
|
+
userinfoid: {},
|
|
130
|
+
isOperate: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: true
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
ready () {
|
|
136
|
+
this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
137
|
+
this.search()
|
|
138
|
+
for (var i = 0; i < this.model.length; i++) {
|
|
139
|
+
this.model[i].f_operate_date = this.model[i].f_operate_date.substring(16)
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
dateDes (date) {
|
|
144
|
+
return this.$login.dateDescripte(date)
|
|
145
|
+
},
|
|
146
|
+
selected (row) {
|
|
147
|
+
if (this.row === row) {
|
|
148
|
+
this.row = null
|
|
149
|
+
} else {
|
|
150
|
+
this.row = row
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
isSelected (row) {
|
|
154
|
+
return this.row === row
|
|
155
|
+
},
|
|
156
|
+
search () {
|
|
157
|
+
let condition = '1=1'
|
|
158
|
+
// this.$refs.paged.$refs.cri.search()
|
|
159
|
+
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
160
|
+
condition += ` and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
161
|
+
}
|
|
162
|
+
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
163
|
+
if (a.data.length === 0) {
|
|
164
|
+
this.model.rows = []
|
|
165
|
+
this.model.state = '错误'
|
|
166
|
+
this.model.error = '没有符合条件的记录'
|
|
167
|
+
return
|
|
168
|
+
}
|
|
169
|
+
this.model.state = '正确'
|
|
170
|
+
this.model.rows = a.data
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
disEvent (btn) {
|
|
174
|
+
this.$dispatch(`${btn.eventName}`)
|
|
175
|
+
},
|
|
176
|
+
operate (title, row) {
|
|
177
|
+
if (title === '票据补打' && (row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气')) {
|
|
178
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
179
|
+
tablename: 't_sellinggas', condition: 'id = ' + row.id}}).then((res) => {
|
|
180
|
+
row = Object.assign({}, row, res.data[0])
|
|
181
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-bill', row)
|
|
182
|
+
}).catch((error) => {
|
|
183
|
+
if (error.status) {
|
|
184
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
185
|
+
return
|
|
186
|
+
}
|
|
187
|
+
throw error
|
|
188
|
+
})
|
|
189
|
+
} else if (title === '票据补打' && row.type === '其他收费') {
|
|
190
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
191
|
+
tablename: 't_othercharge', condition: 'id = ' + row.id}}).then((res) => {
|
|
192
|
+
if (res.data[0].f_charge_type === '国税发票') {
|
|
193
|
+
row = Object.assign({}, row, res.data[0])
|
|
194
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-other-bill', row)
|
|
195
|
+
} else {
|
|
196
|
+
row = Object.assign({}, row, res.data[0])
|
|
197
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-tax-other-bill', row)
|
|
198
|
+
}
|
|
199
|
+
}).catch((error) => {
|
|
200
|
+
if (error.status) {
|
|
201
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
202
|
+
return
|
|
203
|
+
}
|
|
204
|
+
throw error
|
|
205
|
+
})
|
|
206
|
+
} else if (title === '票据补打' && row.type === '换表') {
|
|
207
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
208
|
+
tablename: 't_changemeter', condition: 'id = ' + row.id}}).then((res) => {
|
|
209
|
+
row = Object.assign({}, row, res.data[0])
|
|
210
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-change-meter-bill', row)
|
|
211
|
+
}).catch((error) => {
|
|
212
|
+
if (error.status) {
|
|
213
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
214
|
+
return
|
|
215
|
+
}
|
|
216
|
+
throw error
|
|
217
|
+
})
|
|
218
|
+
} else if (title === '撤销') {
|
|
219
|
+
this.$dispatch('list-select-oper', '撤销', 'apply-record-cancel', row)
|
|
220
|
+
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
// 撤销为统一操作,所以写到基础组件中
|
|
224
|
+
operateCancel (row) {
|
|
225
|
+
let cancel = cancelGen(this, row)
|
|
226
|
+
co(cancel)
|
|
227
|
+
},
|
|
228
|
+
selfSearch (args) {
|
|
229
|
+
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
230
|
+
args.condition += `and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
231
|
+
}
|
|
232
|
+
// args.condition = `${args.condition} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
233
|
+
this.model.search(args.condition, args.model)
|
|
234
|
+
}
|
|
235
|
+
// isClose (val) {
|
|
236
|
+
// // 再次点击收缩
|
|
237
|
+
// if (val.oldVal && val.oldVal.id === val.val.id) {
|
|
238
|
+
// this.$refs.paged.$refs.list.select(null)
|
|
239
|
+
// }
|
|
240
|
+
// }
|
|
241
|
+
},
|
|
242
|
+
watch: {
|
|
243
|
+
// 'userinfoid' (newVal) {
|
|
244
|
+
// if (newVal && newVal !== '') {
|
|
245
|
+
// this.$nextTick(function () {
|
|
246
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_id = newVal
|
|
247
|
+
// }.bind(this))
|
|
248
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
249
|
+
// let condition = `f_userinfo_id = ${newVal} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
250
|
+
// this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
251
|
+
// if (a.data.length === 0) {
|
|
252
|
+
// this.model.rows = []
|
|
253
|
+
// this.model.state = '错误'
|
|
254
|
+
// this.model.error = '没有符合条件的记录'
|
|
255
|
+
// return
|
|
256
|
+
// }
|
|
257
|
+
// this.model.state = '正确'
|
|
258
|
+
// this.model.rows = a.data
|
|
259
|
+
// })
|
|
260
|
+
// } else {
|
|
261
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_id = ''
|
|
262
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
263
|
+
// this.search()
|
|
264
|
+
// }
|
|
265
|
+
// }
|
|
266
|
+
},
|
|
267
|
+
}
|
|
268
|
+
</script>
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<partial-view v-ref:pv>
|
|
4
|
-
<!-- <div class="row"> -->
|
|
5
|
-
<!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
|
|
6
|
-
<!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
|
|
7
|
-
<!-- <label class = "col-sm-3 control-label">操作人:</label>
|
|
8
|
-
<span class = "col-sm-3">{{model.f_operator}}</span> -->
|
|
9
|
-
<!-- </div> -->
|
|
10
|
-
<table class="table table-bordered table-condensed self-table" id="table" >
|
|
11
|
-
<!-- <tr>
|
|
12
|
-
<td><b>享受减免账户</b></td>
|
|
13
|
-
<td>{{data.f_user_name}}</td>
|
|
14
|
-
</tr> -->
|
|
15
|
-
<tr>
|
|
16
|
-
<td><b>减免科目</b></td>
|
|
17
|
-
<td>{{model.f_subject}}</td>
|
|
18
|
-
</tr>
|
|
19
|
-
<tr>
|
|
20
|
-
<td><b>减免金额</b></td>
|
|
21
|
-
<td>{{model.f_fee}}</td>
|
|
22
|
-
</tr>
|
|
23
|
-
<tr>
|
|
24
|
-
<td><b>审核领导</b></td>
|
|
25
|
-
<td>{{model.f_leader}}</td>
|
|
26
|
-
</tr>
|
|
27
|
-
<tr>
|
|
28
|
-
<td><b>操作日期</b></td>
|
|
29
|
-
<td>{{model.f_date}}</td>
|
|
30
|
-
</tr>
|
|
31
|
-
</table>
|
|
32
|
-
|
|
33
|
-
</partial-view>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import Table from '../../../../Table'
|
|
39
|
-
export default {
|
|
40
|
-
title: '报建费用减免',
|
|
41
|
-
props: ['data'],
|
|
42
|
-
data () {
|
|
43
|
-
return {
|
|
44
|
-
model: {}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
ready () {
|
|
48
|
-
console.log('dadddddddddddddddddddddreduce',
|
|
49
|
-
let sql = 'singleTable_OrderBy'
|
|
50
|
-
let condition = {
|
|
51
|
-
items: '*',
|
|
52
|
-
tablename: 't_costreduction',
|
|
53
|
-
condition: 'id = ' + this.data.id,
|
|
54
|
-
orderitem: 'id'
|
|
55
|
-
}
|
|
56
|
-
this.$info(`加载数据中..., sql:${sql}`)
|
|
57
|
-
this.$refs.pv.load('rs/sql/singleTable', {data:condition}).then((a) => {
|
|
58
|
-
this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
|
|
59
|
-
this.model = a.data
|
|
60
|
-
console.log('1111111model', this.model)
|
|
61
|
-
console.log('1111111data', a.data)
|
|
62
|
-
}).catch((error) => {
|
|
63
|
-
if (error.status) {
|
|
64
|
-
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
65
|
-
return
|
|
66
|
-
}
|
|
67
|
-
throw error
|
|
68
|
-
})
|
|
69
|
-
},
|
|
70
|
-
methods: {
|
|
71
|
-
// 获取表中字段对应的中文名
|
|
72
|
-
getValue (key) {
|
|
73
|
-
return Table.data[key]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<!-- <div class="row"> -->
|
|
5
|
+
<!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
|
|
6
|
+
<!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
|
|
7
|
+
<!-- <label class = "col-sm-3 control-label">操作人:</label>
|
|
8
|
+
<span class = "col-sm-3">{{model.f_operator}}</span> -->
|
|
9
|
+
<!-- </div> -->
|
|
10
|
+
<table class="table table-bordered table-condensed self-table" id="table" >
|
|
11
|
+
<!-- <tr>
|
|
12
|
+
<td><b>享受减免账户</b></td>
|
|
13
|
+
<td>{{data.f_user_name}}</td>
|
|
14
|
+
</tr> -->
|
|
15
|
+
<tr>
|
|
16
|
+
<td><b>减免科目</b></td>
|
|
17
|
+
<td>{{model.f_subject}}</td>
|
|
18
|
+
</tr>
|
|
19
|
+
<tr>
|
|
20
|
+
<td><b>减免金额</b></td>
|
|
21
|
+
<td>{{model.f_fee}}</td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td><b>审核领导</b></td>
|
|
25
|
+
<td>{{model.f_leader}}</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td><b>操作日期</b></td>
|
|
29
|
+
<td>{{model.f_date}}</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</table>
|
|
32
|
+
|
|
33
|
+
</partial-view>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import Table from '../../../../Table'
|
|
39
|
+
export default {
|
|
40
|
+
title: '报建费用减免',
|
|
41
|
+
props: ['data'],
|
|
42
|
+
data () {
|
|
43
|
+
return {
|
|
44
|
+
model: {}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
ready () {
|
|
48
|
+
console.log('dadddddddddddddddddddddreduce', this.data)
|
|
49
|
+
let sql = 'singleTable_OrderBy'
|
|
50
|
+
let condition = {
|
|
51
|
+
items: '*',
|
|
52
|
+
tablename: 't_costreduction',
|
|
53
|
+
condition: 'id = ' + this.data.id,
|
|
54
|
+
orderitem: 'id'
|
|
55
|
+
}
|
|
56
|
+
this.$info(`加载数据中..., sql:${sql}`)
|
|
57
|
+
this.$refs.pv.load('rs/sql/singleTable', {data:condition}).then((a) => {
|
|
58
|
+
this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
|
|
59
|
+
this.model = a.data
|
|
60
|
+
console.log('1111111model', this.model)
|
|
61
|
+
console.log('1111111data', a.data)
|
|
62
|
+
}).catch((error) => {
|
|
63
|
+
if (error.status) {
|
|
64
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
throw error
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
methods: {
|
|
71
|
+
// 获取表中字段对应的中文名
|
|
72
|
+
getValue (key) {
|
|
73
|
+
return Table.data[key]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
</script>
|