sale-client 3.6.396-preview → 3.6.397-preview
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/filiale/fugou/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +106 -106
- package/src/filiale/xihu/IOTMeterCenter.vue +2 -2
- package/src/filiale/xihu/NoCardMeterCenter.vue +10 -10
- package/src/filiale/xihu/ShowCardSellGas.vue +2 -2
- package/src/main.js +1 -1
package/package.json
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<validator name='v'>
|
|
4
|
-
<form class="form-horizontal">
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="col-sm-4 form-group">
|
|
7
|
-
<label for="f_reason" class="font_normal_body">停用原因</label>
|
|
8
|
-
<v-select v-model="model.f_reason"
|
|
9
|
-
placeholder='停用原因'
|
|
10
|
-
:value.sync="model.f_reason"
|
|
11
|
-
:options='reason'
|
|
12
|
-
v-ref:reason
|
|
13
|
-
close-on-select ></v-select>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="row" style="margin-top:1px;">
|
|
17
|
-
<div class="col-sm-8 form-group" :class="[$v.f_othereason.required ? 'has-error' : 'has-success']">
|
|
18
|
-
<label for="f_reason" class="font_normal_body">备  注</label>
|
|
19
|
-
<input class="input_search" style="width:80%" v-model="model.f_othereason" placeholder="备注"
|
|
20
|
-
v-validate:f_othereason='{required: true }'/>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</form>
|
|
24
|
-
<div style="text-align:right;">
|
|
25
|
-
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
26
|
-
<button class="button_clear" @click="clean()" >取消</button>
|
|
27
|
-
</div>
|
|
28
|
-
</validator>
|
|
29
|
-
</div>
|
|
30
|
-
<upload :blodid="blodid" v-if="false" isremark="true" fusetype="表具停用"></upload>
|
|
31
|
-
</template>
|
|
32
|
-
<script>
|
|
33
|
-
import Vue from 'vue'
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*综合业务
|
|
37
|
-
表具停用组件
|
|
38
|
-
*/
|
|
39
|
-
export default {
|
|
40
|
-
title: '表具停用',
|
|
41
|
-
props: ['row'],
|
|
42
|
-
data () {
|
|
43
|
-
return {
|
|
44
|
-
blodid: '',
|
|
45
|
-
showupload: true,
|
|
46
|
-
model: {},
|
|
47
|
-
reason: this.$appdata.getParam('停用原因')
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
ready () {
|
|
51
|
-
this.blodid = this.row.f_userinfo_id
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
async confirm () {
|
|
55
|
-
await this.$LogicService.meterDisable(this.model, this.row)
|
|
56
|
-
if (this.$appdata.getSingleValue('v4后台')) {
|
|
57
|
-
await this.$resetpost('api/af-revenue/entity/save/t_userfiles', {
|
|
58
|
-
f_userfiles_id: this.row.f_userfiles_id,
|
|
59
|
-
f_table_state: '停用',
|
|
60
|
-
version: this.row.version
|
|
61
|
-
}, {resolveMsg: '表具启用成功', rejectMsg: '表具启用失败'})
|
|
62
|
-
}
|
|
63
|
-
let array = [{
|
|
64
|
-
f_userfiles_id: this.row.f_userfiles_id,
|
|
65
|
-
f_user_id: this.row.f_userfiles_id,
|
|
66
|
-
f_alias: this.row.f_alias,
|
|
67
|
-
f_userinfo_id: this.row.f_userinfo_id,
|
|
68
|
-
f_orgname: this.$login.f.orgs,
|
|
69
|
-
f_orgid: this.$login.f.orgid,
|
|
70
|
-
f_meternumber: this.row.f_meternumber
|
|
71
|
-
}]
|
|
72
|
-
if (this.row.f_meter_type === '物联网表') {
|
|
73
|
-
await this.$resetpost('api/af-revenue/logic/iot_instructUpdateAndDelect',
|
|
74
|
-
{
|
|
75
|
-
data: {
|
|
76
|
-
data1: {
|
|
77
|
-
f_apply_type: '阀门控制',
|
|
78
|
-
userid: array,
|
|
79
|
-
nowDate: new Date(),
|
|
80
|
-
f_apply_value: '关阀',
|
|
81
|
-
f_apply_beizhu: '表具停用自动关阀',
|
|
82
|
-
f_apply_operator: this.$login.f.name
|
|
83
|
-
},
|
|
84
|
-
data2: {
|
|
85
|
-
userid: array,
|
|
86
|
-
instructtype: '阀门控制',
|
|
87
|
-
isOpen: '关阀',
|
|
88
|
-
instructTitle: '手动关阀',
|
|
89
|
-
reasonInfo: '表具停用自动关阀',
|
|
90
|
-
f_instruct_state: '待发送',
|
|
91
|
-
inputtor: this.$login.f.name
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
this.$dispatch('success')
|
|
97
|
-
},
|
|
98
|
-
clean () {
|
|
99
|
-
this.$dispatch('refresh')
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
</script>
|
|
104
|
-
|
|
105
|
-
<style>
|
|
106
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-4 form-group">
|
|
7
|
+
<label for="f_reason" class="font_normal_body">停用原因</label>
|
|
8
|
+
<v-select v-model="model.f_reason"
|
|
9
|
+
placeholder='停用原因'
|
|
10
|
+
:value.sync="model.f_reason"
|
|
11
|
+
:options='reason'
|
|
12
|
+
v-ref:reason
|
|
13
|
+
close-on-select ></v-select>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="row" style="margin-top:1px;">
|
|
17
|
+
<div class="col-sm-8 form-group" :class="[$v.f_othereason.required ? 'has-error' : 'has-success']">
|
|
18
|
+
<label for="f_reason" class="font_normal_body">备  注</label>
|
|
19
|
+
<input class="input_search" style="width:80%" v-model="model.f_othereason" placeholder="备注"
|
|
20
|
+
v-validate:f_othereason='{required: true }'/>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</form>
|
|
24
|
+
<div style="text-align:right;">
|
|
25
|
+
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>确认</button>
|
|
26
|
+
<button class="button_clear" @click="clean()" >取消</button>
|
|
27
|
+
</div>
|
|
28
|
+
</validator>
|
|
29
|
+
</div>
|
|
30
|
+
<upload :blodid="blodid" v-if="false" isremark="true" fusetype="表具停用"></upload>
|
|
31
|
+
</template>
|
|
32
|
+
<script>
|
|
33
|
+
import Vue from 'vue'
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*综合业务
|
|
37
|
+
表具停用组件
|
|
38
|
+
*/
|
|
39
|
+
export default {
|
|
40
|
+
title: '表具停用',
|
|
41
|
+
props: ['row'],
|
|
42
|
+
data () {
|
|
43
|
+
return {
|
|
44
|
+
blodid: '',
|
|
45
|
+
showupload: true,
|
|
46
|
+
model: {},
|
|
47
|
+
reason: this.$appdata.getParam('停用原因')
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
ready () {
|
|
51
|
+
this.blodid = this.row.f_userinfo_id
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
async confirm () {
|
|
55
|
+
await this.$LogicService.meterDisable(this.model, this.row)
|
|
56
|
+
if (this.$appdata.getSingleValue('v4后台')) {
|
|
57
|
+
await this.$resetpost('api/af-revenue/entity/save/t_userfiles', {
|
|
58
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
59
|
+
f_table_state: '停用',
|
|
60
|
+
version: this.row.version
|
|
61
|
+
}, {resolveMsg: '表具启用成功', rejectMsg: '表具启用失败'})
|
|
62
|
+
}
|
|
63
|
+
let array = [{
|
|
64
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
65
|
+
f_user_id: this.row.f_userfiles_id,
|
|
66
|
+
f_alias: this.row.f_alias,
|
|
67
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
68
|
+
f_orgname: this.$login.f.orgs,
|
|
69
|
+
f_orgid: this.$login.f.orgid,
|
|
70
|
+
f_meternumber: this.row.f_meternumber
|
|
71
|
+
}]
|
|
72
|
+
if (this.row.f_meter_type === '物联网表') {
|
|
73
|
+
await this.$resetpost('api/af-revenue/logic/iot_instructUpdateAndDelect',
|
|
74
|
+
{
|
|
75
|
+
data: {
|
|
76
|
+
data1: {
|
|
77
|
+
f_apply_type: '阀门控制',
|
|
78
|
+
userid: array,
|
|
79
|
+
nowDate: new Date(),
|
|
80
|
+
f_apply_value: '关阀',
|
|
81
|
+
f_apply_beizhu: '表具停用自动关阀',
|
|
82
|
+
f_apply_operator: this.$login.f.name
|
|
83
|
+
},
|
|
84
|
+
data2: {
|
|
85
|
+
userid: array,
|
|
86
|
+
instructtype: '阀门控制',
|
|
87
|
+
isOpen: '关阀',
|
|
88
|
+
instructTitle: '手动关阀',
|
|
89
|
+
reasonInfo: '表具停用自动关阀',
|
|
90
|
+
f_instruct_state: '待发送',
|
|
91
|
+
inputtor: this.$login.f.name
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
this.$dispatch('success')
|
|
97
|
+
},
|
|
98
|
+
clean () {
|
|
99
|
+
this.$dispatch('refresh')
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<style>
|
|
106
|
+
</style>
|
|
@@ -262,7 +262,7 @@ let preamountGen = async function (self) {
|
|
|
262
262
|
Object.assign(self.model, self.model, getGas.data)
|
|
263
263
|
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0) + (self.alldue_fee - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
264
264
|
if (self.config.floor) {
|
|
265
|
-
self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
265
|
+
// self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
266
266
|
}
|
|
267
267
|
// self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
268
268
|
self.model.f_collection = self.model.f_totalcost
|
|
@@ -289,7 +289,7 @@ let pregasGen = async function (self) {
|
|
|
289
289
|
Object.assign(self.model, self.model, getAmount.data)
|
|
290
290
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
291
291
|
if (self.config.floor) {
|
|
292
|
-
self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
292
|
+
// self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
293
293
|
}
|
|
294
294
|
self.model.f_collection = self.model.f_totalcost
|
|
295
295
|
if (self.model.f_payment == '赠气') {
|
|
@@ -178,11 +178,11 @@ let preamountGen = async function (self) {
|
|
|
178
178
|
if (self.row.f_alias === 'QiaoSong') {
|
|
179
179
|
self.model.f_pregas = (getGas.data.gas - 0).toFixed(1)
|
|
180
180
|
} else {
|
|
181
|
-
self.model.f_pregas = (getGas.data.gas - 0).toFixed(
|
|
181
|
+
self.model.f_pregas = (getGas.data.gas - 0).toFixed(2)
|
|
182
182
|
}
|
|
183
183
|
} else {
|
|
184
184
|
let tempnum = Math.floor(getGas.data.gas - 0)
|
|
185
|
-
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(
|
|
185
|
+
let dymoney1 = await self.$CommonService.gasCalculate(self.model, (tempnum).toFixed(2))
|
|
186
186
|
dymoney = (getGas.data.chargenum - 0).toFixed(2) - (dymoney1.data.chargenum - 0).toFixed(2)
|
|
187
187
|
self.model.f_pregas = Math.floor(getGas.data.gas - 0)
|
|
188
188
|
}
|
|
@@ -190,10 +190,10 @@ let preamountGen = async function (self) {
|
|
|
190
190
|
self.model.f_preamount = calFee - (dymoney - 0)
|
|
191
191
|
self.model.chargeprice = getGas.data.chargeprice
|
|
192
192
|
Object.assign(self.model, self.model, getGas.data)
|
|
193
|
-
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (dymoney - 0)).toFixed(
|
|
193
|
+
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (dymoney - 0)).toFixed(2)
|
|
194
194
|
// self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
195
195
|
if(self.config.floor){
|
|
196
|
-
self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
196
|
+
// self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
197
197
|
}
|
|
198
198
|
self.calText(getGas.data.chargeprice)
|
|
199
199
|
}
|
|
@@ -201,7 +201,7 @@ let preamountGen = async function (self) {
|
|
|
201
201
|
// 输入气量,换算金额
|
|
202
202
|
let pregasGen = async function (self) {
|
|
203
203
|
if (self.row.f_isdecimal === '是') {
|
|
204
|
-
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(
|
|
204
|
+
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(2)
|
|
205
205
|
} else {
|
|
206
206
|
self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
|
|
207
207
|
}
|
|
@@ -209,12 +209,12 @@ let pregasGen = async function (self) {
|
|
|
209
209
|
self.model.f_meter_type = self.row.f_meter_type
|
|
210
210
|
let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
|
|
211
211
|
self.model.f_preamount = getAmount.data.chargenum
|
|
212
|
-
self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(
|
|
212
|
+
self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(2))
|
|
213
213
|
Object.assign(self.model, self.model, getAmount.data)
|
|
214
214
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
215
215
|
self.model.f_collection = self.model.f_totalcost
|
|
216
216
|
if(self.config.floor){
|
|
217
|
-
self.model.f_collection=Math.ceil(self.model.f_collection)
|
|
217
|
+
// self.model.f_collection=Math.ceil(self.model.f_collection)
|
|
218
218
|
}
|
|
219
219
|
self.calText(getAmount.data.chargeprice)
|
|
220
220
|
}
|
|
@@ -478,12 +478,12 @@ export default {
|
|
|
478
478
|
'curbalance' () {
|
|
479
479
|
if (this.model.f_preamount) {
|
|
480
480
|
if (this.row.f_collection_type === '按金额') {
|
|
481
|
-
return ((this.model.f_totalcost - 0) + (this.row.f_balance - 0) - (this.model.f_preamount - 0)).toFixed(
|
|
481
|
+
return ((this.model.f_totalcost - 0) + (this.row.f_balance - 0) - (this.model.f_preamount - 0)).toFixed(2)
|
|
482
482
|
} else {
|
|
483
483
|
if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
|
|
484
|
-
return ((this.row.f_balance - 0) - (this.model.f_preamount - 0)).toFixed(
|
|
484
|
+
return ((this.row.f_balance - 0) - (this.model.f_preamount - 0)).toFixed(2)
|
|
485
485
|
} else {
|
|
486
|
-
return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(
|
|
486
|
+
return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(2)
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
} else {
|
|
@@ -314,7 +314,7 @@ let preamountGen = async function (self) {
|
|
|
314
314
|
self.model.f_totalcost = ((self.dymoney - 0) >= (self.model.f_totalcost - 0) ? 0 : (self.model.f_totalcost - 0) - (self.dymoney - 0).toFixed(self.row.f_fee_decimal || 4))
|
|
315
315
|
self.model.f_collection = self.model.f_totalcost
|
|
316
316
|
if (self.config.floor) {
|
|
317
|
-
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
317
|
+
// self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
318
318
|
}
|
|
319
319
|
self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
|
|
320
320
|
self.calText(getGas.data.chargeprice)
|
|
@@ -337,7 +337,7 @@ let pregasGen = async function (self) {
|
|
|
337
337
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
338
338
|
self.model.f_collection = self.model.f_totalcost
|
|
339
339
|
if (self.config.floor) {
|
|
340
|
-
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
340
|
+
// self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
341
341
|
}
|
|
342
342
|
self.pricetext = getAmount.data.chargeprice[0].pricetext?getAmount.data.chargeprice[0].pricetext:null
|
|
343
343
|
self.calText(getAmount.data.chargeprice)
|
package/src/main.js
CHANGED
|
@@ -4,7 +4,7 @@ import App from './App'
|
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
5
|
// import FilialeSale from './filiale/dexin/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
|
-
import FilialeSale from './filiale/
|
|
7
|
+
import FilialeSale from './filiale/xihu/sale'
|
|
8
8
|
import address from 'address-client/src/address'
|
|
9
9
|
import ldap from 'ldap-clients/src/ldap'
|
|
10
10
|
import VueClipboard from 'vue-clipboard2'
|