sale-client 3.5.170 → 3.5.171
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 +1 -1
- package/src/components/charge/ChargeManage.vue +8 -1
- package/src/components/charge/business/CardMeterCenter.vue +13 -4
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +37 -33
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +8 -3
- package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -2
- package/src/components/revenue/comprehen/Maintenance/fillgas/fillgasSpecific.vue +0 -1
- package/src/filiale/shanxian/components/FilesManage/MeterinfoTest.vue +108 -69
- package/src/filiale/shanxian/components/FilesManage/UserGeneralInfoTest.vue +15 -9
- package/src/filiale/shanxian/components/revenue/ChargeList.vue +918 -0
- package/src/filiale/shanxian/components/revenue/base/Userinfo.vue +186 -0
- package/src/filiale/shanxian/sale.js +11 -1
- package/src/filiale/tongchuan/CardMeterCenter.vue +13 -5
- package/src/filiale/xiangyun/GasPrice.vue +524 -0
- package/src/filiale/xiangyun/IOTRefund.vue +169 -0
- package/src/filiale/xiangyun/RefundManage.vue +31 -0
- package/src/filiale/xiangyun/cardChargeQuery.vue +184 -0
- package/src/filiale/xiangyun/cardChargeQuery1.vue +171 -0
- package/src/filiale/xiangyun/cardRefund.vue +165 -0
- package/src/filiale/xiangyun/machineChargeQuery.vue +184 -0
- package/src/filiale/xiangyun/machineChargeQuery1.vue +171 -0
- package/src/filiale/xiangyun/machineRefund.vue +177 -0
- package/src/filiale/xiangyun/sale.js +18 -0
- package/src/plugins/LogicService.js +1 -1
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
</div>
|
|
37
37
|
<div v-if="!listpage">
|
|
38
|
-
<user-info-detail-manage-new :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel"></user-info-detail-manage-new>
|
|
38
|
+
<user-info-detail-manage-new parentname="charge-manage" :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel" @cancel-re="cancelAndRefresh"></user-info-detail-manage-new>
|
|
39
39
|
</div>
|
|
40
40
|
<div v-if="showModal">
|
|
41
41
|
<charge-modal :warninginfo="warningInfo" :row="modalrow" :modal-show.sync="showModal" @close="close" @modalsuccess="modalsuccess"></charge-modal>
|
|
@@ -145,6 +145,13 @@ export default {
|
|
|
145
145
|
cancel (obj) {
|
|
146
146
|
this.listpage = true
|
|
147
147
|
},
|
|
148
|
+
cancelAndRefresh (obj) {
|
|
149
|
+
this.listpage = true
|
|
150
|
+
this.clean()
|
|
151
|
+
this.clearCondition()
|
|
152
|
+
this.$refs.list.searchNoData()
|
|
153
|
+
this.$refs.card.search()
|
|
154
|
+
},
|
|
148
155
|
modalsuccess (obj) {
|
|
149
156
|
this.showModal = false
|
|
150
157
|
this.$refs.list.criteriaShow = false
|
|
@@ -94,25 +94,34 @@
|
|
|
94
94
|
v-scale="[curbalance, 4]" placeholder="本期结余" disabled>
|
|
95
95
|
</div>
|
|
96
96
|
|
|
97
|
-
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气'"
|
|
97
|
+
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表')"
|
|
98
98
|
:class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
|
|
99
99
|
<label for="f_collection" class=" font_normal_body">*收  款</label>
|
|
100
100
|
<input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
|
|
101
101
|
v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'
|
|
102
102
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 4]" :disabled="$refs.givechange.promptText != ''">
|
|
103
103
|
</div>
|
|
104
|
-
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气'"
|
|
104
|
+
<div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气' && row.f_meter_type.includes('卡表')"
|
|
105
105
|
:class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
|
|
106
106
|
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收 款</font></label>
|
|
107
107
|
<input id="f_collection" class="input_search" style="width:60%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
|
|
108
108
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 4]" :disabled="$refs.givechange.promptText != ''">
|
|
109
109
|
</div>
|
|
110
|
-
<div class="col-sm-3" v-if="row.f_collection_type === '按金额'">
|
|
110
|
+
<div class="col-sm-3" v-if="row.f_collection_type === '按金额' && row.f_meter_type.includes('卡表')">
|
|
111
111
|
<label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收 款</font></label>
|
|
112
112
|
<input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
|
|
113
113
|
v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
|
|
114
114
|
</div>
|
|
115
|
-
<div class="col-sm-
|
|
115
|
+
<div class="col-sm-4" v-if="!row.f_meter_type.includes('卡表')">
|
|
116
|
+
<label for="f_collection" class=" font_normal_body"><font size="4px"
|
|
117
|
+
style="font-weight:bold">*收 款</font></label>
|
|
118
|
+
<input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;"
|
|
119
|
+
type="number" v-model="model.f_collection"
|
|
120
|
+
v-el:fcollection
|
|
121
|
+
@keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
|
|
122
|
+
v-scale="[model.f_collection, 4]" disabled>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="col-sm-1 form-group" v-show=" row.f_meter_type.includes('卡表')">
|
|
116
125
|
<give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
|
|
117
126
|
</div>
|
|
118
127
|
</div>
|
|
@@ -279,48 +279,52 @@
|
|
|
279
279
|
cancelmain () {
|
|
280
280
|
this.$emit('cancel-main')
|
|
281
281
|
},
|
|
282
|
-
clearBarrier(){
|
|
282
|
+
clearBarrier () {
|
|
283
283
|
// 地址
|
|
284
284
|
// 127.0.0.1:8445
|
|
285
285
|
// 参数
|
|
286
|
-
let datas =
|
|
287
|
-
moduleName:
|
|
288
|
-
content:{
|
|
289
|
-
tradeCode:
|
|
290
|
-
appid:
|
|
291
|
-
partner:
|
|
292
|
-
version:
|
|
293
|
-
tasked:this.getuuid(), // 任务id
|
|
294
|
-
notifyUrl:
|
|
295
|
-
meterNo: this.row.f_meternumber
|
|
296
|
-
signType:
|
|
286
|
+
let datas = {
|
|
287
|
+
moduleName: 'XiMeiSystem', // 固定值
|
|
288
|
+
content: {
|
|
289
|
+
tradeCode: '3015', // 固定值
|
|
290
|
+
appid: 'yysf', // 固定值
|
|
291
|
+
partner: 'cqsemay_bcts', // 固定值
|
|
292
|
+
version: 'v1', // 固定值
|
|
293
|
+
tasked: this.getuuid(), // 任务id
|
|
294
|
+
notifyUrl: 'http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack', // 固定值
|
|
295
|
+
meterNo: this.row.f_meternumber, // 表号
|
|
296
|
+
signType: ' MD5' // 固定值
|
|
297
297
|
},
|
|
298
|
-
title:
|
|
299
|
-
type:
|
|
300
|
-
inputtor:this.row.f_operator, // 操作人
|
|
301
|
-
userId:this.row.f_userfiles_id, // 表档案ID
|
|
298
|
+
title: '清除异常', // 固定值
|
|
299
|
+
type: '清除异常', // 固定值
|
|
300
|
+
inputtor: this.row.f_operator, // 操作人
|
|
301
|
+
userId: this.row.f_userfiles_id, // 表档案ID
|
|
302
302
|
dataId: null // 操作记录ID
|
|
303
303
|
}
|
|
304
|
-
this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas},{resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
|
|
304
|
+
this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas}, {resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
|
|
305
305
|
})
|
|
306
306
|
},
|
|
307
|
-
getuuid(){
|
|
308
|
-
let uuidA = ''
|
|
309
|
-
var s = []
|
|
310
|
-
var hexDigits = '0123456789abcdef'
|
|
307
|
+
getuuid () {
|
|
308
|
+
let uuidA = ''
|
|
309
|
+
var s = []
|
|
310
|
+
var hexDigits = '0123456789abcdef'
|
|
311
311
|
for (var i = 0; i < 36; i++) {
|
|
312
|
-
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
|
|
312
|
+
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
|
|
313
313
|
}
|
|
314
|
-
s[14] = '4'
|
|
315
|
-
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1)
|
|
316
|
-
s[8] = s[13] = s[18] = s[23] = '-'
|
|
317
|
-
uuidA = s.join('')
|
|
318
|
-
return uuidA
|
|
314
|
+
s[14] = '4'
|
|
315
|
+
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1)
|
|
316
|
+
s[8] = s[13] = s[18] = s[23] = '-'
|
|
317
|
+
uuidA = s.join('')
|
|
318
|
+
return uuidA
|
|
319
319
|
},
|
|
320
320
|
async goChargeManage () {
|
|
321
321
|
await this.$copyText(this.row.f_userinfo_code)
|
|
322
322
|
this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
|
|
323
|
-
this
|
|
323
|
+
if (this.row.parentname === 'charge-manage') {
|
|
324
|
+
this.$emit('cancel-re')
|
|
325
|
+
} else {
|
|
326
|
+
this.$goto('charge-manage', {f: this.$login.f}, 'main')
|
|
327
|
+
}
|
|
324
328
|
},
|
|
325
329
|
openUser () {
|
|
326
330
|
this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
|
|
@@ -328,7 +332,7 @@
|
|
|
328
332
|
let data = {
|
|
329
333
|
f_userfiles_id: this.row.f_userfiles_id
|
|
330
334
|
}
|
|
331
|
-
this.$resetpost('rs/logic/startup',data)
|
|
335
|
+
this.$resetpost('rs/logic/startup', data)
|
|
332
336
|
}
|
|
333
337
|
})
|
|
334
338
|
},
|
|
@@ -338,11 +342,11 @@
|
|
|
338
342
|
f_userfiles_id: this.row.f_userfiles_id
|
|
339
343
|
}
|
|
340
344
|
if (this.row.f_network_valve !== '1') {
|
|
341
|
-
|
|
342
|
-
|
|
345
|
+
this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
|
|
346
|
+
this.row.f_network_valve = '1'
|
|
343
347
|
} else {
|
|
344
|
-
|
|
345
|
-
|
|
348
|
+
this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
|
|
349
|
+
this.row.f_network_valve = null
|
|
346
350
|
}
|
|
347
351
|
},
|
|
348
352
|
// 阀控管理
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="binary flex" >
|
|
3
3
|
<div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
|
|
4
|
-
<div class="auto"><user-base-info-new :row="row" @cancel-main="cancel"></user-base-info-new></div>
|
|
4
|
+
<div class="auto"><user-base-info-new :row="row" @cancel-main="cancel" @cancel-re="cancelRe"></user-base-info-new></div>
|
|
5
5
|
<saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%">
|
|
6
6
|
<saletab header="流水查询" v-if="permission('流水查询')">
|
|
7
7
|
<record-query-user :row="row"></record-query-user>
|
|
@@ -104,7 +104,7 @@ import ChangeRecord from './ic_detail/ChangeRecord'
|
|
|
104
104
|
import DeveiceRecord from './ic_detail/DeveiceRecord'
|
|
105
105
|
export default {
|
|
106
106
|
title: '用户详细信息',
|
|
107
|
-
props: ['f_userfiles_id', 'f_userinfo_id','f_userinfo_code'],
|
|
107
|
+
props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname'],
|
|
108
108
|
components: {
|
|
109
109
|
PriceAdjustmentQueryUser,
|
|
110
110
|
PriceChangeQueryUser,
|
|
@@ -155,19 +155,24 @@ export default {
|
|
|
155
155
|
condition = `f_userfiles_id = '${this.f_userfiles_id}'`
|
|
156
156
|
} else if (this.f_userinfo_id) {
|
|
157
157
|
condition = `f_userinfo_id = '${this.f_userinfo_id}'`
|
|
158
|
-
}else if (this.f_userinfo_code){
|
|
158
|
+
} else if (this.f_userinfo_code) {
|
|
159
159
|
condition = `f_userinfo_code = '${this.f_userinfo_code}'`
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
let getBaseInfo = await http.load('POST', 'rs/sql/iot_getUserBaseData',
|
|
163
163
|
{data: {condition: condition}}, {resolveMsg: null, rejectMsg: '获取基本信息出错'})
|
|
164
164
|
this.row = getBaseInfo.data[0]
|
|
165
|
+
this.row.parentname = this.parentname || ''
|
|
165
166
|
},
|
|
166
167
|
|
|
167
168
|
cancel (val) {
|
|
168
169
|
this.$emit('cancel-main', val)
|
|
169
170
|
},
|
|
170
171
|
|
|
172
|
+
cancelRe (val) {
|
|
173
|
+
this.$emit('cancel-re', val)
|
|
174
|
+
},
|
|
175
|
+
|
|
171
176
|
butOper (val) {
|
|
172
177
|
this.name = val
|
|
173
178
|
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
<span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
|
|
127
127
|
</div>
|
|
128
128
|
<div class="row">
|
|
129
|
-
<label class = "col-sm-5 "
|
|
129
|
+
<label class = "col-sm-5 " >表  向</label>
|
|
130
130
|
<span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
|
|
131
131
|
</div>
|
|
132
132
|
<div class="row">
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
<span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):dafault.f_hand_date}}</span>
|
|
159
159
|
</div>
|
|
160
160
|
<div class="row">
|
|
161
|
-
<label class = "col-sm-5 "
|
|
161
|
+
<label class = "col-sm-5 " >建档日期</label>
|
|
162
162
|
<span class = "col-sm-7">{{data?data.f_input_date.substring(0,7):dafault.f_input_date}}</span>
|
|
163
163
|
</div>
|
|
164
164
|
<div class="row">
|
|
@@ -113,7 +113,6 @@
|
|
|
113
113
|
import Vue from 'vue'
|
|
114
114
|
import {HttpResetClass} from 'vue-client'
|
|
115
115
|
import * as Util from "../../../../../Util";
|
|
116
|
-
var data
|
|
117
116
|
let readyGen = async function (self) {
|
|
118
117
|
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
119
118
|
await self.$GetSaleParam.initinputtor()
|
|
@@ -6,6 +6,22 @@
|
|
|
6
6
|
<a style="font-size: 16px;font-weight: 500;">表具信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="row" >
|
|
9
|
+
<div class="col-sm-4 form-group" :class="[$m.brand.required ? 'has-error' : '']">
|
|
10
|
+
<label for="gasbrand" class="font_normal_body">气表品牌</label>
|
|
11
|
+
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
12
|
+
v-validate:brand='{required: true }'>
|
|
13
|
+
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
14
|
+
search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
17
|
+
<label for="gasmodel" class="font_normal_body">气表型号</label>
|
|
18
|
+
<input type="text" v-show="false" v-model="$refs.model.selectedItems"
|
|
19
|
+
v-validate:model='{required: true }'>
|
|
20
|
+
<v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
|
|
21
|
+
close-on-select
|
|
22
|
+
v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
9
25
|
<div class="col-sm-4 form-group" v-if="isiot" :class="[$m.f_meternumber.required ? 'has-error' : '']">
|
|
10
26
|
<label for="f_meternumber" class="font_normal_body"> 表  号</label>
|
|
11
27
|
<input type="text" class="input_search" style="width:60%" v-model="row.f_meternumber"
|
|
@@ -38,21 +54,7 @@
|
|
|
38
54
|
:disabled="!jurisdiction.includes('档案信息查询修改')">
|
|
39
55
|
</div>
|
|
40
56
|
|
|
41
|
-
|
|
42
|
-
<label for="gasbrand" class="font_normal_body">气表品牌</label>
|
|
43
|
-
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
44
|
-
v-validate:brand='{required: true }'>
|
|
45
|
-
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
46
|
-
search @change='brandChange' v-model='row.gasbrand' :disabled="curuser.f_user_state != '预备'" v-ref:brand></v-select>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
49
|
-
<label for="gasmodel" class="font_normal_body">气表型号</label>
|
|
50
|
-
<input type="text" v-show="false" v-model="$refs.model.selectedItems"
|
|
51
|
-
v-validate:model='{required: true }'>
|
|
52
|
-
<v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
|
|
53
|
-
close-on-select
|
|
54
|
-
v-model='row.gasmodel' :disabled="row.gasbrand.length === 0 || curuser.f_user_state != '预备'" v-ref:model></v-select>
|
|
55
|
-
</div>
|
|
57
|
+
|
|
56
58
|
<div class="col-sm-4 form-group" title="涉及权限:【档案信息查询修改】">
|
|
57
59
|
<label for="f_meter_base" class="font_normal_body"> 累购气量</label>
|
|
58
60
|
<input type="number" class="input_search" style="width:60%" v-model="row.f_total_gas" placeholder='累购气量'
|
|
@@ -271,21 +273,29 @@
|
|
|
271
273
|
:show-reset-button="true">
|
|
272
274
|
</datepicker>
|
|
273
275
|
</div>
|
|
274
|
-
<div class="col-sm-4 form-group">
|
|
275
|
-
<label for="
|
|
276
|
-
<
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
<div class="col-sm-4 form-group">
|
|
280
|
-
<label for="f_hand_date" class="font_normal_body"> 上次抄表</label>
|
|
281
|
-
<datepicker style="width:60%" id="f_hand_date" placeholder="上次抄表日期"
|
|
282
|
-
v-model="row.f_hand_date"
|
|
283
|
-
:value.sync="row.f_hand_date"
|
|
276
|
+
<div class="col-sm-4 form-group" >
|
|
277
|
+
<label for="f_scrap_date" class="font_normal_body"> 报废日期</label>
|
|
278
|
+
<datepicker style="width:60%" id="ScrapDate" placeholder="报废日期" width='100%'
|
|
279
|
+
:v-model="f_scrap_date"
|
|
280
|
+
:value.sync="f_scrap_date"
|
|
284
281
|
class="datepicker"
|
|
285
|
-
:format="'yyyy-MM-dd
|
|
282
|
+
:format="'yyyy-MM-dd'"
|
|
286
283
|
:show-reset-button="true">
|
|
287
284
|
</datepicker>
|
|
288
285
|
</div>
|
|
286
|
+
<div class="col-sm-4 form-group">
|
|
287
|
+
<label for="gasmodel" class="font_normal_body"> 调压类型</label>
|
|
288
|
+
<v-select :value.sync="row.f_adjustable_type" :options='adjustableTypes' placeholder='调压类型' close-on-select
|
|
289
|
+
:value-single="true"
|
|
290
|
+
v-model='row.f_adjustable_type'></v-select>
|
|
291
|
+
</div>
|
|
292
|
+
<div class="col-sm-4 form-group">
|
|
293
|
+
<label for="f_adjustable" class="font_normal_body"> 调压型号</label>
|
|
294
|
+
<v-select :value.sync="row.f_adjustable" :options='adjustableTypesChange(row.f_adjustable_type)' placeholder='调压型号' close-on-select
|
|
295
|
+
v-model='row.f_adjustable'></v-select>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
|
|
289
299
|
<div v-if="ratioshow" class="col-sm-4 form-group"
|
|
290
300
|
:class="[$m.meternumber.required ? 'has-error' : '']">
|
|
291
301
|
<label for="f_ratio" class="font_normal_body">比  率</label>
|
|
@@ -303,22 +313,16 @@
|
|
|
303
313
|
<!-- :show-reset-button="true">-->
|
|
304
314
|
<!-- </datepicker>-->
|
|
305
315
|
<!-- </div>-->
|
|
306
|
-
<div class="col-sm-4 form-group"
|
|
307
|
-
<label for="
|
|
308
|
-
<datepicker style="width:60%" id="
|
|
309
|
-
|
|
310
|
-
:value.sync="
|
|
316
|
+
<div class="col-sm-4 form-group">
|
|
317
|
+
<label for="f_hand_date" class="font_normal_body"> 上次抄表</label>
|
|
318
|
+
<datepicker style="width:60%" id="f_hand_date" placeholder="上次抄表日期"
|
|
319
|
+
v-model="row.f_hand_date"
|
|
320
|
+
:value.sync="row.f_hand_date"
|
|
311
321
|
class="datepicker"
|
|
312
|
-
:format="'yyyy-MM-dd'"
|
|
322
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
313
323
|
:show-reset-button="true">
|
|
314
324
|
</datepicker>
|
|
315
325
|
</div>
|
|
316
|
-
<div class="col-sm-4 form-group">
|
|
317
|
-
<label for="gasmodel" class="font_normal_body"> 垃 圾 费</label>
|
|
318
|
-
<v-select :value.sync="row.f_garbage_fee" :options='garbagefee' placeholder='垃圾费' close-on-select
|
|
319
|
-
:value-single="true"
|
|
320
|
-
v-model='row.f_garbage_fee'></v-select>
|
|
321
|
-
</div>
|
|
322
326
|
<div class="col-sm-4 form-group">
|
|
323
327
|
<label class="font_normal_body"> 抄 表 员</label>
|
|
324
328
|
<v-select :value.sync="row.f_inputtor" v-model='row.f_inputtor'
|
|
@@ -354,29 +358,29 @@
|
|
|
354
358
|
:options='handmonth' placeholder='抄表月份'
|
|
355
359
|
close-on-select></v-select>
|
|
356
360
|
</div>
|
|
357
|
-
<div style="" class="col-sm-4 form-group"
|
|
358
|
-
<label for="f_userfiles_address" class="font_normal_body "> 用气点名</label
|
|
359
|
-
<input class="input_search" style="width:60%" v-model="row.f_userfiles_address"
|
|
360
|
-
</div
|
|
361
|
-
<div style="" class="col-sm-4 form-group"
|
|
362
|
-
<label class="font_normal_body"> 经    度</label
|
|
363
|
-
<input type="text" style="width:60%" v-model="row.f_userfiles_lng" class="input_search" placeholder="经度"
|
|
364
|
-
</div
|
|
365
|
-
<div style="" class="col-sm-4 form-group"
|
|
366
|
-
<label class="font_normal_body"> 纬    度</label
|
|
367
|
-
<input type="text" style="width:48%" v-model="row.f_userfiles_lat" class="input_search" placeholder="纬度"
|
|
368
|
-
 <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span
|
|
369
|
-
</div
|
|
361
|
+
<!-- <div style="" class="col-sm-4 form-group">-->
|
|
362
|
+
<!-- <label for="f_userfiles_address" class="font_normal_body "> 用气点名</label>-->
|
|
363
|
+
<!-- <input class="input_search" style="width:60%" v-model="row.f_userfiles_address"/>-->
|
|
364
|
+
<!-- </div>-->
|
|
365
|
+
<!-- <div style="" class="col-sm-4 form-group">-->
|
|
366
|
+
<!-- <label class="font_normal_body"> 经    度</label>-->
|
|
367
|
+
<!-- <input type="text" style="width:60%" v-model="row.f_userfiles_lng" class="input_search" placeholder="经度"/>-->
|
|
368
|
+
<!-- </div>-->
|
|
369
|
+
<!-- <div style="" class="col-sm-4 form-group">-->
|
|
370
|
+
<!-- <label class="font_normal_body"> 纬    度</label>-->
|
|
371
|
+
<!-- <input type="text" style="width:48%" v-model="row.f_userfiles_lat" class="input_search" placeholder="纬度"/>-->
|
|
372
|
+
<!--  <span class="glyphicon glyphicon-map-marker" @click="openModal" ></span>-->
|
|
373
|
+
<!-- </div>-->
|
|
370
374
|
<div class="col-sm-4 form-group">
|
|
371
375
|
<label class="font_normal_body">备    注</label>
|
|
372
376
|
<input type="text" style="width:60%" v-model="row.f_comments" class="input_search" placeholder="备注"/>
|
|
373
377
|
</div>
|
|
374
|
-
<div class="col-sm-4 form-group" v-if="config.overduesetShow"
|
|
375
|
-
<label class="font_normal_body">滞纳金规则</label
|
|
376
|
-
<v-select :value.sync="row.f_overdue_set" v-model="row.f_overdue_set"
|
|
377
|
-
:options='overdueset' placeholder='滞纳金规则'
|
|
378
|
-
close-on-select></v-select
|
|
379
|
-
</div
|
|
378
|
+
<!-- <div class="col-sm-4 form-group" v-if="config.overduesetShow">-->
|
|
379
|
+
<!-- <label class="font_normal_body">滞纳金规则</label>-->
|
|
380
|
+
<!-- <v-select :value.sync="row.f_overdue_set" v-model="row.f_overdue_set"-->
|
|
381
|
+
<!-- :options='overdueset' placeholder='滞纳金规则'-->
|
|
382
|
+
<!-- close-on-select></v-select>-->
|
|
383
|
+
<!-- </div>-->
|
|
380
384
|
|
|
381
385
|
<template v-if="config.stuckFlowmeterShow">
|
|
382
386
|
<div class="col-sm-4 form-group">
|
|
@@ -596,7 +600,9 @@
|
|
|
596
600
|
bfrq:10,
|
|
597
601
|
f_factory_date:'',
|
|
598
602
|
f_scrap_date: '',
|
|
599
|
-
f_install_date:''
|
|
603
|
+
f_install_date:'',
|
|
604
|
+
adjustables: [],
|
|
605
|
+
adjustable: [],
|
|
600
606
|
}
|
|
601
607
|
},
|
|
602
608
|
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id', 'overdueset', 'curuser'],
|
|
@@ -641,6 +647,31 @@
|
|
|
641
647
|
co(meterBookGen(this))
|
|
642
648
|
},
|
|
643
649
|
methods: {
|
|
650
|
+
adjustableTypesChange(){
|
|
651
|
+
if (this.row.f_adjustable_type===''||this.row.f_adjustable_type===null){
|
|
652
|
+
this.row.f_adjustable = []
|
|
653
|
+
}
|
|
654
|
+
let filter = this.$login.f.orgid
|
|
655
|
+
let ret = this.$GetSaleParam.getAdjustable(filter)
|
|
656
|
+
console.log("f_adjustable_type",this.row.f_adjustable_type)
|
|
657
|
+
let newadjustables = ret.filter(adjustable=>{
|
|
658
|
+
return adjustable.value.f_adjustable_type === this.row.f_adjustable_type
|
|
659
|
+
})
|
|
660
|
+
let arr = new Array()
|
|
661
|
+
newadjustables.forEach((item)=>{
|
|
662
|
+
let temp = {}
|
|
663
|
+
temp.label = `[${item.value.f_adjustable_style}]-${item.label}`
|
|
664
|
+
temp.value = item.value
|
|
665
|
+
arr.push(temp)
|
|
666
|
+
})
|
|
667
|
+
console.log("过滤后的数组", arr)
|
|
668
|
+
return arr
|
|
669
|
+
},
|
|
670
|
+
initAdjustables () {
|
|
671
|
+
let filter = this.$login.f.orgid
|
|
672
|
+
let ret = this.$GetSaleParam.getAdjustable(filter)
|
|
673
|
+
this.adjustables = ret
|
|
674
|
+
},
|
|
644
675
|
updatayear (data) {
|
|
645
676
|
const today = new Date(data)
|
|
646
677
|
const year = today.getFullYear()
|
|
@@ -678,6 +709,7 @@
|
|
|
678
709
|
}
|
|
679
710
|
}
|
|
680
711
|
},
|
|
712
|
+
|
|
681
713
|
// 获取集中器下拉框
|
|
682
714
|
async getConcentrators () {
|
|
683
715
|
let condition = {
|
|
@@ -874,6 +906,10 @@
|
|
|
874
906
|
}
|
|
875
907
|
},
|
|
876
908
|
watch: {
|
|
909
|
+
'row'(){
|
|
910
|
+
debugger
|
|
911
|
+
console.log("row",this.row)
|
|
912
|
+
},
|
|
877
913
|
'meter' () {
|
|
878
914
|
this.row = Object.assign(this.row, this.meter, {})
|
|
879
915
|
this.isdecimal = this.row.gasbrand.f_isdecimal
|
|
@@ -949,17 +985,17 @@
|
|
|
949
985
|
return Array.from(new Set(result))
|
|
950
986
|
},
|
|
951
987
|
|
|
952
|
-
adjustables () {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
},
|
|
988
|
+
// adjustables () {
|
|
989
|
+
// let arr = []
|
|
990
|
+
// let filter = this.f_filialeid
|
|
991
|
+
// this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
|
|
992
|
+
// let temp = {}
|
|
993
|
+
// temp.label = `[${item.value.f_adjustable_style}]-${item.label}`
|
|
994
|
+
// temp.value = item.value
|
|
995
|
+
// arr.push(temp)
|
|
996
|
+
// })
|
|
997
|
+
// return [{label: '全部', value: ''}, ...arr]
|
|
998
|
+
// },
|
|
963
999
|
inputtores () {
|
|
964
1000
|
// return this.$login.f.f_gasman
|
|
965
1001
|
let rs = new Array()
|
|
@@ -984,6 +1020,9 @@
|
|
|
984
1020
|
}
|
|
985
1021
|
return rs
|
|
986
1022
|
},
|
|
1023
|
+
adjustableTypes(){
|
|
1024
|
+
return this.$appdata.getParam('装置类型')
|
|
1025
|
+
},
|
|
987
1026
|
meterbrands () {
|
|
988
1027
|
return this.$GetSaleParam.getGasbrand()
|
|
989
1028
|
},
|
|
@@ -109,6 +109,7 @@ let getFileGen = async function (self, data) {
|
|
|
109
109
|
rejectMsg: '用户详细信息加载失败,请重新选择,如果多次失败,请检查系统是否正常!',
|
|
110
110
|
newly: true
|
|
111
111
|
})
|
|
112
|
+
console.log(result.data)
|
|
112
113
|
self.data = result.data
|
|
113
114
|
self.data.meterinfo.forEach((item) => {
|
|
114
115
|
item.devicesinfo.forEach((item2) => {
|
|
@@ -400,6 +401,7 @@ export default {
|
|
|
400
401
|
this.$dispatch('clean', '取消档案修正', 'user-general-info', this.row)
|
|
401
402
|
},
|
|
402
403
|
checkout (val) {
|
|
404
|
+
debugger
|
|
403
405
|
// 对收到的综合信息进行校验(主要目的是为了防止下拉框没有默认值)
|
|
404
406
|
// 对综合用户基本信息进行校验
|
|
405
407
|
|
|
@@ -429,6 +431,17 @@ export default {
|
|
|
429
431
|
// 对表具信息进行校验
|
|
430
432
|
this.data.meterinfo.forEach((row) => {
|
|
431
433
|
console.log(row)
|
|
434
|
+
if (row.f_adjustable) {
|
|
435
|
+
this.adjustables.forEach((item) => {
|
|
436
|
+
if (item.label === row.f_adjustable) {
|
|
437
|
+
row.f_adjustable = [item.value]
|
|
438
|
+
row.f_adjustable_type = item.value.f_adjustable_type
|
|
439
|
+
}
|
|
440
|
+
})
|
|
441
|
+
} else {
|
|
442
|
+
row.f_adjustable = []
|
|
443
|
+
row.f_adjustable_type = ''
|
|
444
|
+
}
|
|
432
445
|
if (row.gasbrand) {
|
|
433
446
|
this.meterbrands.forEach((item) => {
|
|
434
447
|
if (item.label === row.gasbrand) {
|
|
@@ -489,15 +502,7 @@ export default {
|
|
|
489
502
|
row.pricename = ''
|
|
490
503
|
}
|
|
491
504
|
|
|
492
|
-
|
|
493
|
-
this.adjustables.forEach((item) => {
|
|
494
|
-
if (item.label === row.f_adjustable) {
|
|
495
|
-
row.f_adjustable = [item.value]
|
|
496
|
-
}
|
|
497
|
-
})
|
|
498
|
-
} else {
|
|
499
|
-
row.f_adjustable = ''
|
|
500
|
-
}
|
|
505
|
+
|
|
501
506
|
})
|
|
502
507
|
// console.log('5555555555', this.data.meterinfo)
|
|
503
508
|
// 对设备进行校验
|
|
@@ -591,6 +596,7 @@ export default {
|
|
|
591
596
|
f_initial_base: 0,
|
|
592
597
|
// 通气人
|
|
593
598
|
f_gas_person: '',
|
|
599
|
+
f_adjustable_type:'',
|
|
594
600
|
f_adjustable: '', // 调压箱
|
|
595
601
|
f_detailprice: '', // 价格详情显示
|
|
596
602
|
devicesinfo: [], // 设备信息
|