sale-client 4.3.94 → 4.3.96
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/common/userinfo_detail/iot_detail/QueryInstruct.vue +3 -16
- package/src/plugins/GetSaleParams.js +56 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/9.3.0/checksums/checksums.lock +0 -0
- package/.gradle/9.3.0/fileChanges/last-build.bin +0 -0
- package/.gradle/9.3.0/fileHashes/fileHashes.lock +0 -0
- package/.gradle/9.3.0/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
package/package.json
CHANGED
|
@@ -330,22 +330,9 @@ export default {
|
|
|
330
330
|
this.handcental2 = true
|
|
331
331
|
this.cancelid = megrow.id
|
|
332
332
|
},
|
|
333
|
-
confirmcenta () {
|
|
334
|
-
let
|
|
335
|
-
|
|
336
|
-
f_cancel_inputtor_id: this.$login.f.id, // 撤销人id
|
|
337
|
-
f_cancel_inputtor: this.$login.f.name, // 撤销人姓名
|
|
338
|
-
f_instruct_state: '取消发送',
|
|
339
|
-
f_comments: this.cancelreason
|
|
340
|
-
}
|
|
341
|
-
let param = {
|
|
342
|
-
tablename: 't_instruct',
|
|
343
|
-
basedata: send
|
|
344
|
-
}
|
|
345
|
-
this.$resetpost('api/af-revenue/logic/iot_saveTable', param).then(() => {
|
|
346
|
-
// this.params.rows.splice(index, 1)
|
|
347
|
-
console.log('更新成功!')
|
|
348
|
-
})
|
|
333
|
+
async confirmcenta () {
|
|
334
|
+
let sql = `update t_instruct set f_cancel_inputtor = ${this.$login.f.name}, f_cancel_inputtor_id = ${this.$login.f.id},f_comments = ${this.cancelreason},f_instruct_state = '取消发送' WHERE id = ${this.cancelid}`
|
|
335
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {sql: sql}, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
|
|
349
336
|
this.handcental = false
|
|
350
337
|
this.$refs.paged.$refs.criteria.search()
|
|
351
338
|
},
|
|
@@ -176,6 +176,24 @@ let GetSaleParam = {
|
|
|
176
176
|
}, [])
|
|
177
177
|
return Array.from(new Set(result))
|
|
178
178
|
},
|
|
179
|
+
getPriceByOrgNoLow (filialeid) {
|
|
180
|
+
let result = []
|
|
181
|
+
GetSaleParam.prices.forEach((item) => {
|
|
182
|
+
if (item.f_state === '有效' && filialeid == item.f_filialeid && (item.f_islow_income == null || item.f_islow_income == 0)) {
|
|
183
|
+
let value = {
|
|
184
|
+
label: item.f_price_name,
|
|
185
|
+
value: item
|
|
186
|
+
}
|
|
187
|
+
result.push(value)
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
let hash = {}
|
|
191
|
+
result = result.reduce((item, next) => {
|
|
192
|
+
hash[next.label] ? '' : hash[next.label] = true && item.push(next)
|
|
193
|
+
return item
|
|
194
|
+
}, [])
|
|
195
|
+
return Array.from(new Set(result))
|
|
196
|
+
},
|
|
179
197
|
getOnlyPrice () {
|
|
180
198
|
// 数组去重
|
|
181
199
|
let arr = []
|
|
@@ -277,6 +295,44 @@ let GetSaleParam = {
|
|
|
277
295
|
}
|
|
278
296
|
return Array.from(new Set(result))
|
|
279
297
|
},
|
|
298
|
+
getPriceAllNoLow (object) {
|
|
299
|
+
console.log('参数。。。', object)
|
|
300
|
+
// 目前支持三个字段并都有值 f_user_type,f_gasproperties,f_price_type
|
|
301
|
+
if (!object.f_user_type || !object.f_gasproperties || !object.f_price_type) {
|
|
302
|
+
return
|
|
303
|
+
}
|
|
304
|
+
let result = []
|
|
305
|
+
|
|
306
|
+
console.log('获取价格。。。', object.filter, GetSaleParam.prices)
|
|
307
|
+
|
|
308
|
+
// 做筛选
|
|
309
|
+
if (object.filter) {
|
|
310
|
+
GetSaleParam.prices.forEach((item) => {
|
|
311
|
+
if (item.f_state === '有效' && object.f_user_type === item.f_user_type &&
|
|
312
|
+
object.f_gasproperties === item.f_gasproperties &&
|
|
313
|
+
object.f_price_type === item.f_price_type &&
|
|
314
|
+
object.filter == item.f_filialeid && (item.f_islow_income == null || item.f_islow_income == 0)) {
|
|
315
|
+
let value = {
|
|
316
|
+
label: item.f_price_name,
|
|
317
|
+
value: item
|
|
318
|
+
}
|
|
319
|
+
result.push(value)
|
|
320
|
+
}
|
|
321
|
+
})
|
|
322
|
+
} else {
|
|
323
|
+
GetSaleParam.prices.forEach((item) => {
|
|
324
|
+
if (item.f_state === '有效' && object.f_user_type === item.f_user_type && object.f_gasproperties === item.f_gasproperties && object.f_price_type === item.f_price_type && (item.f_islow_income == null || item.f_islow_income == 0)) {
|
|
325
|
+
let value = {
|
|
326
|
+
label: item.f_price_name,
|
|
327
|
+
value: item
|
|
328
|
+
}
|
|
329
|
+
console.log('进来了1111')
|
|
330
|
+
result.push(value)
|
|
331
|
+
}
|
|
332
|
+
})
|
|
333
|
+
}
|
|
334
|
+
return Array.from(new Set(result))
|
|
335
|
+
},
|
|
280
336
|
getPriceAllOther (object) {
|
|
281
337
|
console.log('参数。。。', object)
|
|
282
338
|
// 目前支持三个字段并都有值 f_user_type,f_gasproperties,f_price_type
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|