sale-client 4.3.60 → 4.3.61

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": "4.3.60",
3
+ "version": "4.3.61",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,133 @@
1
+ <template>
2
+ <!--在该页面添加参数管理按钮-->
3
+ <div class="flex-row auto" style="margin-top:10px;height: auto" >
4
+ <validator name='m' @valid="mValid(true)" @invalid="mValid(false)">
5
+ <form class="form-horizontal" style="flex: 1;">
6
+ <div class="row auto">
7
+ <div class="col-sm-4 form-group" :class="[$m.f_meter_style.required ? 'has-error' : 'has-success']">
8
+ <label for="f_meter_style" class="font_normal_body">气表型号</label>
9
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_meter_style" placeholder='气表型号' v-validate:f_meter_style='{required: true }' >
10
+ </div>
11
+ <div class="col-sm-4 form-group">
12
+ <label for="f_topup_ceil" class="font_normal_body ">充值上限</label>
13
+ <input class="input_search" style="width: 60%" type="number" v-model="row.f_topup_ceil" >
14
+ </div>
15
+ <div class="col-sm-4 form-group">
16
+ <label for="f_police_gas" class="font_normal_body">报警气量</label>
17
+ <input class="input_search" style="width: 60%" type="number" v-model="row.f_police_gas" >
18
+ </div>
19
+ <div class="col-sm-4 form-group">
20
+ <label for="f_overdr_lines" class="font_normal_body">透支额度</label>
21
+ <input class="input_search" style="width: 60%" type="number" v-model="row.f_overdr_lines" >
22
+ </div>
23
+ <div class="col-sm-4 form-group">
24
+ <label class="font_normal_body ">最大量程</label>
25
+ <input class="input_search" placeholder="最大量程" style="width:60%" type="number" v-model="row.f_capacity">
26
+ </div>
27
+ <div class="col-sm-4 form-group" :class="[$m.mtype.required ? 'has-error' : '']">
28
+ <label for="f_meter_style" class="font_normal_body">表类型&emsp;</label>
29
+ <input type="text" class="input_search" v-show="false" v-model="$refs.mtype.selectedItems" v-validate:mtype='{required: true }'>
30
+ <v-select :value.sync="row.type"
31
+ :options='metertitles'
32
+ placeholder='表类型'
33
+ v-model="row.type"
34
+ close-on-select v-ref:mtype>
35
+ </v-select>
36
+ </div>
37
+ <div class="col-sm-4 form-group">
38
+ <label for="f_coding" class="font_normal_body">卡类型&emsp;</label>
39
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_coding" placeholder='卡类型' >
40
+ </div>
41
+ <div class="col-sm-4 form-group">
42
+ <label for="f_meter_style" class="font_normal_body">气表协议</label>
43
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_size_card" placeholder='气表协议'>
44
+ </div>
45
+ </div>
46
+ </form>
47
+ </validator>
48
+ <div style="width: 60px;">
49
+ <img :src="imgdelete" alt="图片加载失败" style="padding-top: 10px;height: 40px;;cursor: pointer;" @click="deleteMeter()" v-if="!row.model_used">
50
+ <!--<button type="button" class="btn btn-primary" v-if="row.id && !row.f_param_list" @click='gasParamter(row)'>添加参数</button>-->
51
+ <!--<button type="button" class="btn btn-primary" v-if="row.id && row.f_param_list" @click='gasParamter(row)'>修改参数</button>-->
52
+ </div>
53
+ </div>
54
+ <modal :show.sync="showParame" v-ref:modal backdrop="false" >
55
+ <header slot="modal-header" class="modal-header">
56
+ <button type="button" class="close" @click="cancel"><span>&times;</span></button>
57
+ <h3 class="modal-title" style="text-align: center;">添加参数</h3>
58
+ </header>
59
+ <article slot="modal-body" class="modal-body">
60
+ <add-json-parameter v-ref:addparamlist :gasmodel_id="gasmodel_id" :gastype="gastype"></add-json-parameter>
61
+ </article>
62
+ <footer slot="modal-footer" class="modal-footer">
63
+ <button type="button" class="btn btn-primary" @click='confirm()'>确认</button>
64
+ </footer>
65
+ </modal>
66
+ </template>
67
+
68
+ <script>
69
+ import Vue from 'vue'
70
+ import { HttpResetClass } from 'vue-client'
71
+
72
+ export default {
73
+ title: '气表型号管理',
74
+ data () {
75
+ return {
76
+ addGasModelArr: [],
77
+ imgsrc: '/images/mainicon/biaopan.png',
78
+ imgdelete: '/images/mainicon/deletedevice.png',
79
+ f_meter_type: '',
80
+ show: false,
81
+ showParame: false,
82
+ selectGas: null, // 选中的表类型
83
+ gasmodel_id: '',
84
+ gastype: 'gasmodel',
85
+ metertitles: this.$appdata.getParam('表类型'),
86
+ isSetInitBase: [{label: '是', value: '是'}, {label: '否', value: '否'}]
87
+
88
+ }
89
+ },
90
+ props: ['row', 'index', 'meterType'],
91
+ ready () {
92
+ this.isIOT(this.meterType)
93
+ },
94
+ watch: {
95
+ 'meterType' (val) {
96
+ this.isIOT(val)
97
+ },
98
+ 'row' (val) {
99
+ console.log(val, '=================row')
100
+ }
101
+ },
102
+ methods: {
103
+ async confirm () {
104
+ if (this.$refs.addparamlist.confirm()) {
105
+ var paramlist = this.$refs.addparamlist.addGasParameter
106
+ await this.$resetpost('api/af-revenue/logic/updateGasParam', {data: {id: this.selectGas.id, paramlist: paramlist, gastype: 'gasmodel'}}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
107
+ this.showParame = false
108
+ }
109
+ },
110
+ gasParamter (val) {
111
+ this.selectGas = val
112
+ this.gasmodel_id = val.id
113
+ this.showParame = true
114
+ },
115
+ cancel () {
116
+ this.gasmodel_id = ''
117
+ this.showParame = false
118
+ },
119
+ deleteMeter () {
120
+ console.log('删除气表型号', this.index)
121
+ this.$dispatch('delete-meter', this.index)
122
+ },
123
+ mValid (bool) {
124
+ this.row.valid = bool
125
+ this.$dispatch('self-valid', bool)
126
+ },
127
+ isIOT (val) {
128
+ this.f_meter_type = val
129
+ this.show = val === '物联网表'
130
+ }
131
+ }
132
+ }
133
+ </script>
@@ -26,4 +26,6 @@ export default function () {
26
26
  Vue.component('high-meter', (resolve) => { require(['../../components/UserFiles/HighMeterCard.vue'], resolve) })
27
27
  // 用户基本信息test
28
28
  Vue.component('file-user-essential-info', (resolve) => { require(['./FilesManage/UserEssentialInfoTest'], resolve) })
29
+ // 添加或修改气表型号组件
30
+ Vue.component('add-gas-model-info', (resolve) => { require(['./AddGasModelInfo'], resolve) })
29
31
  }
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/jinhong/sale'
5
+ import FilialeSale from './filiale/beifangshiye/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'