客户对账 对账模板 海运出口

szh-new
张同海 6 months ago
commit 1fcde73509

@ -3,7 +3,7 @@
v-bind="$attrs"
:use-wrapper="true"
:title="getTitle"
width="70%"
width="60%"
:min-height="500"
@register="registerModal"
@cancel="BasicModalCancel"
@ -16,7 +16,7 @@
</div>
<div class="mt-5">
<div v-show="current === 0" v-if="state.initSetp1">
<BaseInfoStep :ApiData="ApiData" @next="handleStep1Next" />
<BaseInfoStep :ApiData="ApiData" @next="handleStep1Next" class="info-step" />
</div>
<div v-show="current === 1" v-if="state.initSetp2">
<Lowflow

@ -8,8 +8,8 @@ enum Api {
getTenantAuditInfo = '/mainApi/ClientFlowTemplate/GetClientFlowTemplateInfo',
DelFlowTemplate = '/mainApi/ClientFlowTemplate/DelFlowTemplate',
EditFlowTemplate = '/mainApi/ClientFlowTemplate/EditClientFlowTemplate',
GetColumns = '/mainApi/Common/GetColumns',
GetColumns = '/mainApi/Common/GetColumnsByClient',
GetTablesByClient = '/mainApi/Common/GetTablesByClient',
rolegetList = '/mainApi/Common/GetRoleList',
GetTables = '/mainApi/Common/GetTables',
getClientPermissionTreeList = '/mainApi/Common/GetClientPermissionTreeList',
@ -54,6 +54,14 @@ export function EditFlowTemplate(data: PageRequest) {
data,
})
}
export function GetTablesByClient() {
return request<DataResult>({
url: Api.GetTablesByClient,
method: 'get',
})
}
export function GetTables() {
return request<DataResult>({
url: Api.GetTables,

@ -1,16 +1,6 @@
import { BasicColumn, FormSchema } from '/@/components/Table'
import { Tag } from 'ant-design-vue'
import { GetTables } from './api'
const columnViewData = []
const res: API.DataResult = await GetTables()
if (res.succeeded) {
res.data.forEach((item) => {
columnViewData.push({
label: item.description,
value: item.name,
})
})
}
import { GetTablesByClient } from './api'
export const columns: BasicColumn[] = [
// {
@ -84,21 +74,21 @@ export const formSchema: FormSchema[] = [
field: 'name',
label: '模板名称',
component: 'Input',
colProps: { span: 7, offset: 2 },
colProps: { span: 12 },
},
{
field: 'orderNo',
label: '排序号',
component: 'InputNumber',
defaultValue: 0,
colProps: { span: 7 },
colProps: { span: 12 },
},
{
field: 'status',
label: '是否启用',
component: 'RadioButtonGroup',
defaultValue: 1,
colProps: { span: 6 },
colProps: { span: 12 },
componentProps: {
options: [
{ label: '是', value: 0 },
@ -110,19 +100,28 @@ export const formSchema: FormSchema[] = [
{
field: 'columnView',
label: '关联表',
component: 'Select',
component: 'ApiSelect',
required: true,
colProps: { span: 12 },
componentProps: {
options: columnViewData,
},
show: false,
componentProps: () => {
return {
allowClear: true,
showSearch: true,
api: GetTablesByClient,
labelField: 'description',
valueField: 'name',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
}
}
},
{
field: 'note',
label: '备注',
component: 'InputTextArea',
colProps: { span: 20, offset: 2 },
colProps: { span: 20 },
},
]
export const permissionFormSchema: FormSchema[] = [

@ -2,8 +2,8 @@
<div>
<BasicTable @register="registerTable">
<template #toolbar>
<!-- <a-button type="primary" @click="handleCreate"> </a-button> -->
<a-button type="primary" @click="importFlow"> </a-button>
<a-button type="primary" @click="handleCreate"> </a-button>
<!-- <a-button type="primary" @click="importFlow"> </a-button> -->
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
@ -32,9 +32,9 @@
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<a-modal :visible="visible" title="导入模板" width="70%" @ok="handleOk" @cancel="handleCancel">
<!-- <a-modal :visible="visible" title="导入模板" width="70%" @ok="handleOk" @cancel="handleCancel">
<ImportFlow v-if="visible" ref="refImportFlow" />
</a-modal>
</a-modal> -->
</div>
</template>
<script lang="ts" setup>

@ -522,7 +522,6 @@
excuteRules.value = []
excuteRulesType.value = ''
Showtabs.value = false
console.log('init', id.value)
if (id.value) {
isAdd.value = false
getDetail()

Loading…
Cancel
Save