fix: 优化table宽度以及二次确认提交
This commit is contained in:
parent
b14333bfd1
commit
7106c23be8
@ -57,10 +57,10 @@
|
||||
>
|
||||
<uni-tr>
|
||||
<uni-th align="center" width="50">序号</uni-th>
|
||||
<uni-th align="center">商业公司</uni-th>
|
||||
<uni-th align="center">货主</uni-th>
|
||||
<uni-th align="center">合同编号</uni-th>
|
||||
<uni-th align="center">订单金额</uni-th>
|
||||
<uni-th align="center" width="60">商业公司</uni-th>
|
||||
<uni-th align="center" width="50">货主</uni-th>
|
||||
<uni-th align="center" width="60">合同编号</uni-th>
|
||||
<uni-th align="center" width="60">订单金额</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item, index) in tableData" :key="index">
|
||||
<uni-td align="center">{{ index + 1 }}</uni-td>
|
||||
@ -130,6 +130,7 @@ const handleQuery = async () => {
|
||||
|
||||
const selected = ref([])
|
||||
const totalMoney = ref(0)
|
||||
const popup = ref()
|
||||
// const handleSelect = (payload) => {
|
||||
// const {checked, data} = payload
|
||||
// const id = data.saleid
|
||||
@ -155,7 +156,14 @@ onMounted(async () => {
|
||||
|
||||
|
||||
const handleBack = async () => {
|
||||
submitLoading.value = true
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '是否要进行回退?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
await Promise.allSettled(
|
||||
selected.value.map(id =>
|
||||
managerRefuse({
|
||||
@ -167,11 +175,35 @@ const handleBack = async () => {
|
||||
selected.value = []
|
||||
totalMoney.value = 0
|
||||
await handleQuery()
|
||||
submitLoading.value = false
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.hideLoading()
|
||||
} else if (res.cancel) {
|
||||
uni.showToast({
|
||||
title: '用户取消操作',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const handleSubmit = async () => {
|
||||
submitLoading.value = true
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '是否要进行审核?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await Promise.allSettled(
|
||||
selected.value.map(id =>
|
||||
managerConfirm({
|
||||
@ -183,7 +215,23 @@ const handleSubmit = async () => {
|
||||
selected.value = []
|
||||
totalMoney.value = 0
|
||||
await handleQuery()
|
||||
submitLoading.value = false
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.hideLoading()
|
||||
} else if (res.cancel) {
|
||||
uni.showToast({
|
||||
title: '用户取消操作',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
const selectionChange = (payload) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user