diff --git a/src/components/CostEntry/actionBar.vue b/src/components/CostEntry/actionBar.vue
index 1e002317..c87377be 100644
--- a/src/components/CostEntry/actionBar.vue
+++ b/src/components/CostEntry/actionBar.vue
@@ -7,7 +7,7 @@
-
+
提交审核
@@ -33,19 +33,19 @@
-
+
申请修改
-
+
申请删除
-
+
取消申请
-
+
历史引入
@@ -210,6 +210,11 @@
columns: {
type: Object,
default: {}
+ },
+ // 表格权限默认1->正常的费用录入权限, 2->整票提交审核时任何状态可编辑的权限
+ power: {
+ type: String,
+ default: '1'
}
})
// 是否显示删除气泡
diff --git a/src/components/CostEntry/feeTable.vue b/src/components/CostEntry/feeTable.vue
index b589ff6f..9c2db28a 100644
--- a/src/components/CostEntry/feeTable.vue
+++ b/src/components/CostEntry/feeTable.vue
@@ -14,6 +14,7 @@
:data="list"
:row="row"
:tbType="tbType"
+ :power="power"
:id="id"
:details="details"
:columns="{ data: sColumns, id: colId }"
@@ -74,7 +75,6 @@
import { GetFeeCurrencyExchangeList } from '/@/views/fee/exchangeRate/api'
import { updateColumns } from '/@/hooks/web/common'
import { useAppStore } from '/@/store/modules/app'
-import { Item } from 'ant-design-vue/lib/menu'
const appStore = useAppStore()
const { createMessage } = useMessage()
defineComponent({
@@ -112,6 +112,11 @@ import { Item } from 'ant-design-vue/lib/menu'
isShowBtn: {
type: Boolean,
default: true
+ },
+ // 表格权限默认1->正常的费用录入权限, 2->整票提交审核时任何状态可编辑的权限
+ power: {
+ type: String,
+ default: '1'
}
})
const emits = defineEmits(['broInsert', 'refreshStatic', 'allBillSubmit', 'refresh'])
@@ -173,6 +178,19 @@ import { Item } from 'ant-design-vue/lib/menu'
const someCheck = ref(false)
// 自定义列
const sColumns = ref([])
+ // 判断计费吨的值是毛重还是尺码
+ const jfCount = () => {
+ const mz = (props.details.kgs || 0) / 1000
+ const cm = props.details.cbm || 0
+ if (mz > cm) {
+ console.log(mz)
+ console.log(cm)
+ return mz
+ } else {
+
+ return cm
+ }
+ }
// 定义表格所有列
const columns = [
{
@@ -629,8 +647,12 @@ import { Item } from 'ant-design-vue/lib/menu'
// 如果是箱,带出箱种类的数量
list.value[changes[0][0]]['unitText'] = dict['defaultUnitName']
list.value[changes[0][0]]['unit'] = dict['defaultUnit']
- const num = props.details?.ctnInfo?.length || 0
+ const num = props.details?.ctnInfo?.length || 1
list.value[changes[0][0]]['quantity'] = num
+ } else if (dict.defaultUnit == 'JF') {
+ list.value[changes[0][0]]['unitText'] = dict['defaultUnitName']
+ list.value[changes[0][0]]['unit'] = dict['defaultUnit']
+ list.value[changes[0][0]]['quantity'] = jfCount()
} else {
list.value[changes[0][0]]['unitText'] = dict['defaultUnitName']
list.value[changes[0][0]]['unit'] = dict['defaultUnit']
@@ -724,6 +746,8 @@ import { Item } from 'ant-design-vue/lib/menu'
// 箱带出当前主票有多少种箱
const num = props.details?.ctnInfo?.length || 0
list.value[changes[0][0]]['quantity'] = num
+ } else if (dict.value == 'JF') {
+ list.value[changes[0][0]]['quantity'] = jfCount()
} else {
list.value[changes[0][0]]['quantity'] = 0
}
@@ -813,7 +837,17 @@ import { Item } from 'ant-design-vue/lib/menu'
businessType: 1
}
// 如果不存在可保存数据限制保存按钮(后台会报错,这块后台也存在问题,现在前端限制)
- if (postData.items.length == 0) return createMessage.warning('暂无可保存的数据!')
+ if (postData.items.length == 0 && props.power == '1') return createMessage.warning('暂无可保存的数据!')
+ // 如果是整票审核,将费用状态改成2,并保存
+ if (props.power == '2') {
+ const allItems = JSON.parse(JSON.stringify(list.value))
+ allItems.forEach((res) => {
+ if (!res.taxRate) res.taxRate = 0
+ res.feeStatus = 2
+ res.feeStatusText = '提交审核'
+ })
+ postData.items = allItems
+ }
loading.value = true
SubmitFee(postData)
.then((res) => {
@@ -1033,7 +1067,7 @@ import { Item } from 'ant-design-vue/lib/menu'
hotTb.value.hotInstance.updateSettings({
cells: function (row, col) {
// 设置费用状态不是录入状态或驳回状态的行为只读
- const props = { readOnly: true }
+ const hprops = { readOnly: true }
// 审核通过(STATUS=0)
// 录入状态(STATUS=1)
// 提交审核(STATUS=2)
@@ -1044,23 +1078,24 @@ import { Item } from 'ant-design-vue/lib/menu'
// 驳回申请(STATUS=7)
// 部分结算(STATUS=8)
// 结算完毕(STATUS=9)
- if (!(data[row]?.feeStatus == 6 || data[row]?.feeStatus == 1) && col != 0) {
+ if (data[row]?.feeStatus == 0 && col == 3) {
+ hprops['className'] = 'hot-green'
+ }
+ if (data[row]?.feeStatus == 2 && col == 3) {
+ hprops['className'] = 'hot-yellow'
+ }
+ if (data[row]?.feeStatus == 6 && col == 3) {
+ hprops['className'] = 'hot-red'
+ }
+ if ((data[row]?.feeStatus == 4 || data[row]?.feeStatus == 3) && col == 3) {
+ hprops['className'] = 'hot-red'
+ }
+ if (!(data[row]?.feeStatus == 6 || data[row]?.feeStatus == 1) && col != 0 && props.power == '1') {
// 配置不同状态的行颜色
- if (data[row]?.feeStatus == 0 && col == 3) {
- props['className'] = 'hot-green'
- }
- if (data[row]?.feeStatus == 2 && col == 3) {
- props['className'] = 'hot-yellow'
- }
- if (data[row]?.feeStatus == 7 && col == 3) {
- props['className'] = 'hot-red'
- }
- if ((data[row]?.feeStatus == 4 || data[row]?.feeStatus == 3) && col == 3) {
- props['className'] = 'hot-red'
- }
- return props
+ return hprops
} else {
- return
+ delete hprops.readOnly
+ return hprops
}
}
})
diff --git a/src/components/File/list.vue b/src/components/File/list.vue
index ba394509..b25f3e5c 100644
--- a/src/components/File/list.vue
+++ b/src/components/File/list.vue
@@ -71,7 +71,7 @@
- {{ item.createByName }}
+ {{ item.createUserName }}
@@ -220,6 +220,7 @@
item['type'] = item?.filePath?.split('.')[1]
})
fileList.value = res.data
+ console.log(res.data)
})
.catch(() => {
loading.value = false
diff --git a/src/design/ant/table.less b/src/design/ant/table.less
index 9bcb57f8..469db6f9 100644
--- a/src/design/ant/table.less
+++ b/src/design/ant/table.less
@@ -213,9 +213,11 @@
font-weight: 600;
}
.hot-yellow {
- background: #e1a200 !important;
+ color: #e1a200 !important;
+ font-weight: 600;
}
.hot-red {
- background-color: #f5222d;
+ background-color: #D43030;
+ font-weight: 600;
}
}
\ No newline at end of file
diff --git a/src/views/approve/fee/components/feeTable.vue b/src/views/approve/fee/components/feeTable.vue
index b25a1041..dd767980 100644
--- a/src/views/approve/fee/components/feeTable.vue
+++ b/src/views/approve/fee/components/feeTable.vue
@@ -8,10 +8,10 @@
{{ status == 'BILL_RECV_AUDIT' ? '应收费用确认' : '应收应付费用' }}
-
+
@@ -142,15 +142,19 @@
:visible="editVisible"
:title="status == 'BILL_RECV_AUDIT' ? '应收确认费用调整' : '应付确认费用调整'"
width="90%"
+ @cancel="editVisible = false"
>
-
-
+ :details="details"
+ power="2"
+ >
+
+
@@ -169,6 +173,7 @@
// import emitter from '/@/utils/Bus'
// 应收表格组件
import FeeTable from '/@/components/CostEntry/feeTable.vue'
+ import { BookingOrderGet } from '/@/views/operation/seaexport/api/BookingLedger'
import { useRoute } from 'vue-router'
const route = useRoute()
// 当前页面状态
@@ -245,7 +250,13 @@
}
]
}
-
+ // 订单详情数据
+ const details = ref({})
+ const getOrderDetail = () => {
+ BookingOrderGet({ id: route.query.id }).then(res => {
+ console.log(res)
+ })
+ }
// 应收应付表格数据整体
const tableData = ref([])
const RData = ref([])
@@ -415,6 +426,10 @@
RData.value = []
}
}
+ // 如果是全票提交审核,调用订单详情接口
+ if (status == 'BILL_RECV_AUDIT' || status == 'BILL_PAY_AUDIT') {
+ getOrderDetail()
+ }
// 校验费用利润
// const checkProfit = () => {
// const receiveData = getSelectRows1()
diff --git a/src/views/operation/seaexport/detail/components/ladingInfo.vue b/src/views/operation/seaexport/detail/components/ladingInfo.vue
index 3e126826..79ceb642 100644
--- a/src/views/operation/seaexport/detail/components/ladingInfo.vue
+++ b/src/views/operation/seaexport/detail/components/ladingInfo.vue
@@ -63,17 +63,30 @@
-
-
分提单号
-
-
-
暂无数据
+
+
+
分提单号
+
+
+
暂无数据
+
+
+
+
-