sale-client 3.4.208 → 3.5.1

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/.babelrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "presets": ["es2015", "stage-2"],
3
- "plugins": ["transform-runtime"],
4
- "comments": false
5
- }
1
+ {
2
+ "presets": ["es2015", "stage-2"],
3
+ "plugins": ["transform-runtime"],
4
+ "comments": false
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.208",
3
+ "version": "3.5.1",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -437,6 +437,7 @@
437
437
  </div>
438
438
  </article>
439
439
  <footer slot="modal-footer" class="modal-footer">
440
+ <button class="button_search button_spacing" type="button" @click="goChargeManage()">去收费</button>
440
441
  <button class="button_search button_spacing" type="button" @click="doCopy()">复制</button>
441
442
  <button class="button_search button_spacing" type="button" @click="close2()">取消</button>
442
443
  </footer>
@@ -636,6 +637,9 @@ let loadParamGem = async function (self) {
636
637
  this.isShowDetailInfo = true
637
638
  this.rowData = obj
638
639
  },
640
+ goChargeManage () {
641
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
642
+ },
639
643
  async doCopy () {
640
644
  await this.$copyText(this.resdata)
641
645
  this.resshow = false
@@ -93,7 +93,7 @@
93
93
  </div>
94
94
  <div class="row">
95
95
  <div class="col-sm-2"></div>
96
- <input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
96
+ <input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
97
97
  </div>
98
98
  </article>
99
99
  <footer slot="modal-footer" class="modal-footer">
@@ -151,6 +151,7 @@
151
151
  </div>
152
152
  <div class="auto" style="float: right;">
153
153
  <button class="button_clear " @click="cancelmain()" >返回</button>
154
+ <button class="button_search" type="button" @click="goChargeManage">去收费</button>
154
155
  <button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
155
156
  class="button_search" type="button" @click="clearBarrier">清除障碍</button>
156
157
  <button v-if="row.f_meter_type.includes('物联网表')"
@@ -316,6 +317,9 @@
316
317
  uuidA = s.join('');
317
318
  return uuidA;
318
319
  },
320
+ goChargeManage () {
321
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
322
+ },
319
323
  openUser () {
320
324
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
321
325
  if (res === 'confirm') {
@@ -80,7 +80,7 @@
80
80
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_mpc_state}}</nobr></td>
81
81
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_mpc_network}}</nobr></td>
82
82
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_last_message_date}}</nobr></td>
83
- <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_newmessage}}</nobr></td>
83
+ <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_new_message}}</nobr></td>
84
84
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_modify_user}}</nobr></td>
85
85
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.f_modify_date}}</nobr></td>
86
86
  <td v-show="$parent.$parent.$parent.listshow" style="text-align:center"><nobr>{{row.sumuserfiles}}</nobr></td>
@@ -28,6 +28,7 @@
28
28
  condition="f_address like '%{}%'" placeholder='客户地址'>
29
29
  </div>
30
30
  <div class="span" style="float:right;">
31
+ <button class="button_search button_spacing" @click="$parent.$parent.networking()">组网</button>
31
32
  <button class="button_search button_spacing" @click="$parent.$parent.meterRead()">抄表</button>
32
33
  <button class="button_search button_spacing" @click="$parent.$parent.confirmaddress()">取消关联</button>
33
34
  <button class="button_search button_spacing" @click="search()">查询</button>
@@ -292,6 +293,35 @@ export default {
292
293
  this.search()
293
294
  }
294
295
  },
296
+ async networking () {
297
+ let res = await this.$showMessage('确定对选择的表具进行组网操作吗?', ['confirm', 'cancel'])
298
+ if (res === 'confirm') {
299
+ let rowdata = this.$refs.paged.$refs.grid.getRowData()
300
+ if (rowdata.length <= 0) {
301
+ this.$showMessage('请至少选择一个表具!')
302
+ return
303
+ }
304
+ console.log(rowdata)
305
+ let userfilesids = []
306
+ for (let row of rowdata) {
307
+ userfilesids.push({
308
+ f_userfiles_id: row.f_userfiles_id,
309
+ f_meternumber: row.f_meternumber
310
+ })
311
+ }
312
+ let param = {
313
+ f_orgid: this.$login.f.orgid,
314
+ f_orgname: this.$login.f.name,
315
+ concentratorid: this.fileinfo.id,
316
+ f_mpc_number: this.fileinfo.f_mpc_number,
317
+ userfilesid: '',
318
+ userfilesids: userfilesids,
319
+ state: 'delete'
320
+ }
321
+ await this.$resetpost('rs/logic/concentratorNetWorking', param, {resolveMsg: '组网操作成功!', rejectMsg: '组网操作失败!'})
322
+ this.search()
323
+ }
324
+ },
295
325
  search () {
296
326
  this.$refs.paged.$refs.cri.search()
297
327
  },
package/src/main.js CHANGED
@@ -1,18 +1,18 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import sale from './sale'
4
- import { address } from 'address-client'
5
- import { ldap } from 'ldap-clients'
6
- import VueClipboard from 'vue-clipboard2'
7
- Vue.use(VueClipboard)
8
- Vue.config.silent = true
9
- // 新打包写法
10
- Vue.use(sale, {filiale: 'macheng'})
11
- address()
12
- ldap()
13
- require('system-clients/src/styles/less/bootstrap.less')
14
-
15
- new Vue({
16
- el: 'body',
17
- components: { App }
18
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import sale from './sale'
4
+ import { address } from 'address-client'
5
+ import { ldap } from 'ldap-clients'
6
+ import VueClipboard from 'vue-clipboard2'
7
+ Vue.use(VueClipboard)
8
+ Vue.config.silent = true
9
+ // 新打包写法
10
+ Vue.use(sale, {filiale: 'zhongsheng'})
11
+ address()
12
+ ldap()
13
+ require('system-clients/src/styles/less/bootstrap.less')
14
+
15
+ new Vue({
16
+ el: 'body',
17
+ components: { App }
18
+ })
File without changes
@@ -1,2 +0,0 @@
1
- #Fri Apr 02 10:09:16 CST 2021
2
- gradle.version=3.5.1