sale-client 4.2.15 → 4.2.17
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/file-system.probe +0 -0
- package/build/dev-server.js +2 -5
- package/package.json +1 -1
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +2 -2
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -394
- package/src/filiale/tonghua/CardList.vue +578 -0
- package/src/filiale/tonghua/sale.js +6 -0
- package/src/filiale/yuncheng/IndustryCommerceHand.vue +68 -2
- package/src/main.js +1 -1
|
@@ -38,6 +38,13 @@
|
|
|
38
38
|
</button>
|
|
39
39
|
<button class="button_search button_spacing" @click="$parent.$parent.search()">查询</button>
|
|
40
40
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
41
|
+
<button
|
|
42
|
+
class="btn btn-danger button_spacing"
|
|
43
|
+
v-if="$parent.$parent.deletestate"
|
|
44
|
+
@click="$parent.$parent.batchDelete()"
|
|
45
|
+
:disabled="!$parent.$parent.hasSelectedItems">
|
|
46
|
+
批量删除
|
|
47
|
+
</button>
|
|
41
48
|
<export-excel
|
|
42
49
|
:data="$parent.$parent.getCondition"
|
|
43
50
|
:field="$parent.$parent.getfield"
|
|
@@ -184,7 +191,7 @@
|
|
|
184
191
|
</div>
|
|
185
192
|
</div>
|
|
186
193
|
</criteria>
|
|
187
|
-
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="hand_manager_grid">
|
|
194
|
+
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid id="hand_manager_grid" :optional="true">
|
|
188
195
|
<template partial='head'>
|
|
189
196
|
<tr>
|
|
190
197
|
<th>
|
|
@@ -513,6 +520,9 @@ export default {
|
|
|
513
520
|
|
|
514
521
|
plans: [], // 记录当前行是否被勾选
|
|
515
522
|
all: false, // 是否全选
|
|
523
|
+
rowsdata: [], // 选中的行数据
|
|
524
|
+
radio: [], // 单选状态
|
|
525
|
+
checkAll: [], // 全选状态
|
|
516
526
|
show: false, // 下发日期模态框显示
|
|
517
527
|
unhandplan: [], // 之前是否有未抄表记录
|
|
518
528
|
downConfirm: false, // 下发若有未抄记录,确认框
|
|
@@ -776,6 +786,15 @@ export default {
|
|
|
776
786
|
search () {
|
|
777
787
|
// 查询前清空选择项
|
|
778
788
|
this.plans = []
|
|
789
|
+
this.rowsdata = []
|
|
790
|
+
this.radio = []
|
|
791
|
+
this.checkAll = []
|
|
792
|
+
|
|
793
|
+
// 重置DataGrid的选择状态
|
|
794
|
+
if (this.$refs.paged && this.$refs.paged.$refs.grid && this.$refs.paged.$refs.grid.selectInit) {
|
|
795
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
796
|
+
}
|
|
797
|
+
|
|
779
798
|
this.$refs.paged.$refs.criteria.search()
|
|
780
799
|
},
|
|
781
800
|
selfSearch (args) {
|
|
@@ -828,7 +847,9 @@ export default {
|
|
|
828
847
|
this.model.params.endDate = this.$refs.paged.$refs.criteria.model.endDate
|
|
829
848
|
this.condition2 = args.condition
|
|
830
849
|
console.log('selfsearch..', args.condition, this.model)
|
|
831
|
-
this.model.search(args.condition, this.model)
|
|
850
|
+
this.model.search(args.condition, this.model).then(() => {
|
|
851
|
+
// 查询完成后的处理
|
|
852
|
+
})
|
|
832
853
|
},
|
|
833
854
|
reflash () {
|
|
834
855
|
this.$refs.paged.$refs.criteria.model.f_orgid = `${Vue.$login.f.orgid}`
|
|
@@ -1027,6 +1048,51 @@ export default {
|
|
|
1027
1048
|
this.model.paramSource.orderitem = `'${field} ${rule}'`
|
|
1028
1049
|
}
|
|
1029
1050
|
this.search()
|
|
1051
|
+
},
|
|
1052
|
+
hasSelectedItems () {
|
|
1053
|
+
return (this.$refs.paged && this.$refs.paged.$refs.grid && this.$refs.paged.$refs.grid.getRowData)
|
|
1054
|
+
? this.$refs.paged.$refs.grid.getRowData().length > 0
|
|
1055
|
+
: false
|
|
1056
|
+
},
|
|
1057
|
+
async batchDelete () {
|
|
1058
|
+
const selectedRows = (this.$refs.paged && this.$refs.paged.$refs.grid && this.$refs.paged.$refs.grid.getRowData)
|
|
1059
|
+
? this.$refs.paged.$refs.grid.getRowData()
|
|
1060
|
+
: []
|
|
1061
|
+
|
|
1062
|
+
if (selectedRows.length === 0) {
|
|
1063
|
+
this.$showAlert('请选择要删除的记录', 'warning', 2000)
|
|
1064
|
+
return
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
const nonDeletableRows = selectedRows.filter(row => row.f_meter_state !== '未抄表')
|
|
1068
|
+
|
|
1069
|
+
if (nonDeletableRows.length > 0) {
|
|
1070
|
+
this.$showAlert('只能删除未抄表状态的记录', 'warning', 3000)
|
|
1071
|
+
return
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
const confirmRes = await this.$showMessage(`当前选中 ${selectedRows.length} 条记录,确认批量删除吗?`, ['confirm', 'cancel'])
|
|
1075
|
+
if (confirmRes !== 'confirm') {
|
|
1076
|
+
return
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
try {
|
|
1080
|
+
const selectedIds = selectedRows.map(row => row.id)
|
|
1081
|
+
const sql = `update t_yccustom_handplan set f_hand_state = '无效' where id in (${selectedIds.map(id => `'${id}'`).join(',')})`
|
|
1082
|
+
|
|
1083
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', { sql: sql })
|
|
1084
|
+
this.$showAlert(`成功删除 ${selectedRows.length} 条记录`, 'success', 2000)
|
|
1085
|
+
|
|
1086
|
+
// 重置DataGrid的选择状态
|
|
1087
|
+
if (this.$refs.paged && this.$refs.paged.$refs.grid && this.$refs.paged.$refs.grid.selectInit) {
|
|
1088
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
// 直接刷新数据,让界面状态完全重置
|
|
1092
|
+
this.search()
|
|
1093
|
+
} catch (error) {
|
|
1094
|
+
this.$showAlert('批量删除失败:' + error.message, 'danger', 3000)
|
|
1095
|
+
}
|
|
1030
1096
|
}
|
|
1031
1097
|
},
|
|
1032
1098
|
watch: {
|
package/src/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|
|
2
2
|
import all from 'vue-client/src/all'
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
|
-
import FilialeSale from './filiale/
|
|
5
|
+
import FilialeSale from './filiale/tonghua/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|