sale-client 3.6.527 → 3.6.528

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.527",
3
+ "version": "3.6.528",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -50,7 +50,7 @@
50
50
  <input type="text" v-show="false" v-model="$refs.model.selectedItems"
51
51
  v-validate:model='{required: true }'>
52
52
  <v-select :value.sync="row.gasmodel" :options='row.gasbrand[0].gasmodel' placeholder='气表型号'
53
- close-on-select
53
+ close-on-select :menu-width='menuWidth' :min-width='menuWidth'
54
54
  v-model='row.gasmodel' :disabled='row.gasbrand.length === 0 ' v-ref:model></v-select>
55
55
  </div>
56
56
  <div class="col-sm-4 form-group">
@@ -113,7 +113,7 @@
113
113
  <div class="row">
114
114
  <div class="col-sm-4 form-group" :class="[$m.name.required ? 'has-error' : '']">
115
115
  <label for="pricename" class="font_normal_body">气价名称</label>
116
- <v-select :value.sync="row.pricename" v-model="row.pricename" search
116
+ <v-select :value.sync="row.pricename" v-model="row.pricename" search :menu-width='menuWidth' :min-width='menuWidth'
117
117
  placeholder='气价名称' :options="getPricenames" @change="priceChange"
118
118
  close-on-select :disabled="permissionPrice" v-ref:name></v-select>
119
119
  <input type="text" v-show="false" v-model="$refs.name.selectedItems" v-validate:name='{required: true }'>
@@ -96,9 +96,9 @@
96
96
  </data-grid>
97
97
  </criteria-paged>
98
98
  </div>
99
- <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900">
99
+ <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900" @close="resetRowData">
100
100
  <header slot="modal-header" class="modal-header">
101
- <button type="button" class="close" @click="eticket_msg = false"><span>&times;</span></button>
101
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
102
102
  <h4 class="modal-title">发票信息</h4>
103
103
  </header>
104
104
  <article slot="modal-body" class="modal-body">
@@ -226,6 +226,16 @@ export default {
226
226
  asyncReadyGen(this)
227
227
  },
228
228
  methods: {
229
+ resetRowData () {
230
+ this.row = {}
231
+ this.invoice_type = '数电普票'
232
+ this.invoice_is_pax = '征税'
233
+ this.invoice_show_gas = '否'
234
+ },
235
+ closeModal () {
236
+ this.eticket_msg = false
237
+ this.resetRowData()
238
+ },
229
239
  getorg (val) {
230
240
  this.f_orgid = this.$login.convertToIn(val)
231
241
  },
@@ -32,7 +32,7 @@
32
32
  <label class="font_normal_body">&nbsp;开始时间</label>
33
33
  <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
34
34
  class="datepicker"
35
- condition="f_hand_date >= '{} 00:00:00'"
35
+ condition="s.f_operate_date >= '{} 00:00:00'"
36
36
  placeholder="起始时间"
37
37
  style="width:60%"
38
38
  v-model="model.f_start_date"
@@ -42,7 +42,7 @@
42
42
  <label class="font_normal_body">结束时间</label>
43
43
  <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
44
44
  class="datepicker"
45
- condition="f_hand_date <= '{} 23:59:59'"
45
+ condition="s.f_operate_date <= '{} 23:59:59'"
46
46
  placeholder="结束时间"
47
47
  style="width:60%"
48
48
  v-model="model.f_end_date"
@@ -96,9 +96,9 @@
96
96
  </data-grid>
97
97
  </criteria-paged>
98
98
  </div>
99
- <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900">
99
+ <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900" @close="resetRowData">
100
100
  <header slot="modal-header" class="modal-header">
101
- <button type="button" class="close" @click="eticket_msg = false"><span>&times;</span></button>
101
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
102
102
  <h4 class="modal-title">发票信息</h4>
103
103
  </header>
104
104
  <article slot="modal-body" class="modal-body">
@@ -194,7 +194,7 @@ export default {
194
194
  dep: [],
195
195
  user: []
196
196
  },
197
- config:{
197
+ config: {
198
198
  taxforidnumber: true
199
199
  },
200
200
  eticket_show: false,
@@ -236,7 +236,7 @@ export default {
236
236
  //
237
237
  // }
238
238
  // })
239
- return this.$showAlert('已结算的记录不能再次结算开票','warning',3000)
239
+ return this.$showAlert('已结算的记录不能再次结算开票', 'warning', 3000)
240
240
  }
241
241
  let HttpReset = new HttpResetClass()
242
242
  let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
@@ -259,6 +259,12 @@ export default {
259
259
  this.invoice_type = this.row.f_paper_type === '数电专票' ? this.row.f_paper_type : '数电普票'
260
260
  this.eticket_msg = true
261
261
  },
262
+ resetRowData () {
263
+ this.row = {}
264
+ this.invoice_type = '数电普票'
265
+ this.invoice_is_pax = '征税'
266
+ this.invoice_show_gas = '否'
267
+ },
262
268
  confirm () {
263
269
  this.eticket_msg = false
264
270
  this.eticket_show = true
@@ -308,6 +314,10 @@ export default {
308
314
  // }
309
315
  }
310
316
  this.selectAll = (this.selecteds.length === this.model.rows.length)
317
+ },
318
+ closeModal () {
319
+ this.eticket_msg = false
320
+ this.resetRowData()
311
321
  }
312
322
  },
313
323
  computed: {
@@ -96,9 +96,9 @@
96
96
  </data-grid>
97
97
  </criteria-paged>
98
98
  </div>
99
- <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900">
99
+ <modal :show.sync="eticket_msg" v-ref:modal large backdrop="false" :width="900" @close="resetRowData">
100
100
  <header slot="modal-header" class="modal-header">
101
- <button type="button" class="close" @click="eticket_msg = false"><span>&times;</span></button>
101
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
102
102
  <h4 class="modal-title">发票信息</h4>
103
103
  </header>
104
104
  <article slot="modal-body" class="modal-body">
@@ -225,6 +225,16 @@ export default {
225
225
  asyncReadyGen(this)
226
226
  },
227
227
  methods: {
228
+ resetRowData () {
229
+ this.row = {}
230
+ this.invoice_type = '数电普票'
231
+ this.invoice_is_pax = '征税'
232
+ this.invoice_show_gas = '否'
233
+ },
234
+ closeModal () {
235
+ this.eticket_msg = false
236
+ this.resetRowData()
237
+ },
228
238
  getorg (val) {
229
239
  this.f_orgid = this.$login.convertToIn(val)
230
240
  },