sale-client 3.6.400-preview → 4.0.2-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 +120 -120
- package/src/components/FilesManage/UserDeviceInfoTest.vue +1 -0
- package/src/components/FilesManage/UserMeterInfoTest.vue +1 -1
- package/src/components/charge/ChargeManage.vue +14 -6
- package/src/components/charge/business/refund/IOTRefund.vue +7 -9
- package/src/components/charge/business/refund/machineRefund.vue +9 -13
- package/src/components/revenue/HandManager/MeterBookAdd.vue +396 -396
- package/src/components/revenue/cardHandManage/cardHandManager.vue +59 -59
- package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +13 -3
- package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/iotTable.vue +22 -5
- package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -0
- package/src/components/revenue/comprehen/ComprehenOperation/removeTableCancel.vue +2 -2
- package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +16 -7
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +2 -2
- package/src/filiale/fugou/components/revenue/cardHandManage/cardDown.vue +979 -979
- package/src/filiale/fugou/components/revenue/cardHandManage/cardHandAudit.vue +553 -541
- package/src/filiale/gehua/MeterHistory.vue +74 -0
- package/src/filiale/gehua/WebMeterInfo.vue +80 -0
- package/src/filiale/gehua/WebMeterList.vue +440 -0
- package/src/filiale/gehua/sale.js +3 -0
- package/src/filiale/qingjian/IOTRefund.vue +424 -0
- package/src/filiale/qingjian/UserInfoDetailManageNew.vue +1 -1
- package/src/filiale/qingjian/WebHandQueryUser.vue +10 -10
- package/src/filiale/qingjian/sale.js +2 -0
- package/src/filiale/qingtongxia/MeterOperatemain.vue +407 -0
- package/src/filiale/qingtongxia/sale.js +2 -0
- package/src/filiale/rongcheng/FilesManageNew/MeterinfoTest.vue +6 -0
- package/src/filiale/rongcheng/MeterinfoTest.vue +6 -0
- package/src/filiale/tongchuan/EditWebMeterInfo.vue +282 -0
- package/src/filiale/tongchuan/sale.js +1 -0
- package/src/plugins/CommonService.js +2 -2
- package/src/plugins/LogicService.js +1 -1
- package/src/sale.js +1227 -1227
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
package/package.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sale-client",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "收费模块前台组件",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"example": "node build/example-server.js",
|
|
8
|
-
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
9
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
10
|
-
"unit": "karma start test/unit/karma.conf.js",
|
|
11
|
-
"build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
12
|
-
"e2e": "node test/e2e/runner.js",
|
|
13
|
-
"release": "bash build/release.sh"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://gitee.com/aote/product.git"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"crypto-js": "^4.1.1",
|
|
21
|
-
"examples": "^0.1.0",
|
|
22
|
-
"js-file-download": "0.4.12",
|
|
23
|
-
"less-loader": "^2.2.3",
|
|
24
|
-
"qrcodejs2": "^0.0.2",
|
|
25
|
-
"vue": "^1.0.17",
|
|
26
|
-
"webpack-dev-server": "^2.11.5",
|
|
27
|
-
"vue-client": "1.25.3",
|
|
28
|
-
"yarn": "^1.22.10"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"address-client": "3.2.105",
|
|
32
|
-
"axios": "0.15.3",
|
|
33
|
-
"babel-core": "^6.0.0",
|
|
34
|
-
"babel-loader": "^6.0.0",
|
|
35
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
36
|
-
"babel-preset-es2015": "^6.0.0",
|
|
37
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
38
|
-
"chai": "^3.5.0",
|
|
39
|
-
"co": "^4.6.0",
|
|
40
|
-
"compression-webpack-plugin": "1.1.2",
|
|
41
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
42
|
-
"cross-env": "^1.0.7",
|
|
43
|
-
"cross-spawn": "^2.1.5",
|
|
44
|
-
"css-loader": "^0.23.0",
|
|
45
|
-
"echarts": "^4.1.0",
|
|
46
|
-
"eslint": "^3.19.0",
|
|
47
|
-
"eslint-config-standard": "^10.2.1",
|
|
48
|
-
"eslint-friendly-formatter": "^3.0.0",
|
|
49
|
-
"eslint-loader": "^1.7.1",
|
|
50
|
-
"eslint-plugin-html": "^3.0.0",
|
|
51
|
-
"eslint-plugin-import": "^2.7.0",
|
|
52
|
-
"eslint-plugin-node": "^5.2.0",
|
|
53
|
-
"eslint-plugin-promise": "^3.4.0",
|
|
54
|
-
"eslint-plugin-standard": "^3.0.1",
|
|
55
|
-
"eventsource-polyfill": "^0.9.6",
|
|
56
|
-
"express": "^4.13.3",
|
|
57
|
-
"extract-text-webpack-plugin": "^3.0.2",
|
|
58
|
-
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
59
|
-
"file-loader": "^0.8.4",
|
|
60
|
-
"filemanager-webpack-plugin": "^2.0.5",
|
|
61
|
-
"function-bind": "^1.0.2",
|
|
62
|
-
"html-webpack-plugin": "^2.8.1",
|
|
63
|
-
"http-proxy-middleware": "^0.11.0",
|
|
64
|
-
"inject-loader": "^2.0.1",
|
|
65
|
-
"isparta-loader": "^2.0.0",
|
|
66
|
-
"jasmine-core": "^2.4.1",
|
|
67
|
-
"jquery": "^3.3.1",
|
|
68
|
-
"jsencrypt": "3.0.0-rc.1",
|
|
69
|
-
"json-loader": "^0.5.4",
|
|
70
|
-
"karma": "^1.4.1",
|
|
71
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
72
|
-
"karma-coverage": "^1.1.1",
|
|
73
|
-
"karma-mocha": "^1.3.0",
|
|
74
|
-
"karma-sinon-chai": "^1.3.1",
|
|
75
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
76
|
-
"karma-spec-reporter": "0.0.31",
|
|
77
|
-
"karma-webpack": "^2.0.2",
|
|
78
|
-
"ldap-clients": "3.0.96",
|
|
79
|
-
"less": "^2.7.3",
|
|
80
|
-
"manage-client": "3.1.8-88",
|
|
81
|
-
"mkdirp": "^0.5.1",
|
|
82
|
-
"mocha": "^3.2.0",
|
|
83
|
-
"moment": "2.24.0",
|
|
84
|
-
"ncp": "^2.0.0",
|
|
85
|
-
"nightwatch": "^0.8.18",
|
|
86
|
-
"qrcodejs2": "0.0.2",
|
|
87
|
-
"rimraf": "^2.5.0",
|
|
88
|
-
"selenium-server": "2.52.0",
|
|
89
|
-
"sinon": "^2.1.0",
|
|
90
|
-
"sinon-chai": "^2.8.0",
|
|
91
|
-
"style": "0.0.3",
|
|
92
|
-
"style-loader": "^0.20.3",
|
|
93
|
-
"system-clients": "3.3.2",
|
|
94
|
-
"url-loader": "^0.5.7",
|
|
95
|
-
"vue-clipboard2": "0.3.1",
|
|
96
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
97
|
-
"vue-html-loader": "^1.0.0",
|
|
98
|
-
"vue-loader": "^8.2.1",
|
|
99
|
-
"vue-resource": "^1.5.0",
|
|
100
|
-
"vue-router": "^0.7.13",
|
|
101
|
-
"vue-strap": "^1.0.9",
|
|
102
|
-
"vue-style-loader": "^1.0.0",
|
|
103
|
-
"vue-validator": "2.1.7",
|
|
104
|
-
"webpack": "^3.12.0",
|
|
105
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
106
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
107
|
-
"webpack-merge": "^0.8.3",
|
|
108
|
-
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
109
|
-
"weixin-js-sdk": "^1.2.0"
|
|
110
|
-
},
|
|
111
|
-
"keywords": [
|
|
112
|
-
"selling-clients"
|
|
113
|
-
],
|
|
114
|
-
"author": "张桥",
|
|
115
|
-
"license": "ISC",
|
|
116
|
-
"directories": {
|
|
117
|
-
"example": "examples",
|
|
118
|
-
"test": "test"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sale-client",
|
|
3
|
+
"version": "4.0.2-preview",
|
|
4
|
+
"description": "收费模块前台组件",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"example": "node build/example-server.js",
|
|
8
|
+
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
9
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
10
|
+
"unit": "karma start test/unit/karma.conf.js",
|
|
11
|
+
"build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
12
|
+
"e2e": "node test/e2e/runner.js",
|
|
13
|
+
"release": "bash build/release.sh"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://gitee.com/aote/product.git"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"crypto-js": "^4.1.1",
|
|
21
|
+
"examples": "^0.1.0",
|
|
22
|
+
"js-file-download": "0.4.12",
|
|
23
|
+
"less-loader": "^2.2.3",
|
|
24
|
+
"qrcodejs2": "^0.0.2",
|
|
25
|
+
"vue": "^1.0.17",
|
|
26
|
+
"webpack-dev-server": "^2.11.5",
|
|
27
|
+
"vue-client": "1.25.3",
|
|
28
|
+
"yarn": "^1.22.10"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"address-client": "3.2.105",
|
|
32
|
+
"axios": "0.15.3",
|
|
33
|
+
"babel-core": "^6.0.0",
|
|
34
|
+
"babel-loader": "^6.0.0",
|
|
35
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
36
|
+
"babel-preset-es2015": "^6.0.0",
|
|
37
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
38
|
+
"chai": "^3.5.0",
|
|
39
|
+
"co": "^4.6.0",
|
|
40
|
+
"compression-webpack-plugin": "1.1.2",
|
|
41
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
42
|
+
"cross-env": "^1.0.7",
|
|
43
|
+
"cross-spawn": "^2.1.5",
|
|
44
|
+
"css-loader": "^0.23.0",
|
|
45
|
+
"echarts": "^4.1.0",
|
|
46
|
+
"eslint": "^3.19.0",
|
|
47
|
+
"eslint-config-standard": "^10.2.1",
|
|
48
|
+
"eslint-friendly-formatter": "^3.0.0",
|
|
49
|
+
"eslint-loader": "^1.7.1",
|
|
50
|
+
"eslint-plugin-html": "^3.0.0",
|
|
51
|
+
"eslint-plugin-import": "^2.7.0",
|
|
52
|
+
"eslint-plugin-node": "^5.2.0",
|
|
53
|
+
"eslint-plugin-promise": "^3.4.0",
|
|
54
|
+
"eslint-plugin-standard": "^3.0.1",
|
|
55
|
+
"eventsource-polyfill": "^0.9.6",
|
|
56
|
+
"express": "^4.13.3",
|
|
57
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
58
|
+
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
59
|
+
"file-loader": "^0.8.4",
|
|
60
|
+
"filemanager-webpack-plugin": "^2.0.5",
|
|
61
|
+
"function-bind": "^1.0.2",
|
|
62
|
+
"html-webpack-plugin": "^2.8.1",
|
|
63
|
+
"http-proxy-middleware": "^0.11.0",
|
|
64
|
+
"inject-loader": "^2.0.1",
|
|
65
|
+
"isparta-loader": "^2.0.0",
|
|
66
|
+
"jasmine-core": "^2.4.1",
|
|
67
|
+
"jquery": "^3.3.1",
|
|
68
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
69
|
+
"json-loader": "^0.5.4",
|
|
70
|
+
"karma": "^1.4.1",
|
|
71
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
72
|
+
"karma-coverage": "^1.1.1",
|
|
73
|
+
"karma-mocha": "^1.3.0",
|
|
74
|
+
"karma-sinon-chai": "^1.3.1",
|
|
75
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
76
|
+
"karma-spec-reporter": "0.0.31",
|
|
77
|
+
"karma-webpack": "^2.0.2",
|
|
78
|
+
"ldap-clients": "3.0.96",
|
|
79
|
+
"less": "^2.7.3",
|
|
80
|
+
"manage-client": "3.1.8-88",
|
|
81
|
+
"mkdirp": "^0.5.1",
|
|
82
|
+
"mocha": "^3.2.0",
|
|
83
|
+
"moment": "2.24.0",
|
|
84
|
+
"ncp": "^2.0.0",
|
|
85
|
+
"nightwatch": "^0.8.18",
|
|
86
|
+
"qrcodejs2": "0.0.2",
|
|
87
|
+
"rimraf": "^2.5.0",
|
|
88
|
+
"selenium-server": "2.52.0",
|
|
89
|
+
"sinon": "^2.1.0",
|
|
90
|
+
"sinon-chai": "^2.8.0",
|
|
91
|
+
"style": "0.0.3",
|
|
92
|
+
"style-loader": "^0.20.3",
|
|
93
|
+
"system-clients": "3.3.2",
|
|
94
|
+
"url-loader": "^0.5.7",
|
|
95
|
+
"vue-clipboard2": "0.3.1",
|
|
96
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
97
|
+
"vue-html-loader": "^1.0.0",
|
|
98
|
+
"vue-loader": "^8.2.1",
|
|
99
|
+
"vue-resource": "^1.5.0",
|
|
100
|
+
"vue-router": "^0.7.13",
|
|
101
|
+
"vue-strap": "^1.0.9",
|
|
102
|
+
"vue-style-loader": "^1.0.0",
|
|
103
|
+
"vue-validator": "2.1.7",
|
|
104
|
+
"webpack": "^3.12.0",
|
|
105
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
106
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
107
|
+
"webpack-merge": "^0.8.3",
|
|
108
|
+
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
109
|
+
"weixin-js-sdk": "^1.2.0"
|
|
110
|
+
},
|
|
111
|
+
"keywords": [
|
|
112
|
+
"selling-clients"
|
|
113
|
+
],
|
|
114
|
+
"author": "张桥",
|
|
115
|
+
"license": "ISC",
|
|
116
|
+
"directories": {
|
|
117
|
+
"example": "examples",
|
|
118
|
+
"test": "test"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
<!-- <input type="text" class="input_search" style="width:60%" v-model="row.f_input_person"-->
|
|
64
64
|
<!-- placeholder='安装人'>-->
|
|
65
65
|
<v-select :value.sync="row.f_input_person" v-model="row.f_input_person"
|
|
66
|
+
:value-single="true"
|
|
66
67
|
:options='installperson' placeholder='安装人'
|
|
67
68
|
close-on-select></v-select>
|
|
68
69
|
</div>
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
this.devicesinfo = []
|
|
112
112
|
this.devicesinfo = row.devicesinfo
|
|
113
113
|
if (row.f_install_person && row.f_install_person[0]) {
|
|
114
|
-
this.f_input_person = row.f_install_person
|
|
114
|
+
this.f_input_person = row.f_install_person
|
|
115
115
|
}
|
|
116
116
|
this.devicesinfo.forEach((row) => {
|
|
117
117
|
row.devicetypes = this.$appdata.getParam('设备类型')
|
|
@@ -202,13 +202,21 @@ export default {
|
|
|
202
202
|
this.$refs.list.searchNoData()
|
|
203
203
|
this.$refs.card.search()
|
|
204
204
|
},
|
|
205
|
-
modalsuccess (obj) {
|
|
205
|
+
async modalsuccess (obj) {
|
|
206
206
|
this.showModal = false
|
|
207
|
-
this.$
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or (f_write_card = '写卡失败' and f_operate_date >= DATEADD(HOUR, -3, GETDATE()))) and f_userfiles_id = '${obj.f_userfiles_id}'`)
|
|
208
|
+
console.log('获取未写卡记录', getUnWriteSell)
|
|
209
|
+
if (getUnWriteSell.data.length > 1) {
|
|
210
|
+
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
211
|
+
} else {
|
|
212
|
+
this.$refs.list.criteriaShow = false
|
|
213
|
+
this.row = obj
|
|
214
|
+
this.row.unWriteSell = getUnWriteSell.data
|
|
215
|
+
this.cardInfo = this.$refs.list.cardInfo
|
|
216
|
+
this.$refs.list.criteriaShow = false
|
|
217
|
+
// 将列表只显示该条数据
|
|
218
|
+
this.$refs.list.refreshRow(obj)
|
|
219
|
+
}
|
|
212
220
|
},
|
|
213
221
|
async serRow (obj) {
|
|
214
222
|
let newdata = await this.$resetpost('api/af-revenue/sql/sale_getUser', {
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
<input v-show="false" v-model="model.f_add_gas" v-validate:f_operat_type='{required: true}'>
|
|
33
33
|
<v-select :value.sync="model.f_add_gas" value-single
|
|
34
34
|
:options='addGas' placeholder='请选择'
|
|
35
|
-
disabled
|
|
36
35
|
selected="是否计入累购"
|
|
37
36
|
style="width:60%"
|
|
38
37
|
close-on-select></v-select>
|
|
@@ -109,11 +108,7 @@
|
|
|
109
108
|
// 默认打印格式
|
|
110
109
|
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
111
110
|
self.model.f_payment = [self.config.payment]
|
|
112
|
-
|
|
113
|
-
self.model.f_add_gas = '计入'
|
|
114
|
-
} else {
|
|
115
|
-
self.model.f_add_gas = '计入'
|
|
116
|
-
}
|
|
111
|
+
|
|
117
112
|
self.model.f_use_type = self.config.billType
|
|
118
113
|
self.model.f_bill_type = self.model.f_print
|
|
119
114
|
self.hasValidateBill = self.config.hasBillManage
|
|
@@ -124,7 +119,6 @@
|
|
|
124
119
|
data () {
|
|
125
120
|
return {
|
|
126
121
|
config: {
|
|
127
|
-
addgas:true,
|
|
128
122
|
showupload: false, // 默认不上传附件
|
|
129
123
|
hasPrint: false, // 默认打票
|
|
130
124
|
hasBillManage: false, // 默认不启用发票管理
|
|
@@ -134,8 +128,8 @@
|
|
|
134
128
|
billType: '燃气费'
|
|
135
129
|
},
|
|
136
130
|
model: {
|
|
137
|
-
f_add_gas: '计入',
|
|
138
131
|
f_refund_fee: '',
|
|
132
|
+
f_add_gas: '计入',
|
|
139
133
|
f_refund_gas: '',
|
|
140
134
|
f_comments: '',
|
|
141
135
|
f_payment: '',
|
|
@@ -148,7 +142,7 @@
|
|
|
148
142
|
randomBusinessId: '',
|
|
149
143
|
resid: [], // 存放新增的f_files表中id
|
|
150
144
|
validateOk: false,
|
|
151
|
-
|
|
145
|
+
addGas: [{label: '计入', value: '计入'}, {label: '不计入', value: '不计入'}],
|
|
152
146
|
printModel: {},
|
|
153
147
|
print: false,
|
|
154
148
|
billUrl: '',
|
|
@@ -221,6 +215,10 @@
|
|
|
221
215
|
f_depname: this.$login.f.deps
|
|
222
216
|
}
|
|
223
217
|
}
|
|
218
|
+
if (this.model.f_add_gas !== '计入') {
|
|
219
|
+
param.f_total_fee = this.data.f_total_fee
|
|
220
|
+
param.f_total_gas = this.data.f_total_gas
|
|
221
|
+
}
|
|
224
222
|
console.log('退费传参', param)
|
|
225
223
|
let res = await this.$resetpost('api/af-revenue/logic/iotRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
|
|
226
224
|
console.log('退费', res)
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
<input v-show="false" v-model="model.f_add_gas" v-validate:f_operat_type='{required: true}'>
|
|
32
32
|
<v-select :value.sync="model.f_add_gas" value-single
|
|
33
33
|
:options='addGas' placeholder='请选择'
|
|
34
|
-
disabled
|
|
35
34
|
selected="是否计入累购"
|
|
36
35
|
style="width:60%"
|
|
37
36
|
close-on-select></v-select>
|
|
@@ -85,11 +84,7 @@
|
|
|
85
84
|
self.blodid = self.data.f_userinfo_id
|
|
86
85
|
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
87
86
|
self.model.f_payment = [self.config.payment]
|
|
88
|
-
|
|
89
|
-
self.model.f_add_gas = '计入'
|
|
90
|
-
} else {
|
|
91
|
-
self.model.f_add_gas = '计入'
|
|
92
|
-
}
|
|
87
|
+
|
|
93
88
|
self.model.f_use_type = self.config.billType
|
|
94
89
|
self.model.f_bill_type = self.model.f_print
|
|
95
90
|
self.hasValidateBill = self.config.hasBillManage
|
|
@@ -100,23 +95,22 @@
|
|
|
100
95
|
data () {
|
|
101
96
|
return {
|
|
102
97
|
config: {
|
|
103
|
-
addgas:true,
|
|
104
98
|
showupload: false, // 默认不上传附件
|
|
105
99
|
hasPrint: false, // 默认打票
|
|
106
100
|
hasBillManage: false, // 默认不启用发票管理
|
|
107
|
-
overBalance: false,
|
|
101
|
+
overBalance: false, // 为true时退费金额可以大于余额
|
|
108
102
|
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
109
103
|
payment: '现金缴费',
|
|
110
104
|
billType: '燃气费'
|
|
111
105
|
},
|
|
112
106
|
model: {
|
|
113
|
-
f_add_gas: '计入',
|
|
114
107
|
f_refund_fee: '',
|
|
108
|
+
f_add_gas: '计入',
|
|
115
109
|
f_comments: '',
|
|
116
110
|
f_payment: '',
|
|
117
111
|
f_print: ''
|
|
118
112
|
},
|
|
119
|
-
|
|
113
|
+
addGas: [{label: '计入', value: '计入'}, {label: '不计入', value: '不计入'}],
|
|
120
114
|
blodid: '',
|
|
121
115
|
hasValidateBill: false,
|
|
122
116
|
randomBusinessId: '',
|
|
@@ -170,13 +164,13 @@
|
|
|
170
164
|
f_user_id: this.data.f_user_id,
|
|
171
165
|
f_userfiles_id: this.data.f_userfiles_id,
|
|
172
166
|
version: this.data.version,
|
|
173
|
-
f_refund_fee: this.model.f_refund_fee,
|
|
167
|
+
f_refund_fee: (this.model.f_refund_fee - 0),
|
|
174
168
|
f_comments: this.model.f_comments,
|
|
175
169
|
f_payment: this.model.f_payment[0],
|
|
176
170
|
f_print: this.model.f_print[0],
|
|
177
171
|
f_price_id: this.data.f_price_id,
|
|
178
172
|
f_add_gas: this.model.f_add_gas,
|
|
179
|
-
f_total_fee: this.data.f_total_fee,
|
|
173
|
+
f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
|
|
180
174
|
f_stairprice_id: this.data.f_stairprice_id,
|
|
181
175
|
operInfo: {
|
|
182
176
|
f_operator: this.$login.f.name,
|
|
@@ -187,7 +181,9 @@
|
|
|
187
181
|
f_depname: this.$login.f.deps
|
|
188
182
|
}
|
|
189
183
|
}
|
|
190
|
-
|
|
184
|
+
if (this.model.f_add_gas !== '计入') {
|
|
185
|
+
param.f_total_fee = this.data.f_total_fee
|
|
186
|
+
}
|
|
191
187
|
let res = await this.$resetpost('api/af-revenue/logic/machineRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
|
|
192
188
|
console.log('机表退费返回的数据==========>', res)
|
|
193
189
|
let param1 = []
|