|
|
@ -29,6 +29,8 @@
|
|
|
|
@handleSaveCtnList="handleSaveCtnList"
|
|
|
|
@handleSaveCtnList="handleSaveCtnList"
|
|
|
|
@handleSetCtnList="handleSetCtnList"
|
|
|
|
@handleSetCtnList="handleSetCtnList"
|
|
|
|
@frompre="frompre"
|
|
|
|
@frompre="frompre"
|
|
|
|
|
|
|
|
@SetDefault="setDefault"
|
|
|
|
|
|
|
|
@GetDefault="getDefault"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</operationArea>
|
|
|
|
</operationArea>
|
|
|
|
<ul class="parent-tabs-box">
|
|
|
|
<ul class="parent-tabs-box">
|
|
|
@ -237,6 +239,19 @@
|
|
|
|
import pending from './modules/pending.vue'
|
|
|
|
import pending from './modules/pending.vue'
|
|
|
|
import rightContent from './modules/rightContent.vue'
|
|
|
|
import rightContent from './modules/rightContent.vue'
|
|
|
|
import sedOrder from './modules/sedOrder.vue'
|
|
|
|
import sedOrder from './modules/sedOrder.vue'
|
|
|
|
|
|
|
|
import { permissionsInfo } from '/@/hooks/web/usePermission'
|
|
|
|
|
|
|
|
import { editCodeGoodsType, getFormSetInfoByModule } from '/@/views/baseinfo/formset/api'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
basicInfoFormSchema,
|
|
|
|
|
|
|
|
mailingInfoFormSchemaL,
|
|
|
|
|
|
|
|
mailingInfoFormSchemaR,
|
|
|
|
|
|
|
|
cargoInfoFormSchema1,
|
|
|
|
|
|
|
|
cargoInfoFormSchema2,
|
|
|
|
|
|
|
|
cargoInfoFormSchema3,
|
|
|
|
|
|
|
|
cargoInfoFormSchema4,
|
|
|
|
|
|
|
|
ediMoreFormSchema,
|
|
|
|
|
|
|
|
mastetMoreFormSchema,
|
|
|
|
|
|
|
|
} from '/@/views/operation/seaexport/columns'
|
|
|
|
const initDetail = {
|
|
|
|
const initDetail = {
|
|
|
|
cntrNo: '',
|
|
|
|
cntrNo: '',
|
|
|
|
// ----------
|
|
|
|
// ----------
|
|
|
@ -809,6 +824,211 @@
|
|
|
|
lastPages[key] = $data
|
|
|
|
lastPages[key] = $data
|
|
|
|
appStore.setneedSavePages(lastPages)
|
|
|
|
appStore.setneedSavePages(lastPages)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//存默认值
|
|
|
|
|
|
|
|
function setDefault() {
|
|
|
|
|
|
|
|
let _data: any = []
|
|
|
|
|
|
|
|
basicInfoFormSchema.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefbasicInfo.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
e !== 'id' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// _data.push({ ...item, defaultValue: RefbasicInfo.value.getFieldsValue()[e] })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mailingInfoFormSchemaL.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefmailingInfo.value.getFieldsValueL()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mailingInfoFormSchemaR.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefmailingInfo.value.getFieldsValueR()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
cargoInfoFormSchema1.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefcargoInfo.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
cargoInfoFormSchema2.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefcargoInfo.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
cargoInfoFormSchema3.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefcargoInfo.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
cargoInfoFormSchema4.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefcargoInfo.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
ediMoreFormSchema.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefediMore.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
mastetMoreFormSchema.forEach((item) => {
|
|
|
|
|
|
|
|
Object.keys(RefmastetMore.value.getFieldsValue()).forEach((e) => {
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
item.field == e &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== '' &&
|
|
|
|
|
|
|
|
RefbasicInfo.value.getFieldsValue()[e] !== null
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
_data.push({
|
|
|
|
|
|
|
|
defaultValue: RefbasicInfo.value.getFieldsValue()[e],
|
|
|
|
|
|
|
|
field: item.field || '',
|
|
|
|
|
|
|
|
label: item.label || '',
|
|
|
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
|
|
|
component: item.component,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Apidata: any = {
|
|
|
|
|
|
|
|
// id: 0,
|
|
|
|
|
|
|
|
permissionId: permissionsInfo().permissionId,
|
|
|
|
|
|
|
|
templateName: permissionsInfo().permissionName,
|
|
|
|
|
|
|
|
permissionName: permissionsInfo().permissionName,
|
|
|
|
|
|
|
|
content: JSON.stringify({
|
|
|
|
|
|
|
|
columns: _data,
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
editCodeGoodsType(Apidata).then((res) => {
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
notification.success({ message: '添加成功!', duration: 3 })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateSchema(data) {
|
|
|
|
|
|
|
|
console.log(data, 'updateSchema')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RefbasicInfo.value.updateSchema(data)
|
|
|
|
|
|
|
|
// RefmailingInfo.value.updateSchemaL(data)
|
|
|
|
|
|
|
|
// RefmailingInfo.value.updateSchemaR(data)
|
|
|
|
|
|
|
|
// RefcargoInfo.value.updateSchema(data)
|
|
|
|
|
|
|
|
// RefediMore.value.updateSchema(data)
|
|
|
|
|
|
|
|
// RefmastetMore.value.updateSchema(data)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function getDefault() {
|
|
|
|
|
|
|
|
console.log('getDefault')
|
|
|
|
|
|
|
|
getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId }).then((res) => {
|
|
|
|
|
|
|
|
if (res?.data?.content) {
|
|
|
|
|
|
|
|
const content = JSON.parse(res.data.content)
|
|
|
|
|
|
|
|
updateSchema(content.columns)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
// ============================================
|
|
|
|
// ============================================
|
|
|
|
function getRouterHis() {
|
|
|
|
function getRouterHis() {
|
|
|
|
inChildLoading.value = true
|
|
|
|
inChildLoading.value = true
|
|
|
@ -1976,6 +2196,7 @@
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script lang="ts">
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue'
|
|
|
|
import { defineComponent } from 'vue'
|
|
|
|
|
|
|
|
import { object } from 'vue-types'
|
|
|
|
export default defineComponent({
|
|
|
|
export default defineComponent({
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
next((vm) => {
|
|
|
|
next((vm) => {
|
|
|
|