system-clients 3.3.3-v3 → 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.
- package/package.json +1 -1
- package/src/components/Main.vue +4 -17
- package/src/components/equipment/PosList.vue +2 -3
- package/src/components/equipment/PosParamAdd.vue +2 -3
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +1 -1
- package/src/components/parammanage/ParamPages.vue +2 -2
- package/src/components/parammanage/SinglePage.vue +1 -1
- package/src/components/parammanage/SinglePages.vue +2 -2
- package/src/components/server/AddChangeMsg.vue +4 -3
- package/src/components/server/ChangeDeclare.vue +2 -9
- package/src/components/server/Login.vue +11 -12
- package/src/components/server/PcdBuildingSelect.vue +8 -53
- package/src/filiale/baole/Login.vue +11 -12
- package/src/filiale/chengtou/Login.vue +11 -20
- package/src/filiale/dongguan/Login.vue +11 -12
- package/src/filiale/dongguan/Main.vue +2 -9
- package/src/filiale/furuike/Login.vue +18 -20
- package/src/filiale/furuike/Main.vue +6 -16
- package/src/filiale/gehua/Main.vue +2 -9
- package/src/filiale/konggang/Login.vue +16 -25
- package/src/filiale/qianneng/Login.vue +16 -25
- package/src/filiale/qianneng/Main.vue +2 -9
- package/src/filiale/rizhao/Main.vue +1 -5
- package/src/filiale/shiquan/Login.vue +16 -25
- package/src/filiale/tianyi/Login.vue +11 -20
- package/src/filiale/tongchuan/Login.vue +11 -20
- package/src/filiale/tongchuan/Main.vue +21 -46
- package/src/filiale/weinan/Main.vue +4 -17
- package/src/filiale/wenxi/Login.vue +16 -25
- package/src/filiale/wenxi/Main.vue +2 -9
- package/src/filiale/wuhai/Main.vue +4 -18
- package/src/filiale/yuchuan/Login.vue +11 -12
- package/src/filiale/yuchuan/Main.vue +2 -9
- package/src/filiale/zhoukou/Main.vue +2 -9
- package/src/stores/AppData.js +1 -0
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
|
@@ -185,11 +185,7 @@ import co from 'co'
|
|
|
185
185
|
import {HttpResetClass} from "vue-client";
|
|
186
186
|
|
|
187
187
|
let getwartermakr = async function (self) {
|
|
188
|
-
let
|
|
189
|
-
tablename: 't_singlevalue',
|
|
190
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
191
|
-
};
|
|
192
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
188
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
193
189
|
if (result && result.data.length > 0) {
|
|
194
190
|
self.showwatermakeflag = true;
|
|
195
191
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -397,10 +393,7 @@ let createWaterMark = function (userName) {
|
|
|
397
393
|
this.OrderDaiBan = ''
|
|
398
394
|
this.AppDaiBan = ''
|
|
399
395
|
let http = new HttpResetClass()
|
|
400
|
-
await http.load('POST', '/rs/sql/
|
|
401
|
-
tablename:'t_order_center',
|
|
402
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
403
|
-
}}, {
|
|
396
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
404
397
|
resolveMsg: null,
|
|
405
398
|
rejectMsg: null
|
|
406
399
|
}).then((res) => {
|
|
@@ -445,10 +438,7 @@ let createWaterMark = function (userName) {
|
|
|
445
438
|
async getExpireDate(){
|
|
446
439
|
// 获取分公司的表品牌id
|
|
447
440
|
let http = new HttpResetClass()
|
|
448
|
-
await http.load('POST', '/rs/sql/
|
|
449
|
-
tablename:'t_gasbrand_orgid',
|
|
450
|
-
condition:`f_using_orgid ='${this.$login.f.orgid}'`
|
|
451
|
-
}}, {
|
|
441
|
+
await http.load('POST', '/rs/sql/safeGasbrandOrgidQueryByOrgId', {f_using_orgid: this.$login.f.orgid}, {
|
|
452
442
|
resolveMsg: null,
|
|
453
443
|
rejectMsg: null
|
|
454
444
|
}).then((res) => {
|
|
@@ -459,10 +449,7 @@ let createWaterMark = function (userName) {
|
|
|
459
449
|
}
|
|
460
450
|
if (this.gasbrandIdData.length > 0) {
|
|
461
451
|
// 获取卡表到期时间
|
|
462
|
-
http.load('POST', '/rs/sql/
|
|
463
|
-
tablename:'t_gasbrand',
|
|
464
|
-
condition:`id in (${this.gasbrandIdData}) and f_meter_type like '%卡表%'`
|
|
465
|
-
}}, {
|
|
452
|
+
http.load('POST', '/rs/sql/safeGasbrandQueryByIds', {ids: this.gasbrandIdData.join(',')}, {
|
|
466
453
|
resolveMsg: null,
|
|
467
454
|
rejectMsg: null
|
|
468
455
|
}).then((res) => {
|
|
@@ -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/
|
|
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
|
-
|
|
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/
|
|
142
|
+
load.load("POST", 'rs/sql/safeEquipmentParamByParamId',
|
|
143
143
|
{
|
|
144
144
|
data: {
|
|
145
|
-
|
|
146
|
-
condition: ` f_param_id = ${param_id} `
|
|
145
|
+
f_param_id: param_id
|
|
147
146
|
}
|
|
148
147
|
},
|
|
149
148
|
{resolveMsg: null, rejectMsg: null})
|
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
-
|
|
52
|
-
|
|
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/
|
|
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
|
-
|
|
26
|
-
|
|
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) => {
|
|
@@ -347,21 +347,20 @@ export default {
|
|
|
347
347
|
},
|
|
348
348
|
async getDaiBan(){
|
|
349
349
|
let http = new HttpResetClass()
|
|
350
|
-
let
|
|
350
|
+
let res
|
|
351
351
|
if(this.$login.f.deps!=='柠条塔'){
|
|
352
|
-
|
|
352
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {f_orgid: this.$login.f.orgid}, {
|
|
353
|
+
resolveMsg: null,
|
|
354
|
+
rejectMsg: null
|
|
355
|
+
})
|
|
353
356
|
} else {
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
357
|
-
tablename:'t_order_center',
|
|
358
|
-
condition:condition
|
|
359
|
-
}}, {
|
|
357
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
360
358
|
resolveMsg: null,
|
|
361
359
|
rejectMsg: null
|
|
362
|
-
})
|
|
363
|
-
|
|
364
|
-
|
|
360
|
+
})
|
|
361
|
+
}
|
|
362
|
+
let OrderDaiBan = {}
|
|
363
|
+
res.data.forEach(item=>{
|
|
365
364
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
366
365
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
367
366
|
})
|
|
@@ -369,7 +368,7 @@ export default {
|
|
|
369
368
|
if (res.data.length> 0){
|
|
370
369
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
371
370
|
}
|
|
372
|
-
}
|
|
371
|
+
},
|
|
373
372
|
let data = {
|
|
374
373
|
condition: '1 = 1',
|
|
375
374
|
data: {
|
|
@@ -66,41 +66,20 @@
|
|
|
66
66
|
self.arrays.pcd=[{label:'全部',value:''}]
|
|
67
67
|
if(self.show.pcdShow){
|
|
68
68
|
let HttpReset = new HttpResetClass()
|
|
69
|
-
var pcd = await HttpReset.load('POST', 'rs/sql/
|
|
70
|
-
data: {
|
|
71
|
-
items: 'f_pcd',
|
|
72
|
-
tablename: 't_pcd',
|
|
73
|
-
condition: `f_pcd is not null group by f_pcd`,
|
|
74
|
-
orderitem: 'f_pcd'
|
|
75
|
-
}
|
|
76
|
-
}, {resolveMsg: null, rejectMsg: '获取省市区出错!'})
|
|
69
|
+
var pcd = await HttpReset.load('POST', 'rs/sql/safePcdQuery', {}, {resolveMsg: null, rejectMsg: '获取省市区出错!'})
|
|
77
70
|
for(var i=0;i<pcd.data.length;i++){
|
|
78
71
|
self.arrays.pcd.push({label:pcd.data[i].f_pcd,value:pcd.data[i].f_pcd})
|
|
79
72
|
}
|
|
80
73
|
}else if(self.show.streetShow){
|
|
81
74
|
console.log("------------查街道")
|
|
82
75
|
let HttpReset = new HttpResetClass()
|
|
83
|
-
var street = await HttpReset.load('POST', 'rs/sql/
|
|
84
|
-
data: {
|
|
85
|
-
items: 'f_street',
|
|
86
|
-
tablename: 't_street',
|
|
87
|
-
condition: `f_filialeid = '${self.$login.f.orgid}' and f_street is not null group by f_street`,
|
|
88
|
-
orderitem: 'f_street'
|
|
89
|
-
}
|
|
90
|
-
}, {resolveMsg: null, rejectMsg: '获取街道出错!'})
|
|
76
|
+
var street = await HttpReset.load('POST', 'rs/sql/safeStreetQueryByFiliale', {f_filialeid: self.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取街道出错!'})
|
|
91
77
|
for(var i=0;i<street.data.length;i++){
|
|
92
78
|
self.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
|
|
93
79
|
}
|
|
94
80
|
}else if(self.show.areaShow){
|
|
95
81
|
let HttpReset = new HttpResetClass()
|
|
96
|
-
var area = await HttpReset.load('POST', 'rs/sql/
|
|
97
|
-
data: {
|
|
98
|
-
items: 'f_residential_area',
|
|
99
|
-
tablename: 't_area',
|
|
100
|
-
condition: `f_filialeid = '${self.$login.f.orgid}' and f_residential_area is not null group by f_residential_area`,
|
|
101
|
-
orderitem: 'f_residential_area'
|
|
102
|
-
}
|
|
103
|
-
}, {resolveMsg: null, rejectMsg: '获取小区出错!'})
|
|
82
|
+
var area = await HttpReset.load('POST', 'rs/sql/safeAreaQueryByFiliale', {f_filialeid: self.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取小区出错!'})
|
|
104
83
|
for(var i=0;i<area.data.length;i++){
|
|
105
84
|
self.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
|
|
106
85
|
}
|
|
@@ -154,15 +133,7 @@
|
|
|
154
133
|
methods:{
|
|
155
134
|
async pcdChange(){
|
|
156
135
|
this.arrays.street=[{label:'全部',value:''}]
|
|
157
|
-
|
|
158
|
-
let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
159
|
-
data: {
|
|
160
|
-
items: 'f_street',
|
|
161
|
-
tablename: 't_street',
|
|
162
|
-
condition: condition,
|
|
163
|
-
orderitem: 'f_street'
|
|
164
|
-
}
|
|
165
|
-
}, {resolveMsg: null, rejectMsg: '获取街道出错'})
|
|
136
|
+
let street = await this.$resetpost('rs/sql/safeStreetQueryByFiliale', {f_filialeid: this.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取街道出错'})
|
|
166
137
|
for(var i=0;i<street.data.length;i++){
|
|
167
138
|
this.arrays.street.push({label:street.data[i].f_street,value:street.data[i].f_street})
|
|
168
139
|
}
|
|
@@ -170,15 +141,7 @@
|
|
|
170
141
|
},
|
|
171
142
|
async streetChange(){
|
|
172
143
|
this.arrays.area=[{label:'全部',value:''}]
|
|
173
|
-
|
|
174
|
-
let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
175
|
-
data: {
|
|
176
|
-
items: 'f_residential_area',
|
|
177
|
-
tablename: 't_area',
|
|
178
|
-
condition: condition,
|
|
179
|
-
orderitem: 'f_residential_area'
|
|
180
|
-
}
|
|
181
|
-
}, {resolveMsg: null, rejectMsg: '获取小区出错'})
|
|
144
|
+
let area = await this.$resetpost('rs/sql/safeAreaQueryByStreet', {f_street: this.model.f_street}, {resolveMsg: null, rejectMsg: '获取小区出错'})
|
|
182
145
|
for(var i=0;i<area.data.length;i++){
|
|
183
146
|
this.arrays.area.push({label:area.data[i].f_residential_area,value:area.data[i].f_residential_area})
|
|
184
147
|
}
|
|
@@ -186,20 +149,12 @@
|
|
|
186
149
|
},
|
|
187
150
|
async areaChange(){
|
|
188
151
|
this.building = [{label:'全部',value:''}]
|
|
189
|
-
|
|
152
|
+
let build
|
|
190
153
|
if(this.show.areaShow){
|
|
191
|
-
|
|
154
|
+
build = await this.$resetpost('rs/sql/safeBuildingQueryByArea', {f_residential_area: this.model.f_residential_area}, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
|
|
192
155
|
}else{
|
|
193
|
-
|
|
156
|
+
build = await this.$resetpost('rs/sql/safeBuildingQueryByFiliale', {f_filialeid: this.$login.f.orgid}, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
|
|
194
157
|
}
|
|
195
|
-
let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
196
|
-
data: {
|
|
197
|
-
items: 'f_building',
|
|
198
|
-
tablename: 't_user_address',
|
|
199
|
-
condition: condition,
|
|
200
|
-
orderitem: 'f_building'
|
|
201
|
-
}
|
|
202
|
-
}, {resolveMsg: null, rejectMsg: '获取楼栋出错'})
|
|
203
158
|
for(var i=0;i<build.data.length;i++){
|
|
204
159
|
this.arrays.building.push({label:build.data[i].f_building,value:build.data[i].f_building})
|
|
205
160
|
}
|
|
@@ -361,21 +361,20 @@ export default {
|
|
|
361
361
|
},
|
|
362
362
|
async getDaiBan(){
|
|
363
363
|
let http = new HttpResetClass()
|
|
364
|
-
let
|
|
364
|
+
let res
|
|
365
365
|
if(this.$login.f.deps!=='柠条塔'){
|
|
366
|
-
|
|
366
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
367
|
+
resolveMsg: null,
|
|
368
|
+
rejectMsg: null
|
|
369
|
+
})
|
|
367
370
|
} else {
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
371
|
-
tablename:'t_order_center',
|
|
372
|
-
condition:condition
|
|
373
|
-
}}, {
|
|
371
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
374
372
|
resolveMsg: null,
|
|
375
373
|
rejectMsg: null
|
|
376
|
-
})
|
|
377
|
-
|
|
378
|
-
|
|
374
|
+
})
|
|
375
|
+
}
|
|
376
|
+
let OrderDaiBan = {}
|
|
377
|
+
res.data.forEach(item=>{
|
|
379
378
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
380
379
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
381
380
|
})
|
|
@@ -383,7 +382,7 @@ export default {
|
|
|
383
382
|
if (res.data.length> 0){
|
|
384
383
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
385
384
|
}
|
|
386
|
-
}
|
|
385
|
+
},
|
|
387
386
|
let data = {
|
|
388
387
|
condition: '1 = 1',
|
|
389
388
|
data: {
|
|
@@ -359,21 +359,20 @@ export default {
|
|
|
359
359
|
},
|
|
360
360
|
async getDaiBan(){
|
|
361
361
|
let http = new HttpResetClass()
|
|
362
|
-
let
|
|
362
|
+
let res
|
|
363
363
|
if(this.$login.f.deps!=='柠条塔'){
|
|
364
|
-
|
|
364
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
365
|
+
resolveMsg: null,
|
|
366
|
+
rejectMsg: null
|
|
367
|
+
})
|
|
365
368
|
} else {
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
369
|
-
tablename:'t_order_center',
|
|
370
|
-
condition:condition
|
|
371
|
-
}}, {
|
|
369
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
372
370
|
resolveMsg: null,
|
|
373
371
|
rejectMsg: null
|
|
374
|
-
})
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
})
|
|
373
|
+
}
|
|
374
|
+
let OrderDaiBan = {}
|
|
375
|
+
res.data.forEach(item=>{
|
|
377
376
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
378
377
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
379
378
|
})
|
|
@@ -381,15 +380,7 @@ export default {
|
|
|
381
380
|
if (res.data.length> 0){
|
|
382
381
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
383
382
|
}
|
|
384
|
-
}
|
|
385
|
-
let data = {
|
|
386
|
-
condition: '1 = 1',
|
|
387
|
-
data: {
|
|
388
|
-
orgid: this.$login.f.orgid,
|
|
389
|
-
id: this.$login.f.id
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
await http.load('POST', '/rs/sql/checkuser', {data: data}, {
|
|
383
|
+
},
|
|
393
384
|
resolveMsg: null,
|
|
394
385
|
rejectMsg: null
|
|
395
386
|
}).then((res) => {
|
|
@@ -350,21 +350,20 @@ export default {
|
|
|
350
350
|
methods: {
|
|
351
351
|
async getDaiBan(){
|
|
352
352
|
let http = new HttpResetClass()
|
|
353
|
-
let
|
|
353
|
+
let res
|
|
354
354
|
if(this.$login.f.deps!=='柠条塔'){
|
|
355
|
-
|
|
355
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
356
|
+
resolveMsg: null,
|
|
357
|
+
rejectMsg: null
|
|
358
|
+
})
|
|
356
359
|
} else {
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
360
|
-
tablename:'t_order_center',
|
|
361
|
-
condition:condition
|
|
362
|
-
}}, {
|
|
360
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
363
361
|
resolveMsg: null,
|
|
364
362
|
rejectMsg: null
|
|
365
|
-
})
|
|
366
|
-
|
|
367
|
-
|
|
363
|
+
})
|
|
364
|
+
}
|
|
365
|
+
let OrderDaiBan = {}
|
|
366
|
+
res.data.forEach(item=>{
|
|
368
367
|
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
369
368
|
OrderDaiBan[item.f_ordertype].push(item)
|
|
370
369
|
})
|
|
@@ -372,7 +371,7 @@ export default {
|
|
|
372
371
|
if (res.data.length> 0){
|
|
373
372
|
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
374
373
|
}
|
|
375
|
-
}
|
|
374
|
+
},
|
|
376
375
|
let data = {
|
|
377
376
|
condition: '1 = 1',
|
|
378
377
|
data: {
|
|
@@ -93,11 +93,7 @@ import co from 'co'
|
|
|
93
93
|
import {HttpResetClass} from "vue-client";
|
|
94
94
|
|
|
95
95
|
let getwartermakr = async function (self) {
|
|
96
|
-
let
|
|
97
|
-
tablename: 't_singlevalue',
|
|
98
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
99
|
-
};
|
|
100
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
96
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
101
97
|
if (result && result.data.length > 0) {
|
|
102
98
|
self.showwatermakeflag = true;
|
|
103
99
|
createWaterMark(result.data[0].value);
|
|
@@ -241,10 +237,7 @@ export default {
|
|
|
241
237
|
this.OrderDaiBan = ''
|
|
242
238
|
this.AppDaiBan = ''
|
|
243
239
|
let http = new HttpResetClass()
|
|
244
|
-
await http.load('POST', '/rs/sql/
|
|
245
|
-
tablename:'t_order_center',
|
|
246
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
247
|
-
}}, {
|
|
240
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
248
241
|
resolveMsg: null,
|
|
249
242
|
rejectMsg: null
|
|
250
243
|
}).then((res) => {
|
|
@@ -273,8 +273,7 @@ export default {
|
|
|
273
273
|
// this.$showMessage("re----" + JSON.stringify(re))
|
|
274
274
|
if (re.data.code === 200) {
|
|
275
275
|
this.showlogin = false
|
|
276
|
-
|
|
277
|
-
this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
276
|
+
this.$resetpost('rs/sql/safeUserQueryByEname', {ename: re.data.data.userName}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
278
277
|
if (res.data && res.data.length > 0) {
|
|
279
278
|
this.model.ename = res.data[0].ename
|
|
280
279
|
this.model.password = res.data[0].password
|
|
@@ -396,29 +395,28 @@ export default {
|
|
|
396
395
|
},
|
|
397
396
|
async getDaiBan(){
|
|
398
397
|
let http = new HttpResetClass()
|
|
399
|
-
let
|
|
398
|
+
let res
|
|
400
399
|
if(this.$login.f.deps!=='柠条塔'){
|
|
401
|
-
|
|
400
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQuery', {}, {
|
|
401
|
+
resolveMsg: null,
|
|
402
|
+
rejectMsg: null
|
|
403
|
+
})
|
|
402
404
|
} else {
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
406
|
-
tablename:'t_order_center',
|
|
407
|
-
condition:condition
|
|
408
|
-
}}, {
|
|
405
|
+
res = await http.load('POST', '/rs/sql/safeOrderCenterQueryBySliceArea', {f_slice_area: '柠条塔'}, {
|
|
409
406
|
resolveMsg: null,
|
|
410
407
|
rejectMsg: null
|
|
411
|
-
}).then((res) => {
|
|
412
|
-
let OrderDaiBan = {}
|
|
413
|
-
res.data.forEach(item=>{
|
|
414
|
-
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
415
|
-
OrderDaiBan[item.f_ordertype].push(item)
|
|
416
|
-
})
|
|
417
|
-
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
418
|
-
if (res.data.length> 0){
|
|
419
|
-
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
420
|
-
}
|
|
421
408
|
})
|
|
409
|
+
}
|
|
410
|
+
let OrderDaiBan = {}
|
|
411
|
+
res.data.forEach(item=>{
|
|
412
|
+
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
413
|
+
OrderDaiBan[item.f_ordertype].push(item)
|
|
414
|
+
})
|
|
415
|
+
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
416
|
+
if (res.data.length> 0){
|
|
417
|
+
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
418
|
+
}
|
|
419
|
+
},
|
|
422
420
|
let data = {
|
|
423
421
|
condition: '1 = 1',
|
|
424
422
|
data: {
|
|
@@ -174,11 +174,7 @@ import co from 'co'
|
|
|
174
174
|
import {HttpResetClass} from "vue-client";
|
|
175
175
|
|
|
176
176
|
let getwartermakr = async function (self) {
|
|
177
|
-
let
|
|
178
|
-
tablename: 't_singlevalue',
|
|
179
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
180
|
-
};
|
|
181
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
177
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
182
178
|
if (result && result.data.length > 0) {
|
|
183
179
|
self.showwatermakeflag = true;
|
|
184
180
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -327,10 +323,7 @@ export default {
|
|
|
327
323
|
this.OrderDaiBan = ''
|
|
328
324
|
this.AppDaiBan = ''
|
|
329
325
|
let http = new HttpResetClass()
|
|
330
|
-
await http.load('POST', '/rs/sql/
|
|
331
|
-
tablename:'t_order_center',
|
|
332
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
333
|
-
}}, {
|
|
326
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
334
327
|
resolveMsg: null,
|
|
335
328
|
rejectMsg: null
|
|
336
329
|
}).then((res) => {
|
|
@@ -400,12 +393,8 @@ export default {
|
|
|
400
393
|
},
|
|
401
394
|
async workorderOverRemind(){
|
|
402
395
|
if(this.functions && this.functions.f_role_name && this.functions.f_role_name.indexOf('管理员') !== -1 && this.functions.f_role_name.indexOf('管理人员') == -1){
|
|
403
|
-
let res = await new HttpResetClass().load('POST', '/rs/sql/
|
|
404
|
-
|
|
405
|
-
"items": "*",
|
|
406
|
-
"tablename": "t_organization",
|
|
407
|
-
"condition": `parentid = '${this.functions.orgid}'`
|
|
408
|
-
}
|
|
396
|
+
let res = await new HttpResetClass().load('POST', '/rs/sql/safeOrganizationQueryByParentId', {
|
|
397
|
+
parentid: this.functions.orgid
|
|
409
398
|
}, {resolveMsg: null, rejectMsg: null})
|
|
410
399
|
const f_filialeids = [this.functions.orgid]
|
|
411
400
|
for (const f of res.data) {
|
|
@@ -413,7 +402,8 @@ export default {
|
|
|
413
402
|
}
|
|
414
403
|
|
|
415
404
|
const data = {
|
|
416
|
-
|
|
405
|
+
f_filiale_ids: f_filialeids.join(','),
|
|
406
|
+
overday: 0
|
|
417
407
|
}
|
|
418
408
|
new HttpResetClass().load('POST','rs/sql/serviceDetails/n', {data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
419
409
|
if(res.data && res.data.n !== 0){
|
|
@@ -147,11 +147,7 @@ import co from 'co'
|
|
|
147
147
|
import {HttpResetClass} from "vue-client";
|
|
148
148
|
|
|
149
149
|
let getwartermakr = async function (self) {
|
|
150
|
-
let
|
|
151
|
-
tablename: 't_singlevalue',
|
|
152
|
-
condition: " 1=1 and name=\'水印内容\'"
|
|
153
|
-
};
|
|
154
|
-
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
150
|
+
let result = await self.$resetpost('rs/sql/safeWatermarkQuery', {}, {resolveMsg: null, rejectMsg: null});
|
|
155
151
|
if (result && result.data.length > 0) {
|
|
156
152
|
self.showwatermakeflag = true;
|
|
157
153
|
createWaterMark(`${result.data[0].value}${self.$login.f.ename}`);
|
|
@@ -291,10 +287,7 @@ export default {
|
|
|
291
287
|
this.OrderDaiBan = ''
|
|
292
288
|
this.AppDaiBan = ''
|
|
293
289
|
let http = new HttpResetClass()
|
|
294
|
-
await http.load('POST', '/rs/sql/
|
|
295
|
-
tablename:'t_order_center',
|
|
296
|
-
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
297
|
-
}}, {
|
|
290
|
+
await http.load('POST', '/rs/sql/safeOrderCenterQueryByOrgStr', {f_orgstr: this.$login.f.orgid}, {
|
|
298
291
|
resolveMsg: null,
|
|
299
292
|
rejectMsg: null
|
|
300
293
|
}).then((res) => {
|