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