sunzehua 4 months ago
commit 1406d103a2

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:country:import')">
<span class="iconfont icon-xiazai"></span>
导入国家信息
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:country:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:country:import')">
<span class="iconfont icon-xiazai"></span>
导入国家信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:ctn:import')">
<span class="iconfont icon-xiazai"></span>
导入集装箱信息
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:ctn:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:ctn:import')">
<span class="iconfont icon-xiazai"></span>
导入集装箱信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:edi:add')">
<span class="iconfont icon-new_document"></span>
添加

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:factory:add')">
<span class="iconfont icon-new_document"></span>
添加

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:frt:import')">
<span class="iconfont icon-xiazai"></span>
导入付费方式
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:frt:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:frt:import')">
<span class="iconfont icon-xiazai"></span>
导入付费方式
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:goods:import')">
<span class="iconfont icon-xiazai"></span>
导入商品信息
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:goods:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:goods:import')">
<span class="iconfont icon-xiazai"></span>
导入商品信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -52,7 +51,8 @@
</div>
</template>
<script lang="ts" setup>
import { defineComponent, onMounted, ref } from 'vue'
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -1,12 +1,16 @@
<!--
* @Author: lijingjia lijj_xl@163.com
* @Date: 2024-07-24 18:51:54
* @Description: 订舱货物状态管理
-->
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:edi:add')">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-button type="link" @click="handleDel" :disabled="checkPermissions('op:edi:import')">
<span class="iconfont icon-shanchu2"></span>
删除
</a-button>
<Divider type="vertical" />
<a-upload
:before-upload="beforeUpload"
:maxCount="1"
@ -14,24 +18,12 @@
name="file"
accept=".xlsm,.xlsx,.xls"
>
<a-button
type="link"
>
<a-button type="link">
<span class="iconfont icon-xiazai"></span>
导入货物状态
</a-button>
</a-upload>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:edi:add')">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-button type="link" @click="handleDel" :disabled="checkPermissions('op:edi:import')">
<span class="iconfont icon-shanchu2"></span>
删除
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
@ -52,6 +44,7 @@
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { formatParams } from '/@/hooks/web/common'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
@ -132,7 +125,7 @@
function beforeUpload(file) {
const formData = new FormData()
formData.append('file', file)
ImportBookingStatusConfigByExcel(formData).then(res => {
ImportBookingStatusConfigByExcel(formData).then((res) => {
if (res.succeeded) {
reload()
createMessage.success('导入成功!')

@ -2,16 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button
type="link"
@click="importFlow"
:disabled="checkPermissions('op:goodstype:import')"
>
<span class="iconfont icon-xiazai"></span>
导入商品类型
</a-button>
</template>
<template #toolbar>
<a-button
type="link"
@click="handleCreate"
@ -31,7 +21,17 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button
type="link"
@click="importFlow"
:disabled="checkPermissions('op:goodstype:import')"
>
<span class="iconfont icon-xiazai"></span>
导入商品类型
</a-button>
</template>
<template #toolbar> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
@ -61,6 +61,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -192,12 +192,12 @@ export const columns: BasicColumn[] = [
sorter: true,
width: 150,
},
{
title: '收单据模式',
dataIndex: 'rcvMode',
sorter: true,
width: 150,
},
// {
// title: '收单据模式',
// dataIndex: 'rcvMode',
// sorter: true,
// width: 150,
// },
{
title: '电话',
dataIndex: 'tel',
@ -604,15 +604,15 @@ export const formSchema: FormSchema[] = [
defaultValue: '',
colProps: { span: 6 },
},
{
field: 'rcvMode',
label: '收单据模式',
// required: true,
// component: 'Select',
component: 'Input',
defaultValue: '',
colProps: { span: 6 },
},
// {
// field: 'rcvMode',
// label: '收单据模式',
// // required: true,
// // component: 'Select',
// component: 'Input',
// defaultValue: '',
// colProps: { span: 6 },
// },
{
field: 'tel',
label: '电话',

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"
@ -21,17 +21,17 @@
onClick: handleAudit.bind(null, record),
disabled: checkPermissions('op:infoclient:edit'),
},
{
icon: 'ant-design:delete-outlined',
tooltip: '删除',
color: 'error',
popConfirm: {
title: '是否要删除此条数据?',
okText: '是',
cancelText: '否',
confirm: handleDelete.bind(null, record)
}
}
// {
// icon: 'ant-design:delete-outlined',
// tooltip: '',
// color: 'error',
// popConfirm: {
// title: '',
// okText: '',
// cancelText: '',
// confirm: handleDelete.bind(null, record)
// }
// }
]"
/>
</template>
@ -141,17 +141,17 @@
})
}
//
async function handleDelete(record: Recordable) {
const res: API.DataResult = await BatchDelClientParam({
id: '',
ids: [record.id],
})
if (res.succeeded) {
createMessage.success(res.message)
reload()
}
}
// //
// async function handleDelete(record: Recordable) {
// const res: API.DataResult = await BatchDelClientParam({
// id: '',
// ids: [record.id],
// })
// if (res.succeeded) {
// createMessage.success(res.message)
// reload()
// }
// }
function handleAudit(record: Recordable) {
if (!checkPermissions('op:infoclient:edit')) {
openModal(true, {

@ -2,16 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button
type="link"
@click="importFlow"
:disabled="checkPermissions('op:issuetype:import')"
>
<span class="iconfont icon-xiazai"></span>
导入签单方式
</a-button>
</template>
<template #toolbar>
<a-button
type="link"
@click="handleCreate"
@ -31,7 +21,17 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button
type="link"
@click="importFlow"
:disabled="checkPermissions('op:issuetype:import')"
>
<span class="iconfont icon-xiazai"></span>
导入签单方式
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
@ -61,6 +61,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:lanes:import')">
<span class="iconfont icon-xiazai"></span>
导入航线信息
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:lanes:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:lanes:import')">
<span class="iconfont icon-xiazai"></span>
导入航线信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:package:import')">
<span class="iconfont icon-xiazai"></span>
导入包装类型
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:package:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:package:import')">
<span class="iconfont icon-xiazai"></span>
导入包装类型
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:port:import')">
<span class="iconfont icon-xiazai"></span>
导入港口信息
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:port:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:port:import')">
<span class="iconfont icon-xiazai"></span>
导入港口信息
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"

@ -8,7 +8,7 @@
@ok="handleOk"
>
<BasicTable class="ds-table" @register="registerTable">
<template #toolbar>
<template #tableTitle>
<a-button type="link" @click="handleCreate">
<span class="iconfont icon-new_document"></span>
新增

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:source:import')">
<span class="iconfont icon-xiazai"></span>
导入业务来源
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:source:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:source:import')">
<span class="iconfont icon-xiazai"></span>
导入业务来源
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -61,6 +60,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:stlmode:import')">
<span class="iconfont icon-xiazai"></span>
导入结算方式
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:stlmode:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:stlmode:import')">
<span class="iconfont icon-xiazai"></span>
导入结算方式
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -53,6 +52,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -1,7 +1,7 @@
<template>
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<a-button
type="link"
@click="handleCreate"

@ -2,12 +2,6 @@
<div>
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:vessel:import')">
<span class="iconfont icon-xiazai"></span>
导入船名
</a-button>
</template>
<template #toolbar>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:vessel:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -23,6 +17,11 @@
删除
</a-button>
</a-popconfirm>
<Divider type="vertical" />
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:vessel:import')">
<span class="iconfont icon-xiazai"></span>
导入船名
</a-button>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -55,6 +54,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { Divider } from 'ant-design-vue'
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'

@ -268,7 +268,7 @@ export const formSchema: FormSchema[] = [
label: '车队',
component: 'ApiSelect',
defaultValue: '',
colProps: { span: 24 },
colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
// style: 'width:100%',
@ -299,7 +299,7 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 24,
span: 12,
},
},
{
@ -308,7 +308,7 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 4,
span: 6,
},
},
{
@ -317,7 +317,7 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
@ -326,7 +326,7 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
@ -335,25 +335,25 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
},
},
{
label: '',
field: 'Space1',
component: 'Space',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
// {
// label: '',
// field: 'Space1',
// component: 'Space',
// defaultValue: '',
// colProps: {
// span: 5,
// },
// },
{
label: 'FROM',
field: 'fromName',
component: 'Input',
defaultValue: '',
colProps: {
span: 4,
span: 6,
},
},
{
@ -362,7 +362,7 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
@ -371,27 +371,28 @@ export const formSchema: FormSchema[] = [
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
label: 'FROM 手机号',
field: 'fromMobile',
label: 'FROM 邮箱',
field: 'fromEmail',
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
label: 'FROM 邮箱',
field: 'fromEmail',
label: 'FROM 手机号',
field: 'fromMobile',
component: 'Input',
defaultValue: '',
colProps: {
span: 5,
span: 6,
},
},
{
field: 'divider-selects',
component: 'Divider',
@ -555,7 +556,7 @@ export const formSchema: FormSchema[] = [
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 24 },
colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
immediate: false,
@ -596,7 +597,7 @@ export const formSchema: FormSchema[] = [
component: 'DatePicker',
defaultValue: '',
colProps: {
span: 12,
span: 6,
},
componentProps: {
showTime: true,

@ -6,28 +6,31 @@
width="90%"
@register="registerModal"
>
<a-row>
<a-row :gutter="16">
<a-col :span="6">
<BasicTable @register="registerOpBusinessTruckTable">
<BasicTable @register="registerOpBusinessTruckTable" @row-click="onRowClick">
<template #tableTitle>
<div class="buttonGroup">
<div class="nav" @click="FnClickAdd">
<i class="iconfont icon-jiahao2fill"></i>新建
</div>
<a-popconfirm
title="确定要删除所选数据?"
ok-text="确定"
cancel-text="取消"
@confirm="FnClickDel"
>
<div class="nav"> <i class="iconfont icon-shanchu"></i>删除 </div>
</a-popconfirm>
</div>
<a-button type="link" @click="FnClickAdd" class="pl0">
<span class="iconfont icon-new_document"></span>
新建
</a-button>
<a-popconfirm
title="确定要删除所选数据?"
ok-text="确定"
cancel-text="取消"
@confirm="FnClickDel"
>
<a-button type="link">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
</a-popconfirm>
</template>
</BasicTable>
</a-col>
<a-col :span="18" class="OPCol">
<OpBusinessTruckEdit
ref="YardEdit"
:business-id="businessId"
:select-id="selectId"
@success="handleSuccess"
@ -43,8 +46,8 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { columns } from './OpBusinessYardColumns'
import { BasicModal, useModalInner, useModal } from '/@/components/Modal'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import { BasicModal, useModalInner } from '/@/components/Modal'
import { BasicTable, useTable } from '/@/components/Table'
import { GetOpBusinessTruckList, BatchDelOpBusinessTruck } from './LetterApi'
import OpBusinessTruckEdit from './OpBusinessTruckEdit.vue'
import { useMessage } from '/@/hooks/web/useMessage'
@ -105,12 +108,18 @@
rowSelection: {
type: 'radio',
onSelect: (e) => {
console.log(e)
selectId.value = e.id
},
},
})
//
const YardEdit: any = ref()
//
const onRowClick = (record) => {
YardEdit.value.setFieldsValue({
...record,
})
}
//
function FnClickDel() {
if (getSelectRows().length) {

@ -2,24 +2,29 @@
<a-spin :spinning="spinning">
<div class="MainBox">
<div class="buttonGroup">
<div class="nav" @click="handleSave"> <i class="iconfont icon-jiahao2fill"></i>保存 </div>
<a-button type="link" @click="handleSave" class="pl0">
<span class="iconfont icon-baocun"></span>
保存
</a-button>
</div>
<div class="Content">
<BasicForm @register="registerForm" />
<div>
<div class="buttonGroup">
<div class="nav" @click="TableAdd">
<i class="iconfont icon-jiahao2fill"></i>新增明细
</div>
<a-popconfirm
title="确定要删除所选数据?"
ok-text="确定"
cancel-text="取消"
@confirm="FnClickDel"
>
<div class="nav"> <i class="iconfont icon-shanchu"></i>删除明细 </div>
</a-popconfirm>
</div>
<a-button type="link" @click="TableAdd" class="pl0">
<span class="iconfont icon-new_document"></span>
新增明细
</a-button>
<a-popconfirm
title="确定要删除所选数据?"
ok-text="确定"
cancel-text="取消"
@confirm="FnClickDel"
>
<a-button type="link" @click="handleSave" class="pl0">
<span class="iconfont icon-shanchu21"></span>
删除明细
</a-button>
</a-popconfirm>
</div>
<hot-table ref="hotTb" :data="list" :settings="settings">
<img
@ -371,8 +376,6 @@
.MainBox {
height: 100%;
position: relative;
.buttonGroup {
}
.Content {
height: calc(100% - 28px);
overflow-y: auto;

@ -118,7 +118,7 @@
//
const onRowClick = (record) => {
YardEdit.value.setFieldsValue({
...record
...record,
})
YardEdit.value.setFieldsValue1({
...record

Loading…
Cancel
Save