apply-clients 6.0.1 → 6.0.4
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/build/dev-server.js +72 -72
- package/package.json +1 -1
- package/src/apply.js +219 -219
- package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
- package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
- package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
- package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
- package/src/components/build/Install/ExplorationSelect.vue +308 -308
- package/src/components/build/Install/ExplorationUser.vue +315 -315
- package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
- package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
- package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -232
- package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
- package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
- package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
- package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
- package/src/components/build/Install/Process/CustomerEssentialInfo.vue +1 -1
- package/src/components/build/Install/Process/CustomerFile.vue +423 -423
- package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
- package/src/components/build/Install/Process/CustomerRecordMessage.vue +10 -10
- package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
- package/src/components/build/Install/Process/MeterType.vue +379 -379
- package/src/components/build/Install/Process/PlaceControler.vue +304 -304
- package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +1 -1
- package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
- package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +1 -1
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
- package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
- package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -187
- package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
- package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
- package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
- package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
- package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
- package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -178
- package/src/main.js +25 -25
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/yarn.lock +0 -8074
|
@@ -1,268 +1,267 @@
|
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
this.model.
|
|
165
|
-
this.model.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
this.model.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
row
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
row
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
row
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
row
|
|
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
|
-
// this.$
|
|
249
|
-
//
|
|
250
|
-
//
|
|
251
|
-
//
|
|
252
|
-
// this.model.
|
|
253
|
-
// this.model.
|
|
254
|
-
//
|
|
255
|
-
//
|
|
256
|
-
//
|
|
257
|
-
// this.model.
|
|
258
|
-
//
|
|
259
|
-
//
|
|
260
|
-
//
|
|
261
|
-
// this.$refs.paged.$refs.cri.model.
|
|
262
|
-
// this
|
|
263
|
-
//
|
|
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
|
+
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
159
|
+
condition += ` and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
160
|
+
}
|
|
161
|
+
this.$resetpost(this.sqlurl,{data: {condition: condition}}).then((a) => {
|
|
162
|
+
if (a.data.length === 0) {
|
|
163
|
+
this.model.rows = []
|
|
164
|
+
this.model.state = '错误'
|
|
165
|
+
this.model.error = '没有符合条件的记录'
|
|
166
|
+
return
|
|
167
|
+
}
|
|
168
|
+
this.model.state = '正确'
|
|
169
|
+
this.model.rows = a.data
|
|
170
|
+
})
|
|
171
|
+
},
|
|
172
|
+
disEvent (btn) {
|
|
173
|
+
this.$dispatch(`${btn.eventName}`)
|
|
174
|
+
},
|
|
175
|
+
operate (title, row) {
|
|
176
|
+
if (title === '票据补打' && (row.type === '机表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气')) {
|
|
177
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
178
|
+
tablename: 't_sellinggas', condition: 'id = ' + row.id}}).then((res) => {
|
|
179
|
+
row = Object.assign({}, row, res.data[0])
|
|
180
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-bill', row)
|
|
181
|
+
}).catch((error) => {
|
|
182
|
+
if (error.status) {
|
|
183
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
184
|
+
return
|
|
185
|
+
}
|
|
186
|
+
throw error
|
|
187
|
+
})
|
|
188
|
+
} else if (title === '票据补打' && row.type === '其他收费') {
|
|
189
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
190
|
+
tablename: 't_othercharge', condition: 'id = ' + row.id}}).then((res) => {
|
|
191
|
+
if (res.data[0].f_charge_type === '国税发票') {
|
|
192
|
+
row = Object.assign({}, row, res.data[0])
|
|
193
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-other-bill', row)
|
|
194
|
+
} else {
|
|
195
|
+
row = Object.assign({}, row, res.data[0])
|
|
196
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-tax-other-bill', row)
|
|
197
|
+
}
|
|
198
|
+
}).catch((error) => {
|
|
199
|
+
if (error.status) {
|
|
200
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
201
|
+
return
|
|
202
|
+
}
|
|
203
|
+
throw error
|
|
204
|
+
})
|
|
205
|
+
} else if (title === '票据补打' && row.type === '换表') {
|
|
206
|
+
this.$resetpost('rs/sql/singleTable_OrderBy', {data: {orderitem: 'id', items: '*',
|
|
207
|
+
tablename: 't_changemeter', condition: 'id = ' + row.id}}).then((res) => {
|
|
208
|
+
row = Object.assign({}, row, res.data[0])
|
|
209
|
+
this.$dispatch('list-select-oper', `${row.type}票据补打`, 'reissue-change-meter-bill', row)
|
|
210
|
+
}).catch((error) => {
|
|
211
|
+
if (error.status) {
|
|
212
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
213
|
+
return
|
|
214
|
+
}
|
|
215
|
+
throw error
|
|
216
|
+
})
|
|
217
|
+
} else if (title === '撤销') {
|
|
218
|
+
this.$dispatch('list-select-oper', '撤销', 'apply-record-cancel', row)
|
|
219
|
+
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
// 撤销为统一操作,所以写到基础组件中
|
|
223
|
+
operateCancel (row) {
|
|
224
|
+
let cancel = cancelGen(this, row)
|
|
225
|
+
co(cancel)
|
|
226
|
+
},
|
|
227
|
+
selfSearch (args) {
|
|
228
|
+
if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
229
|
+
args.condition += `and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
230
|
+
}
|
|
231
|
+
// args.condition = `${args.condition} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
232
|
+
this.model.search(args.condition, args.model)
|
|
233
|
+
}
|
|
234
|
+
// isClose (val) {
|
|
235
|
+
// // 再次点击收缩
|
|
236
|
+
// if (val.oldVal && val.oldVal.id === val.val.id) {
|
|
237
|
+
// this.$refs.paged.$refs.list.select(null)
|
|
238
|
+
// }
|
|
239
|
+
// }
|
|
240
|
+
},
|
|
241
|
+
watch: {
|
|
242
|
+
// 'userinfoid' (newVal) {
|
|
243
|
+
// if (newVal && newVal !== '') {
|
|
244
|
+
// this.$nextTick(function () {
|
|
245
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_id = newVal
|
|
246
|
+
// }.bind(this))
|
|
247
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
248
|
+
// let condition = `f_userinfo_id = ${newVal} and f_filiale = '${this.$login.f.f_fengongsi}'`
|
|
249
|
+
// this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
250
|
+
// if (a.data.length === 0) {
|
|
251
|
+
// this.model.rows = []
|
|
252
|
+
// this.model.state = '错误'
|
|
253
|
+
// this.model.error = '没有符合条件的记录'
|
|
254
|
+
// return
|
|
255
|
+
// }
|
|
256
|
+
// this.model.state = '正确'
|
|
257
|
+
// this.model.rows = a.data
|
|
258
|
+
// })
|
|
259
|
+
// } else {
|
|
260
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_id = ''
|
|
261
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
262
|
+
// this.search()
|
|
263
|
+
// }
|
|
264
|
+
// }
|
|
265
|
+
},
|
|
266
|
+
}
|
|
267
|
+
</script>
|