sale-client 3.6.124 → 3.6.125

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [serverRul, localUrl ] = ['http://121.40.52.133:9001/', 'http://121.40.52.133:9001/']
2
+ const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://127.0.0.1:8080/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.124",
3
+ "version": "3.6.125",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -74,7 +74,7 @@
74
74
  "karma-sourcemap-loader": "^0.3.7",
75
75
  "karma-spec-reporter": "0.0.31",
76
76
  "karma-webpack": "^2.0.2",
77
- "ldap-clients": "3.0.48",
77
+ "ldap-clients": "3.0.62",
78
78
  "less": "^2.7.3",
79
79
  "manage-client": "3.1.8-88",
80
80
  "mkdirp": "^0.5.1",
@@ -91,7 +91,7 @@
91
91
  "style-loader": "^0.20.3",
92
92
  "system-clients": "3.2.61",
93
93
  "url-loader": "^0.5.7",
94
- "vue-client": "1.24.94",
94
+ "vue-client": "1.24.101",
95
95
  "vue-clipboard2": "0.3.1",
96
96
  "vue-hot-reload-api": "^1.2.0",
97
97
  "vue-html-loader": "^1.0.0",
package/src/App.vue CHANGED
@@ -10,8 +10,10 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
+ import Vue from 'vue'
13
14
 
14
15
  export default {
15
- ready () {}
16
+ ready () {
17
+ }
16
18
  }
17
19
  </script>
@@ -130,6 +130,7 @@ export default {
130
130
  config: {
131
131
  showupload: true, // 显示上传
132
132
  hasPrint: true, // 默认打票
133
+ postAsync: false, // 是否异步请求 存完住记录再存明细
133
134
  hasBillManage: false, // 默认不启用发票管理
134
135
  hasfindaReail: true, // 默认开启找零功能
135
136
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
@@ -161,7 +161,7 @@ let reprintGen = function *(self, row) {
161
161
  methods: {
162
162
  async search () {
163
163
  console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
164
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
164
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
165
165
  this.model.search(this.condition, this.model)
166
166
  let http = new HttpResetClass()
167
167
  let res = await http.load('POST', 'rs/sql/sale_AutomaticPurse', {
@@ -157,7 +157,7 @@
157
157
  },
158
158
  methods: {
159
159
  async search () {
160
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
160
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
161
161
  this.model.search(this.condition, this.model)
162
162
  let http = new HttpResetClass()
163
163
  let res = await http.load('POST', 'rs/sql/sale_cardhandplanQuery', {
@@ -131,7 +131,7 @@
131
131
  },
132
132
  methods: {
133
133
  async search () {
134
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
134
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
135
135
  this.model.search(this.condition, this.model)
136
136
  let http = new HttpResetClass()
137
137
  let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
@@ -318,7 +318,7 @@ export default {
318
318
  },
319
319
  async search () {
320
320
  console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
321
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
321
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
322
322
  this.model.search(this.condition, this.model)
323
323
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
324
324
  let http = new HttpResetClass()
@@ -96,7 +96,7 @@
96
96
  methods: {
97
97
  async search () {
98
98
  if (this.row.f_meter_type.includes('卡表')) {
99
- this.condition = `${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
99
+ this.condition = `${this.searchValue} = '${this.row[this.searchValue]}' `
100
100
  if (this.$refs.paged.$refs.criteria.condition) {
101
101
  this.condition += `and ${this.$refs.paged.$refs.criteria.condition}`
102
102
  }
@@ -253,7 +253,7 @@
253
253
  // this.model.search(this.condition, this.model)
254
254
  // },
255
255
  async search () {
256
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
256
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
257
257
  this.model.search(this.condition, this.model)
258
258
  let http = new HttpResetClass()
259
259
  let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
@@ -150,7 +150,7 @@
150
150
  },
151
151
  methods: {
152
152
  async search () {
153
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
153
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
154
154
  this.model.search(this.condition, this.model)
155
155
  let http = new HttpResetClass()
156
156
  let res = await http.load('POST', 'rs/sql/machineRecordQuery', {
@@ -145,7 +145,7 @@
145
145
  },
146
146
  methods: {
147
147
  async search () {
148
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
148
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
149
149
  this.model.search(this.condition, this.model)
150
150
  let http = new HttpResetClass()
151
151
  let res = await http.load('POST', 'rs/sql/sale_RecordQuery', {
@@ -160,7 +160,7 @@ let reprintGen = function *(self, row) {
160
160
  methods: {
161
161
  async search () {
162
162
  console.log('aaa:', this.$refs.paged.$refs.criteria.condition)
163
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' and f_orgid = '${this.$login.f.orgid}'`
163
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
164
164
  this.model.search(this.condition, this.model)
165
165
  let http = new HttpResetClass()
166
166
  let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebAutomaticPurse':'rs/sql/sale_AutomaticPurse'}`, {
@@ -238,7 +238,7 @@
238
238
  // this.model.search(this.condition, this.model)
239
239
  // },
240
240
  async search () {
241
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' and f_orgid = '${this.$login.f.orgid}'`
241
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}'`
242
242
  this.model.search(this.condition, this.model)
243
243
  let http = new HttpResetClass()
244
244
  let res = await http.load('POST', `${this.row.f_meter_type === '物联网表'?'rs/sql/sale_WebHandplanQuery':'rs/sql/sale_HandplanQuery'}`, {
@@ -277,7 +277,12 @@
277
277
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('分公司')]
278
278
  },
279
279
  getCondition () {
280
- return {condition: this.$refs.paged.$refs.cri.condition, orderitem: 'delivery_date DESC ' }
280
+ return {
281
+ condition: this.$refs.paged.$refs.cri.condition,
282
+ orderitem: 'delivery_date DESC ',
283
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
284
+ endDate: this.$refs.paged.$refs.cri.model.endDate
285
+ }
281
286
  },
282
287
  getfield () {
283
288
  let data = {}
@@ -23,7 +23,7 @@
23
23
  <div style="float:right">
24
24
  <button class="button_search button_spacing" @click="search()" v-el:cba>查询</button>
25
25
  <button class="button_clear button_spacing" @click="$parent.$parent.clearmsg">清空</button>
26
- <export-excel :data="{condition:$parent.$parent.condition}"
26
+ <export-excel :data="$parent.$parent.getCondition"
27
27
  :field="$parent.$parent.config.excelHeaders"
28
28
  sqlurl="rs/logic/saleExport" sql-name="manage_getNewMeterBrandAndModel" template-name='表具查询'
29
29
  v-ref:exports
@@ -539,6 +539,12 @@
539
539
  }
540
540
  },
541
541
  computed: {
542
+ getCondition () {
543
+ return {
544
+ condition: this.condition,
545
+ orderitem: this.orderitem
546
+ }
547
+ },
542
548
  /* Warningstyle () {
543
549
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('燃气表型号')]
544
550
  }, */
@@ -4,7 +4,7 @@
4
4
  <criteria :model='model' partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
- <div class="col-sm-2">
7
+ <div class="col-sm-3" style="width:20%">
8
8
  <label class="font_normal_body" >气表协议类型</label>
9
9
  <v-select style="width:60%" title="气表协议类型"
10
10
  placeholder='气表协议类型'
@@ -26,7 +26,7 @@
26
26
  condition="f_gasbrand_id = '{}'"
27
27
  close-on-select></v-select>
28
28
  </div>
29
- <div class="col-sm-2 form-group">
29
+ <div class="col-sm-2">
30
30
  <label class="font_normal_body">气表型号</label>
31
31
  <v-select :value.sync="model.f_meter_style"
32
32
  v-model="model.f_meter_style"
@@ -34,7 +34,7 @@
34
34
  condition="f_gasmodel_id = '{}'"
35
35
  close-on-select></v-select>
36
36
  </div>
37
- <div class="col-sm-2 ">
37
+ <div class="col-sm-2">
38
38
  <label class="font_normal_body">客户编号</label>
39
39
  <input @keyup.enter="search" style="width:60%" type="text" class="input_search "
40
40
  v-model="model.f_userinfo_code"
@@ -437,7 +437,7 @@ export default {
437
437
  this.condition = args.condition
438
438
  this.model.search(args.condition, args.model)
439
439
  } else {
440
- this.$showAlert(`请先选择气表品牌`, 'warning', 0)
440
+ this.$showAlert(`请先选择气表品牌`, 'warning', 2000)
441
441
  }
442
442
  // this.isCheckAll = false
443
443
  },