apply-clients 5.0.35-4 → 5.0.35-42
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 +3 -3
- package/src/AndroidApp.vue +28 -28
- package/src/android.js +1 -1
- package/src/apply.js +6 -1
- package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
- package/src/components/app_apply/ApplyDownList.vue +168 -164
- package/src/components/app_apply/ApplyInfo.vue +2 -2
- package/src/components/app_apply/ApplyListUpload.vue +268 -268
- package/src/components/app_apply/ApplyToDoList.vue +2822 -170
- package/src/components/app_apply/OneToMany.vue +194 -0
- package/src/components/app_apply/PlaceControler.vue +228 -185
- package/src/components/app_apply/ServiceControl.vue +350 -335
- package/src/components/app_apply/ServiceView.vue +383 -383
- package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
- package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
- package/src/components/app_apply/ezhou/MinYong.vue +92 -92
- package/src/components/app_apply/ezhou/ServiceView.vue +371 -201
- package/src/components/product/Common/ApplyValidateBill.vue +13 -6
- package/src/components/product/Function/InstallInfoSelect.vue +1 -1
- package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/InstallFee.vue +506 -342
- package/src/components/product/Process/ExplorationSelect.vue +8 -3
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +24 -5
- package/src/components/product/ServiceView.vue +10 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +54 -6
- package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
- package/src/components/product/applyReport/ApplyReport.vue +205 -0
- package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
- package/src/ezhouAndroid.js +11 -10
- package/src/index.js +8 -8
- package/src/main.js +1 -1
- package/src/plugins/commonService.js +11 -7
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<label class="col-sm-4 control-label">报建类型</label>
|
|
95
95
|
<div class="col-sm-8">
|
|
96
96
|
<v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'报装申请',value:'报装申请'},{label:'集体报建',value:'集体报建'}]"
|
|
97
|
-
condition="f_apply_type = '{}'" placeholder='报建类型'
|
|
97
|
+
condition="f_apply_type = '{}'" placeholder='报建类型' :search="true"
|
|
98
98
|
v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
|
|
99
99
|
</v-select>
|
|
100
100
|
</div>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
<div class="col-sm-2" style="float: left">
|
|
113
113
|
<label class="col-sm-4 control-label">报装来源</label>
|
|
114
114
|
<div class="col-sm-8">
|
|
115
|
-
<v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
|
|
115
|
+
<v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
|
|
116
116
|
condition="f_apply_source = '{}'" placeholder='报装来源'
|
|
117
117
|
v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
|
|
118
118
|
</v-select>
|
|
@@ -319,6 +319,7 @@
|
|
|
319
319
|
console.log("开始判断")
|
|
320
320
|
},
|
|
321
321
|
async ready() {
|
|
322
|
+
this.eachFind();
|
|
322
323
|
this.$refs.cp.$refs.cri.model.startDate = Util.toStandardDateString() + ' 00:00:00'
|
|
323
324
|
this.$refs.cp.$refs.cri.model.endDate = Util.toStandardDateString() + ' 23:59:59'
|
|
324
325
|
await this.getConfig()
|
|
@@ -329,7 +330,6 @@
|
|
|
329
330
|
let self = this
|
|
330
331
|
//判断用户是否有权限
|
|
331
332
|
this.checkUserOperator();
|
|
332
|
-
|
|
333
333
|
},
|
|
334
334
|
methods: {
|
|
335
335
|
//清空 查询条件项
|
|
@@ -541,6 +541,7 @@
|
|
|
541
541
|
},
|
|
542
542
|
|
|
543
543
|
eachFind() {
|
|
544
|
+
debugger
|
|
544
545
|
let arr = this.$refs.cp.$refs.grid.model.rows
|
|
545
546
|
let overNumString1=''
|
|
546
547
|
let flagNum1=1
|
|
@@ -569,12 +570,16 @@
|
|
|
569
570
|
}
|
|
570
571
|
}
|
|
571
572
|
}
|
|
573
|
+
debugger
|
|
572
574
|
if(hourfals!=0){
|
|
575
|
+
debugger
|
|
573
576
|
this.speckText('请注意:第:'+overNumString1+'数据一小时后过期')
|
|
577
|
+
this.$showMessage("请注意:第:" + overNumString1 + "数据一小时后过期")
|
|
574
578
|
}
|
|
575
579
|
if (flagNum1!=1){
|
|
576
580
|
console.log(overNumString1);
|
|
577
581
|
this.speckText('请注意:第:'+overNumString1+'数据即将过期')
|
|
582
|
+
this.$showMessage("请注意:第:" + overNumString1 + "数据即将过期")
|
|
578
583
|
}
|
|
579
584
|
if(dbflag !=1){
|
|
580
585
|
this.speckText('请注意: 您有'+dbflag-1+'条数据被督办')
|
|
@@ -598,21 +598,18 @@
|
|
|
598
598
|
if (!this.selectdata)
|
|
599
599
|
return
|
|
600
600
|
let data = {
|
|
601
|
-
tablename: 't_userinfo',
|
|
601
|
+
tablename: 't_userinfo u left join t_user_address ua on u.f_userinfo_id=ua.f_userinfo_id',
|
|
602
602
|
condition: 'f_process_id=' + '\'' + this.selectdata.f_process_id + '\''
|
|
603
603
|
}
|
|
604
604
|
let self = this
|
|
605
605
|
let http = new HttpResetClass()
|
|
606
|
-
let res = await http.load('POST', 'rs/sql/
|
|
606
|
+
let res = await http.load('POST', 'rs/sql/singleTableUserInfo', {data: data}, {
|
|
607
607
|
resolveMsg: null,
|
|
608
608
|
rejectMsg: '获取户档案信息失败'
|
|
609
609
|
})
|
|
610
610
|
self.model.rows = []
|
|
611
|
-
|
|
612
611
|
self.model.rows = res.data
|
|
613
612
|
self.params = res.data
|
|
614
|
-
|
|
615
|
-
|
|
616
613
|
},
|
|
617
614
|
impexcel() {
|
|
618
615
|
this.importtype='1'
|
|
@@ -103,6 +103,25 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
105
|
|
|
106
|
+
<div class="form-group col-sm-2">
|
|
107
|
+
<label class="col-sm-4 control-label linehhh">报装类型</label>
|
|
108
|
+
<div class="col-sm-8">
|
|
109
|
+
<v-select :value.sync="model.f_work_type" v-model="model.f_work_type"
|
|
110
|
+
:options='$parent.$parent.worktype' width="100%"
|
|
111
|
+
close-on-select condition="a.f_work_type = '{}'">
|
|
112
|
+
</v-select>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<div class="form-group col-sm-2">
|
|
117
|
+
<label class="col-sm-4 control-label linehhh">用户类型</label>
|
|
118
|
+
<div class="col-sm-8">
|
|
119
|
+
<v-select :value.sync="model.f_user_type" v-model="model.f_user_type"
|
|
120
|
+
:options='$parent.$parent.usertype' width="100%"
|
|
121
|
+
close-on-select condition="a.f_user_type = '{}'">
|
|
122
|
+
</v-select>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
106
125
|
|
|
107
126
|
<div class="form-group">
|
|
108
127
|
<button class="btn btn-primary" @click="search(),$parent.$parent.showpager()">
|
|
@@ -130,7 +149,7 @@
|
|
|
130
149
|
<th><nobr>总应缴金额</nobr></th>
|
|
131
150
|
<th><nobr>已交金额</nobr></th>
|
|
132
151
|
<th><nobr>未交金额</nobr></th>
|
|
133
|
-
|
|
152
|
+
<th><nobr>操作</nobr></th>
|
|
134
153
|
</tr>
|
|
135
154
|
</template>
|
|
136
155
|
<template partial='body'>
|
|
@@ -151,7 +170,9 @@
|
|
|
151
170
|
<td style="text-align: center;">{{row.f_total_cost}}</td>
|
|
152
171
|
<td style="text-align: center;">{{row.app_f_cumulative_money}}</td>
|
|
153
172
|
<td style="text-align: center;">{{row.f_unaccounts_money}}</td>
|
|
154
|
-
|
|
173
|
+
<td style="text-align: center;">
|
|
174
|
+
<button class="btn-primary btn btn-sm" @click.prevent="$parent.$parent.$parent.update_way(row)">修改</button>
|
|
175
|
+
</td>
|
|
155
176
|
</template>
|
|
156
177
|
</data-grid>
|
|
157
178
|
</criteria-paged>
|
|
@@ -159,19 +180,44 @@
|
|
|
159
180
|
<div class="flex" style="height: 10%">
|
|
160
181
|
<div novalidate class="form-inline auto" partial>
|
|
161
182
|
<p class="bg-info text-center" style="padding: 8px;font-size: 20px">合计收费记录共
|
|
162
|
-
<span style="color: red">{{modeluse.rows.length}}</span
|
|
183
|
+
<span style="color: red">{{modeluse.rows.length}}</span>笔,合计收费金额<span style="color: red">{{price.rows[0].f_charge_money}}</span>元,
|
|
184
|
+
合计应缴总金额<span style="color: red">{{price.rows[0].f_total_cost}}</span>元,
|
|
185
|
+
已缴<span style="color: red">{{price.rows[0].f_cumulative_money}}</span>元,未缴<span style="color: red">{{price.rows[0].f_unaccounts_money}}</span>元
|
|
163
186
|
</p>
|
|
164
187
|
</div>
|
|
165
188
|
</div>
|
|
166
189
|
</div>
|
|
190
|
+
<!--修改弹出框-->
|
|
191
|
+
<modal :show.sync="updateControl" v-ref:modal backdrop="false">
|
|
192
|
+
<header slot="modal-header" class="modal-header">
|
|
193
|
+
<button type="button" class="close" @click="closeUpdate()"><span>×</span></button>
|
|
194
|
+
<h4 class="modal-title">修改</h4>
|
|
195
|
+
</header>
|
|
196
|
+
<article slot="modal-body" class="modal-body" >
|
|
197
|
+
<div class="from-group" style="width: 100%">
|
|
198
|
+
<label style="width: 15%;float: left">票据类型</label>
|
|
199
|
+
<v-select :value.sync="selectItem.f_bill_style" v-model="selectItem.f_bill_style"
|
|
200
|
+
:options='billstyle' placeholder='请选择' style="width: 80%;float: left"
|
|
201
|
+
close-on-select >
|
|
202
|
+
</v-select>
|
|
203
|
+
</div>
|
|
204
|
+
</article>
|
|
205
|
+
|
|
167
206
|
|
|
207
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
208
|
+
<div class="from-group" style="width: 100%;float: left">
|
|
209
|
+
<button v-show="updateControl" type="button" class="btn btn-default" @click='closeUpdate'>取消</button>
|
|
210
|
+
<button v-show="updateControl" type="button" class="btn btn-success" @click='confirm'>确认</button>
|
|
211
|
+
</div>
|
|
212
|
+
</footer>
|
|
213
|
+
</modal>
|
|
168
214
|
</div>
|
|
169
215
|
</template>
|
|
170
216
|
<script>
|
|
171
217
|
import * as Util from '../../../../Util'
|
|
172
218
|
|
|
173
219
|
import { PagedList } from 'vue-client'
|
|
174
|
-
|
|
220
|
+
import {HttpResetClass} from 'vue-client'
|
|
175
221
|
Date.prototype.Format = function (fmt) {
|
|
176
222
|
var o = {
|
|
177
223
|
"M+": this.getMonth() + 1, //月份
|
|
@@ -196,57 +242,99 @@
|
|
|
196
242
|
filialeNameStr: null,
|
|
197
243
|
filialeCodeStr: this.$login.f.f_orgids,
|
|
198
244
|
userid: this.$login.f.id,
|
|
199
|
-
source
|
|
245
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
200
246
|
// f_operate_start_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
201
247
|
// f_operate_end_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
202
|
-
model: new PagedList('rs/sql/getApplyCharge', 30, {
|
|
203
|
-
modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {
|
|
204
|
-
price: new PagedList('rs/sql/getChargeAll', 999999, {
|
|
205
|
-
human:[],
|
|
206
|
-
filiale:[],
|
|
207
|
-
method:
|
|
208
|
-
|
|
248
|
+
model: new PagedList('rs/sql/getApplyCharge', 30, {orderitem: '`id`'}),
|
|
249
|
+
modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {orderitem: '`id`'}),
|
|
250
|
+
price: new PagedList('rs/sql/getChargeAll', 999999, {orderitem: '`f_charge_money`'}),
|
|
251
|
+
human: [],
|
|
252
|
+
filiale: [],
|
|
253
|
+
method: this.$appdata.getParam('付款方式'),
|
|
254
|
+
usertype:[
|
|
255
|
+
{label: '民用', value: '民用'},
|
|
256
|
+
{label: '非民用', value: '非民用'}
|
|
257
|
+
],
|
|
258
|
+
worktype:[
|
|
259
|
+
{label: '新报装', value: '新报装'},
|
|
260
|
+
{label: '改管', value: '改管'}
|
|
261
|
+
],
|
|
262
|
+
correct: [
|
|
209
263
|
{label: '是', value: '是'},
|
|
210
|
-
{label:'否', value: '否'}
|
|
264
|
+
{label: '否', value: '否'}
|
|
211
265
|
],
|
|
212
|
-
state:[
|
|
266
|
+
state: [
|
|
213
267
|
{label: '有效', value: '有效'},
|
|
214
|
-
{label:'无效', value: '无效'}
|
|
215
|
-
]
|
|
268
|
+
{label: '无效', value: '无效'}
|
|
269
|
+
],
|
|
270
|
+
selectItem: {},
|
|
271
|
+
billstyle: this.$appdata.getParam('发票类型'),
|
|
272
|
+
updateControl: false,
|
|
273
|
+
billID: 0
|
|
216
274
|
}
|
|
217
275
|
},
|
|
218
276
|
ready () {
|
|
219
|
-
this.$refs.
|
|
220
|
-
this.$refs.
|
|
277
|
+
this.$refs.paged.$refs.criteria.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
|
|
278
|
+
this.$refs.paged.$refs.criteria.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
|
|
221
279
|
this.search()
|
|
222
280
|
this.gethuman()
|
|
223
281
|
},
|
|
224
282
|
methods: {
|
|
225
|
-
clear(){
|
|
226
|
-
this.$refs.
|
|
283
|
+
clear () {
|
|
284
|
+
this.$refs.paged.$refs.criteria.model = {}
|
|
227
285
|
},
|
|
228
|
-
getRes(obj) {
|
|
286
|
+
getRes (obj) {
|
|
229
287
|
this.filialeNameStr = obj.res
|
|
230
288
|
this.filialeCodeStr = obj.resids
|
|
231
289
|
console.log(this.filialeNameStr)
|
|
232
290
|
console.log(this.filialeCodeStr)
|
|
233
291
|
},
|
|
234
|
-
showpager() {
|
|
292
|
+
showpager () {
|
|
235
293
|
// this.$refs.cp.pager = true
|
|
236
294
|
this.$dispatch('hiddenbtn')
|
|
237
295
|
},
|
|
238
|
-
|
|
239
|
-
|
|
296
|
+
search () {
|
|
297
|
+
let condition = "1=1 and r.f_filiale like '%" + this.$login.f.f_fengongsi + "%'"
|
|
298
|
+
// debugger
|
|
299
|
+
// let condition = args.condition
|
|
300
|
+
debugger
|
|
240
301
|
this.model.search(condition)
|
|
241
302
|
this.modeluse.search(condition)
|
|
242
|
-
|
|
303
|
+
let condition1 = condition
|
|
304
|
+
this.price.search(condition1)
|
|
243
305
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
306
|
+
update_way (row) {
|
|
307
|
+
console.log('进入修改方法')
|
|
308
|
+
this.selectItem = {}
|
|
309
|
+
this.billID = row.id
|
|
310
|
+
this.updateControl = true
|
|
311
|
+
},
|
|
312
|
+
closeUpdate () {
|
|
313
|
+
this.updateControl = false
|
|
314
|
+
},
|
|
315
|
+
confirm () {
|
|
316
|
+
let data = {
|
|
317
|
+
f_bill_style: this.selectItem.f_bill_style[0],
|
|
318
|
+
id: this.billID
|
|
319
|
+
}
|
|
320
|
+
console.log('数据:' + JSON.stringify(this.selectItem))
|
|
321
|
+
this.$resetpost('rs/entity/t_charge_record', data).then((res) => {
|
|
322
|
+
console.log('返回值:' + JSON.stringify(res.data))
|
|
323
|
+
if (res.data.id > 0) {
|
|
324
|
+
// this.$showMessage('修改成功!')
|
|
325
|
+
this.closeUpdate()
|
|
326
|
+
this.search()
|
|
327
|
+
}
|
|
328
|
+
})
|
|
329
|
+
},
|
|
330
|
+
selfSearch (args) {
|
|
331
|
+
args.condition = args.condition + ` and a.f_filialeids like '%${this.filialeCodeStr}%'`
|
|
332
|
+
console.log('condition:', args.condition)
|
|
247
333
|
this.model.search(args.condition, args.model)
|
|
334
|
+
this.modeluse.search(args.condition, args.model)
|
|
335
|
+
this.price.search(args.condition, args.model)
|
|
248
336
|
},
|
|
249
|
-
cleaner() {
|
|
337
|
+
cleaner () {
|
|
250
338
|
Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
|
|
251
339
|
this.$refs.paged.$refs.criteria.model[key] = ''
|
|
252
340
|
})
|
|
@@ -256,19 +344,19 @@
|
|
|
256
344
|
this.modeluse.search(this.$refs.paged.$refs.criteria.condition)
|
|
257
345
|
this.price.search(this.$refs.paged.$refs.criteria.condition)
|
|
258
346
|
},
|
|
259
|
-
gethuman(){
|
|
347
|
+
gethuman () {
|
|
260
348
|
console.log('获取人员')
|
|
261
349
|
this.$resetpost('rs/logic/getChargeList', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
262
350
|
// this.params.rows.splice(index, 1)
|
|
263
|
-
console.log('获取成功',res)
|
|
351
|
+
console.log('获取成功', res)
|
|
264
352
|
let house = []
|
|
265
|
-
for (let row of res.data.human){
|
|
266
|
-
house.push({label: row.f_charge_collectors,value: row.f_charge_collectors})
|
|
353
|
+
for (let row of res.data.human) {
|
|
354
|
+
house.push({label: row.f_charge_collectors, value: row.f_charge_collectors})
|
|
267
355
|
}
|
|
268
356
|
this.human = house
|
|
269
357
|
let house2 = []
|
|
270
358
|
for (let row of res.data.f){
|
|
271
|
-
house2.push({label: row.f_filiale,value: row.f_filiale})
|
|
359
|
+
house2.push({label: row.r.f_filiale,value: row.r.f_filiale})
|
|
272
360
|
}
|
|
273
361
|
this.filiale = house2
|
|
274
362
|
let house3 = []
|
|
@@ -277,9 +365,7 @@
|
|
|
277
365
|
}
|
|
278
366
|
this.method = house3
|
|
279
367
|
})
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
|
|
368
|
+
}
|
|
283
369
|
},
|
|
284
370
|
computed: {
|
|
285
371
|
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto form-horizontal" >
|
|
3
|
+
<modal :show.sync="show" v-ref:modal large backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<h3 style="color:black" class="modal-title">发票号</h3>
|
|
6
|
+
</header>
|
|
7
|
+
<article slot="modal-body" class="modal-body">
|
|
8
|
+
|
|
9
|
+
<validator name='v'>
|
|
10
|
+
<form class="form-horizontal select-overspread">
|
|
11
|
+
<div class="row" style="display: flex;justify-content: center;" id='normal-bill' >
|
|
12
|
+
<div class="form-group col-sm-6">
|
|
13
|
+
<label class=" col-sm-2 control-label">发票代码:</label>
|
|
14
|
+
<input type="text" class="form-control" v-model="model.f_bill_code" style="width:60%"
|
|
15
|
+
placeholder="发票代码" disabled
|
|
16
|
+
>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="form-group col-sm-6">
|
|
19
|
+
<label class=" col-sm-2 control-label">发票号码:</label>
|
|
20
|
+
<input type="text" class="form-control" v-model="model.f_bill_number" style="width:60%"
|
|
21
|
+
placeholder="发票号码" disabled
|
|
22
|
+
>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</form>
|
|
26
|
+
</validator>
|
|
27
|
+
</article>
|
|
28
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
29
|
+
<button type="button" class="btn btn-default" @click='cancel()' >取消</button>
|
|
30
|
+
</footer>
|
|
31
|
+
</modal>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script>
|
|
35
|
+
import { DataModel } from 'vue-client'
|
|
36
|
+
let getBillData = async function(self) {
|
|
37
|
+
if(self.data.eticketid){
|
|
38
|
+
let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` id= ${self.data.eticketid}`}})
|
|
39
|
+
console.log("看看res",res)
|
|
40
|
+
self.model.f_bill_code=res.data[0].f_bill_code
|
|
41
|
+
self.model.f_bill_number=res.data[0].f_bill_number
|
|
42
|
+
}else{
|
|
43
|
+
let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` f_sell_id=${self.data.id}`}})
|
|
44
|
+
console.log("看看res",res)
|
|
45
|
+
self.model.f_bill_code=res.data[0].f_bill_code
|
|
46
|
+
self.model.f_bill_number=res.data[0].f_bill_number
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
title: '收费发票',
|
|
52
|
+
data () {
|
|
53
|
+
return {
|
|
54
|
+
model:{
|
|
55
|
+
f_bill_code:'',
|
|
56
|
+
f_bill_number:''
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
props: ['show', 'data'],
|
|
61
|
+
ready () {
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
cancel () {
|
|
65
|
+
this.$dispatch('toggle')
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
watch: {
|
|
69
|
+
'show' (val) {
|
|
70
|
+
if (val) {
|
|
71
|
+
getBillData(this, val).then(() => {
|
|
72
|
+
this.$emit('ready')
|
|
73
|
+
}).catch((error) => {
|
|
74
|
+
this.$emit('error', error)
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
events: {
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
</script>
|
|
84
|
+
<style >
|
|
85
|
+
</style>
|
|
@@ -117,6 +117,8 @@
|
|
|
117
117
|
contract: null, // 单值表合同编号记录
|
|
118
118
|
technologist: [], // 技术人员 角色下的人
|
|
119
119
|
price: 0,
|
|
120
|
+
xiangmu:'',
|
|
121
|
+
xia:'',
|
|
120
122
|
cost: 0,
|
|
121
123
|
number: 0,
|
|
122
124
|
pgd: '',
|
|
@@ -449,7 +451,7 @@
|
|
|
449
451
|
} else {
|
|
450
452
|
data = {
|
|
451
453
|
tablename: this.data.onetomany[index].tables[0],
|
|
452
|
-
condition: `
|
|
454
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
453
455
|
}
|
|
454
456
|
}
|
|
455
457
|
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
@@ -1439,24 +1441,28 @@
|
|
|
1439
1441
|
this.$refs.service_show.data.fields[index].label === '人工费'
|
|
1440
1442
|
) {
|
|
1441
1443
|
console.log('即将合成价格')
|
|
1444
|
+
let a1 = 0
|
|
1445
|
+
let b1 = 0
|
|
1446
|
+
let c1 = 0
|
|
1442
1447
|
let fee = 0
|
|
1443
1448
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1444
1449
|
// 控制设置级联
|
|
1445
1450
|
// 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
|
|
1446
1451
|
// xxx xx xxx
|
|
1447
1452
|
if (this.$refs.service_show.data.fields[i].label === '工程安装费' && this.$refs.service_show.data.fields[i].value) {
|
|
1448
|
-
|
|
1453
|
+
a1 = this.$refs.service_show.data.fields[i].value
|
|
1449
1454
|
}
|
|
1450
1455
|
if (this.$refs.service_show.data.fields[i].label === '材料费' && this.$refs.service_show.data.fields[i].value) {
|
|
1451
|
-
|
|
1456
|
+
b1= this.$refs.service_show.data.fields[i].value
|
|
1452
1457
|
}
|
|
1453
1458
|
if (this.$refs.service_show.data.fields[i].label === '人工费' && this.$refs.service_show.data.fields[i].value) {
|
|
1454
|
-
|
|
1459
|
+
c1 = this.$refs.service_show.data.fields[i].value
|
|
1455
1460
|
}
|
|
1461
|
+
fee=parseFloat(parseFloat(a1) + parseFloat(b1)+parseFloat(c1)).toFixed(2)
|
|
1456
1462
|
// 数据获取完毕时放入地址text
|
|
1457
1463
|
for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
|
|
1458
1464
|
if (this.$refs.service_show.data.fields[i].label === '费用合计'||this.$refs.service_show.data.fields[i].label === '未结总金额') {
|
|
1459
|
-
this.$refs.service_show.data.fields[i].value =
|
|
1465
|
+
this.$refs.service_show.data.fields[i].value =fee
|
|
1460
1466
|
console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
|
|
1461
1467
|
}
|
|
1462
1468
|
}
|
|
@@ -1567,6 +1573,19 @@
|
|
|
1567
1573
|
|
|
1568
1574
|
}
|
|
1569
1575
|
if (model.button.button_name === '提交') {
|
|
1576
|
+
// for (let i = 0; i < this.show_data.fields.length; i++) {
|
|
1577
|
+
// if (this.show_data.fields[i].label === '收费项目') {
|
|
1578
|
+
// let yuanXiang = this.show_data.fields[i].value
|
|
1579
|
+
// if (yuanXiang != '' && yuanXiang != null) {
|
|
1580
|
+
// for (let i = 0; i < yuanXiang.length; i++) {
|
|
1581
|
+
// this.xia += yuanXiang[i] + '-'
|
|
1582
|
+
// }
|
|
1583
|
+
// let idx = this.xia.lastIndexOf("-");
|
|
1584
|
+
// this.xiangmu = this.xia.substring(0,idx)
|
|
1585
|
+
// }
|
|
1586
|
+
// model.f_charge_items = this.xiangmu
|
|
1587
|
+
// }
|
|
1588
|
+
// }
|
|
1570
1589
|
var flag = false
|
|
1571
1590
|
if (this.data.defname == '合同审核') {
|
|
1572
1591
|
flag = true
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
<!--</div>-->
|
|
11
11
|
<validator name="v">
|
|
12
12
|
<form class="form-horizontal">
|
|
13
|
-
<div class="col-sm-12 form-group">
|
|
13
|
+
<div class="col-sm-12 form-group form-group1">
|
|
14
14
|
<div v-for="(index,item) in data.fields">
|
|
15
15
|
<!--input-->
|
|
16
|
-
<div :style="item.style
|
|
16
|
+
<div :style="item.style+';height: 34px;'"
|
|
17
17
|
v-if="item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email'"
|
|
18
18
|
v-show="!item.hidden"
|
|
19
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
19
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
|
|
20
20
|
<label :style="item.label_style? item.label_style:''+';width:85px;'"
|
|
21
21
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':item.label_style?'':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
22
22
|
<div :style="item.value_style? item.value_style:''"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<!--时间datepicker-->
|
|
37
37
|
<div :style="item.style? item.style+';height: 34px;':'height: 34px;'" v-if="item.type==='datepicker'"
|
|
38
38
|
v-show="!item.hidden"
|
|
39
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
39
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
|
|
40
40
|
<label style="width:85px"
|
|
41
41
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label control-label-justify col-sm-6'">{{item.label}}</label>
|
|
42
42
|
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
|
|
95
95
|
<!--select-->
|
|
96
96
|
<div style="height: 34px" v-if="item.type==='select'" v-show="!item.hidden"
|
|
97
|
-
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
97
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group ':'col-sm-4 form-group']">
|
|
98
98
|
<label style="width:85px;"
|
|
99
99
|
:class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
|
|
100
100
|
<input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
|
+
|
|
109
110
|
<!--checkbox-->
|
|
110
111
|
<div v-if="item.type==='checkbox'"
|
|
111
112
|
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
</div>
|
|
123
124
|
<!-- onetomany -->
|
|
124
125
|
<div class="col-sm-12" v-for="(i,datagrid) in data.onetomany">
|
|
125
|
-
<table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover">
|
|
126
|
+
<table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover" style="margin-top: 80px">
|
|
126
127
|
<tr style="background-color: #00A3F0">
|
|
127
128
|
<th style="text-align: center;border-color: #00A3F0"><font color="white">序号</font></th>
|
|
128
129
|
<th v-for="labels in datagrid.fields" style="text-align: center;border-color: #00A3F0">
|
|
@@ -797,4 +798,7 @@
|
|
|
797
798
|
tr {
|
|
798
799
|
height: 34px;
|
|
799
800
|
}
|
|
801
|
+
.form-group{
|
|
802
|
+
margin-top:20px;
|
|
803
|
+
}
|
|
800
804
|
</style>
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
<script>
|
|
22
22
|
import {HttpResetClass} from 'vue-client'
|
|
23
|
+
import Vue from "vue";
|
|
23
24
|
export default {
|
|
24
25
|
title: '报建监控控制层',
|
|
25
26
|
props: ['selectdata'],
|
|
@@ -36,6 +37,45 @@
|
|
|
36
37
|
},
|
|
37
38
|
// json配置数据处理 比如下拉框的options
|
|
38
39
|
async initializtion() {
|
|
40
|
+
// onetomany 数据获取
|
|
41
|
+
if (this.data.onetomany) {
|
|
42
|
+
console.log('判断是onetomany,this.data.onetomany的数据为=>' + JSON.stringify(this.data.onetomany))
|
|
43
|
+
for (let index = 0; index < this.data.onetomany.length; index++) {
|
|
44
|
+
let http = new HttpResetClass()
|
|
45
|
+
let data = {}
|
|
46
|
+
if (this.data.onetomany[index].tables[0] == 't_charge_record') {
|
|
47
|
+
data = {
|
|
48
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
49
|
+
condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '作废'`
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
data = {
|
|
53
|
+
tablename: this.data.onetomany[index].tables[0],
|
|
54
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
58
|
+
resolveMsg: null,
|
|
59
|
+
rejectMsg: 'onetomany查询失败'
|
|
60
|
+
})
|
|
61
|
+
// 初始化 onetomany
|
|
62
|
+
let rows = []
|
|
63
|
+
console.log('查询返回结果res.data=>' + JSON.stringify(res.data))
|
|
64
|
+
this.data.onetomany[index].rows = res.data
|
|
65
|
+
// console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
|
|
66
|
+
|
|
67
|
+
// 初始化onetomany中的fields
|
|
68
|
+
for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
|
|
69
|
+
// 如果配置类型为select,优先从参数列表获取options
|
|
70
|
+
if (this.data.onetomany[index].fields[j].type === 'select') {
|
|
71
|
+
let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
72
|
+
if (temp && temp.length > 0) {
|
|
73
|
+
this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
39
79
|
// selectdata 填充 data
|
|
40
80
|
if (this.selectdata.f_survey_name) {
|
|
41
81
|
let buyerinfos = []
|
|
@@ -133,11 +173,7 @@
|
|
|
133
173
|
}
|
|
134
174
|
]
|
|
135
175
|
}
|
|
136
|
-
|
|
137
|
-
this.data.filiale = this.selectdata.f_filiale
|
|
138
|
-
this.data.f_parentname = this.selectdata.f_parentname
|
|
139
|
-
this.data.operate_date = this.selectdata.finishtime
|
|
140
|
-
this.data.operator = this.selectdata.sender
|
|
176
|
+
|
|
141
177
|
}
|
|
142
178
|
},
|
|
143
179
|
events:{
|
|
@@ -393,7 +429,19 @@
|
|
|
393
429
|
if (sum == 1) {
|
|
394
430
|
this.data = jsonData
|
|
395
431
|
this.initializtion()
|
|
396
|
-
|
|
432
|
+
// 完成时间和完成人,部门,分公司
|
|
433
|
+
if(this.selectdata.defname =='完工'){ this.data.filiale = this.selectdata.f_filiale
|
|
434
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
435
|
+
this.data.operate_date = this.selectdata.sendtime
|
|
436
|
+
this.data.operator = this.selectdata.sender
|
|
437
|
+
this.showview = true
|
|
438
|
+
}else{
|
|
439
|
+
this.data.f_parentname = this.selectdata.f_parentname
|
|
440
|
+
this.data.operate_date = this.selectdata.finishtime
|
|
441
|
+
this.data.operator = this.selectdata.person
|
|
442
|
+
this.showview = true
|
|
443
|
+
}
|
|
444
|
+
|
|
397
445
|
} else if (sum == 0) {
|
|
398
446
|
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
399
447
|
} else {
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
<div class="col-sm-2" style="float: left">
|
|
114
114
|
<label class="col-sm-4 control-label">报装来源</label>
|
|
115
115
|
<div class="col-sm-8">
|
|
116
|
-
<v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
|
|
116
|
+
<v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
|
|
117
117
|
condition="f_apply_source = '{}'" placeholder='报装来源'
|
|
118
118
|
v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
|
|
119
119
|
</v-select>
|