sale-client 4.2.101 → 4.2.103
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/{8.10 → 8.5}/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/{8.10 → 8.5}/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/file-system.probe +0 -0
- package/package.json +1 -1
- package/src/filiale/meihekou/ChargeList.vue +4 -4
- package/src/filiale/meihekou/MeterOperatemain.vue +511 -0
- package/src/filiale/meihekou/UserFeeInfo.vue +84 -0
- package/src/filiale/meihekou/Userinfo.vue +15 -15
- package/src/filiale/meihekou/deviceMessage.vue +86 -0
- package/src/filiale/meihekou/handOperate.vue +62 -3
- package/src/filiale/meihekou/meterinfodetail.vue +89 -84
- package/src/filiale/meihekou/otherinfo.vue +101 -0
- package/src/filiale/meihekou/replacementSingleInfoOperation.vue +74 -6
- package/src/filiale/meihekou/sale.js +8 -0
- package/.gradle/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.npmignore +0 -12
- package/src/.npmignore +0 -1
- package/yarn.lock +0 -12221
- /package/.gradle/{8.10 → 8.5}/dependencies-accessors/gc.properties +0 -0
- /package/.gradle/{8.10 → 8.5}/fileChanges/last-build.bin +0 -0
- /package/.gradle/{8.10 → 8.5}/gc.properties +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Fri Nov 28 09:22:31 CST 2025
|
|
2
2
|
gradle.version=5.2.1
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
<!-- @keyup.enter="search(), $parent.$parent.clean()" condition="f_user_name = '{}'">-->
|
|
24
24
|
<!-- </div>-->
|
|
25
25
|
<div class="form-group col-sm-4">
|
|
26
|
-
<label class="font_normal_body"
|
|
27
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.
|
|
28
|
-
placeholder='
|
|
29
|
-
condition="
|
|
26
|
+
<label class="font_normal_body">证件号 </label>
|
|
27
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_idnumber"
|
|
28
|
+
placeholder='证件号'
|
|
29
|
+
condition="f_idnumber = '{}'">
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
32
|
<div class="form-group col-sm-4">
|
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" id="meterInfoTest">
|
|
3
|
+
<validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-4 form-group">
|
|
7
|
+
<label class="font_normal_body">用户姓名</label>
|
|
8
|
+
<input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-4 form-group">
|
|
11
|
+
<label class="font_normal_body" title="参数:收费状态, 权限:【收费记录状态修改】">收费状态</label>
|
|
12
|
+
<!-- <input type="text" v-model="model.f_charge_state" disabled=disabled style="width: 60%" class="input_search">-->
|
|
13
|
+
<v-select :value.sync="model.f_state" v-model="model.f_state"
|
|
14
|
+
:value-single="true"
|
|
15
|
+
:search="false"
|
|
16
|
+
:disabled="editstate"
|
|
17
|
+
:options='positions' placeholder='收费状态'
|
|
18
|
+
close-on-select>
|
|
19
|
+
</v-select>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-4 form-group">
|
|
22
|
+
<label class="font_normal_body">地  址</label>
|
|
23
|
+
<input type="text" v-model="model.f_address" disabled=disabled style="width: 60%" class="input_search">
|
|
24
|
+
</div>
|
|
25
|
+
<!--<div class="col-sm-4 form-group">
|
|
26
|
+
<label class="font_normal_body">用户编号</label>
|
|
27
|
+
<input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
|
|
28
|
+
</div>-->
|
|
29
|
+
<div class="col-sm-4 form-group">
|
|
30
|
+
<label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
|
|
31
|
+
<!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
|
|
32
|
+
<v-select :value.sync="model.f_payment" v-model="model.f_payment"
|
|
33
|
+
:options='payments' placeholder='付款方式'
|
|
34
|
+
:value-single="true"
|
|
35
|
+
:search="false"
|
|
36
|
+
close-on-select>
|
|
37
|
+
</v-select>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="col-sm-4 form-group">
|
|
40
|
+
<label class="font_normal_body" title="参数:写卡状态">写卡状态</label>
|
|
41
|
+
<!-- <input type="text" v-model="model.f_write_card" style="width: 60%" class="input_search">-->
|
|
42
|
+
<v-select :value.sync="model.f_write_card" v-model="model.f_write_card"
|
|
43
|
+
:options='writeCards' placeholder='写卡状态'
|
|
44
|
+
:value-single="true"
|
|
45
|
+
:search="false"
|
|
46
|
+
close-on-select>
|
|
47
|
+
</v-select>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
|
|
50
|
+
<label class="font_normal_body">收款金额</label>
|
|
51
|
+
<input type="text" v-model="model.f_collection" :disabled="!editcollection" style="width: 60%" class="input_search">
|
|
52
|
+
</div>
|
|
53
|
+
<!--<div class="col-sm-4 form-group">-->
|
|
54
|
+
<!--<label class="font_normal_body">收据类型</label>-->
|
|
55
|
+
<!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
|
|
56
|
+
<!--</div>-->
|
|
57
|
+
</div>
|
|
58
|
+
<div class="row">
|
|
59
|
+
<div class="col-sm-4 form-group">
|
|
60
|
+
<label class="font_normal_body">转账单位</label>
|
|
61
|
+
<input type="text" v-model="model.f_banktransfer_person" :disabled="!editbank" style="width: 60%" class="input_search">
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-4 form-group">
|
|
64
|
+
<label class="font_normal_body">转账金额</label>
|
|
65
|
+
<input type="text" v-model="model.f_banktransfer_money" :disabled="!editbank" style="width: 60%" class="input_search">
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-4 form-group">
|
|
68
|
+
<label class="font_normal_body">转账日期</label>
|
|
69
|
+
<!-- <input type="text" v-model="model.f_banktransfer_date" :disabled="!editbank" style="width: 60%" class="input_search">-->
|
|
70
|
+
<datepicker id="f_banktransfer_date" placeholder="转账日期" style="width:60%"
|
|
71
|
+
v-model="model.f_banktransfer_date"
|
|
72
|
+
:value.sync="model.f_banktransfer_date"
|
|
73
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
74
|
+
:show-reset-button="true">
|
|
75
|
+
</datepicker>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="row">
|
|
79
|
+
<div class="col-sm-4 form-group" title="参数:操作时间, 权限:【收费记录时间修改】">
|
|
80
|
+
<label class="font_normal_body">操作时间</label>
|
|
81
|
+
<!--<input type="text" v-model="model.f_delivery_date" style="width: 60%" class="input_search">-->
|
|
82
|
+
<datepicker id="f_delivery_date" placeholder="操作时间" style="width:60%"
|
|
83
|
+
v-model="model.f_operate_date"
|
|
84
|
+
:value.sync="model.f_operate_date"
|
|
85
|
+
:disabled="editDate"
|
|
86
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
87
|
+
:show-reset-button="true">
|
|
88
|
+
</datepicker>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-4 form-group">
|
|
91
|
+
<label class="font_normal_body">财务核算日期</label>
|
|
92
|
+
<!--<input type="text" v-model="model.f_delivery_date" style="width: 60%" class="input_search">-->
|
|
93
|
+
<datepicker id="f_delivery_date" placeholder="财务核算日期" style="width:60%"
|
|
94
|
+
v-model="model.f_accounting_date"
|
|
95
|
+
:value.sync="model.f_accounting_date"
|
|
96
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
97
|
+
:show-reset-button="true">
|
|
98
|
+
</datepicker>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
|
|
101
|
+
<label class="font_normal_body">购气气量</label>
|
|
102
|
+
<input type="text" v-model="model.f_pregas" :disabled="!editcollection" style="width: 60%" class="input_search">
|
|
103
|
+
</div>
|
|
104
|
+
<div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
|
|
105
|
+
<label class="font_normal_body">购气金额</label>
|
|
106
|
+
<input type="text" v-model="model.f_preamount" :disabled="!editcollection" style="width: 60%" class="input_search">
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="row">
|
|
110
|
+
<div class="col-sm-4 form-group" title="修正需权限:【收费记录维护操作员权限】">
|
|
111
|
+
<label class="font_normal_body" title="参数:操作人员">操作人员</label>
|
|
112
|
+
<v-select :value.sync="model.f_operatorid"
|
|
113
|
+
v-model="model.f_operatorid"
|
|
114
|
+
:disabled="!editoperator"
|
|
115
|
+
:value-single="true" @change="selectoperator()"
|
|
116
|
+
:options='foperator'
|
|
117
|
+
close-on-select></v-select>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="col-sm-4 form-group">
|
|
120
|
+
<label class="font_normal_body">所属部门</label>
|
|
121
|
+
<res-select restype="department"
|
|
122
|
+
:is-mul="false"
|
|
123
|
+
:disabled="!editdep"
|
|
124
|
+
:parentresid="model.f_orgid ? [model.f_orgid] : []"
|
|
125
|
+
:initresid="model.f_depid ? [model.f_depid] : []"
|
|
126
|
+
@res-select="onDepSelect">
|
|
127
|
+
</res-select>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="col-sm-4 form-group">
|
|
130
|
+
<label class="font_normal_body">所属公司</label>
|
|
131
|
+
<input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="row">
|
|
135
|
+
<div class="col-sm-4 form-group">
|
|
136
|
+
<label class="font_normal_body" title="打印格式">收据类型</label>
|
|
137
|
+
<v-select id="f_bill_style"
|
|
138
|
+
placeholder='收据类型'
|
|
139
|
+
:value-single="true"
|
|
140
|
+
:value.sync="model.f_bill_style"
|
|
141
|
+
:options='equipmentType'
|
|
142
|
+
close-on-select clear-button>
|
|
143
|
+
</v-select>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="col-sm-4 form-group">
|
|
146
|
+
<label class="font_normal_body">开发票人</label>
|
|
147
|
+
<input type="text" v-model="model.f_bill_operator" disabled=disabled style="width: 60%" class="input_search">
|
|
148
|
+
</div>
|
|
149
|
+
<div class="col-sm-4 form-group">
|
|
150
|
+
<label class="font_normal_body">发票时间</label>
|
|
151
|
+
<datepicker id="f_bill_date" placeholder="开发票时间" style="width:60%"
|
|
152
|
+
v-model="model.f_bill_date"
|
|
153
|
+
:value.sync="model.f_bill_date"
|
|
154
|
+
:format="'yyyy-MM-dd'"
|
|
155
|
+
:show-reset-button="true">
|
|
156
|
+
</datepicker>
|
|
157
|
+
<!--<input type="text" v-model="model.f_bill_date" style="width: 60%" class="input_search">-->
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="row">
|
|
161
|
+
<div class="col-sm-4 form-group">
|
|
162
|
+
<label class="font_normal_body">流 水 号</label>
|
|
163
|
+
<input type="text" v-model="model.f_serial_id" style="width: 60%" class="input_search">
|
|
164
|
+
</div>
|
|
165
|
+
<div class="col-sm-4 form-group">
|
|
166
|
+
<label class="font_normal_body">业务单号</label>
|
|
167
|
+
<input type="text" v-model="model.f_serial_number" style="width: 60%" class="input_search">
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="row">
|
|
171
|
+
<div class="col-sm-12 form-group">
|
|
172
|
+
<label class="font_normal_body">备注信息</label>
|
|
173
|
+
<input type="text" v-model="model.f_comments" style="width: 85%" class="input_search">
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</form>
|
|
177
|
+
<div style="float: right">
|
|
178
|
+
<button class="button_search" @click="save">保存</button>
|
|
179
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
180
|
+
</div>
|
|
181
|
+
</validator>
|
|
182
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal backdrop="false">
|
|
183
|
+
<article slot="modal-body">
|
|
184
|
+
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>
|
|
185
|
+
</article>
|
|
186
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
187
|
+
</footer>
|
|
188
|
+
</modal>
|
|
189
|
+
<!--文件上传按钮-->
|
|
190
|
+
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
191
|
+
</div>
|
|
192
|
+
</template>
|
|
193
|
+
<script>
|
|
194
|
+
import Vue from 'vue'
|
|
195
|
+
import {HttpResetClass} from 'vue-client'
|
|
196
|
+
import * as Util from '../../Util'
|
|
197
|
+
var data
|
|
198
|
+
let readyGen = async function (self) {
|
|
199
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
200
|
+
await self.$GetSaleParam.initinputtor()
|
|
201
|
+
}
|
|
202
|
+
export default {
|
|
203
|
+
title: '基本信息',
|
|
204
|
+
|
|
205
|
+
data () {
|
|
206
|
+
return {
|
|
207
|
+
equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
|
|
208
|
+
// 构建数组来存储对象
|
|
209
|
+
editbank: true,
|
|
210
|
+
editcollection: false,
|
|
211
|
+
editoperator: false,
|
|
212
|
+
editdep: false,
|
|
213
|
+
uploadText: '收费',
|
|
214
|
+
showfiles: false,
|
|
215
|
+
recordList: [],
|
|
216
|
+
foperator: [],
|
|
217
|
+
fdep: [],
|
|
218
|
+
fileNameSet: {
|
|
219
|
+
'f_payment': '收费形式',
|
|
220
|
+
'f_state': '是否有效',
|
|
221
|
+
'f_bill_style': '收据类型',
|
|
222
|
+
'f_operate_date': '收费日期',
|
|
223
|
+
'f_accounting_date': '财务核算日期',
|
|
224
|
+
'f_pregas': '购气气量',
|
|
225
|
+
'f_address': '地址',
|
|
226
|
+
'f_user_type': '用气性质',
|
|
227
|
+
'f_preamount': '充值金额',
|
|
228
|
+
'f_orgname': '所属公司',
|
|
229
|
+
'f_depname': '所属部门',
|
|
230
|
+
'f_operator': '操作人',
|
|
231
|
+
'f_user_name': '用户姓名',
|
|
232
|
+
'f_write_card': '写卡状态',
|
|
233
|
+
'f_banktransfer_person': '转账单位',
|
|
234
|
+
'f_banktransfer_money': '转账金额',
|
|
235
|
+
'f_banktransfer_date': '转账日期',
|
|
236
|
+
'f_comments': '备注信息',
|
|
237
|
+
'f_bill_date': '开票时间',
|
|
238
|
+
'f_bill_operator': '开票人',
|
|
239
|
+
'f_serial_id': '流水号',
|
|
240
|
+
'f_serial_number': '业务单号'
|
|
241
|
+
},
|
|
242
|
+
editstate: true,
|
|
243
|
+
editDate: true
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
props: {
|
|
247
|
+
oldmodel: Object,
|
|
248
|
+
model: Object
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
async ready () {
|
|
252
|
+
if (this.$login.r.includes('维护银行转账信息')) {
|
|
253
|
+
this.editbank = true
|
|
254
|
+
}
|
|
255
|
+
if (this.$login.r.includes('收费记录维护金额权限')) {
|
|
256
|
+
this.editcollection = true
|
|
257
|
+
}
|
|
258
|
+
if (this.$login.r.includes('收费记录维护操作员权限')) {
|
|
259
|
+
this.editoperator = true
|
|
260
|
+
}
|
|
261
|
+
if (this.$login.r.includes('抄表记录维护部门权限')) {
|
|
262
|
+
this.editdep = true
|
|
263
|
+
}
|
|
264
|
+
if (this.$login.r.includes('收费记录状态修改')) {
|
|
265
|
+
this.editstate = false
|
|
266
|
+
}
|
|
267
|
+
if (this.$login.r.includes('收费记录时间修改')) {
|
|
268
|
+
this.editDate = false
|
|
269
|
+
}
|
|
270
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
271
|
+
this.model.f_bill_state = [this.oldmodel]
|
|
272
|
+
console.log('看看收费id', this.oldmodel)
|
|
273
|
+
await readyGen(this)
|
|
274
|
+
// 初始化操作员和部门下拉,避免下拉为空或仅显示数值
|
|
275
|
+
this.initoperator()
|
|
276
|
+
this.initdep()
|
|
277
|
+
},
|
|
278
|
+
created () {
|
|
279
|
+
},
|
|
280
|
+
methods: {
|
|
281
|
+
initoperator () {
|
|
282
|
+
this.foperator = []
|
|
283
|
+
console.log('this.$login', this.$login, this.oldmodel, this.$GetSaleParam.inputtors)
|
|
284
|
+
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
285
|
+
if (res.rolestr != null && res.rolestr !== '') {
|
|
286
|
+
return res.rolestr.indexOf('营业员') > -1 && res.f_orgid === this.model.f_orgid
|
|
287
|
+
}
|
|
288
|
+
})
|
|
289
|
+
arr.forEach((res) => {
|
|
290
|
+
this.foperator.push({label: res.name, value: res.id})
|
|
291
|
+
})
|
|
292
|
+
},
|
|
293
|
+
initdep () {
|
|
294
|
+
this.fdep = []
|
|
295
|
+
// 确保 inputtors 已加载
|
|
296
|
+
if (!this.$GetSaleParam || !this.$GetSaleParam.inputtors) {
|
|
297
|
+
console.warn('initdep - inputtors not loaded yet')
|
|
298
|
+
return
|
|
299
|
+
}
|
|
300
|
+
const inputtors = this.$GetSaleParam.inputtors || []
|
|
301
|
+
console.log('initdep - inputtors length:', inputtors.length, 'f_orgid:', this.model.f_orgid)
|
|
302
|
+
|
|
303
|
+
const filterdep = inputtors.filter((res) => {
|
|
304
|
+
return res.rolestr != null && res.rolestr !== '' &&
|
|
305
|
+
res.rolestr.indexOf('营业员') > -1 &&
|
|
306
|
+
res.f_organization_id === this.model.f_orgid
|
|
307
|
+
})
|
|
308
|
+
console.log('initdep - filterdep length:', filterdep.length)
|
|
309
|
+
|
|
310
|
+
filterdep.forEach((res) => {
|
|
311
|
+
if (res.parentid && res.f_department_name) {
|
|
312
|
+
if (!this.fdep.some((item) => item.value === res.parentid)) {
|
|
313
|
+
this.fdep.push({ label: res.f_department_name, value: res.parentid })
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
})
|
|
317
|
+
console.log('initdep - fdep after filter:', this.fdep.length, this.fdep)
|
|
318
|
+
|
|
319
|
+
// 如果当前 model.f_depid 有值但不在下拉列表中,需要添加进去
|
|
320
|
+
if (this.model.f_depid && !this.fdep.some((item) => item.value === this.model.f_depid)) {
|
|
321
|
+
// 如果 model.f_depname 有值,直接使用
|
|
322
|
+
if (this.model.f_depname) {
|
|
323
|
+
this.fdep.push({ label: this.model.f_depname, value: this.model.f_depid })
|
|
324
|
+
} else {
|
|
325
|
+
// 否则从数据库查询部门名称
|
|
326
|
+
this.loadDepartmentName(this.model.f_depid)
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
console.log('initdep - final fdep:', this.fdep.length, this.fdep)
|
|
330
|
+
},
|
|
331
|
+
loadDepartmentName (depid) {
|
|
332
|
+
if (!depid) return
|
|
333
|
+
let http = new HttpResetClass()
|
|
334
|
+
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
335
|
+
{ data: {tablename: 't_user',
|
|
336
|
+
condition: `parentid = '${depid}'`}},
|
|
337
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
338
|
+
if (res.data.length > 0 && res.data[0].f_department_name) {
|
|
339
|
+
// 添加到下拉列表
|
|
340
|
+
if (!this.fdep.some((item) => item.value === depid)) {
|
|
341
|
+
this.fdep.push({ label: res.data[0].f_department_name, value: depid })
|
|
342
|
+
}
|
|
343
|
+
// 更新 model.f_depname
|
|
344
|
+
if (!this.model.f_depname) {
|
|
345
|
+
this.model.f_depname = res.data[0].f_department_name
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
})
|
|
349
|
+
},
|
|
350
|
+
selectdep () {
|
|
351
|
+
let id = this.model.f_depid
|
|
352
|
+
if (!this.model.f_depid) {
|
|
353
|
+
return
|
|
354
|
+
}
|
|
355
|
+
let http = new HttpResetClass()
|
|
356
|
+
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
357
|
+
{ data: {tablename: 't_user',
|
|
358
|
+
condition: `parentid = '${id}'`}},
|
|
359
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
360
|
+
if (res.data.length > 0) {
|
|
361
|
+
this.model.f_depname = res.data[0].f_department_name
|
|
362
|
+
} else {
|
|
363
|
+
this.model.f_depid = ''
|
|
364
|
+
this.$showAlert('部门信息未找到', 'warning', 2000)
|
|
365
|
+
}
|
|
366
|
+
})
|
|
367
|
+
},
|
|
368
|
+
onDepSelect (resIds, labels) {
|
|
369
|
+
// res-select 返回选中的 id 列表和名称列表
|
|
370
|
+
if (resIds && resIds.length > 0) {
|
|
371
|
+
this.model.f_depid = resIds[0]
|
|
372
|
+
this.model.f_depname = labels && labels.length > 0 ? labels[0] : ''
|
|
373
|
+
} else {
|
|
374
|
+
this.model.f_depid = ''
|
|
375
|
+
this.model.f_depname = ''
|
|
376
|
+
}
|
|
377
|
+
// 保持向后兼容:若需要继续使用原 selectdep 逻辑,可补充调用
|
|
378
|
+
},
|
|
379
|
+
selectoperator () {
|
|
380
|
+
let id = this.model.f_operatorid
|
|
381
|
+
if (!this.model.f_operatorid) {
|
|
382
|
+
return
|
|
383
|
+
}
|
|
384
|
+
let http = new HttpResetClass()
|
|
385
|
+
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
386
|
+
{data: {tablename: 't_user',
|
|
387
|
+
condition: `id = '${id}'`}},
|
|
388
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
389
|
+
console.log('kanak,res', res)
|
|
390
|
+
if (res.data.length > 0) {
|
|
391
|
+
this.model.f_operator = res.data[0].name
|
|
392
|
+
this.model.f_depname = res.data[0].f_department_name
|
|
393
|
+
this.model.f_depid = res.data[0].parentid
|
|
394
|
+
} else {
|
|
395
|
+
this.model.f_operatorid = ''
|
|
396
|
+
this.$showAlert('操作员信息未找到', 'warning', 2000)
|
|
397
|
+
}
|
|
398
|
+
console.log('this.f_operatorid', this.model.f_operator)
|
|
399
|
+
})
|
|
400
|
+
},
|
|
401
|
+
cancel () {
|
|
402
|
+
this.$dispatch('close')
|
|
403
|
+
},
|
|
404
|
+
uploadFiles () {
|
|
405
|
+
this.showfiles = !this.showfiles
|
|
406
|
+
},
|
|
407
|
+
addressValid (val) {
|
|
408
|
+
},
|
|
409
|
+
save () {
|
|
410
|
+
// console.log(this.model.key)
|
|
411
|
+
//
|
|
412
|
+
for (var item in this.model) {
|
|
413
|
+
if (item != 'f_sendsuccess' && item !== 'f_operatorid' && item !== 'f_depid') {
|
|
414
|
+
if (this.model[item] != this.oldmodel[item] && this.model[item] !== 's_timestamp') {
|
|
415
|
+
var car = {
|
|
416
|
+
chinesename: this.fileNameSet[item],
|
|
417
|
+
fieldname: item,
|
|
418
|
+
tablename: 't_sellinggas',
|
|
419
|
+
oldvalue: this.oldmodel[item],
|
|
420
|
+
newvalue: this.model[item],
|
|
421
|
+
state: '有效',
|
|
422
|
+
modifitime: Util.toStandardTimeString(),
|
|
423
|
+
operator: this.$login.f.name,
|
|
424
|
+
sellingas_id: this.model.id,
|
|
425
|
+
f_operator: this.$login.f.name,
|
|
426
|
+
f_operatorid: this.$login.f.id,
|
|
427
|
+
f_orgid: this.$login.f.orgid,
|
|
428
|
+
f_orgname: this.$login.f.orgs,
|
|
429
|
+
f_depid: this.$login.f.depids,
|
|
430
|
+
f_depname: this.$login.f.deps
|
|
431
|
+
}
|
|
432
|
+
this.recordList.push(car)
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if (this.model.f_bill_date !== '' || this.model.f_bill_date === undefined) {
|
|
437
|
+
this.model.f_bill_operator = this.$login.f.name
|
|
438
|
+
}
|
|
439
|
+
this.$resetpost('api/af-revenue/logic/saveing', {data: {recordlist: this.recordList, newData: this.model}}).then((res) => {
|
|
440
|
+
this.recordList = []
|
|
441
|
+
console.log('this.model', this.model)
|
|
442
|
+
})
|
|
443
|
+
this.recordList = []
|
|
444
|
+
this.$dispatch('close')
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
computed: {
|
|
448
|
+
positions () {
|
|
449
|
+
return this.$appdata.getParam('收费状态')
|
|
450
|
+
},
|
|
451
|
+
payments () {
|
|
452
|
+
return this.$appdata.getParam('付款方式查询')
|
|
453
|
+
},
|
|
454
|
+
writeCards () {
|
|
455
|
+
return this.$appdata.getParam('写卡状态')
|
|
456
|
+
},
|
|
457
|
+
billStyles () {
|
|
458
|
+
return this.$appdata.getParam('收据类型')
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
watch: {
|
|
462
|
+
'model' () {
|
|
463
|
+
this.initoperator()
|
|
464
|
+
this.initdep()
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
</script>
|
|
469
|
+
<style lang="less" scoped>
|
|
470
|
+
#meterInfoTest{
|
|
471
|
+
#addboxmap {
|
|
472
|
+
height: 300px;
|
|
473
|
+
}
|
|
474
|
+
.glyphicon-map-marker:hover {
|
|
475
|
+
color: red;
|
|
476
|
+
}
|
|
477
|
+
.glyphicon-map-marker {
|
|
478
|
+
color: blue;
|
|
479
|
+
cursor: pointer;
|
|
480
|
+
}
|
|
481
|
+
.col-sm-4 {
|
|
482
|
+
.font_normal_body {
|
|
483
|
+
width: 73px;
|
|
484
|
+
overflow: auto;
|
|
485
|
+
white-space: nowrap;
|
|
486
|
+
// 指滚动条两边的按钮
|
|
487
|
+
&::-webkit-scrollbar-button {
|
|
488
|
+
display: none;
|
|
489
|
+
}
|
|
490
|
+
// 滚动条的宽度
|
|
491
|
+
&::-webkit-scrollbar {
|
|
492
|
+
width: 5px !important;
|
|
493
|
+
height: 5px !important;
|
|
494
|
+
}
|
|
495
|
+
// 滚动条的设置
|
|
496
|
+
&::-webkit-scrollbar-thumb {
|
|
497
|
+
background-color: #ddd;
|
|
498
|
+
background-clip: padding-box;
|
|
499
|
+
}
|
|
500
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
501
|
+
background-color: #bbb;
|
|
502
|
+
}
|
|
503
|
+
&::-webkit-scrollbar-track {
|
|
504
|
+
/*滚动条里面轨道*/
|
|
505
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
|
506
|
+
background: #ededed;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
</style>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel panel-info auto">
|
|
3
|
+
<div class="panel-heading auto" style="height: 30px">
|
|
4
|
+
<h4 style="display:inline-block;margin-top: auto">保险信息</h4>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="auto info-content" v-if="feelist.data.length > 0">
|
|
7
|
+
<div class="row">
|
|
8
|
+
<label class="col-sm-4 ">险种:</label>
|
|
9
|
+
<span class="col-sm-8">{{row.f_insurance_type}}</span>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="row">
|
|
12
|
+
<label class="col-sm-4 ">办理人:</label>
|
|
13
|
+
<span class="col-sm-8">{{row.f_operator}}</span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="row">
|
|
16
|
+
<label class="col-sm-4 ">购买时间:</label>
|
|
17
|
+
<span class="col-sm-8">{{row.f_operate_date}}</span>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="row">
|
|
20
|
+
<label class="col-sm-4 ">开始时间:</label>
|
|
21
|
+
<span class="col-sm-8">{{row.f_ins_start_date}}</span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="row">
|
|
24
|
+
<label class="col-sm-4 ">到期时间:</label>
|
|
25
|
+
<span class="col-sm-8">{{row.f_expiration_date}}</span>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="row">
|
|
28
|
+
<label class="col-sm-4 ">金额:</label>
|
|
29
|
+
<span class="col-sm-8">{{row.f_money}}</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div v-else>
|
|
33
|
+
<div class="row">
|
|
34
|
+
<strong>暂无保险信息</strong>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
/**
|
|
42
|
+
*用户其他费用信息组件
|
|
43
|
+
*/
|
|
44
|
+
export default {
|
|
45
|
+
props: ['userinfoid'],
|
|
46
|
+
data () {
|
|
47
|
+
return {
|
|
48
|
+
row: {},
|
|
49
|
+
feelist: []
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
methods: {
|
|
53
|
+
async userfees (userinfoid) {
|
|
54
|
+
console.log('获取保险费' + userinfoid)
|
|
55
|
+
if (userinfoid) {
|
|
56
|
+
this.feelist = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {data: {tablename: 't_userfees', condition: `f_userinfo_id='${userinfoid}'`, items: '*', orderitem: 'f_operate_date desc' }})
|
|
57
|
+
if (this.feelist.data.length !== 0) {
|
|
58
|
+
this.row = this.feelist.data[0]
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
this.feelist = []
|
|
62
|
+
this.row = {}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
watch: {
|
|
67
|
+
'userinfoid' (val) {
|
|
68
|
+
this.userfees(val)
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
ready () {
|
|
72
|
+
this.userfees(this.userinfoid)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</script>
|
|
76
|
+
<style media="screen">
|
|
77
|
+
#table1{
|
|
78
|
+
text-align:center;
|
|
79
|
+
}
|
|
80
|
+
.self-table > tbody > tr > td {
|
|
81
|
+
padding: 3px;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
</style>
|