合并冲突

szh-new
sunzehua 3 months ago
commit 2a15941595

@ -2,7 +2,7 @@
<BasicModal
v-bind="$attrs"
:use-wrapper="true"
title="单程业务维护"
title="买箱维护"
width="55%"
@register="registerModal"
@ok="handleSave"
@ -292,57 +292,57 @@
})
})
}
// function MakeFee() {
// ApiMakeFee({ id: rowId.value }).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// }
// function Confirm() {
// let type: boolean = true
// let ApiData: any = {
// id: rowId.value,
// ids: [],
// }
// list.value.forEach((e: any, i) => {
// if (e.selected) {
// if (e.id) {
// ApiData.ids.push(e.id)
// } else {
// type = false
// }
// }
// })
// if (type) {
// ApiConfirm(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// } else {
// notification.success({ message: '', duration: 3 })
// }
// }
// function Cancel() {
// let type: boolean = true
// let ApiData: any = {
// id: rowId.value,
// ids: [],
// }
// list.value.forEach((e: any, i) => {
// if (e.selected) {
// if (e.id) {
// ApiData.ids.push(e.id)
// } else {
// type = false
// }
// }
// })
// if (type) {
// ApiCancel(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// } else {
// notification.success({ message: '', duration: 3 })
// }
// }
function MakeFee() {
ApiMakeFee({ id: rowId.value }).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
}
function Confirm() {
let type: boolean = true
let ApiData: any = {
id: rowId.value,
ids: [],
}
list.value.forEach((e: any, i) => {
if (e.selected) {
if (e.id) {
ApiData.ids.push(e.id)
} else {
type = false
}
}
})
if (type) {
ApiConfirm(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
} else {
notification.success({ message: '请先保存明细表', duration: 3 })
}
}
function Cancel() {
let type: boolean = true
let ApiData: any = {
id: rowId.value,
ids: [],
}
list.value.forEach((e: any, i) => {
if (e.selected) {
if (e.id) {
ApiData.ids.push(e.id)
} else {
type = false
}
}
})
if (type) {
ApiCancel(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
} else {
notification.success({ message: '请先保存明细表', duration: 3 })
}
}
async function handleSave(exit) {
try {
const values = await validate()
@ -391,6 +391,7 @@
await setFieldsValue({
...res.data,
})
GetListDetail()
}
}
const activeKey = ref('1')

@ -64,6 +64,12 @@ export const columns: BasicColumn[] = [
sorter: true,
width: 150,
},
{
title: '箱型箱量',
dataIndex: 'ctntotal',
sorter: true,
width: 200,
},
{
title: '已提箱',
dataIndex: 'pickupCtntotal',
@ -271,6 +277,9 @@ export const formSchema: FormSchema[] = [
label: '箱型箱量',
component: 'Input',
colProps: { span: 6 },
dynamicDisabled: ({}) => {
return true
},
},
{
field: 'accdate',

@ -2,7 +2,7 @@
<BasicModal
v-bind="$attrs"
:use-wrapper="true"
title="租箱租入维护"
title="报废箱维护"
width="55%"
@register="registerModal"
@ok="handleSave"
@ -391,6 +391,7 @@
await setFieldsValue({
...res.data,
})
GetListDetail()
}
}
const activeKey = ref('1')
@ -408,6 +409,7 @@
//
const PortDict = ref([])
const CtnFlowStateDict = ref([])
const ctnsourceDict = ref([])
// //
// const currencyDict = ref([])
watchEffect(() => {
@ -492,6 +494,11 @@
width: 120,
data: 'CtnFlowStateId',
},
{
title: '箱来源ID',
width: 120,
data: 'ctnSourceId',
},
// -----------------
// {
// title: '',
@ -521,9 +528,21 @@
},
},
{
title: '箱来源',
title: '箱来源',
width: 120,
data: 'ctnSourceId',
data: 'ctnsource',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnsourceDict.value.length
? ctnsourceDict.value
: await getDictOption('CM_CtnSource')
if (!ctnsourceDict.value.length) ctnsourceDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
{
title: '放箱单号',
@ -533,14 +552,14 @@
{
title: '报废日期',
width: 120,
data: 'bsdate',
data: 'pickupDate',
type: 'date',
dateFormat: 'YYYY-MM-DD',
},
{
title: '当前状态??',
title: '当前状态',
width: 120,
data: 'CtnFlowState',
data: 'ctnFlowState',
type: 'dropdown',
// (process)
source: async (query, process) => {
@ -624,7 +643,7 @@
fixedColumnsLeft: 1,
//
hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6],
columns: [1, 2, 3, 4, 5, 6, 7],
indicators: true,
},
//
@ -669,6 +688,30 @@
list.value[changes[0][0]]['pickupPortCode'] = dict?.ediCode
}
}
if (changes[0][1] === 'ctnsource') {
const res = ctnsourceDict.value.length
? ctnsourceDict.value
: await getDictOption('CM_CtnSource')
if (!ctnsourceDict.value.length) ctnsourceDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnsource'] = dict?.label
list.value[changes[0][0]]['ctnSourceId'] = dict?.value
}
if (changes[0][1] === 'ctnFlowState') {
const res = CtnFlowStateDict.value.length
? CtnFlowStateDict.value
: await getDictOption('CM_CtnFlowState')
if (!CtnFlowStateDict.value.length) CtnFlowStateDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnFlowState'] = dict?.label
list.value[changes[0][0]]['ctnFlowStateId'] = dict?.value
}
}
},
}
@ -761,7 +804,7 @@
fixedColumnsLeft: 1,
//
hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6],
columns: [1, 2, 3, 4, 5, 6, 7],
indicators: true,
},
// //

@ -58,6 +58,18 @@ export const columns: BasicColumn[] = [
sorter: true,
width: 200,
},
{
title: '已提箱',
dataIndex: 'pickupCtntotal',
sorter: true,
width: 150,
},
{
title: '未提箱',
dataIndex: 'remainCtntotal',
sorter: true,
width: 150,
},
{
title: '业务状态',
dataIndex: 'billState',

@ -377,6 +377,7 @@
await setFieldsValue({
...res.data,
})
GetListDetail()
}
}
const activeKey = ref('1')

@ -82,6 +82,36 @@ export const columns: BasicColumn[] = [
sorter: true,
width: 200,
},
{
title: '箱型箱量',
dataIndex: 'ctntotal',
sorter: true,
width: 200,
},
{
title: '已提箱',
dataIndex: 'pickupCtntotal',
sorter: true,
width: 150,
},
{
title: '未提箱',
dataIndex: 'remainCtntotal',
sorter: true,
width: 150,
},
{
title: '已还箱',
dataIndex: 'dropoffCtntotal',
sorter: true,
width: 200,
},
{
title: '未还箱',
dataIndex: 'dropoffRemainCtntotal',
sorter: true,
width: 200,
},
{
title: '原箱主',
dataIndex: 'oldContainerOwner',

@ -50,7 +50,7 @@
</hot-table>
</div>
</div>
<!-- <div class="SearchBox" v-if="TotTableType">
<div class="SearchBox">
<BasicForm class="Form" @register="registerSearchBoxForm" />
<div class="ButtonBox">
<a-button size="default" @click="handleReset"> </a-button>
@ -59,7 +59,7 @@
</a-button>
</div>
</div>
<div class="HotTable" v-if="TotTableType">
<div class="HotTable">
<div>
<a-button type="link" @click="ViewTableAdd" class="pl0">
<span class="iconfont icon-new_document"></span>
@ -83,7 +83,7 @@
/>
</hot-table>
</div>
</div> -->
</div>
</a-tab-pane>
<a-tab-pane key="2" tab="电子文档" :disabled="!rowId">
<DsFile ref="dsFile" fileType="infoclient" :id="rowId" />
@ -114,7 +114,7 @@
</a-tabs>
<!--右下角按钮-->
<template #footer>
<!-- <a-button
<a-button
pre-icon="ant-design:check-circle-outlined"
type="primary"
:loading="loading"
@ -122,8 +122,8 @@
@click="Confirm()"
>
确认执行
</a-button> -->
<!-- <a-button
</a-button>
<a-button
pre-icon="ant-design:check-circle-outlined"
type="primary"
:loading="loading"
@ -131,7 +131,7 @@
@click="Cancel()"
>
取消执行
</a-button> -->
</a-button>
<a-button
pre-icon="ant-design:close-outlined"
type="warning"
@ -188,10 +188,10 @@
ApiListDetail,
ApiDelDetail,
// ApiMakeFee,
// ApiDetailView,
// ApiAddCtn,
// ApiConfirm,
// ApiCancel,
ApiDetailView,
ApiAddCtn,
ApiConfirm,
ApiCancel,
} from './api'
import { GetClientListByCode } from '/@/api/common'
import { useMessage } from '/@/hooks/web/useMessage'
@ -211,24 +211,14 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
submitFunc: submit,
})
const TotTableType = ref(false)
async function submit() {
const values = await validate()
if (values.rentDirectId == 1) {
TotTableType.value = true
} else {
TotTableType.value = false
}
}
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
resetFields()
setModalProps({ confirmLoading: false, loading: true })
isUpdate.value = !!data?.isUpdate
activeKey.value = '1'
TotTableType.value = false
// Viewlist.value.splice(0)
list.value.splice(0)
if (unref(isUpdate)) {
@ -241,12 +231,12 @@
setFieldsValue({
...res.data,
})
submit()
GetListDetail()
// ViewlallCheck.value = false
// ViewlsomeCheck.value = false
// handleReset()
// GetViewListDetail('[]')
ViewlallCheck.value = false
ViewlsomeCheck.value = false
handleReset()
GetViewListDetail('[]')
}
} else {
rowId.value = ''
@ -254,17 +244,17 @@
setModalProps({ loading: false })
})
// function GetViewListDetail(queryCondition) {
// ApiDetailView({
// queryCondition,
// pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
// }).then((res) => {
// Viewlist.value.splice(0)
// res.data.forEach((item) => {
// Viewlist.value.push(item)
// })
// })
// }
function GetViewListDetail(queryCondition) {
ApiDetailView({
queryCondition,
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
}).then((res) => {
Viewlist.value.splice(0)
res.data.forEach((item) => {
Viewlist.value.push(item)
})
})
}
function GetListDetail() {
ApiListDetail({
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
@ -295,52 +285,52 @@
// notification.success({ message: res.message, duration: 3 })
// })
// }
// function Confirm() {
// let type: boolean = true
// let ApiData: any = {
// id: rowId.value,
// ids: [],
// }
// list.value.forEach((e: any, i) => {
// if (e.selected) {
// if (e.id) {
// ApiData.ids.push(e.id)
// } else {
// type = false
// }
// }
// })
// if (type) {
// ApiConfirm(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// } else {
// notification.success({ message: '', duration: 3 })
// }
// }
// function Cancel() {
// let type: boolean = true
// let ApiData: any = {
// id: rowId.value,
// ids: [],
// }
// list.value.forEach((e: any, i) => {
// if (e.selected) {
// if (e.id) {
// ApiData.ids.push(e.id)
// } else {
// type = false
// }
// }
// })
// if (type) {
// ApiCancel(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// } else {
// notification.success({ message: '', duration: 3 })
// }
// }
function Confirm() {
let type: boolean = true
let ApiData: any = {
id: rowId.value,
ids: [],
}
list.value.forEach((e: any, i) => {
if (e.selected) {
if (e.id) {
ApiData.ids.push(e.id)
} else {
type = false
}
}
})
if (type) {
ApiConfirm(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
} else {
notification.success({ message: '请先保存明细表', duration: 3 })
}
}
function Cancel() {
let type: boolean = true
let ApiData: any = {
id: rowId.value,
ids: [],
}
list.value.forEach((e: any, i) => {
if (e.selected) {
if (e.id) {
ApiData.ids.push(e.id)
} else {
type = false
}
}
})
if (type) {
ApiCancel(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
} else {
notification.success({ message: '请先保存明细表', duration: 3 })
}
}
async function handleSave(exit) {
try {
const values = await validate()
@ -389,6 +379,7 @@
await setFieldsValue({
...res.data,
})
GetListDetail()
}
}
const activeKey = ref('1')
@ -796,138 +787,136 @@
}
}
//--------------------------------------- tab1 View ---------------------------------------
// const [
// registerSearchBoxForm,
// { resetFields: resetSearchBoxFields, validate: validateSearchBox },
// ] = useForm({
// labelWidth: 100,
// schemas: formSearchBoxSchema,
// showActionButtonGroup: false,
// submitFunc: submit,
// })
// const Viewlist = ref<any>([])
// //
// const ViewlallCheck = ref(false)
const [
registerSearchBoxForm,
{ resetFields: resetSearchBoxFields, validate: validateSearchBox },
] = useForm({
labelWidth: 100,
schemas: formSearchBoxSchema,
showActionButtonGroup: false,
})
const Viewlist = ref<any>([])
//
const ViewlallCheck = ref(false)
//
// const ViewlsomeCheck = ref(false)
// watchEffect(() => {
// //
// if (ViewlallCheck.value) {
// Viewlist.value.forEach((item: any) => {
// item.selected = true
// })
// } else {
// //
// Viewlist.value.forEach((item: any) => {
// item.selected = false
// })
// }
// })
// watch(
// Viewlist.value,
// (val) => {
// let a = 0
// let b = 0
// val.forEach((item: any) => {
// if (item.selected) {
// a += 1
// } else {
// b += 1
// }
// })
// if (a == 0) {
// ViewlallCheck.value = false
// }
// if (b == 0) {
// ViewlallCheck.value = true
// }
// if (a != 0 && b != 0) {
// ViewlsomeCheck.value = true
// } else {
// ViewlsomeCheck.value = false
// }
// },
// {
// deep: true,
// },
// )
// const Viewsettings = {
// height: '163',
// readOnly: true,
// // autoWrapRow: true,
// // autoWrapCol: true,
// //
// rowHeights: 26,
// fixedColumnsLeft: 1,
// //
// hiddenColumns: {
// columns: [1, 2, 3, 4, 5, 6, 7, 8],
// indicators: true,
// },
// // //
// // enterMoves: 'row',
// // columnSorting: false,
// // //
// // afterValidate: function (isValid, value, row, prop, source) {
// // if (!isValid) {
// // hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
// // }
// // },
// columns: columns,
// // ()
// licenseKey: 'non-commercial-and-evaluation',
// // //
// // async afterChange(changes, source) {},
// }
// function handleReset() {
// resetSearchBoxFields()
// handleSearch()
// }
// async function handleSearch() {
// const values = await validateSearchBox()
// console.log(values)
// let ApiData: any = []
// Object.keys(values).forEach((item) => {
// if (values[item]) {
// console.log(values[item].split(','))
const ViewlsomeCheck = ref(false)
watchEffect(() => {
//
if (ViewlallCheck.value) {
Viewlist.value.forEach((item: any) => {
item.selected = true
})
} else {
//
Viewlist.value.forEach((item: any) => {
item.selected = false
})
}
})
watch(
Viewlist.value,
(val) => {
let a = 0
let b = 0
val.forEach((item: any) => {
if (item.selected) {
a += 1
} else {
b += 1
}
})
if (a == 0) {
ViewlallCheck.value = false
}
if (b == 0) {
ViewlallCheck.value = true
}
if (a != 0 && b != 0) {
ViewlsomeCheck.value = true
} else {
ViewlsomeCheck.value = false
}
},
{
deep: true,
},
)
const Viewsettings = {
height: '163',
readOnly: true,
// autoWrapRow: true,
// autoWrapCol: true,
//
rowHeights: 26,
fixedColumnsLeft: 1,
//
hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6, 7, 8],
indicators: true,
},
// //
// enterMoves: 'row',
// columnSorting: false,
// //
// afterValidate: function (isValid, value, row, prop, source) {
// if (!isValid) {
// hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
// }
// },
columns: columns,
// ()
licenseKey: 'non-commercial-and-evaluation',
// //
// async afterChange(changes, source) {},
}
function handleReset() {
resetSearchBoxFields()
handleSearch()
}
async function handleSearch() {
const values = await validateSearchBox()
console.log(values)
let ApiData: any = []
Object.keys(values).forEach((item) => {
if (values[item]) {
console.log(values[item].split(','))
// if (item == 'cntrno') {
// ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 15 })
// } else {
// ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 1 })
// }
// }
// })
// GetViewListDetail(JSON.stringify(ApiData))
// }
// 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
// submit()
// GetListDetail()
// handleReset()
// GetViewListDetail('[]')
// }
// // getData(false)
// notification.success({ message: res.message, duration: 3 })
// }
// })
// }
// }
if (item == 'cntrno') {
ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 15 })
} else {
ApiData.push({ FieldName: item, FieldValue: values[item], ConditionalType: 1 })
}
}
})
GetViewListDetail(JSON.stringify(ApiData))
}
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()
handleReset()
GetViewListDetail('[]')
}
// getData(false)
notification.success({ message: res.message, duration: 3 })
}
})
}
}
//--------------------------------------- tab3 ---------------------------------------
//
const broReceiveData = ref([])
@ -947,13 +936,14 @@
position: absolute;
left: 15px;
}
// .SearchBox {
// display: flex;
// .Form {
// flex: 1;
// }
// .mt-4 {
// margin-left: 10px;
// }
// }
.SearchBox {
display: flex;
.Form {
flex: 1;
margin-right: 10px;
}
.mt-4 {
margin-left: 10px;
}
}
</style>

@ -11,6 +11,11 @@ enum Api {
editDetail = '/containerManagementApi/CM_RentOneWay_Detail/EditCM_RentOneWay_Detail',
delDetail = '/containerManagementApi/CM_RentOneWay_Detail/DeleteCM_RentOneWay_Detail',
Confirm = '/containerManagementApi/CM_RentOneWay/CM_RentOneWay_Confirm',
Cancel = '/containerManagementApi/CM_RentOneWay/CM_RentOneWay_Cancel',
DetailView = '/containerManagementApi/CM_RentOut/CM_RentOut_NeedRent_View',
AddCtn = '/containerManagementApi/CM_RentOneWay/CM_RentOneWay_AddCtn',
}
// 列表 (Auth)
export function ApiList(data: PageRequest) {
@ -70,3 +75,36 @@ export function ApiDelDetail(data: PageRequest) {
})
}
// _确认 (Auth)
export function ApiConfirm(data: PageRequest) {
return request<DataResult>({
url: Api.Confirm,
method: 'post',
data,
})
}
// _取消 (Auth)
export function ApiCancel(data: PageRequest) {
return request<DataResult>({
url: Api.Cancel,
method: 'post',
data,
})
}
// 租箱租入明细视图 (Auth)
export function ApiDetailView(data: PageRequest) {
return request<DataResult>({
url: Api.DetailView,
method: 'post',
data,
})
}
// 租箱租入退租_添加 (Auth)
export function ApiAddCtn(data: PageRequest) {
return request<DataResult>({
url: Api.AddCtn,
method: 'post',
data,
})
}

@ -17,14 +17,14 @@
删除
</a-button>
</a-popconfirm>
<!-- <a-button type="link" @click="Confirm">
<a-button type="link" @click="Confirm">
<span class="iconfont icon-yiwancheng2"></span>
确认执行
</a-button>
<a-button type="link" @click="Cancel">
<span class="iconfont icon-weiwancheng"></span>
取消确认
</a-button> -->
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -47,11 +47,7 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import {
ApiList,
ApiDel,
// , ApiConfirm, ApiCancel
} from './api'
import { ApiList, ApiDel, ApiConfirm, ApiCancel } from './api'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema } from './columns'
@ -102,42 +98,42 @@
isUpdate: false,
})
}
// function Confirm() {
// const select = getSelectRows()
// let ApiData: any = {
// id: '',
// ids: [],
// }
// if (select.length === 0) {
// notification.warning({ message: '', duration: 3 })
// return false
// } else {
// ApiData.ids = select.map((item) => {
// return item.id
// })
// }
// ApiConfirm(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// }
// function Cancel() {
// const select = getSelectRows()
// let ApiData: any = {
// id: '',
// ids: [],
// }
// if (select.length === 0) {
// notification.warning({ message: '', duration: 3 })
// return false
// } else {
// ApiData.ids = select.map((item) => {
// return item.id
// })
// }
// ApiCancel(ApiData).then((res) => {
// notification.success({ message: res.message, duration: 3 })
// })
// }
function Confirm() {
const select = getSelectRows()
let ApiData: any = {
id: '',
ids: [],
}
if (select.length === 0) {
notification.warning({ message: '请至少选择一条数据', duration: 3 })
return false
} else {
ApiData.ids = select.map((item) => {
return item.id
})
}
ApiConfirm(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
}
function Cancel() {
const select = getSelectRows()
let ApiData: any = {
id: '',
ids: [],
}
if (select.length === 0) {
notification.warning({ message: '请至少选择一条数据', duration: 3 })
return false
} else {
ApiData.ids = select.map((item) => {
return item.id
})
}
ApiCancel(ApiData).then((res) => {
notification.success({ message: res.message, duration: 3 })
})
}
function handleDel() {
const select = getSelectRows()

@ -410,6 +410,7 @@
await setFieldsValue({
...res.data,
})
GetListDetail()
}
}
const activeKey = ref('1')

@ -85,6 +85,36 @@ export const columns: BasicColumn[] = [
sorter: true,
width: 200,
},
{
title: '箱型箱量',
dataIndex: 'ctntotal',
sorter: true,
width: 200,
},
{
title: '已提箱',
dataIndex: 'pickupCtntotal',
sorter: true,
width: 150,
},
{
title: '未提箱',
dataIndex: 'remainCtntotal',
sorter: true,
width: 150,
},
{
title: '已还箱',
dataIndex: 'dropoffCtntotal',
sorter: true,
width: 200,
},
{
title: '未还箱',
dataIndex: 'dropoffRemainCtntotal',
sorter: true,
width: 200,
},
{
title: '租箱客户',
dataIndex: 'rentCustomerName',

@ -2,7 +2,7 @@
<BasicModal
v-bind="$attrs"
:use-wrapper="true"
title="租箱租入维护"
title="卖箱维护"
width="55%"
@register="registerModal"
@ok="handleSave"
@ -409,6 +409,7 @@
//
const PortDict = ref([])
const CtnFlowStateDict = ref([])
const ctnsourceDict = ref([])
// //
// const currencyDict = ref([])
watchEffect(() => {
@ -493,6 +494,12 @@
width: 120,
data: 'CtnFlowStateId',
},
{
title: '箱来源ID',
width: 120,
data: 'ctnSourceId',
},
// -----------------
// {
// title: '',
@ -522,9 +529,21 @@
},
},
{
title: '箱来源',
title: '箱来源',
width: 120,
data: 'ctnSourceId',
data: 'ctnsource',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnsourceDict.value.length
? ctnsourceDict.value
: await getDictOption('CM_CtnSource')
if (!ctnsourceDict.value.length) ctnsourceDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
{
title: '放箱单号',
@ -532,16 +551,16 @@
data: 'ctnReleaseNo',
},
{
title: '报废日期',
title: '提箱日期',
width: 120,
data: 'bsdate',
type: 'date',
dateFormat: 'YYYY-MM-DD',
},
{
title: '当前状态??',
title: '当前状态',
width: 120,
data: 'CtnFlowState',
data: 'ctnFlowState',
type: 'dropdown',
// (process)
source: async (query, process) => {
@ -625,7 +644,7 @@
fixedColumnsLeft: 1,
//
hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6],
columns: [1, 2, 3, 4, 5, 6, 7],
indicators: true,
},
//
@ -670,6 +689,30 @@
list.value[changes[0][0]]['pickupPortCode'] = dict?.ediCode
}
}
if (changes[0][1] === 'ctnsource') {
const res = ctnsourceDict.value.length
? ctnsourceDict.value
: await getDictOption('CM_CtnSource')
if (!ctnsourceDict.value.length) ctnsourceDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnsource'] = dict?.label
list.value[changes[0][0]]['ctnSourceId'] = dict?.value
}
if (changes[0][1] === 'ctnFlowState') {
const res = CtnFlowStateDict.value.length
? CtnFlowStateDict.value
: await getDictOption('CM_CtnFlowState')
if (!CtnFlowStateDict.value.length) CtnFlowStateDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnFlowState'] = dict?.label
list.value[changes[0][0]]['ctnFlowStateId'] = dict?.value
}
}
},
}
@ -762,7 +805,7 @@
fixedColumnsLeft: 1,
//
hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6],
columns: [1, 2, 3, 4, 5, 6, 7],
indicators: true,
},
// //

@ -47,14 +47,14 @@ export const columns: BasicColumn[] = [
width: 200,
},
{
title: '箱型箱量',
dataIndex: 'ctntotal',
title: '卖箱日期',
dataIndex: 'bsdate',
sorter: true,
width: 200,
},
{
title: '卖箱日期',
dataIndex: 'bsdate',
title: '箱型箱量',
dataIndex: 'ctntotal',
sorter: true,
width: 200,
},
@ -62,13 +62,13 @@ export const columns: BasicColumn[] = [
title: '已提箱',
dataIndex: 'pickupCtntotal',
sorter: true,
width: 200,
width: 150,
},
{
title: '未提箱',
dataIndex: 'remainCtntotal',
sorter: true,
width: 200,
width: 150,
},
{
title: '业务锁定',
@ -212,6 +212,9 @@ export const formSchema: FormSchema[] = [
label: '箱型箱量',
component: 'Input',
colProps: { span: 6 },
dynamicDisabled: ({}) => {
return true
},
},
{
field: 'accdate',

@ -1071,24 +1071,24 @@ export const formSchema: FormSchema[] = [
return !values.isOverdueDeduction
},
},
{
field: 'auditStatus',
label: '审批状态',
component: 'Input',
colProps: { span: 4 },
defaultValue: -1,
show: false,
},
{
field: 'auditStatusText',
label: '审批状态',
component: 'Input',
colProps: { span: 4 },
defaultValue: '',
dynamicDisabled: ({}) => {
return true
},
},
// {
// field: 'auditStatus',
// label: '审批状态',
// component: 'Input',
// colProps: { span: 4 },
// defaultValue: -1,
// show: false,
// },
// {
// field: 'auditStatusText',
// label: '审批状态',
// component: 'Input',
// colProps: { span: 4 },
// defaultValue: '',
// dynamicDisabled: ({}) => {
// return true
// },
// },
// {
// field: 'status',
// label: '是否可用',

Loading…
Cancel
Save