lijingjia 2 months ago
commit d524d8c614

@ -8,14 +8,18 @@
<a-button type="primary" class="CheckButton" @click="FnCheck"></a-button> <a-button type="primary" class="CheckButton" @click="FnCheck"></a-button>
</div> </div>
<a-row class="BottomBox" type="flex" justify="space-between"> <a-row class="BottomBox" type="flex" justify="space-between">
<a-col :span="11"> <a-col :span="7">
<p>已通过箱号</p> <p>已通过箱号</p>
<a-textarea :rows="20" v-model:value="passData" /> <a-textarea :rows="20" v-model:value="passData" />
</a-col> </a-col>
<a-col :span="11"> <a-col :span="7">
<p>未通过箱号</p> <p>未通过箱号</p>
<a-textarea :rows="20" v-model:value="failData" /> <a-textarea :rows="20" v-model:value="failData" />
</a-col> </a-col>
<a-col :span="7">
<p>正确箱号</p>
<a-textarea :rows="20" v-model:value="trueData" />
</a-col>
</a-row> </a-row>
</div> </div>
</template> </template>
@ -27,6 +31,7 @@
let waitingData = ref() let waitingData = ref()
let passData = ref() let passData = ref()
let failData = ref() let failData = ref()
let trueData = ref()
function ArrToStr(data) { function ArrToStr(data) {
let RData = '' let RData = ''
data.forEach((item) => { data.forEach((item) => {
@ -40,6 +45,7 @@
console.log(res) console.log(res)
failData.value = ArrToStr(res.data.wrongCntrnoList) failData.value = ArrToStr(res.data.wrongCntrnoList)
passData.value = ArrToStr(res.data.rightCntrnoList) passData.value = ArrToStr(res.data.rightCntrnoList)
trueData.value = ArrToStr(res.data.trueCntrnoList)
notification.success({ message: '校验完成', duration: 3 }) notification.success({ message: '校验完成', duration: 3 })
}) })
.catch((err) => { .catch((err) => {
@ -49,7 +55,7 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.mainBox { .mainBox {
padding: 5% 55% 5% 5%; padding: 5% 5% 5% 5%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
// align-items: center; // align-items: center;
@ -57,10 +63,10 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right; background-position: right;
.TopBox { .TopBox {
width: 1000px; width: 70%;
} }
.ButtonBox { .ButtonBox {
width: 1000px; width: 70%;
display: flex; display: flex;
justify-content: end; justify-content: end;
.CheckButton { .CheckButton {
@ -70,7 +76,7 @@
} }
.BottomBox { .BottomBox {
width: 1000px; width: 70%;
} }
p { p {
margin: 0; margin: 0;

@ -552,6 +552,7 @@
width: 120, width: 120,
data: 'rentDirect', data: 'rentDirect',
type: 'dropdown', type: 'dropdown',
readOnly: true,
source: async (query, process) => { source: async (query, process) => {
const res = rentDirectDict.value.length const res = rentDirectDict.value.length
? rentDirectDict.value ? rentDirectDict.value
@ -568,6 +569,7 @@
width: 120, width: 120,
data: 'rentType', data: 'rentType',
type: 'dropdown', type: 'dropdown',
readOnly: true,
source: async (query, process) => { source: async (query, process) => {
const res = rentTypeDict.value.length const res = rentTypeDict.value.length
? rentTypeDict.value ? rentTypeDict.value

@ -79,21 +79,48 @@
if (DiyFieldIdS.value.length) { if (DiyFieldIdS.value.length) {
DiyFieldIdS.value.forEach((item) => { DiyFieldIdS.value.forEach((item) => {
removeSchemaByField(item.value) removeSchemaByField(item.value)
removeSchemaByField(`${item.value}-fileType`)
}) })
} }
DiyFieldIdS.value.splice(0) DiyFieldIdS.value.splice(0)
data.forEach((item) => { data.forEach((item) => {
appendSchemaByField( appendSchemaByField(
{ [
field: item.value, {
label: item.label, field: item.value,
component: 'Input', label: item.label,
colProps: { span: 6 }, component: 'Input',
componentProps: { colProps: { span: 6 },
placeholder: '自定义文件名称', componentProps: {
placeholder: '自定义文件名称',
},
}, },
}, {
field: `${item.value}-fileType`,
label: `${item.label}-文件类型`,
component: 'Select',
colProps: { span: 6 },
componentProps: {
placeholder: '自定义文件类型',
allowClear: true,
options: [
{
label: 'PDF',
value: 1,
},
{
label: 'Excel',
value: 2,
},
{
label: 'Word',
value: 3,
},
],
},
},
],
'attachments', 'attachments',
) )
DiyFieldIdS.value.push(item) DiyFieldIdS.value.push(item)
@ -140,6 +167,7 @@
isUpdate.value = !!data?.isUpdate isUpdate.value = !!data?.isUpdate
DiyFieldIdS.value.forEach((item) => { DiyFieldIdS.value.forEach((item) => {
removeSchemaByField(item.value) removeSchemaByField(item.value)
removeSchemaByField(`${item.value}-fileType`)
}) })
DiyFieldIdS.value.splice(0) DiyFieldIdS.value.splice(0)
if (unref(isUpdate)) { if (unref(isUpdate)) {
@ -167,6 +195,7 @@
label: element.templateName, label: element.templateName,
}) })
DiyFieldIdSObj[e.templateId] = e.fileName DiyFieldIdSObj[e.templateId] = e.fileName
DiyFieldIdSObj[`${e.templateId}-fileType`] = e.fileType
} }
}) })
}) })
@ -205,6 +234,7 @@
function handlecloseModal() { function handlecloseModal() {
DiyFieldIdS.value.forEach((item) => { DiyFieldIdS.value.forEach((item) => {
removeSchemaByField(item.value) removeSchemaByField(item.value)
removeSchemaByField(`${item.value}-fileType`)
}) })
closeModal() closeModal()
} }
@ -232,6 +262,7 @@
taskMailId: values.id, taskMailId: values.id,
templateId: item.id, templateId: item.id,
fileName: values[item.id] ? values[item.id] : item.templateName, fileName: values[item.id] ? values[item.id] : item.templateName,
fileType: values[`${item.id}-fileType`],
}) })
} }
}) })
@ -272,6 +303,7 @@
async function refresh() { async function refresh() {
DiyFieldIdS.value.forEach((item) => { DiyFieldIdS.value.forEach((item) => {
removeSchemaByField(item.value) removeSchemaByField(item.value)
removeSchemaByField(`${item.value}-fileType`)
}) })
DiyFieldIdS.value.splice(0) DiyFieldIdS.value.splice(0)
const res: API.DataResult = await ApiInfo({ id: unref(rowId) }) const res: API.DataResult = await ApiInfo({ id: unref(rowId) })

@ -11,7 +11,7 @@ export const columns: BasicColumn[] = [
{ {
title: '币别', title: '币别',
dataIndex: 'currencyCode', dataIndex: 'currencyCode',
width: 100 width: 100,
}, },
{ {
title: '开始日期', title: '开始日期',
@ -21,7 +21,7 @@ export const columns: BasicColumn[] = [
if (text) { if (text) {
return text.split(' ')[0] return text.split(' ')[0]
} }
} },
}, },
{ {
title: '结束日期', title: '结束日期',
@ -31,27 +31,27 @@ export const columns: BasicColumn[] = [
if (text) { if (text) {
return text.split(' ')[0] return text.split(' ')[0]
} }
} },
}, },
{ {
title: '应收汇率', title: '应收汇率',
dataIndex: 'drValue', dataIndex: 'drValue',
width: 120 width: 120,
}, },
{ {
title: '应付汇率', title: '应付汇率',
dataIndex: 'crValue', dataIndex: 'crValue',
width: 120 width: 120,
}, },
{ {
title: '海关汇率', title: '海关汇率',
dataIndex: 'customValue', dataIndex: 'customValue',
width: 120 width: 120,
}, },
{ {
title: '本币位', title: '本币位',
dataIndex: 'localCurrency', dataIndex: 'localCurrency',
width: 120 width: 120,
}, },
{ {
title: '录入时间', title: '录入时间',
@ -61,13 +61,13 @@ export const columns: BasicColumn[] = [
if (text) { if (text) {
return text.split(' ')[0] return text.split(' ')[0]
} }
} },
}, },
{ {
title: '备注', title: '备注',
dataIndex: 'note', dataIndex: 'note',
width: 150 width: 150,
} },
] ]
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
@ -81,10 +81,10 @@ export const searchFormSchema: FormSchema[] = [
api: GetFeeCurrencySelectList, api: GetFeeCurrencySelectList,
labelField: 'name', labelField: 'name',
valueField: 'codeName', valueField: 'codeName',
resultField: 'data' resultField: 'data',
} }
} },
} },
] ]
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {
@ -92,7 +92,7 @@ export const formSchema: FormSchema[] = [
field: 'id', field: 'id',
component: 'Input', component: 'Input',
defaultValue: '', defaultValue: '',
show: false show: false,
}, },
{ {
field: 'currencyCode', field: 'currencyCode',
@ -108,9 +108,9 @@ export const formSchema: FormSchema[] = [
resultField: 'data', resultField: 'data',
onChange: (v) => { onChange: (v) => {
formModel.currencyCode = v formModel.currencyCode = v
} },
} }
} },
}, },
{ {
field: 'startDate', field: 'startDate',
@ -124,8 +124,8 @@ export const formSchema: FormSchema[] = [
componentProps: { componentProps: {
showTime: false, showTime: false,
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
width: '100%' width: '100%',
} },
}, },
{ {
field: 'endDate', field: 'endDate',
@ -141,8 +141,8 @@ export const formSchema: FormSchema[] = [
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
disabledDate: (current: dayjs.Dayjs) => { disabledDate: (current: dayjs.Dayjs) => {
return current && current < dayjs().add(-1, 'day').endOf('day') return current && current < dayjs().add(-1, 'day').endOf('day')
} },
} },
}, },
{ {
field: 'drValue', field: 'drValue',
@ -150,10 +150,16 @@ export const formSchema: FormSchema[] = [
defaultValue: '', defaultValue: '',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: { componentProps: ({ formModel }) => {
min: 0, return {
precision: 2 min: 0,
} precision: 6,
onChange: (e) => {
formModel.crValue = e
formModel.customValue = e
},
}
},
}, },
{ {
field: 'crValue', field: 'crValue',
@ -163,8 +169,8 @@ export const formSchema: FormSchema[] = [
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: { componentProps: {
min: 0, min: 0,
precision: 2 precision: 6,
} },
}, },
{ {
field: 'customValue', field: 'customValue',
@ -174,21 +180,21 @@ export const formSchema: FormSchema[] = [
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: { componentProps: {
min: 0, min: 0,
precision: 2 precision: 6,
} },
}, },
{ {
field: 'localCurrency', field: 'localCurrency',
label: '本币位', label: '本币位',
defaultValue: '', defaultValue: '',
component: 'Input', component: 'Input',
colProps: { span: 12 } colProps: { span: 12 },
}, },
{ {
field: 'note', field: 'note',
label: '备注', label: '备注',
defaultValue: '', defaultValue: '',
component: 'Input', component: 'Input',
colProps: { span: 12 } colProps: { span: 12 },
} },
] ]

Loading…
Cancel
Save