szh-new
张同海 4 months ago
parent 5c4ab09a5a
commit f334290fe8

@ -16,7 +16,7 @@
撤销锁定
</a-button>
</div>
<a-button v-repeat type="link" @click="addDetail">
<a-button v-repeat type="link" @click="GoDetailed">
<span class="iconfont icon-new_document"></span>
新建
</a-button>
@ -49,6 +49,10 @@
>
<template #tableTitle>
<p class="tableTitle">账单明细</p>
<a-button v-repeat type="link" @click="addDetail">
<span class="iconfont icon-new_document"></span>
新增账单明细
</a-button>
<a-popconfirm
title="确定删除选中数据?"
ok-text="是"
@ -60,12 +64,21 @@
删除账单明细
</a-button>
</a-popconfirm>
<a-button v-repeat type="link" @click="waitFor">
<a-button v-repeat type="link" @click="OpenFileModel">
<span class="iconfont icon-fujian"></span>
附件管理
</a-button>
</template>
</BasicTable>
<div class="totalBox">
<span class="Ttitle">合计</span>
<div class="unitBox">
<div v-for="item in calcColumns" :key="item.dataIndex" class="unit">
<span class="title">{{ item.title }}:</span>
<span class="num">{{ Ldata[item.dataIndex] }}</span>
</div>
</div>
</div>
</a-spin>
</div>
<div class="bottomTableR">
@ -89,6 +102,20 @@
</a-spin>
</div>
</div>
<BasicModal v-bind="$attrs" width="80%" @register="registerFileModel" title="附件管理">
<BasicTable class="ds-table" @register="registerTableFile">
<template #tableTitle>
<a-button v-repeat type="link" @click="Lock">
<span class="iconfont icon-shanchu2"></span>
删除
</a-button>
<a-button v-repeat type="link" @click="OpenFileModal">
<span class="iconfont icon-shiyongwendang"></span>
上传附件
</a-button>
</template>
</BasicTable>
</BasicModal>
<!-- </a-col>
<a-col :span="24" class="bottomTableR"> -->
@ -96,20 +123,7 @@
</a-row> -->
<!-- </a-tab-pane>
<a-tab-pane key="2" tab="附件">
<BasicTable class="ds-table" @register="registerTableFile">
<template #toolbar>
<div class="buttonGroup">
<div>
<i class="iconfont icon-shanchu2"></i>
删除
</div>
<div @click="OpenFileModal">
<i class="iconfont icon-shiyongwendang"></i>
上传附件
</div>
</div>
</template>
</BasicTable>
</a-tab-pane>
</a-tabs> -->
<Info
@ -135,6 +149,8 @@
import { BasicForm, useForm } from '/@/components/Form/index'
import { BasicTable, useTable } from '/@/components/Table'
import { BasicModal, useModal } from '/@/components/Modal'
import { useGo } from '/@/hooks/web/usePage'
const go = useGo()
import Info from './info/index.vue'
import ShowData from './showData/index.vue'
import { columnsL, columnsR, columnsFile, schemas, schemasFile } from './detailColumns'
@ -154,6 +170,7 @@
const spinningL = ref(false)
const spinningT = ref(false)
init()
const Ldata = ref({})
function init() {
if (id.value) {
spinningL.value = true
@ -171,7 +188,8 @@
spinningT.value = false
})
GetCheckBillBusinessList(ApiData).then((res) => {
setTableDataL(res.data)
setTableDataL(res.data.list)
Ldata.value = res.data.dataTotal
console.log(res, '左侧列表数据')
spinningL.value = false
})
@ -231,6 +249,89 @@
setTableDataR([])
}
}
//
const calcColumns = [
{
title: '应收RMB',
dataIndex: 'rmbdr',
},
// {
// title: 'RBM',
// dataIndex: 'rmbcr',
// },
{
title: '应收USD',
dataIndex: 'usddr',
},
// {
// title: 'USD',
// dataIndex: 'usdcr',
// },
{
title: '未收RMB',
dataIndex: 'balrmbdr',
},
// {
// title: 'RMB',
// dataIndex: 'balrmbcr',
// },
{
title: '未收USD',
dataIndex: 'balusddr',
},
// {
// title: 'USD',
// dataIndex: 'balusdcr',
// },
// {
// title: '',
// dataIndex: 'otherDR',
// },
// {
// title: '',
// dataIndex: 'otherCR',
// },
// {
// title: '',
// dataIndex: 'balOtherDR',
// },
// {
// title: '',
// dataIndex: 'balOtherCR',
// },
// {
// title: 'TTL',
// dataIndex: 'ttldr',
// },
// {
// title: 'TTL',
// dataIndex: 'ttlcr',
// },
// {
// title: 'TTL',
// dataIndex: 'balttldr',
// },
// {
// title: 'TTL',
// dataIndex: 'balttlcr',
// },
{
title: '开票RMB应收',
dataIndex: 'orderInvoiceRMBDR',
},
{
title: '开票USD应收',
dataIndex: 'orderInvoiceUSDDR',
},
{
title: '订单金额RMB应付',
dataIndex: 'orderAmountRMBCR',
},
{
title: '订单金额USD应付',
dataIndex: 'orderAmountUSDCR',
},
]
//
const [registerTableR, { getSelectRows: getSelectRowsR, setTableData: setTableDataR }] = useTable(
{
@ -267,6 +368,10 @@
function addDetail() {
openModalAdd(true, {})
}
//
function GoDetailed() {
go(`/CustomerReconciliationDetails`)
}
//
function DelDetailL() {
// businessId
@ -315,8 +420,14 @@
function RowClick() {
openModalEdit(true)
}
//
const [registerFile, { openModal: openModalFile }] = useModal()
//
const [registerFileModel, { openModal: openModalFileModel }] = useModal()
function OpenFileModel() {
openModalFileModel(true)
}
//
function OpenFileModal() {
openModalFile(true)
@ -462,6 +573,43 @@
height: calc(100vh - 535px);
border: 1px solid #e8ebed;
margin-bottom: 10px;
position: relative;
.totalBox {
position: absolute;
margin-left: 5px;
bottom: 0;
width: 80%;
display: flex;
font-size: 12px;
font-weight: 400;
line-height: 15.84px;
.Ttitle {
}
.unitBox {
flex: 1;
display: flex;
flex-wrap: wrap;
.unit {
width: 150px;
height: 20px;
margin: 0 6px 5px 0;
padding: 2px 6px;
box-sizing: border-box;
border-radius: 2px;
background: rgba(245, 249, 252, 1);
display: flex;
.title {
color: rgba(51, 56, 61, 1);
text-align: left;
}
.num {
flex: 1;
color: rgba(37, 122, 250, 1);
text-align: right;
}
}
}
}
}
.bottomTableR {
height: calc(100vh - 600px);

@ -1,62 +1,69 @@
<template>
<div>
<BasicTable
class="ds-table"
@register="registerTable"
@row-dbClick="
(e) => {
GoDetailed(true, e)
}
"
>
<template #tableTitle>
<div class="buttonGroup">
<a-button v-repeat type="link" @click="Lock">
<span class="iconfont icon-locksuo IconColor"></span>
锁定
</a-button>
<a-button v-repeat type="link" @click="UnLock">
<span class="iconfont icon-lock-openkaisuo IconColor"></span>
撤销锁定
</a-button>
<a-button v-repeat type="link" @click="ExportExcel">
<span class="iconfont icon-weibiaoti--"></span>
EXCEL导出
<div class="topTable">
<BasicTable
class="ds-table"
@register="registerTable"
@row-dbClick="
(e) => {
GoDetailed(true, e)
}
"
>
<template #tableTitle>
<div class="buttonGroup">
<a-button v-repeat type="link" @click="Lock">
<span class="iconfont icon-locksuo IconColor"></span>
锁定
</a-button>
<a-button v-repeat type="link" @click="UnLock">
<span class="iconfont icon-lock-openkaisuo IconColor"></span>
撤销锁定
</a-button>
<a-button v-repeat type="link" @click="ExportExcel">
<span class="iconfont icon-weibiaoti--"></span>
EXCEL导出
</a-button>
</div>
</template>
<template #toolbar>
<a-button v-repeat type="link" @click="GoDetailed(false, null)">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
</div>
</template>
<template #toolbar>
<a-button v-repeat type="link" @click="GoDetailed(false, null)">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-popconfirm title="确定删除当前选中数据?" ok-text="" cancel-text="" @confirm="FnDel">
<a-button type="link">
<span class="iconfont icon-shanchu21"></span>
删除
<a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"
cancel-text="否"
@confirm="FnDel"
>
<a-button type="link">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
</a-popconfirm>
<a-button v-repeat type="link" @click="printFee">
<span class="iconfont icon-xiaopiaodayin"></span>
打印
</a-button>
</a-popconfirm>
<a-button v-repeat type="link" @click="printFee">
<span class="iconfont icon-xiaopiaodayin"></span>
打印
</a-button>
</template>
<template v-slot:bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
tooltip: '编辑',
onClick: () => {
GoDetailed(true, record)
</template>
<template v-slot:bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
tooltip: '编辑',
onClick: () => {
GoDetailed(true, record)
},
},
},
]"
/>
]"
/>
</template>
</template>
</template>
</BasicTable>
</BasicTable>
</div>
<!-- 合计 -->
<div>
<a-table
@ -92,13 +99,13 @@
const res: API.DataResult = await GetCheckBillList(p)
calcData.value = [res.data?.dataTotal]
return new Promise((resolve) => {
if (res?.data) {
const ids = res.data.map((item) => {
if (res.data?.list) {
const ids = res.data.list.map((item) => {
return item.id
})
appStore.setIds(ids, 'khdz')
}
resolve({ data: [...res.data], total: res.count })
resolve({ data: [...res.data.list], total: res.count })
})
},
//
@ -157,7 +164,7 @@
width: 60,
},
canResize: true,
resizeHeightOffset: 80,
resizeHeightOffset: 90,
immediate: true,
actionColumn: {
width: 80,
@ -275,65 +282,110 @@
const calcColumns = [
{
title: '应收RMB',
dataIndex: 'mainCount',
dataIndex: 'rmbdr',
width: 110,
},
{
title: '未收RMB',
dataIndex: 'mainCount',
title: '应付RBM',
dataIndex: 'rmbcr',
width: 110,
},
{
title: '应收USD',
dataIndex: 'mainCount',
dataIndex: 'usddr',
width: 110,
},
{
title: '应付USD',
dataIndex: 'usdcr',
width: 110,
},
{
title: '未收RMB',
dataIndex: 'balrmbdr',
width: 110,
},
{
title: '未付RMB',
dataIndex: 'balrmbcr',
width: 110,
},
{
title: '未收USD',
dataIndex: 'mainCount',
dataIndex: 'balusddr',
width: 110,
},
{
title: '应收其他币别',
dataIndex: 'mainCount',
title: '未付USD',
dataIndex: 'balusdcr',
width: 110,
},
{
title: '未收其他币别',
dataIndex: 'mainCount',
title: '其他应收',
dataIndex: 'otherDR',
width: 110,
},
{
title: '应付RMB',
dataIndex: 'mainCount',
title: '其他应付',
dataIndex: 'otherCR',
width: 110,
},
{
title: '未付RMB',
dataIndex: 'mainCount',
title: '其他未收',
dataIndex: 'balOtherDR',
width: 110,
},
{
title: '应付USD',
dataIndex: 'mainCount',
title: '其他未付',
dataIndex: 'balOtherCR',
width: 110,
},
{
title: '未付USD',
dataIndex: 'mainCount',
title: 'TTL应收',
dataIndex: 'ttldr',
width: 110,
},
{
title: 'TTL应付',
dataIndex: 'ttlcr',
width: 110,
},
{
title: '应付其他币别',
dataIndex: 'mainCount',
title: 'TTL未收',
dataIndex: 'balttldr',
width: 110,
},
{
title: '未付其他币别',
dataIndex: 'mainCount',
title: 'TTL未付',
dataIndex: 'balttlcr',
width: 110,
},
{
title: '开票RMB应收',
dataIndex: 'orderInvoiceRMBDR',
width: 160,
},
{
title: '开票USD应收',
dataIndex: 'orderInvoiceUSDDR',
width: 160,
},
{
title: '订单金额RMB应付',
dataIndex: 'orderAmountRMBCR',
width: 210,
},
{
title: '订单金额USD应付',
dataIndex: 'orderAmountUSDCR',
width: 210,
},
]
//
const calcData = ref([])
</script>
<style lang="less" scoped>
.topTable {
height: calc(100vh - 145px);
}
</style>

@ -594,7 +594,7 @@ export function GetShippingBillTemplateSelectList(parameter) {
//获取国家信息下拉列表-客户端 (Auth)
export function GetClientCountrySelectList(parameter) {
return request({
url: '/mainApi/Common/GetClientCountrySelectList',
url: '/mainApi/Common/GetCountrySelectList',
method: 'get',
params: parameter,
})

@ -1436,201 +1436,201 @@
checkboxOption.value.selectedRowKeys = keys
}
function importYarn() {
notification.warning({ message: '功能开发中...', duration: 3 })
// if (!props.details.id) {
// notification.error({ message: '', duration: 3 })
// return false
// }
// YarnLoading.value = true
// GetYardData({
// id: props.details.id,
// isWeb: false,
// })
// .then((res) => {
// if (res.succeeded) {
// const data = JSON.parse(res.data)
// console.log(data)
// // const addTable: any[] = []
// // const kindpkgsOld = list.value[0] ? list.value[0].kindPkgs : ''
// // list.value = []
// // const lastNum =
// // list.value.length > 0 ? Number(list.value[list.value.length - 1].rowKey) + 1 : 0
// // data.map((item, index) => {
// // const _data = {
// // rowKey: lastNum + index,
// // ctnall: item.CTNALL,
// // ctnnum: '1',
// // cntrno: item.CNTRNO,
// // sealno: item.SEALNO,
// // ctncode: item.CtnCode,
// // pkgs: item.PKGS,
// // kindpkgs: kindpkgsOld || item.KINDPKGS,
// // kgs: item.KGS,
// // cbm: item.CBM,
// // tareweight: item.TAREWEIGHT,
// // weightype: '',
// // weighkgs: '',
// // weighdate: item.WEIGHDATE,
// // }
// // addTable.push(_data)
// // })
// notification.warning({ message: '...', duration: 3 })
if (!props.details.id) {
notification.error({ message: '请先保存订舱信息', duration: 3 })
return false
}
YarnLoading.value = true
GetYardData({
id: props.details.id,
isWeb: false,
})
.then((res) => {
if (res.succeeded) {
const data = JSON.parse(res.data)
console.log(data)
// const addTable: any[] = []
// const kindpkgsOld = list.value[0] ? list.value[0].kindPkgs : ''
// list.value = []
// const lastNum =
// list.value.length > 0 ? Number(list.value[list.value.length - 1].rowKey) + 1 : 0
// data.map((item, index) => {
// const _data = {
// rowKey: lastNum + index,
// ctnall: item.CTNALL,
// ctnnum: '1',
// cntrno: item.CNTRNO,
// sealno: item.SEALNO,
// ctncode: item.CtnCode,
// pkgs: item.PKGS,
// kindpkgs: kindpkgsOld || item.KINDPKGS,
// kgs: item.KGS,
// cbm: item.CBM,
// tareweight: item.TAREWEIGHT,
// weightype: '',
// weighkgs: '',
// weighdate: item.WEIGHDATE,
// }
// addTable.push(_data)
// })
// // tableData.value = [...tableData.value, ...addTable]
// // that.$forceUpdate()
// } else {
// notification.error({ message: res.message, duration: 3 })
// }
// YarnLoading.value = false
// })
// .catch((err) => {
// YarnLoading.value = false
// })
// tableData.value = [...tableData.value, ...addTable]
// that.$forceUpdate()
} else {
notification.error({ message: res.message, duration: 3 })
}
YarnLoading.value = false
})
.catch((err) => {
YarnLoading.value = false
})
}
function importsealno() {
notification.warning({ message: '功能开发中...', duration: 3 })
// sealnoLoading.value = true
// GetYardData({
// id: props.details.id,
// isWeb: false,
// })
// .then((res) => {
// if (res.succeeded) {
// let type = true
// tableData.value.forEach((item) => {
// if (item.sealno || item.cntrno) {
// notification.error({ message: '', duration: 3 })
// type = false
// }
// })
// if (type) {
// const data = JSON.parse(res.data)
// if (data.length == tableData.value.length) {
// data.forEach((item, index) => {
// tableData.value[index].sealno = item.SEALNO
// tableData.value[index].cntrno = item.CNTRNO
// tableData.value[index].ctnnum = 1
// })
// const map = {}
// const dest: any[] = []
// for (var i = 0; i < tableData.value.length; i++) {
// var ai = tableData.value[i]
// if (!map[ai.ctnall]) {
// dest.push({
// ctnall: ai.ctnall,
// ctnnum: ai.ctnnum,
// })
// map[ai.ctnall] = ai
// } else {
// for (var j = 0; j < dest.length; j++) {
// var dj = dest[j]
// if (dj.ctnall == ai.ctnall) {
// dj.ctnnum = (parseFloat(dj.ctnnum) + parseFloat(ai.ctnnum)).toString()
// break
// }
// }
// }
// }
// changeEmit1(dest)
// } else {
// notification.error({ message: '', duration: 3 })
// }
// }
// } else {
// notification.error({ message: res.message, duration: 3 })
// }
// sealnoLoading.value = false
// })
// .catch((err) => {
// sealnoLoading.value = false
// })
// notification.warning({ message: '...', duration: 3 })
sealnoLoading.value = true
GetYardData({
id: props.details.id,
isWeb: false,
})
.then((res) => {
if (res.succeeded) {
let type = true
tableData.value.forEach((item) => {
if (item.sealno || item.cntrno) {
notification.error({ message: '请清空所有箱封号后再引入', duration: 3 })
type = false
}
})
if (type) {
const data = JSON.parse(res.data)
if (data.length == tableData.value.length) {
data.forEach((item, index) => {
tableData.value[index].sealno = item.SEALNO
tableData.value[index].cntrno = item.CNTRNO
tableData.value[index].ctnnum = 1
})
const map = {}
const dest: any[] = []
for (var i = 0; i < tableData.value.length; i++) {
var ai = tableData.value[i]
if (!map[ai.ctnall]) {
dest.push({
ctnall: ai.ctnall,
ctnnum: ai.ctnnum,
})
map[ai.ctnall] = ai
} else {
for (var j = 0; j < dest.length; j++) {
var dj = dest[j]
if (dj.ctnall == ai.ctnall) {
dj.ctnnum = (parseFloat(dj.ctnnum) + parseFloat(ai.ctnnum)).toString()
break
}
}
}
}
changeEmit1(dest)
} else {
notification.error({ message: '箱量与场站不一致', duration: 3 })
}
}
} else {
notification.error({ message: res.message, duration: 3 })
}
sealnoLoading.value = false
})
.catch((err) => {
sealnoLoading.value = false
})
}
function importWeight() {
notification.warning({ message: '功能开发中...', duration: 3 })
// if (!props.details.id) {
// notification.error({ message: '', duration: 3 })
// return false
// }
// WeightLoading.value = true
// GetYardData({
// id: props.details.id,
// isWeb: false,
// })
// .then((res) => {
// if (res.succeeded) {
// const data = JSON.parse(res.data)
// const addTable: any[] = []
// const cntrnoArr: any[] = []
// tableData.value.map((item: any, index) => {
// if (!item.cntrno) {
// // delete tableData.value[index]
// tableData.value.splice(index, 1)
// } else {
// cntrnoArr.push(item.cntrno)
// }
// })
// for (let i = tableData.value.length - 1; i >= 0; i--) {
// if (!tableData.value[i].cntrno) {
// tableData.value.splice(i, 1)
// } else {
// cntrnoArr.push(tableData.value[i].cntrno)
// }
// }
// const lastNum =
// tableData.value.length > 0
// ? Number(tableData.value[tableData.value.length - 1].rowKey) + 1
// : 0
// data.map((item, index) => {
// if (cntrnoArr.includes(item.CNTRNO)) {
// const setWeighkgs = calc(
// Number(tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kgs),
// Number(item.TAREWEIGHT),
// '+',
// )
// tableData.value[cntrnoArr.indexOf(item.CNTRNO)] = {
// rowKey: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].rowKey,
// ctnall: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].ctnall,
// ctnnum: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].ctnnum,
// cntrno: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].cntrno,
// sealno: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].sealno,
// pkgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].pkgs,
// kindpkgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kindpkgs,
// kgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kgs,
// cbm: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].cbm,
// tareweight: item.TAREWEIGHT,
// weightype: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].weightype,
// weighkgs: setWeighkgs,
// weighdate: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].weighdate,
// }
// } else {
// const _data = {
// rowKey: lastNum + index,
// ctnall: '',
// ctnnum: '1',
// cntrno: '',
// sealno: '',
// pkgs: '',
// kindpkgs: '',
// kgs: '',
// cbm: '',
// tareweight: item.TAREWEIGHT,
// weightype: '',
// weighkgs: '',
// weighdate: '',
// }
// addTable.push(_data)
// }
// })
// notification.warning({ message: '...', duration: 3 })
if (!props.details.id) {
notification.error({ message: '请先保存订舱信息', duration: 3 })
return false
}
WeightLoading.value = true
GetYardData({
id: props.details.id,
isWeb: false,
})
.then((res) => {
if (res.succeeded) {
const data = JSON.parse(res.data)
const addTable: any[] = []
const cntrnoArr: any[] = []
tableData.value.map((item: any, index) => {
if (!item.cntrno) {
// delete tableData.value[index]
tableData.value.splice(index, 1)
} else {
cntrnoArr.push(item.cntrno)
}
})
for (let i = tableData.value.length - 1; i >= 0; i--) {
if (!tableData.value[i].cntrno) {
tableData.value.splice(i, 1)
} else {
cntrnoArr.push(tableData.value[i].cntrno)
}
}
const lastNum =
tableData.value.length > 0
? Number(tableData.value[tableData.value.length - 1].rowKey) + 1
: 0
data.map((item, index) => {
if (cntrnoArr.includes(item.CNTRNO)) {
const setWeighkgs = calc(
Number(tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kgs),
Number(item.TAREWEIGHT),
'+',
)
tableData.value[cntrnoArr.indexOf(item.CNTRNO)] = {
rowKey: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].rowKey,
ctnall: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].ctnall,
ctnnum: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].ctnnum,
cntrno: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].cntrno,
sealno: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].sealno,
pkgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].pkgs,
kindpkgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kindpkgs,
kgs: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].kgs,
cbm: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].cbm,
tareweight: item.TAREWEIGHT,
weightype: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].weightype,
weighkgs: setWeighkgs,
weighdate: tableData.value[cntrnoArr.indexOf(item.CNTRNO)].weighdate,
}
} else {
const _data = {
rowKey: lastNum + index,
ctnall: '',
ctnnum: '1',
cntrno: '',
sealno: '',
pkgs: '',
kindpkgs: '',
kgs: '',
cbm: '',
tareweight: item.TAREWEIGHT,
weightype: '',
weighkgs: '',
weighdate: '',
}
addTable.push(_data)
}
})
// tableData.value = [...tableData.value, ...addTable]
// that.$forceUpdate()
// } else {
// notification.error({ message: res.message, duration: 3 })
// }
// WeightLoading.value = false
// })
// .catch((err) => {
// WeightLoading.value = false
// })
tableData.value = [...tableData.value, ...addTable]
that.$forceUpdate()
} else {
notification.error({ message: res.message, duration: 3 })
}
WeightLoading.value = false
})
.catch((err) => {
WeightLoading.value = false
})
}
function changeEmit1(arr) {
emit('changectnall', arr)

Loading…
Cancel
Save