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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.3.94",
3
+ "version": "4.3.96",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -330,22 +330,9 @@ export default {
330
330
  this.handcental2 = true
331
331
  this.cancelid = megrow.id
332
332
  },
333
- confirmcenta () {
334
- let send = {
335
- id: this.cancelid, // 当前记录ID
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
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Wed May 13 15:19:48 CST 2026
2
- gradle.version=5.2.1
File without changes