shish hai 1 día
pai
achega
6768d535ea
Modificáronse 2 ficheiros con 33 adicións e 4 borrados
  1. 17 3
      ghsApp/src/pagesArrears/details.vue
  2. 16 1
      ghsApp/src/pagesGys/details.vue

+ 17 - 3
ghsApp/src/pagesArrears/details.vue

@@ -178,9 +178,23 @@ export default {
 		createOrder(){
 			let that = this
 			let price = parseFloat(that.modifyPrice)
-			that.$util.confirmModal({content:'总金额'+price+'元,确认提交?'},() => {
-				that.confirmData()
-			})
+			// 分页默认 100 条,全选只勾当前页;已选刚好 100 且总单更多时先提醒,避免漏单
+			const selectedNum = that.selectList.length
+			const totalNum = parseInt(that.debtTotalNum, 10) || 0
+			const submitConfirm = () => {
+				that.$util.confirmModal({content:'总金额'+price+'元,确认提交?'},() => {
+					that.confirmData()
+				})
+			}
+			if (selectedNum === 100 && totalNum > 100) {
+				that.$util.confirmModal({
+					content: '总共有' + totalNum + '单,确认只勾选100单?'
+				}, () => {
+					submitConfirm()
+				})
+				return
+			}
+			submitConfirm()
 		},
 		payWayChange(e){
 			let index = e.detail.value

+ 16 - 1
ghsApp/src/pagesGys/details.vue

@@ -236,7 +236,22 @@ export default {
 				this.$msg("请选择订单");
 				return;
 			}
-			this.showClearModel = true;
+			const that = this
+			// 分页默认 100 条,全选只勾当前页;已选刚好 100 且总单更多时先提醒,避免漏单
+			const selectedNum = that.selectList.length
+			const totalNum = parseInt(that.debtTotalNum, 10) || 0
+			const openClearModel = () => {
+				that.showClearModel = true
+			}
+			if (selectedNum === 100 && totalNum > 100) {
+				that.$util.confirmModal({
+					content: '总共有' + totalNum + '单,确认只勾选100单?'
+				}, () => {
+					openClearModel()
+				})
+				return
+			}
+			openClearModel()
 		},
 		async initData() {
 			try {