system-clients 3.3.3-old → 3.3.3-v3-test

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.
Files changed (56) hide show
  1. package/package.info +1 -0
  2. package/package.json +105 -105
  3. package/src/components/Main.vue +910 -927
  4. package/src/components/Util.js +15 -0
  5. package/src/components/equipment/PosList.vue +2 -3
  6. package/src/components/equipment/PosParamAdd.vue +2 -3
  7. package/src/components/materialManage/materialList.vue +1 -1
  8. package/src/components/parammanage/ParamPage.vue +1 -1
  9. package/src/components/parammanage/ParamPages.vue +2 -2
  10. package/src/components/parammanage/SinglePage.vue +1 -1
  11. package/src/components/parammanage/SinglePages.vue +2 -2
  12. package/src/components/server/AddChangeMsg.vue +4 -3
  13. package/src/components/server/ChangeDeclare.vue +2 -9
  14. package/src/components/server/Login.vue +557 -589
  15. package/src/components/server/PcdBuildingSelect.vue +8 -53
  16. package/src/filiale/baole/Login.vue +33 -30
  17. package/src/filiale/chengtou/Login.vue +33 -38
  18. package/src/filiale/dongguan/Login.vue +33 -30
  19. package/src/filiale/dongguan/Main.vue +3 -10
  20. package/src/filiale/furuike/Login.vue +40 -38
  21. package/src/filiale/furuike/Main.vue +7 -17
  22. package/src/filiale/gehua/Main.vue +3 -10
  23. package/src/filiale/konggang/Login.vue +38 -43
  24. package/src/filiale/qianneng/Login.vue +38 -43
  25. package/src/filiale/qianneng/Main.vue +3 -10
  26. package/src/filiale/rizhao/Login.vue +22 -18
  27. package/src/filiale/rizhao/Main.vue +2 -6
  28. package/src/filiale/shiquan/Login.vue +38 -43
  29. package/src/filiale/tianyi/Login.vue +33 -38
  30. package/src/filiale/tongchuan/Login.vue +33 -38
  31. package/src/filiale/tongchuan/Main.vue +22 -47
  32. package/src/filiale/weinan/Main.vue +5 -18
  33. package/src/filiale/wenxi/Login.vue +38 -43
  34. package/src/filiale/wenxi/Main.vue +3 -10
  35. package/src/filiale/wuhai/Main.vue +5 -19
  36. package/src/filiale/yuchuan/Login.vue +33 -30
  37. package/src/filiale/yuchuan/Main.vue +3 -10
  38. package/src/filiale/zhoukou/Main.vue +3 -10
  39. package/src/plugins/EncryptUtil.js +1 -1
  40. package/src/plugins/GetLoginInfoService.js +10 -3
  41. package/src/stores/AppData.js +1 -0
  42. package/.gradle/7.4/checksums/checksums.lock +0 -0
  43. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  44. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  45. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  46. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  47. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  48. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  49. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  50. package/.gradle/7.4/gc.properties +0 -0
  51. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  52. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  53. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  54. package/.gradle/file-system.probe +0 -0
  55. package/.gradle/vcs-1/gc.properties +0 -0
  56. package/build.gradle +0 -6
@@ -77,6 +77,21 @@ export function parse3339String (strDate) {
77
77
  )
78
78
  }
79
79
 
80
+ // 判断密码最后修改时间是否超过两个半月(2个月零15天)
81
+ export function isPasswordModificationExpired (lastModificationTime) {
82
+ if (!lastModificationTime) {
83
+ return true
84
+ }
85
+ const lastMod = parse3339String(lastModificationTime)
86
+ if (isNaN(lastMod.getTime())) {
87
+ return true
88
+ }
89
+ const expireDate = new Date(lastMod)
90
+ expireDate.setMonth(expireDate.getMonth() + 2)
91
+ expireDate.setDate(expireDate.getDate() + 15)
92
+ return new Date() > expireDate
93
+ }
94
+
80
95
  export function format3339TimeString (dt) {
81
96
  let month = dt.getMonth() + 1
82
97
  let date = dt.getDate()
@@ -166,7 +166,7 @@
166
166
  return {
167
167
  source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
168
168
  model: new PagedList('rs/sql/equipmentQuery', 20),
169
- model2: new PagedList('rs/sql/singleTable', 30, {tablename: '`t_poshistory`'}),
169
+ model2: new PagedList('rs/sql/safePoshistoryByTerminalNumber', 30),
170
170
  curorgid: [this.f_filialeid],
171
171
  f_orgid: '',
172
172
  f_filialeids: '',
@@ -248,8 +248,7 @@
248
248
  },
249
249
  abcd (row) {
250
250
  console.log("chakan",row)
251
- let condition = `f_terminal_number = '${row.f_terminal_number}' order by id desc`
252
- this.model2.search(condition)
251
+ this.model2.search({}, {f_terminal_number: row.f_terminal_number})
253
252
  this.infoshow = true
254
253
  },
255
254
  search () {
@@ -139,11 +139,10 @@ export default {
139
139
  async edit(param_id) {
140
140
  this.param_id = param_id
141
141
  let load = new HttpResetClass()
142
- load.load("POST", 'rs/sql/singleTable',
142
+ load.load("POST", 'rs/sql/safeEquipmentParamByParamId',
143
143
  {
144
144
  data: {
145
- tablename: ' t_equipment_param ',
146
- condition: ` f_param_id = ${param_id} `
145
+ f_param_id: param_id
147
146
  }
148
147
  },
149
148
  {resolveMsg: null, rejectMsg: null})
@@ -175,7 +175,7 @@
175
175
  data(){
176
176
  //配置后台systemModule,sql
177
177
  return{
178
- model: new PagedList('rs/sql/singleTable_OrderBy', 50),
178
+ model: new PagedList('rs/sql/safeMaterialInfoSingleWithCondition', 50),
179
179
  row: null,
180
180
  searchshow: true,
181
181
  obj: {
@@ -267,7 +267,7 @@
267
267
  } else if (type === 't_paramvalue') {
268
268
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
269
269
  if (res === 'confirm') {
270
- this.$resetpost('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
270
+ this.$resetpost('rs/logic/safeParamvalueDelete', {id: row.id}).then((res) => {
271
271
  this.getParamValue(this.selectItem)
272
272
  })
273
273
  }
@@ -113,7 +113,7 @@
113
113
  methods: {
114
114
  // 加载全部参数
115
115
  loadParams () {
116
- this.$refs.paramsLoad.load('rs/sql/hql/simpleHql', {data: {tablename: 't_parameter'}}).then((res) => {
116
+ this.$refs.paramsLoad.load('rs/sql/safeParameterQuery').then((res) => {
117
117
  this.model.rows = this.allParams = res.data
118
118
  })
119
119
  },
@@ -159,7 +159,7 @@
159
159
  } else if (row.EntityType === 't_paramvalue') {
160
160
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
161
161
  if (res === 'confirm') {
162
- this.$refs.selectsLoad.load('rs/logic/deleteValue', {tablename: 't_paramvalue', id: row.id}).then((res) => {
162
+ this.$refs.selectsLoad.load('rs/logic/safeParamvalueDelete', {id: row.id}).then((res) => {
163
163
  this.params.rows.splice(index, 1)
164
164
  })
165
165
  }
@@ -183,7 +183,7 @@
183
183
  deleteItem (row) {
184
184
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
185
185
  if (res === 'confirm') {
186
- this.$resetpost('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
186
+ this.$resetpost('rs/logic/safeSinglevalueDelete', {id: row.id}).then((res) => {
187
187
  this.filter_query(this.conditionModel.paramName, this.conditionModel.f_cond_orgid)
188
188
  })
189
189
  }
@@ -95,14 +95,14 @@
95
95
  },
96
96
  methods: {
97
97
  loadSingle () {
98
- this.$refs.singleLoad.load('rs/sql/singleTable', {data: {tablename: 't_singlevalue', condition: '1=1'}}).then((res) => {
98
+ this.$refs.singleLoad.load('rs/sql/safeSinglevalueQuery', {data: {condition: '1=1'}}).then((res) => {
99
99
  this.model.rows = this.params = res.data
100
100
  })
101
101
  },
102
102
  deleteItem (row) {
103
103
  this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
104
104
  if (res === 'confirm') {
105
- this.$refs.singleLoad.load('rs/logic/deleteValue', {tablename: 't_singlevalue', id: row.id}).then((res) => {
105
+ this.$refs.singleLoad.load('rs/logic/safeSinglevalueDelete', {id: row.id}).then((res) => {
106
106
  this.loadSingle()
107
107
  })
108
108
  }
@@ -48,10 +48,11 @@ export default {
48
48
  },
49
49
  confirm () {
50
50
  let param = {
51
- tablename: 't_changedeclare',
52
- parameters: this.model
51
+ f_change_name: this.model.f_change_name,
52
+ f_change_message: this.model.f_change_message,
53
+ f_change_date: new Date().format('yyyy-MM-dd HH:mm:ss')
53
54
  }
54
- this.$post('rs/logic/save', {data: param})
55
+ this.$post('rs/logic/safeChangedeclareSave', param)
55
56
  .then(() => {
56
57
  this.model = {}
57
58
  this.$emit('toggle')
@@ -22,15 +22,8 @@ export default {
22
22
  }
23
23
  },
24
24
  ready () {
25
- let sql = 'singleTable_OrderBy'
26
- let condition = {
27
- items: 'id,f_change_name,f_change_message,f_change_date',
28
- tablename: 't_changedeclare',
29
- condition: ' 1=1',
30
- orderitem: 'f_change_date DESC'
31
- }
32
- this.$info(`加载数据中..., sql:${sql}`)
33
- this.$refs.pv.load('rs/sql/singleTable_OrderBy', {data: condition}).then((a) => {
25
+ this.$info(`加载数据中...`)
26
+ this.$refs.pv.load('rs/sql/safeChangedeclareQuery',{data:{condition:'f_change_message is not null'}}).then((a) => {
34
27
  this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
35
28
  this.model = a.data
36
29
  }).catch((error) => {