sale-client 3.5.141 → 3.5.142

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.
@@ -13,7 +13,9 @@ var compiler = webpack(config)
13
13
  var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
14
14
  // 公司测试服务
15
15
  // var fuwu = 'http://192.168.50.4:8400'
16
- var fuwu = 'http://39.108.82.124:8400/'
16
+ // var fuwu = 'http://39.99.85.14:8400'
17
+ var fuwu = 'http://39.108.82.124:8400'
18
+ // var fuwu = 'http://47.93.217.125:8400'
17
19
  // var fuwu = 'http://121.36.106.17:8400/'
18
20
  // 铜川正式
19
21
  // var fuwu = 'http://61.134.55.234:9999/'
@@ -127,7 +129,7 @@ var proxyTable = {
127
129
  target: fuwu
128
130
  },
129
131
  '/webmeter': {
130
- target: 'http://39.108.82.124:8400/'
132
+ target: 'http://192.168.50.4:8450'
131
133
  },
132
134
  '/rs': {
133
135
  // target: 'http://192.168.30.63:8081/'
@@ -184,7 +186,7 @@ app.use(hotMiddleware)
184
186
  // serve pure static assets
185
187
  app.use('/static', express.static('./static'))
186
188
 
187
- module.exports = app.listen(8085, function (err) {
189
+ module.exports = app.listen(8089, function (err) {
188
190
  if (err) {
189
191
  console.log(err)
190
192
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.141",
3
+ "version": "3.5.142",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -128,8 +128,11 @@ export default {
128
128
  this.cardInfo = null
129
129
  },
130
130
  clearCondition () {
131
+
131
132
  Object.keys(this.$refs.list.$refs.paged.$refs.cri.model).forEach((key) => {
132
- this.$refs.list.$refs.paged.$refs.cri.model[key] = ''
133
+ console.log("key",key)
134
+ console.log("对应啥数据",this.$refs.list.$refs.paged.$refs.cri.model[key])
135
+ this.$refs.list.$refs.paged.$refs.cri.model[key] = []
133
136
  })
134
137
  // console.log('清数据。。。', this.$refs.list.$refs.paged.$refs.grid.model.rows)
135
138
  // this.$set('$refs.list.$refs.paged.$refs.grid.model.rows', [])
@@ -0,0 +1,203 @@
1
+ <template>
2
+ <div class="auto select-overspread">
3
+ <ul class="nav nav-tabs">
4
+ <li role="presentation" class="active" style="width: 100%">
5
+ <a href="#" style="display: inline-block;">表具信息</a>
6
+ <button class="button_search button_spacing" style="float: right;" type="button" @click="reSearch">返回</button>
7
+ </li>
8
+ </ul>
9
+ <div class="row">
10
+ <div class="col-sm-6 form-group">
11
+ <label class="font_normal_body">表&emsp;&emsp;号</label>
12
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_meternumber" placeholder="表号"/>
13
+ </div>
14
+ <div class="col-sm-6 form-group">
15
+ <label class="font_normal_body">用气性质</label>
16
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_gasproperties" placeholder="表号"/>
17
+ </div>
18
+ <div class="col-sm-6 form-group">
19
+ <label class="font_normal_body">气表状态</label>
20
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_table_state" placeholder="表具状态"/>
21
+ </div>
22
+ <div class="col-sm-6 form-group">
23
+ <label class="font_normal_body">阀门状态</label>
24
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_valvestate" placeholder="表具状态"/>
25
+ </div>
26
+ <div class="col-sm-6 form-group">
27
+ <label class="font_normal_body">气表品牌</label>
28
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_meter_brand" placeholder="表具状态"/>
29
+ </div>
30
+ <div class="col-sm-6 form-group">
31
+ <label class="font_normal_body">气表型号</label>
32
+ <input type="text" class="input_search" style="width: 60%" v-model="row.f_meter_style" placeholder="表具状态"/>
33
+ </div>
34
+ </div>
35
+ <ul class="nav nav-tabs">
36
+ <li role="presentation" class="active"><a href="#">表具操作</a></li>
37
+ </ul>
38
+ <button class="button_search button_spacing" type="button" @click="openUser">开户</button>
39
+ <button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
40
+ class="button_search" type="button" @click="clearBarrier">清除障碍</button>
41
+ <button class="button_search button_spacing" type="button" @click="valvecontrol">开关阀</button>
42
+ <button class="button_search button_spacing" type="button" @click="zdfk">开关自动阀控</button>
43
+ <!--阀控管理弹框-->
44
+ <modal :show.sync="valve">
45
+ <header slot="modal-header" class="modal-header">
46
+ <button type="button" class="close" @click="close()"><span>&times;</span></button>
47
+ <h4 class="modal-title" align="center">阀控管理</h4>
48
+ </header>
49
+ <article slot="modal-body" class="modal-body">
50
+ <div class="form-group " style="padding-left: 8px">
51
+ <label class="font_normal_body">操作原因</label>
52
+ <textarea class="form-control" style="width:80%" v-model="operateReason" rows="3"
53
+ placeholder="请填写操作原因"></textarea>
54
+ </div>
55
+ </article>
56
+ <footer slot="modal-footer" class="modal-footer">
57
+ <button type="button" class="btn btn-info btn-ln fr" style="margin-left:20px" @click='valveoperate("权限关阀")'>权限关阀</button>
58
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
59
+ <button type="button" class="button_search btn-ln fr" @click='valveoperate("开阀")'>开阀</button>
60
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
61
+ <button type="button" class="btn btn-info btn-ln fr" @click='valveoperate("关阀")'>关阀</button>
62
+ </footer>
63
+ </modal>
64
+ </div>
65
+ </template>
66
+
67
+ <script>
68
+ import Vue from 'vue'
69
+
70
+ export default {
71
+ title: '操作详情',
72
+ name: 'WebMeterBatchOperate',
73
+ props: ['row'],
74
+ data () {
75
+ return {
76
+ famenShow: '',
77
+ valve: '',
78
+ operateReason: '',
79
+ famenShow1: ''
80
+ }
81
+ },
82
+ ready () {
83
+ console.log('进入操作详情')
84
+ },
85
+ methods: {
86
+ clearBarrier(){
87
+ // 地址
88
+ // 127.0.0.1:8445
89
+ // 参数
90
+ let datas = {
91
+ moduleName:"XiMeiSystem", // 固定值
92
+ content:{
93
+ tradeCode:"3015",// 固定值
94
+ appid: "yysf", // 固定值
95
+ partner: "cqsemay_bcts", // 固定值
96
+ version:"v1", // 固定值
97
+ tasked:this.getuuid(), // 任务id
98
+ notifyUrl:"http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack", // 固定值
99
+ meterNo: this.row.f_meternumber,// 表号
100
+ signType:" MD5" //固定值
101
+ },
102
+ title: "清除异常", // 固定值
103
+ type: "清除异常", // 固定值
104
+ inputtor:this.row.f_operator, // 操作人
105
+ userId:this.row.f_userfiles_id, // 表档案ID
106
+ dataId: null // 操作记录ID
107
+ }
108
+ this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas},{resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
109
+ })
110
+ },
111
+ getuuid(){
112
+ let uuidA = '';
113
+ var s = [];
114
+ var hexDigits = '0123456789abcdef';
115
+ for (var i = 0; i < 36; i++) {
116
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
117
+ }
118
+ s[14] = '4';
119
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
120
+ s[8] = s[13] = s[18] = s[23] = '-';
121
+ uuidA = s.join('');
122
+ return uuidA;
123
+ },
124
+ reSearch () {
125
+ this.$dispatch('research')
126
+ },
127
+ // 阀控管理
128
+ valvecontrol () {
129
+ if (this.$login.r.includes('开关阀')) {
130
+ this.valve = true
131
+ } else {
132
+ this.$showAlert('您没有开关阀权限,请联系管理员!!', 'warning', 3000)
133
+ }
134
+ },
135
+ close () {
136
+ this.valve = false
137
+ this.operateReason = ''
138
+ },
139
+ async zdfk () {
140
+ let data = {
141
+ f_userfiles_id: this.row.f_userfiles_id
142
+ }
143
+ if (this.row.f_network_valve === '关闭') {
144
+ await this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
145
+ } else {
146
+ await this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
147
+ }
148
+ await this.$dispatch('research')
149
+ },
150
+ // 开关阀操作
151
+ async valveoperate (oper) {
152
+ let msg = ''
153
+ let nnum
154
+ if (oper === '权限关阀'){
155
+ msg = '权限关阀'
156
+ nnum = 2
157
+ } else if (oper === '关阀') {
158
+ msg = '手动关阀'
159
+ nnum = 0
160
+ }else {
161
+ msg = '手动开阀'
162
+ nnum = 1
163
+ }
164
+ let datas = {
165
+ instructType: '阀门控制',
166
+ instructTitle: `手动${msg}`,
167
+ condition: `t_userfiles.f_userfiles_id='${this.row.f_userfiles_id}'`,
168
+ meterBrandName: this.row.f_alias,
169
+ f_instruct_state: '待发送',
170
+ inputtor: Vue.$login.f.name,
171
+ reasonInfo: this.operateReason,
172
+ meternumberf: this.row.f_meternumber,
173
+ contentData: {isOpen: nnum}
174
+ }
175
+ await this.$resetpost('rs/logic/iot_saveInstruct', {data: datas},
176
+ {warnMsg: `确定要进行${msg}操作吗?`, resolveMsg: `${msg}成功`, rejectMsg: `${msg}失败`}).then(res => {
177
+ this.valve = false
178
+ this.operateReason = ''
179
+ })
180
+ await this.$dispatch('research')
181
+ },
182
+ async openUser () {
183
+ let data = {
184
+ f_userfiles_id: this.row.f_userfiles_id
185
+ }
186
+ await this.$resetpost('rs/logic/startup', data)
187
+ await this.$dispatch('research')
188
+ }
189
+ },
190
+ computed: {
191
+ // 界面细节权限
192
+ jurisdiction () {
193
+ return this.$login.r ? this.$login.r : []
194
+ }
195
+ },
196
+ watch: {}
197
+ }
198
+ </script>
199
+
200
+ <style scoped>
201
+
202
+ </style>
203
+
@@ -25,7 +25,8 @@ let specialComp = {
25
25
 
26
26
  'user-info-detail-manage-new': (resolve) => { require(['./components/common/userinfo_detail/UserInfoDetailManageNew'], resolve) },
27
27
  // 物联网 批量开关阀
28
- 'sale-web-meter-batch-operation-valve':(resolve) => { require(['./components/common/userinfo_detail/WebMeterBatchOperationValve'], resolve) }
28
+ 'sale-web-meter-batch-operation-valve':(resolve) => { require(['./components/common/userinfo_detail/WebMeterBatchOperationValve'], resolve) },
29
+ 'sale-web-meter-operate':(resolve) => { require(['./components/common/userinfo_detail/WebMeterBatchOperate'], resolve) }
29
30
 
30
31
  }
31
32
  exports.specialComp = specialComp
@@ -56,9 +56,9 @@
56
56
  v-el:cc></v-select>
57
57
  </div>
58
58
  <div class="form-group col-sm-2">
59
- <label class="font_normal_body">表编号&nbsp;&nbsp;&nbsp;</label>
60
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_id" placeholder='表编号'
61
- condition="f_user_id = '{}'">
59
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber" placeholder='表号'
61
+ condition="f_meternumber = '{}'">
62
62
  </div>
63
63
  <div class="form-group col-sm-2">
64
64
  <label class="font_normal_body">用户姓名</label>
@@ -113,7 +113,7 @@
113
113
  <tr>
114
114
  <th>序号</th>
115
115
  <th>用户编号</th>
116
- <th>表编号</th>
116
+ <th>表号</th>
117
117
  <th>用户姓名</th>
118
118
  <th>用户地址</th>
119
119
  <th>上期底数</th>
@@ -133,7 +133,7 @@
133
133
  <template partial='body'>
134
134
  <td style="text-align:center">{{$index+1}}</td>
135
135
  <td style="text-align:center">{{row.f_userinfo_code}}</td>
136
- <td style="text-align:center">{{row.f_user_id}}</td>
136
+ <td style="text-align:center">{{row.f_meternumber}}</td>
137
137
  <td style="text-align:center">{{row.f_user_name}}</td>
138
138
  <td style="text-align:center">{{row.f_address}}</td>
139
139
  <td style="text-align:center">{{row.f_last_tablebase}}</td>