sale-client 4.2.52 → 4.2.54

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Sep 04 10:25:06 CST 2024
1
+ #Sat Sep 13 14:19:54 CST 2025
2
2
  gradle.version=5.2.1
Binary file
package/.npmignore ADDED
@@ -0,0 +1,12 @@
1
+ src/bootstrap
2
+ .idea/
3
+ .DS_Store
4
+ node_modules/
5
+ dist/
6
+ examples/
7
+ gradle/
8
+ npm-debug.log
9
+ selenium-debug.log
10
+ test/unit/coverage
11
+ test/e2e/reports
12
+ lib/**/lib
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://192.168.50.67:31567/']
4
+ const [ serverRul, localUrl ] = ['http://111.229.34.22:31467/', 'http://127.0.0.1:9026/']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
@@ -25,12 +25,12 @@ var devConfig = {
25
25
  // },
26
26
  // target: localUrl
27
27
  // },
28
- // '/api/af-revenue/logic': {
29
- // pathRewrite: {
30
- // '/api/af-revenue/logic': '/logic'
31
- // },
32
- // target: localUrl
33
- // },
28
+ '/api/af-revenue/logic': {
29
+ pathRewrite: {
30
+ '/api': '/singlepage/api'
31
+ },
32
+ target: serverRul
33
+ },
34
34
  // '/api/af-revenue/file': {
35
35
  // // pathRewrite: {
36
36
  // // '/api/af-revenue/file': '/file'
@@ -41,23 +41,32 @@ var devConfig = {
41
41
  //
42
42
  // target: 'http://410663id1ia4.vicp.fun'
43
43
  // },
44
- // '/api/af-revenue/sql': {
45
- // pathRewrite: {
46
- // '/api/af-revenue/sql': '/sql'
47
- // },
48
- // target: localUrl
49
- // },
44
+ '/api/af-revenue/sql': {
45
+ pathRewrite: {
46
+ '/api': '/singlepage/api'
47
+ },
48
+ target: serverRul
49
+ },
50
50
  '/rs/pay': {
51
51
  target: 'http://localhost:8080'
52
52
  },
53
- '/api/af-revenue': {
53
+ // '/api/af-revenue': {
54
+ // pathRewrite: {
55
+ // '/api/af-revenue': '/af-revenue'
56
+ // },
57
+ // target: "http://localhost:8080"
58
+ // },
59
+ '/api/af-revenue/logic/getOperBtns': {
54
60
  pathRewrite: {
55
- '/api/af-revenue': '/af-revenue'
61
+ '/api/af-revenue': '/rs'
56
62
  },
57
- target: "http://localhost:8080"
63
+ target: 'http://127.0.0.1:8080'
58
64
  },
59
65
  '/api': {
60
- target: serverRul
66
+ target: serverRul,
67
+ pathRewrite: {
68
+ '/api/af-revenue': '/singlepage/rs'
69
+ }
61
70
  },
62
71
  '/rs': {
63
72
  target: serverRul
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.52",
3
+ "version": "4.2.54",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/.npmignore ADDED
@@ -0,0 +1 @@
1
+
@@ -107,6 +107,15 @@
107
107
  style="width: 60%">
108
108
  </res-select>
109
109
  </div>
110
+ <div class="form-group col-sm-3">
111
+ <label class="font_normal_body">部&emsp;&emsp;门</label>
112
+ <v-select v-model="model.f_depid"
113
+ placeholder='部门'
114
+ :value.sync="model.f_depid"
115
+ :options='$parent.$parent.curdeptid'
116
+ condition="u.f_depid = '{}'"
117
+ close-on-select style="width: 60%"></v-select>
118
+ </div>
110
119
  <div class="form-group col-sm-3">
111
120
  <label class="font_normal_body">卡&emsp;&emsp;号</label>
112
121
  <input type="text" class="input_search" style="width:60%" v-model="model.f_card_id" placeholder='卡号'
@@ -633,6 +642,7 @@ let cardBtnGen = async function (self, val) {
633
642
  // 获取营收参数
634
643
  await self.searchNoData()
635
644
  await self.$LoadParams.loadParam()
645
+ await self.getDep()
636
646
  await self.initQueryParam()
637
647
  await self.clear()
638
648
  if (!self.authArr.includes('读卡限定')) {
@@ -645,7 +655,9 @@ let cardBtnGen = async function (self, val) {
645
655
  data () {
646
656
  return {
647
657
  // 公司下拉
648
- curorgid: [this.$login.f.orgid],
658
+ curorgid: [],
659
+ curdeptid: [this.$login.f.orgid],
660
+ department: [],
649
661
  f_orgid: '',
650
662
  showCardError2: false,
651
663
  model: new PagedList('api/af-revenue/sql/sale_getUser', 30, {orderitem: '"' + this.orderitem + ' DESC"'}),
@@ -742,8 +754,34 @@ let cardBtnGen = async function (self, val) {
742
754
  }
743
755
  },
744
756
  methods: {
757
+ getDep () {
758
+ this.$resetpost('api/af-revenue/sql/getDepAndOrgName', {},
759
+ {resolveMsg: null, rejectMsg: null}).then(res =>{
760
+ console.log('部门数据', res)
761
+ this.department = res.data
762
+ this.splitDep(this.$login.f.orgid)
763
+ })
764
+ },
765
+ splitDep (orgid) {
766
+ this.model.f_depid = ''
767
+ console.log('组织id', orgid)
768
+ this.curdeptid = [{label: '全部', value: ''}]
769
+ let orgIds = []
770
+ if (orgid && orgid.length > 0) {
771
+ // 去掉括号并按逗号分割
772
+ orgIds = orgid.replace(/[()]/g, '').replace(/'/g, '').split(',')
773
+ // 去除空格
774
+ orgIds = orgIds.map(id => id.trim())
775
+ }
776
+ for(let i = 0; i < this.department.length; i++){
777
+ if(orgIds.includes(this.department[i].parentid)){
778
+ this.curdeptid.push({label: this.department[i].orgname +'-'+ this.department[i].name, value: this.department[i].id})
779
+ }
780
+ }
781
+ },
745
782
  getorg (val) {
746
783
  this.f_orgid = this.$login.convertToIn(val)
784
+ this.splitDep(this.f_orgid)
747
785
  this.$parent.f_orgid = this.f_orgid
748
786
  },
749
787
  recordClick () {