sale-client 3.6.261 → 3.6.262-test

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
@@ -1,120 +1,120 @@
1
- {
2
- "name": "sale-client",
3
- "version": "3.6.261",
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.24.137",
28
- "yarn": "^1.22.10"
29
- },
30
- "devDependencies": {
31
- "address-client": "3.2.56",
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.62",
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.2.61",
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": "3.6.262-test",
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.24.137",
28
+ "yarn": "^1.22.10"
29
+ },
30
+ "devDependencies": {
31
+ "address-client": "3.2.56",
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.62",
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.2.61",
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
+ }
@@ -126,11 +126,11 @@
126
126
  :options='is_pax' clear-button>
127
127
  </v-select>
128
128
  </div>
129
- <div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_type ? 'has-error' : '']">
129
+ <div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
130
130
  <label class="control-label">发票种类:</label>
131
- <v-select v-model="row.f_paper_type"
131
+ <v-select v-model="invoice_type"
132
132
  placeholder='请选择'
133
- :value.sync="row.f_paper_type"
133
+ :value.sync="invoice_type"
134
134
  close-on-select
135
135
  :width="60"
136
136
  :value-single="true"
@@ -292,7 +292,7 @@ export default {
292
292
  confirm () {
293
293
  this.eticket_msg = false
294
294
  this.eticket_show = true
295
- this.$refs.eticketbill.openETicket([this.row.id], this.row, '', this.invoice_is_pax, '机表结算')
295
+ this.$refs.eticketbill.openETicket(this.row.id, this.row, '机表结算', this.invoice_is_pax, this.invoice_type)
296
296
  },
297
297
  selfSearch (args) {
298
298
  this.selecteds = []
@@ -131,16 +131,15 @@
131
131
  :options='is_pax' clear-button>
132
132
  </v-select>
133
133
  </div>
134
- <div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_type ? 'has-error' : '']">
135
- <label class="control-label">发票种类:</label>
136
- <v-select v-model="row.f_paper_type"
134
+ <div class="col-sm-6 form-group form-input-group">
135
+ <label for="f_print" class="font_normal_body">打印格式</label>
136
+ <v-select id="print"
137
+ v-model="f_print"
137
138
  placeholder='请选择'
138
- :value.sync="row.f_paper_type"
139
- close-on-select
140
- :width="60"
141
- :value-single="true"
142
- :search="false"
143
- :options='invoice_types' clear-button>
139
+ :multiple="false"
140
+ :value.sync="row.f_print"
141
+ :options='printstyle'
142
+ close-on-select clear-button v-ref:printstyle>
144
143
  </v-select>
145
144
  </div>
146
145
  <div class="col-sm-12 form-group form-input-group">
@@ -159,14 +158,14 @@
159
158
  v-model="row.f_address_phone" placeholder="开票地址">
160
159
  </div>
161
160
  <div class="col-sm-12 form-group form-input-group">
162
- <label class="control-label">手机推送:</label>
161
+ <label class="control-label">邮箱推送:</label>
163
162
  <input class="form-control col-sm-2"
164
- v-model="row.f_buy_phone" placeholder="手机号码">
163
+ v-model="row.f_email" placeholder="邮箱推送">
165
164
  </div>
166
165
  <div class="col-sm-12 form-group form-input-group">
167
- <label class="control-label">邮箱推送:</label>
166
+ <label class="control-label">备注:</label>
168
167
  <input class="form-control col-sm-2"
169
- v-model="row.f_email" placeholder="邮箱推送">
168
+ v-model="row.f_remarks" placeholder="备注">
170
169
  </div>
171
170
  </div>
172
171
  </div>
@@ -201,8 +200,6 @@
201
200
  invoice_is_pax: '征税',
202
201
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
203
202
  selecteds: [],
204
- invoice_types: this.$appdata.getParam('发票种类'),
205
- invoice_type: '',
206
203
  eticket_show: false,
207
204
  eticket_msg: false,
208
205
  invoice_show_gas: '否',
@@ -286,10 +283,11 @@
286
283
  this.eticket_msg = true
287
284
  },
288
285
  confirm () {
286
+ this.row.f_print = this.row.f_print[0]
289
287
  this.eticket_msg = false
290
288
  this.disabled = false
291
289
  this.eticket_show = true
292
- this.$refs.eticketbill.openETicket([this.row.id], this.row, '是', this.invoice_is_pax, this.row.f_type)
290
+ this.$refs.eticketbill.openETicket(this.row.id, this.row, this.row.f_type)
293
291
  },
294
292
  eticket_toggle () {
295
293
  this.eticket_show = false
@@ -232,7 +232,7 @@ export default {
232
232
  //
233
233
  // }
234
234
  // })
235
- return this.$showAlert('已结算的记录不能再次结算开票', 'warning', 3000)
235
+ return this.$showAlert('已结算的记录不能再次结算开票','warning',3000)
236
236
  }
237
237
  let HttpReset = new HttpResetClass()
238
238
  let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
@@ -252,7 +252,7 @@ export default {
252
252
  if (!this.row.f_address_phone) {
253
253
  this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
254
254
  }
255
- if (!this.row.f_email) {
255
+ if(!this.row.f_email){
256
256
  this.row.f_email = this.row.f_email
257
257
  }
258
258
  this.eticket_msg = true
@@ -260,7 +260,7 @@ export default {
260
260
  confirm () {
261
261
  this.eticket_msg = false
262
262
  this.eticket_show = true
263
- this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '是', this.invoice_is_pax, '卡表收费')
263
+ this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '是',this.invoice_is_pax, '结算收费')
264
264
  },
265
265
  selfSearch (args) {
266
266
  this.selecteds = []
@@ -292,7 +292,7 @@ export default {
292
292
  this.eticket_msg = false
293
293
  this.eticket_show = true
294
294
  console.log('>>> 机表结算开票')
295
- this.$refs.eticketbill.openETicket([this.row.id], this.row, this.invoice_show_gas, this.invoice_is_pax, '机表结算')
295
+ this.$refs.eticketbill.openETicket(this.row.id, this.row, this.invoice_show_gas, this.invoice_is_pax, '机表结算')
296
296
  },
297
297
  selfSearch (args) {
298
298
  this.selecteds = []
package/src/main.js CHANGED
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
- // import FilialeSale from './filiale/wuhai/sale'
6
+ import FilialeSale from './filiale/tongchuan/sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
9
9
  import VueClipboard from 'vue-clipboard2'
@@ -22,7 +22,7 @@ Vue.config.silent = true
22
22
  all()
23
23
  system(false)
24
24
  sale()
25
- // FilialeSale()
25
+ FilialeSale()
26
26
  address()
27
27
  ldap()
28
28
  require('system-clients/src/styles/less/bootstrap.less')