sale-client 3.5.246 → 3.5.247
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
CHANGED
|
@@ -116,7 +116,7 @@ let getBtnsGen = async function (self) {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
// 如果卡上有气,添加购气撤销按钮
|
|
119
|
-
if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是')) {
|
|
119
|
+
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
120
120
|
self.temp.push({
|
|
121
121
|
name: '购气撤销',
|
|
122
122
|
value: {
|
|
@@ -117,12 +117,11 @@ let getBtnsGen = async function (self) {
|
|
|
117
117
|
})
|
|
118
118
|
} else {
|
|
119
119
|
}
|
|
120
|
-
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
// 如果卡上有气,添加购气撤销按钮
|
|
125
|
-
if (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是')) {
|
|
124
|
+
if (self.cardInfo && (self.cardInfo.Gas > 0 || self.cardInfo.Money > 0 || (self.cardInfo.TotalMoney > 0 && self.data.f_support_purchase === '是'))) {
|
|
126
125
|
self.temp.push({
|
|
127
126
|
name: '购气撤销',
|
|
128
127
|
value: {
|
|
@@ -152,6 +152,10 @@ export default {
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
methods: {
|
|
155
|
+
clean () {
|
|
156
|
+
this.$info('取消操作')
|
|
157
|
+
this.$dispatch('refresh', this.row)
|
|
158
|
+
},
|
|
155
159
|
confirm () {
|
|
156
160
|
|
|
157
161
|
this.$showMessage(`确定对用户${this.row.f_user_name}进行余量补差吗?`, ['confirm', 'cancel']).then(async (res) => {
|
|
@@ -17,6 +17,12 @@ let MachineChargeService = {
|
|
|
17
17
|
if (model2 && model2.f_serial_id) {
|
|
18
18
|
f_serial_id = model2.f_serial_id
|
|
19
19
|
}
|
|
20
|
+
if (!model2 || !model2.garbage_number) {
|
|
21
|
+
model2 = {
|
|
22
|
+
// garbage_number: 0,
|
|
23
|
+
// garbage_money: 0
|
|
24
|
+
}
|
|
25
|
+
}
|
|
20
26
|
let param = {
|
|
21
27
|
garbage_number: model2.garbage_number,
|
|
22
28
|
garbage_money: model2.garbage_money,
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sale-client",
|
|
3
|
-
"version": "3.4.179-1",
|
|
4
|
-
"description": "收费模块前台组件",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"example": "node build/example-server.js",
|
|
8
|
-
"dev": "node 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
|
-
"examples": "^0.1.0",
|
|
21
|
-
"js-file-download": "0.4.12",
|
|
22
|
-
"less-loader": "^2.2.3",
|
|
23
|
-
"qrcodejs2": "0.0.2",
|
|
24
|
-
"vue": "^1.0.17",
|
|
25
|
-
"yarn": "^1.22.10"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"address-client": "3.2.27",
|
|
29
|
-
"axios": "0.15.3",
|
|
30
|
-
"babel-core": "^6.0.0",
|
|
31
|
-
"babel-loader": "^6.0.0",
|
|
32
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
33
|
-
"babel-preset-es2015": "^6.0.0",
|
|
34
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
35
|
-
"chai": "^3.5.0",
|
|
36
|
-
"co": "^4.6.0",
|
|
37
|
-
"compression-webpack-plugin": "1.1.2",
|
|
38
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
39
|
-
"cross-env": "^1.0.7",
|
|
40
|
-
"cross-spawn": "^2.1.5",
|
|
41
|
-
"css-loader": "^0.23.0",
|
|
42
|
-
"echarts": "^4.1.0",
|
|
43
|
-
"eslint": "^3.19.0",
|
|
44
|
-
"eslint-config-standard": "^10.2.1",
|
|
45
|
-
"eslint-friendly-formatter": "^3.0.0",
|
|
46
|
-
"eslint-loader": "^1.7.1",
|
|
47
|
-
"eslint-plugin-html": "^3.0.0",
|
|
48
|
-
"eslint-plugin-import": "^2.7.0",
|
|
49
|
-
"eslint-plugin-node": "^5.2.0",
|
|
50
|
-
"eslint-plugin-promise": "^3.4.0",
|
|
51
|
-
"eslint-plugin-standard": "^3.0.1",
|
|
52
|
-
"eventsource-polyfill": "^0.9.6",
|
|
53
|
-
"express": "^4.13.3",
|
|
54
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
|
55
|
-
"file-loader": "^0.8.4",
|
|
56
|
-
"filemanager-webpack-plugin": "^2.0.5",
|
|
57
|
-
"function-bind": "^1.0.2",
|
|
58
|
-
"html-webpack-plugin": "^2.8.1",
|
|
59
|
-
"http-proxy-middleware": "^0.11.0",
|
|
60
|
-
"inject-loader": "^2.0.1",
|
|
61
|
-
"isparta-loader": "^2.0.0",
|
|
62
|
-
"jasmine-core": "^2.4.1",
|
|
63
|
-
"jquery": "^3.3.1",
|
|
64
|
-
"jsencrypt": "3.0.0-rc.1",
|
|
65
|
-
"json-loader": "^0.5.4",
|
|
66
|
-
"karma": "^1.4.1",
|
|
67
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
68
|
-
"karma-coverage": "^1.1.1",
|
|
69
|
-
"karma-mocha": "^1.3.0",
|
|
70
|
-
"karma-sinon-chai": "^1.3.1",
|
|
71
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
72
|
-
"karma-spec-reporter": "0.0.31",
|
|
73
|
-
"karma-webpack": "^2.0.2",
|
|
74
|
-
"ldap-clients": "3.0.7",
|
|
75
|
-
"less": "^2.7.3",
|
|
76
|
-
"manage-client": "3.1.8-88",
|
|
77
|
-
"mkdirp": "^0.5.1",
|
|
78
|
-
"mocha": "^3.2.0",
|
|
79
|
-
"moment": "2.24.0",
|
|
80
|
-
"ncp": "^2.0.0",
|
|
81
|
-
"nightwatch": "^0.8.18",
|
|
82
|
-
"qrcodejs2": "0.0.2",
|
|
83
|
-
"rimraf": "^2.5.0",
|
|
84
|
-
"selenium-server": "2.52.0",
|
|
85
|
-
"sinon": "^2.1.0",
|
|
86
|
-
"sinon-chai": "^2.8.0",
|
|
87
|
-
"style": "0.0.3",
|
|
88
|
-
"style-loader": "^0.20.3",
|
|
89
|
-
"system-clients": "3.2.0-2",
|
|
90
|
-
"url-loader": "^0.5.7",
|
|
91
|
-
"vue-client": "1.24.52",
|
|
92
|
-
"vue-clipboard2": "0.3.1",
|
|
93
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
94
|
-
"vue-html-loader": "^1.0.0",
|
|
95
|
-
"vue-loader": "^8.2.1",
|
|
96
|
-
"vue-resource": "^1.5.0",
|
|
97
|
-
"vue-router": "^0.7.13",
|
|
98
|
-
"vue-strap": "^1.0.9",
|
|
99
|
-
"vue-style-loader": "^1.0.0",
|
|
100
|
-
"vue-validator": "2.1.7",
|
|
101
|
-
"webpack": "^1.12.2",
|
|
102
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
103
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
104
|
-
"webpack-merge": "^0.8.3",
|
|
105
|
-
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
106
|
-
"weixin-js-sdk": "^1.2.0"
|
|
107
|
-
},
|
|
108
|
-
"keywords": [
|
|
109
|
-
"selling-clients"
|
|
110
|
-
],
|
|
111
|
-
"author": "张桥",
|
|
112
|
-
"license": "ISC",
|
|
113
|
-
"directories": {
|
|
114
|
-
"example": "examples",
|
|
115
|
-
"test": "test"
|
|
116
|
-
}
|
|
117
|
-
}
|