|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<BasicModal
|
|
|
|
|
v-bind="$attrs"
|
|
|
|
|
:use-wrapper="true"
|
|
|
|
|
title="箱状态批量维护"
|
|
|
|
|
title="租箱月结账单维护"
|
|
|
|
|
width="55%"
|
|
|
|
|
@register="registerModal"
|
|
|
|
|
@ok="handleSave"
|
|
|
|
@ -47,20 +47,14 @@
|
|
|
|
|
<!-- <BasicForm class="Form" @register="registerSearchBoxForm" :disabledDate="disabledDate" /> -->
|
|
|
|
|
<div class="ButtonBox">
|
|
|
|
|
<!-- <a-button size="default" @click="handleReset" :disabled="!rowId"> 重置 </a-button> -->
|
|
|
|
|
<a-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="default"
|
|
|
|
|
class="mt-4"
|
|
|
|
|
@click="GetViewListDetail(null)"
|
|
|
|
|
:disabled="!rowId"
|
|
|
|
|
>
|
|
|
|
|
<a-button type="primary" size="default" class="mt-4" @click="GetViewListDetail(null)">
|
|
|
|
|
查询
|
|
|
|
|
</a-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="HotTable">
|
|
|
|
|
<div>
|
|
|
|
|
<a-button type="link" @click="ViewTableAdd" class="pl0" :disabled="!rowId">
|
|
|
|
|
<a-button type="link" @click="ViewTableAdd" class="pl0">
|
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
|
加入账单
|
|
|
|
|
</a-button>
|
|
|
|
@ -292,10 +286,8 @@
|
|
|
|
|
queryCondition: JSON.stringify(queryCondition),
|
|
|
|
|
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
// Viewlist.value.splice(0)
|
|
|
|
|
// res.data.forEach((item) => {
|
|
|
|
|
// Viewlist.value.push(item)
|
|
|
|
|
// })
|
|
|
|
|
ViewlallCheck.value = false
|
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
|
Viewlist.value.splice(0)
|
|
|
|
|
let Arr = ['feeStartDate', 'dropoffDate', 'billEndDate', 'bsdate']
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
@ -533,7 +525,7 @@
|
|
|
|
|
{
|
|
|
|
|
title: '收付方向',
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'ctnReleaseNo',
|
|
|
|
|
data: 'feetype',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '币别',
|
|
|
|
@ -863,31 +855,36 @@
|
|
|
|
|
GetViewListDetail(null)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ViewTableAdd() {
|
|
|
|
|
let ApiData: any = { id: rowId.value, ids: [] }
|
|
|
|
|
Viewlist.value.forEach((e: any, i) => {
|
|
|
|
|
if (e.selected) {
|
|
|
|
|
ApiData.ids.push(e.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(ApiData.ids)
|
|
|
|
|
if (ApiData.ids.length) {
|
|
|
|
|
ApiAddCtn(ApiData).then(async (res) => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
const res: API.DataResult = await ApiInfo({ id: unref(rowId) })
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
allCheck.value = false
|
|
|
|
|
someCheck.value = false
|
|
|
|
|
ViewlallCheck.value = false
|
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
|
GetListDetail()
|
|
|
|
|
resetSearchBoxFields()
|
|
|
|
|
GetViewListDetail(null)
|
|
|
|
|
}
|
|
|
|
|
// getData(false)
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
async function ViewTableAdd() {
|
|
|
|
|
if (rowId.value) {
|
|
|
|
|
let ApiData: any = { id: rowId.value, ids: [] }
|
|
|
|
|
Viewlist.value.forEach((e: any, i) => {
|
|
|
|
|
if (e.selected) {
|
|
|
|
|
ApiData.ids.push(e.id)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(ApiData.ids)
|
|
|
|
|
if (ApiData.ids.length) {
|
|
|
|
|
ApiAddCtn(ApiData).then(async (res) => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
const res: API.DataResult = await ApiInfo({ id: unref(rowId) })
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
allCheck.value = false
|
|
|
|
|
someCheck.value = false
|
|
|
|
|
ViewlallCheck.value = false
|
|
|
|
|
ViewlsomeCheck.value = false
|
|
|
|
|
GetListDetail()
|
|
|
|
|
resetSearchBoxFields()
|
|
|
|
|
GetViewListDetail(null)
|
|
|
|
|
}
|
|
|
|
|
// getData(false)
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
await handleSave(false)
|
|
|
|
|
ViewTableAdd()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//--------------------------------------- tab2 ---------------------------------------
|
|
|
|
|