szh-new
张同海 6 months ago
parent 8ec6be9290
commit 70255ce722

@ -69,3 +69,13 @@ code {
color: var(--el-color-primary); color: var(--el-color-primary);
} }
.ant-table-container::after{
width: 1px !important;
box-shadow: none !important;
background: #F0F0F0;
}
.ant-table-container::before{
width: 1px !important;
box-shadow: none !important;
background: #F0F0F0;
}

@ -944,214 +944,215 @@ export const formSchema2: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 24 }, colProps: { span: 24 },
}, },
{
field: 'taxNo', // {
label: '纳税人识别号', // field: 'taxNo',
// required: true, // label: '纳税人识别号',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 24 }, // defaultValue: '',
}, // colProps: { span: 24 },
{ // },
field: 'rmbBank', // {
label: '人民币开户银行', // field: 'rmbBank',
// required: true, // label: '人民币开户银行',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'rmbAccount', // {
label: '人民币账号', // field: 'rmbAccount',
// required: true, // label: '人民币账号',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'rmbOnlineNO', // {
label: '人民币联机行号', // field: 'rmbOnlineNO',
// required: true, // label: '人民币联机行号',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'usdBank', // {
label: '美元开户银行', // field: 'usdBank',
// required: true, // label: '美元开户银行',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'usdAccount', // {
label: '美元账号', // field: 'usdAccount',
// required: true, // label: '美元账号',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'usdOnlineNO', // {
label: '美元联机行号', // field: 'usdOnlineNO',
// required: true, // label: '美元联机行号',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 8 }, // defaultValue: '',
}, // colProps: { span: 8 },
{ // },
field: 'rmbMaxAmountCredit', // {
label: '人民币信用最大金额', // field: 'rmbMaxAmountCredit',
required: true, // label: '人民币信用最大金额',
component: 'InputNumber', // required: true,
defaultValue: '', // component: 'InputNumber',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'usdMaxAmountCredit', // {
label: '美元信用最大金额', // field: 'usdMaxAmountCredit',
required: true, // label: '美元信用最大金额',
component: 'InputNumber', // required: true,
defaultValue: '', // component: 'InputNumber',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'maxAmountCredit', // {
label: '信用最大金额', // field: 'maxAmountCredit',
required: true, // label: '信用最大金额',
component: 'InputNumber', // required: true,
defaultValue: '', // component: 'InputNumber',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'stlDate', // {
label: '月结算时间', // field: 'stlDate',
// required: true, // label: '月结算时间',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'stlFirstHalfDate', // {
label: '上半月结算时间', // field: 'stlFirstHalfDate',
// required: true, // label: '上半月结算时间',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'stlMiddleDate', // {
label: '下半月结算时间', // field: 'stlMiddleDate',
// required: true, // label: '下半月结算时间',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'invoiceStlDate', // {
label: '票结结算时间', // field: 'invoiceStlDate',
// required: true, // label: '票结结算时间',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'customAttributes1', // {
label: '自定义属性1', // field: 'customAttributes1',
// required: true, // label: '自定义属性1',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'customAttributes2', // {
label: '自定义属性2', // field: 'customAttributes2',
// required: true, // label: '自定义属性2',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'stlName', // {
label: '结算方式编码', // field: 'stlName',
// required: true, // label: '结算方式编码',
component: 'Select', // // required: true,
colProps: { span: 6 }, // component: 'Select',
labelWidth: 140, // colProps: { span: 6 },
defaultValue: '', // labelWidth: 140,
componentProps: { // defaultValue: '',
options: ClientStlModeList, // componentProps: {
allowClear: true, // options: ClientStlModeList,
showSearch: true, // allowClear: true,
filterOption: (input: string, option: any) => { // showSearch: true,
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 // filterOption: (input: string, option: any) => {
}, // return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}, // },
}, // },
{ // },
field: 'usdExchangeRate', // {
label: '美金汇率', // field: 'usdExchangeRate',
required: true, // label: '美金汇率',
component: 'InputNumber', // required: true,
defaultValue: '', // component: 'InputNumber',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'level', // {
label: '等级', // field: 'level',
// required: true, // label: '等级',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'auditStatus', // {
label: '审批状态', // field: 'auditStatus',
required: true, // label: '审批状态',
component: 'Input', // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'auditTime', // {
label: '审批时间', // field: 'auditTime',
component: 'DatePicker', // label: '审批时间',
defaultValue: '', // component: 'DatePicker',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'auditNote', // {
label: '审批意见', // field: 'auditNote',
// required: true, // label: '审批意见',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'invoiceBank', // {
label: '发票银行', // field: 'invoiceBank',
// required: true, // label: '发票银行',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'carrierList', // {
label: '运输公司列表', // field: 'carrierList',
// required: true, // label: '运输公司列表',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
{ // },
field: 'ctnType', // {
label: '集装箱尺寸', // field: 'ctnType',
// required: true, // label: '集装箱尺寸',
component: 'Input', // // required: true,
defaultValue: '', // component: 'Input',
colProps: { span: 6 }, // defaultValue: '',
}, // colProps: { span: 6 },
// },
] ]
export const form3columns: BasicColumn[] = [ export const form3columns: BasicColumn[] = [

@ -56,7 +56,9 @@ const Fncustomername: any = await GetControllerClientList()
if (Fncustomername.succeeded) { if (Fncustomername.succeeded) {
ListData.customername = [] ListData.customername = []
Fncustomername.data.forEach((e) => { Fncustomername.data.forEach((e) => {
ListData.customername.push({ label: e.codeName, value: e.id, ...e }) console.log(e)
ListData.customername.push({ label: `${e.codeName}/${e.shortName}`, value: e.id, ...e })
}) })
} }
const FnsourceId: any = await GetClientSourceSelectList() const FnsourceId: any = await GetClientSourceSelectList()
@ -112,7 +114,7 @@ const FnshipAgencyId: any = await GetShipAgencyClientList()
if (FnshipAgencyId.succeeded) { if (FnshipAgencyId.succeeded) {
ListData.shipAgencyId = [] ListData.shipAgencyId = []
FnshipAgencyId.data.forEach((e) => { FnshipAgencyId.data.forEach((e) => {
ListData.shipAgencyId.push({ label: e.shipAgencyIdName, value: e.id }) ListData.shipAgencyId.push({ label: e.codeName, value: e.id })
}) })
} }
const FnsaleId: any = await GetSaleUserList() const FnsaleId: any = await GetSaleUserList()
@ -133,16 +135,14 @@ const Fnyard: any = await GetYardClientList()
if (Fnyard.succeeded) { if (Fnyard.succeeded) {
ListData.yard = [] ListData.yard = []
Fnyard.data.forEach((e) => { Fnyard.data.forEach((e) => {
ListData.yard.push({ label: e.name, value: e.id }) ListData.yard.push({ label: e.codeName, value: e.id })
}) })
} }
const Fncustomser: any = await GetCustomClientList() const Fncustomser: any = await GetCustomClientList()
if (Fncustomser.succeeded) { if (Fncustomser.succeeded) {
ListData.customser = [] ListData.customser = []
console.log(Fncustomser.data, 'Fncustomser.data')
Fncustomser.data.forEach((e) => { Fncustomser.data.forEach((e) => {
ListData.customser.push({ label: e.name, value: e.id }) ListData.customser.push({ label: e.codeName, value: e.id })
}) })
} }
const FnagentId: any = await GetAgentClientList() const FnagentId: any = await GetAgentClientList()
@ -307,6 +307,15 @@ export const columns: BasicColumn[] = [
title: '所属分部', title: '所属分部',
dataIndex: 'saleOrgId', dataIndex: 'saleOrgId',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleDeptId.forEach((item) => {
if (item.value == record.saleOrgId) {
RData = item.label
}
})
return RData
},
}, },
{ {
title: '委托单位', title: '委托单位',
@ -360,6 +369,15 @@ export const columns: BasicColumn[] = [
title: '订舱代理', title: '订舱代理',
dataIndex: 'forwarderId', dataIndex: 'forwarderId',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.forwarderId.forEach((item) => {
if (item.value == record.forwarderId) {
RData = item.label
}
})
return RData
},
}, },
{ {
dataIndex: 'contractNo', dataIndex: 'contractNo',
@ -401,6 +419,15 @@ export const columns: BasicColumn[] = [
title: '船代', title: '船代',
dataIndex: 'shipAgencyId', dataIndex: 'shipAgencyId',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.shipAgencyId.forEach((item) => {
if (item.value == record.shipAgencyId) {
RData = item.label
}
})
return RData
},
}, },
{ {
title: '揽货人', title: '揽货人',
@ -417,6 +444,15 @@ export const columns: BasicColumn[] = [
title: '操作', title: '操作',
dataIndex: 'operatorId', dataIndex: 'operatorId',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleId.forEach((item) => {
if (item.value == record.operatorId) {
RData = item.label
}
})
return RData
},
}, },
{ {
title: '单证', title: '单证',
@ -428,6 +464,15 @@ export const columns: BasicColumn[] = [
title: '所属部门', title: '所属部门',
dataIndex: 'saleDeptId', dataIndex: 'saleDeptId',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleDeptId.forEach((item) => {
if (item.value == record.saleDeptId) {
RData = item.label
}
})
return RData
},
}, },
{ {
dataIndex: 'czRemark', dataIndex: 'czRemark',
@ -443,16 +488,43 @@ export const columns: BasicColumn[] = [
dataIndex: 'shipperId', dataIndex: 'shipperId',
title: '发货人', title: '发货人',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleId.forEach((item) => {
if (item.value == record.shipperId) {
RData = item.label
}
})
return RData
},
}, },
{ {
dataIndex: 'consigneeId', dataIndex: 'consigneeId',
title: '收货人', title: '收货人',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleId.forEach((item) => {
if (item.value == record.consigneeId) {
RData = item.label
}
})
return RData
},
}, },
{ {
dataIndex: 'notifyPartyId', dataIndex: 'notifyPartyId',
title: '通知人', title: '通知人',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.saleId.forEach((item) => {
if (item.value == record.notifyPartyId) {
RData = item.label
}
})
return RData
},
}, },
// { // {
// title: '收货地代码', // title: '收货地代码',
@ -539,6 +611,15 @@ export const columns: BasicColumn[] = [
dataIndex: 'agentId', dataIndex: 'agentId',
title: '国外代理', title: '国外代理',
width: 150, width: 150,
customRender: ({ record }) => {
let RData = ''
ListData.agentId.forEach((item) => {
if (item.value == record.agentId) {
RData = item.label
}
})
return RData
},
}, },
{ {
dataIndex: 'agent', dataIndex: 'agent',
@ -911,7 +992,17 @@ export const searchFormSchema: FormSchema[] = [
options: ListData.customername, options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -4072,7 +4163,17 @@ export const BatchModificationFormSchema: FormSchema[] = [
options: ListData.customername, options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },

@ -1,217 +1,4 @@
{
"code": 0, The req field is required
"multiCode": "Data_Query_Success", Error converting value {null} to type 'System.DateTime'. Path 'customDate', line 1, position 1438
"count": 0, Error converting value {null} to type 'System.DateTime'. Path 'inspectionDate', line 1, position 2933.
"message": "查询成功",
"succeeded": true,
"data": {
"id": "1780891904372772864",
"parentId": "0",
"businessStatus": 0,
"billFeeStatus": 0,
"businessStatusName": "",
"billFeeStatusName": "",
"billFeeStatusTime": "1900-01-01 00:00:00",
"feeStatus": 0,
"isBusinessLocking": false,
"isFeeLocking": false,
"businessDate": "2024-04-25 14:53:09",
"accountDate": "1",
"mblno": "WebTest001",
"hblno": "WebTest001",
"customerNo": "WebTest001",
"transNo": "",
"customerId": "0",
"customerName": "",
"blType": "合票主票",
"shipperId": null,
"consigneeId": null,
"notifyPartyId": null,
"agentId": null,
"agent": "WebTest001",
"shipperContent": "",
"consigneeContent": "",
"notifyPartyContent": "",
"agentContent": "",
"yardId": "0",
"yard": "",
"vessel": "",
"vesselId": "0",
"voyno": "",
"etd": "2024-04-23 16:27:18",
"eta": "2024-04-23 16:27:25",
"atd": "2024-04-23 16:27:20",
"ata": null,
"closingDate": "2024-04-23 16:26:58",
"receiptPlace": "卡亚俄",
"receiptPlaceId": "1763399503139966976",
"loadPortId": "1763399503139966976",
"loadPort": "卡亚俄",
"dischargePortId": "1763399503139966976",
"dischargePort": "卡亚俄",
"deliveryPlaceId": "1763399503139966976",
"deliveryPlace": "卡亚俄",
"destinationId": "1763399503139966976",
"destination": "卡亚俄",
"noBill": "",
"copyNoBill": "",
"issueType": "",
"issueDate": "2024-04-23 16:27:40",
"issuePlaceId": "1763399503139966976",
"issuePlace": "卡亚俄",
"blIssueSatus": null,
"prepareAtId": "0",
"prepareAt": "",
"payableAt": "",
"service": "",
"marks": "WEBTEST001",
"cntrSealNo": "",
"noPkgs": "",
"description": "WEBTEST001",
"goodsName": "",
"grossWeight": "",
"measurement": "",
"pkgs": null,
"kindPkgs": "",
"kgs": null,
"cbm": null,
"totalNo": "",
"cntrNo": "",
"cntr1": 0,
"cntr2": 0,
"cntr3": 0,
"cntr4": 0,
"cntr5": 0,
"cntr6": 0,
"cntr7": 0,
"cntr8": 0,
"cntr9": 0,
"cntr10": 0,
"otherCntr": 0,
"teu": 0,
"cntrTotal": "",
"operatorId": "1770718980303097856",
"customerService": "0",
"foreignCustomerService": "0",
"laneId": "1763453587733745664",
"lane": "WebTest001",
"saleId": "1770718980303097856",
"sale": "WebTest001",
"carrierId": "0",
"carrier": "0",
"forwarderId": "0",
"forwarder": "",
"customserId": "0",
"customser": "0",
"truckerId": "0",
"trucker": "0",
"invoiceNo": "",
"cargoId": "",
"dangerClass": "",
"dangerNo": "",
"dangerPage": "",
"dangerLabel": "",
"reeferQuantity": "",
"temperatureUnit": "",
"temperatureSet": "",
"temperatureMin": "",
"temperatureMax": "",
"sourceId": "1763454583448932352",
"sourceDetailId": "1763468441559371776",
"customsNum": 0,
"contractNo": "WebTest001",
"bookingType": "操作录入",
"insuranceer": "",
"insuranceNo": "",
"insuranceAmount": null,
"isVoucher": false,
"voucherNo": "",
"remark": "",
"status1": false,
"status2": false,
"status3": false,
"status4": false,
"status5": false,
"isFumigation": false,
"isStorage": false,
"isLand": false,
"isCustoms": false,
"isInspection": false,
"isBooking": false,
"isAgent": false,
"isHBLNO": false,
"service9": false,
"service10": false,
"doc": "0",
"packingType": "",
"wareHouse": "",
"closeDocDate": "2024-04-23 16:27:00",
"intoPortDocDate": "1900-01-01 00:00:00",
"saleDeptId": "1760142686767157248",
"mblFrt": "",
"stlName": "",
"stlDate": "2024-04-23 15:58:08",
"orderType": "",
"orderNo": "",
"operatorCode": "",
"isOperator": false,
"operatorEmail": "",
"operatorTel": "",
"operatorFax": "",
"financialStaffCode": "true",
"isFinancialStaff": false,
"financialStaffEmail": "",
"financialStaffTel": "",
"financialStaffFax": "",
"sourceCode": "",
"linkMan": "",
"hsCode": "Webtest001",
"ediRemark": "",
"mailProjectId": "0",
"irCode": "",
"serviceContractNo": "WebTest001",
"applyNo": "",
"customNo": "",
"customDate": "2000-01-01 00:00:00",
"enterpriseId": "9999999",
"enterprise": "",
"inspectionNo": "",
"inspectionDate": "2000-01-01 00:00:00",
"tradeTerm": "",
"termDelivery": "",
"clearCustomDate": "1900-01-01 00:00:00",
"insperctService": "",
"shipAgencyId": "0",
"shipAgency": "0",
"humidity": "",
"masterShipperId": null,
"masterConsigneeId": null,
"masterNotifyPartyId": null,
"masterConsigneeContent": "",
"masterNotifyPartyContent": "",
"masterShipperContent": "",
"masterDescription": "",
"isContainerSoc": true,
"tranStatus": "",
"manifestStatus": "",
"isMoreGood": true,
"isPrintReceipt": false,
"vessel2N": "",
"vesselId2N": "0",
"voyno2N": "",
"deliveryDate": "1900-01-01 00:00:00",
"yardATTN": "",
"yardTel": "",
"saleOrgId": "0",
"transport": "",
"transRemark": "",
"preRecord": 0,
"note": "",
"createTime": "2024-04-18 17:31:32",
"closeDocRemark": null,
"bookingRemark": null,
"blIssueStatus": 0,
"billSubmitStatus": 0,
"isBookingYZ": null
}
}

@ -661,7 +661,7 @@
await RefbasicInfo.value await RefbasicInfo.value
.validateFields() .validateFields()
.then((e) => { .then((e) => {
console.log(e) console.log(e, 1111111111111111)
basicFrom = true basicFrom = true
basicObject = e basicObject = e
}) })

@ -1223,11 +1223,12 @@
...getFieldsValue4(), ...getFieldsValue4(),
} }
} }
function validateFields() { async function validateFields() {
validateFields1() console.log('validateFields')
validateFields2() await validateFields1()
validateFields3() await validateFields2()
validateFields4() await validateFields3()
await validateFields4()
} }
function updateSchema(data) { function updateSchema(data) {
updateSchema1(data) updateSchema1(data)
@ -1237,9 +1238,9 @@
} }
defineExpose({ defineExpose({
// RefcargoFrom, // RefcargoFrom,
validateFields,
getFieldsValue, getFieldsValue,
updateSchema, updateSchema,
validateFields,
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

@ -2,8 +2,17 @@ import { ref } from 'vue'
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import { getRoleList, getOrgList, getDeptList } from '/@/api/common' import { getRoleList, getOrgList, getDeptList } from '/@/api/common'
import { Tag } from 'ant-design-vue' import { Tag } from 'ant-design-vue'
const selectOrgList = ref([]) import { style } from '@logicflow/extension/es/bpmn-elements/presets/icons'
const selectOrgList = ref<any>([])
const selectDeptList = ref([]) const selectDeptList = ref([])
let ListData: any = await {}
const FnsourceId: any = await getOrgList()
if (FnsourceId.succeeded) {
ListData.orgIds = []
FnsourceId.data.forEach((e) => {
ListData.orgIds.push(e)
})
}
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '用户唯一码', title: '用户唯一码',
@ -177,11 +186,14 @@ export const formSchema: FormSchema[] = [
field: 'birthday', field: 'birthday',
label: '出生日期', label: '出生日期',
component: 'DatePicker', component: 'DatePicker',
// required: true,
colProps: { colProps: {
span: 12, span: 12,
}, },
componentProps: {}, componentProps: {
style: {
width: '100%',
},
},
}, },
{ {
field: 'nickName', field: 'nickName',
@ -283,22 +295,29 @@ export const formSchema: FormSchema[] = [
{ {
field: 'orgIds', field: 'orgIds',
label: '所属机构', label: '所属机构',
component: 'ApiSelect', component: 'Select',
required: true, required: true,
defaultValue: [], defaultValue: [],
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: ({ formActionType }) => { componentProps: ({ formActionType }) => {
return { return {
mode: 'multiple', mode: 'multiple',
api: getOrgList, options: ListData.orgIds,
resultField: 'data', resultField: 'data',
onChange: async (e, list) => { onChange: async (e, list) => {
selectOrgList.value = list selectOrgList.value = []
ListData.orgIds.forEach((item) => {
e.forEach((item2) => {
if (item.value == item2) {
selectOrgList.value.push(item)
}
})
})
formActionType.setFieldsValue({ formActionType.setFieldsValue({
defaultOrgId: '', defaultOrgId: '',
deptId: '' deptId: '',
}) })
} },
} }
}, },
}, },
@ -314,6 +333,8 @@ export const formSchema: FormSchema[] = [
options: selectOrgList, options: selectOrgList,
resultField: 'data', resultField: 'data',
onChange: async (e: ChangeEvent) => { onChange: async (e: ChangeEvent) => {
console.log(e)
const res: API.DataResult = await getDeptList({ orgId: e }) const res: API.DataResult = await getDeptList({ orgId: e })
if (res.succeeded) { if (res.succeeded) {
selectDeptList.value = [] selectDeptList.value = []
@ -322,7 +343,7 @@ export const formSchema: FormSchema[] = [
}) })
} }
formActionType.setFieldsValue({ formActionType.setFieldsValue({
deptId: '' deptId: '',
}) })
}, },
} }

@ -119,3 +119,8 @@
reload() reload()
} }
</script> </script>
<style scoped lang="scss">
:deep(.ant-picker) {
width: 100% !important;
}
</style>

Loading…
Cancel
Save