往来单位 调整

szh-new
张同海 3 months ago
parent 9b8d5f687f
commit 7b78bce919

@ -1,19 +1,8 @@
import { FormSchema } from '/@/components/Table'
import { useOptionsStore } from '/@/store/modules/options'
const optionsStore = useOptionsStore()
import { getDictOption } from '/@/utils/dictUtil'
import { getClientCountrySelectList, getClientFrtSelectList, getNotifications } from './api'
import { GetClientSourceDetailSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
import { getOrgTree } from '/@/api/system/org'
import {
getSaleUserList,
getOperatorUserList,
getVouchingClerkList,
getCustomerServiceList,
getDeptList,
GetUserList,
GetAllClientList,
} from '/@/api/common'
import { GetUserList, GetAllClientList } from '/@/api/common'
import {
GetSaleList,
GetCustomerServiceList,
@ -36,38 +25,6 @@ if (res11.succeeded) {
OrgTree.push({ label: e.shortName, value: e.id })
})
}
let SaleUserList = []
const res8: API.DataResult = await getSaleUserList()
if (res8.succeeded) {
SaleUserList = []
res8.data.forEach((e) => {
SaleUserList.push({ label: e.userName, value: e.id })
})
}
let OperatorUserList = []
const res6: API.DataResult = await getOperatorUserList()
if (res6.succeeded) {
OperatorUserList = []
res6.data.forEach((e) => {
OperatorUserList.push({ label: e.userName, value: e.id })
})
}
let VouchingClerkList = []
const res7: API.DataResult = await getVouchingClerkList()
if (res7.succeeded) {
VouchingClerkList = []
res7.data.forEach((e) => {
VouchingClerkList.push({ label: e.userName, value: e.id })
})
}
let CustomerServiceList = []
const res9: API.DataResult = await getCustomerServiceList()
if (res9.succeeded) {
CustomerServiceList = []
res9.data.forEach((e) => {
CustomerServiceList.push({ label: e.userName, value: e.id })
})
}
let ClientFrtList = []
const res: API.DataResult = await getClientFrtSelectList()
if (res.succeeded) {
@ -76,22 +33,6 @@ if (res.succeeded) {
ClientFrtList.push({ label: e.cnName, value: e.id })
})
}
let DeptList = []
const res10: API.DataResult = await getDeptList()
if (res10.succeeded) {
DeptList = []
res10.data.forEach((e) => {
DeptList.push({ label: e.orgName, value: e.id })
})
}
let notificationsData = []
const res12: API.DataResult = await getNotifications()
if (res12.succeeded) {
notificationsData = []
res12.data.forEach((e) => {
notificationsData.push({ label: e.name, value: e.value })
})
}
let UserData = []
const res13: API.DataResult = await GetUserList()
if (res13.succeeded) {

@ -1,17 +1,17 @@
<template>
<div class="fee-field">
<div class="flex">
<h2>费用字段</h2>
<span class="title">费用字段</span>
<div>
<a-button type="link" @click="OpenSetCondition">
<span class="iconfont icon-new_document"></span>
<span class="iconfont icon-jichupeizhi"></span>
设置方案条件
</a-button>
<a-button type="link" @click="addRow">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-popconfirm
<!-- <a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"
cancel-text="否"
@ -21,7 +21,7 @@
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
</a-popconfirm>
</a-popconfirm> -->
</div>
</div>
<a-spin :spinning="loading">
@ -55,13 +55,7 @@
inject,
} from 'vue'
//
import {
GetFeeCodeSelectList,
GetClientListByCode,
GetFeeCurrencySelectList,
GetClientSelectInfoByCode,
GetUnitSelectInfo,
} from '/@/api/common'
import { GetFeeCodeSelectList, GetFeeCurrencySelectList } from '/@/api/common'
import { getColumns } from './api'
// import { GetFeeTemplateDetailList, BatchDelFeeTemplateDetail } from '../api'
//
@ -803,9 +797,11 @@
//
const deleteRow = async () => {
// const ids = []
// list.value.forEach((item) => {
// if (item.selected && item.id) ids.push(item.id)
// })
list.value.forEach((item: any, index) => {
if (item.selected) {
list.value.splice(index, 1)
}
})
// if (ids.length) {
// loading.value = true
// const data = await BatchDelFeeTemplateDetail({ ids })
@ -862,7 +858,15 @@
margin-block: 8px;
padding: 15px 6px 0 6px;
border-top: 0.7px solid #d9d9d9;
justify-content: space-between;
.title {
font-size: 12px;
font-weight: 700;
letter-spacing: 1px;
line-height: 30px;
color: rgba(51, 56, 61, 1);
text-align: left;
}
// justify-content: space-between;
}
.ant-select {
width: 100%;

@ -1,7 +1,8 @@
<template>
<div>
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<span class="放舱通道配置列表">自动费用模板</span>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:ctn:add')">
<span class="iconfont icon-new_document"></span>
添加
@ -61,7 +62,7 @@
},
})
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '放舱通道配置列表',
title: '',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
return new Promise((resolve) => {

@ -92,7 +92,7 @@
<div>
<p class="title">财务信息</p>
<BasicForm @register="registerForm2" @linkageForm="linkageForm2" />
<div class="FlexTable">
<div>
<div class="BTable">
<BasicTable @register="registerTable" @row-dbClick="EditRow" :maxHeight="140">
<template #tableTitle>
@ -215,7 +215,7 @@
const selectedKeys = ref(['menu1'])
// const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
const rowId = ref<any>('')
const activeKey = ref('1')
const clientId = ref('')
const customerName = ref('')
@ -238,13 +238,10 @@
selectedKeys.value = ['menu1']
resetFields()
resetFields1()
// setModalProps({ confirmLoading: false, loading: true })
if (route.query.id) {
// setModalProps({ confirmLoading: true });
rowId.value = route.query.id
activeKey.value = '2'
getData(true)
// setModalProps({ confirmLoading: false });
} else {
setTableData([])
clientId.value = ''
@ -379,14 +376,14 @@
useTable({
title: '银行信息',
api: async (p) => {
const res: API.DataResult = await getClientBankList(p)
const res = await getClientBankList(p)
return new Promise((resolve) => {
resolve({ data: [...res.data], total: res.count })
})
},
beforeFetch: () => {
var currentPageInfo: any = getPaginationRef()
const postParam: API.PageRequest = {
const postParam = {
queryCondition: '',
pageCondition: {
pageIndex: currentPageInfo.current,
@ -394,7 +391,7 @@
sortConditions: [],
},
}
let condition: API.ConditionItem[] = []
let condition: any = []
condition.push({
FieldName: 'ClientId',
FieldValue: unref(rowId),
@ -478,7 +475,7 @@
// id
const sourceId = ref('')
async function getData(type) {
const res: API.DataResult = await getCodeGoodsTypeInfo({ id: unref(rowId) })
const res = await getCodeGoodsTypeInfo({ id: unref(rowId) })
if (res.succeeded) {
clientId.value = res.data.id
saleId.value = res.data.saleId
@ -554,7 +551,7 @@
values.clientTag.others = values.others
// loading.value = true;
const res: API.DataResult = await editCodeGoodsType({
const res = await editCodeGoodsType({
...values,
...getFieldsValue1(),
})
@ -624,7 +621,7 @@
}
}
async function refresh() {
const res: API.DataResult = await getCodeGoodsTypeInfo({ id: unref(rowId) })
const res = await getCodeGoodsTypeInfo({ id: unref(rowId) })
if (res.succeeded) {
clientId.value = res.data.id
await setFieldsValue({
@ -687,31 +684,6 @@
padding: 7px 5px 5px 5px;
}
}
.FlexTable {
// display: flex;
// :deep(.HotTable) {
// width: 33%;
// > div {
// &:nth-child(1) {
// padding: 14px 8px 8px 8px;
// display: flex;
// .Fapiao {
// // flex: 1;
// margin-right: 10px;
// }
// }
// }
// .handsontableInput {
// height: 40.5px !important;
// line-height: 40.5px !important;
// }
// }
// .BTable {
// height: 153px;
// margin-left: 15px;
// width: 66%;
// }
}
:deep(.handsontable) {
.htCore {
thead {

@ -1,7 +1,5 @@
import { BasicColumn, FormSchema } from '/@/components/Table'
import { Tag } from 'ant-design-vue'
import { ref } from 'vue'
import ClientTag from './Data/ClientTag.json'
// 字典
import { getDictOption } from '/@/utils/dictUtil'
import {
@ -10,16 +8,7 @@ import {
getClientCountrySelectList,
getNotifications,
} from './api'
import {
getOperatorUserList,
getVouchingClerkList,
getSaleUserList,
getCustomerServiceList,
getOrgList,
GetFeeCurrencySelectList,
GetUserList,
GetAllClientList,
} from '/@/api/common'
import { getOrgList, GetFeeCurrencySelectList, GetUserList, GetAllClientList } from '/@/api/common'
import {
GetClientSourceDetailSelectList,
GetServiceProjectList,
@ -56,38 +45,6 @@ if (res4.succeeded) {
ClientCountryList.push({ label: e.countryName, value: e.id })
})
}
let OperatorUserList = []
const res6: API.DataResult = await getOperatorUserList()
if (res6.succeeded) {
OperatorUserList = []
res6.data.forEach((e) => {
OperatorUserList.push({ label: e.userName, value: e.id })
})
}
let VouchingClerkList = []
const res7: API.DataResult = await getVouchingClerkList()
if (res7.succeeded) {
VouchingClerkList = []
res7.data.forEach((e) => {
VouchingClerkList.push({ label: e.userName, value: e.id })
})
}
let SaleUserList = []
const res8: API.DataResult = await getSaleUserList()
if (res8.succeeded) {
SaleUserList = []
res8.data.forEach((e) => {
SaleUserList.push({ label: e.userName, value: e.id })
})
}
let CustomerServiceList = []
const res9: API.DataResult = await getCustomerServiceList()
if (res9.succeeded) {
CustomerServiceList = []
res9.data.forEach((e) => {
CustomerServiceList.push({ label: e.userName, value: e.id })
})
}
let OrgTree = []
const res11: API.DataResult = await GetAllClientList()
if (res11.succeeded) {
@ -264,18 +221,9 @@ export const columns: BasicColumn[] = [
},
{
title: '单证',
dataIndex: 'doc',
dataIndex: 'docName',
sorter: true,
width: 150,
customRender: ({ text }) => {
let RText = ''
VouchingClerkList.forEach((e) => {
if (e.value == text) {
RText = e.label
}
})
return RText
},
},
{
title: '客服',

@ -1,7 +1,8 @@
<template>
<div>
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleEdit">
<template #toolbar>
<template #tableTitle>
<span class="title">固定费用列表</span>
<a-button type="link" @click="handleCreate">
<span class="iconfont icon-new_document"></span>
新建
@ -58,7 +59,7 @@
})
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
title: '固定费用列表',
title: '',
// api: getSysDictTypeList,
api: async (p) => {
const res: API.DataResult = await getFeeCustTemplateDetailList(p)

@ -1,7 +1,8 @@
<template>
<div>
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleEdit">
<template #toolbar>
<template #tableTitle>
<span class="title">客户参数列表</span>
<a-button type="link" @click="handleCreate">
<span class="iconfont icon-new_document"></span>
新建
@ -57,7 +58,7 @@
},
})
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
title: '客户参数列表',
title: '',
maxHeight: 250,
api: async (p) => {
const res: API.DataResult = await GetClientParamList(p)

@ -47,37 +47,21 @@
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)
// }
// }
]"
/>
</template>
</template>
</BasicTable>
<!-- <TenantAuditStepModal @register="registerModal" @success="handleSuccess" /> -->
</div>
</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 { BasicTable, useTable, TableAction } from '/@/components/Table'
import { getCodeGoodsTypeList, Delete } from './api'
import {
GetClientSourceSelectList,
GetClientSourceDetailSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema, formSchema } from './columns'
import { useMessage } from '/@/hooks/web/useMessage'
const { notification } = useMessage()
@ -85,12 +69,10 @@
const go = useGo()
import { useAppStore } from '/@/store/modules/app'
const appStore = useAppStore()
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '',
api: async (p) => {
const res: API.DataResult = await getCodeGoodsTypeList(p)
const res = await getCodeGoodsTypeList(p)
return new Promise(async (resolve) => {
let SourceData: any = []
if (res?.data) {
@ -224,15 +206,11 @@
function handleCreate() {
const addNum = Math.round(Math.random() * 1000)
go(`/infoclientDetail?addNum=${addNum}`)
// openModal(true, {
// isParent: false,
// isUpdate: false,
// })
}
//
async function handleDel(record) {
let ids = []
async function handleDel() {
let ids: any = []
let StateDelType = true
getSelectRows().forEach((item: any) => {
if (item.auditStatus == 0) {
@ -242,7 +220,7 @@
}
})
if (ids.length) {
const res: API.DataResult = await Delete({
const res = await Delete({
id: '',
ids: ids,
})
@ -258,23 +236,15 @@
notification.warning({ message: '待审核数据,禁止删除!', duration: 3 })
}
}
function handleAudit(record: Recordable) {
function handleAudit(record) {
if (!checkPermissions('op:infoclient:edit')) {
go(`/infoclientDetail?id=${record.id}`)
// openModal(true, {
// record,
// isUpdate: true,
// })
}
}
</script>
<style lang="less" scoped>
.SvgImg {
width: 12px;
// &:hover {
// background: #257afa;
// }
}
.tableTitleBox {
.ant-btn-link {

@ -1,10 +1,11 @@
<template>
<div>
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<span class="title">客户联系人列表</span>
<a-button type="link" @click="handleCreate">
<span class="iconfont icon-new_document"></span>
添加客户联系人
添加
</a-button>
</template>
<template #bodyCell="{ column, record }">
@ -49,7 +50,7 @@
})
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
title: '客户联系人列表',
title: '',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
return new Promise((resolve) => {

@ -1,10 +1,11 @@
<template>
<div>
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #toolbar>
<template #tableTitle>
<span class="title">客户收发货人列表</span>
<a-button type="link" @click="handleCreate">
<span class="iconfont icon-new_document"></span>
添加客户收发货人
添加
</a-button>
</template>
<template #bodyCell="{ column, record }">
@ -49,7 +50,7 @@
})
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
title: '客户收发货人列表',
title: '',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
return new Promise((resolve) => {

Loading…
Cancel
Save