|
@@ -178,9 +178,23 @@ export default {
|
|
|
createOrder(){
|
|
createOrder(){
|
|
|
let that = this
|
|
let that = this
|
|
|
let price = parseFloat(that.modifyPrice)
|
|
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){
|
|
payWayChange(e){
|
|
|
let index = e.detail.value
|
|
let index = e.detail.value
|