更新发票申请+任务

szh-new
sunzehua 4 months ago
parent ad4d6db3c0
commit 992b02220a

@ -7,6 +7,11 @@ export const billTypeData = [
{ code: 4, value: '已开出' },
{ code: 5, value: '部分开出' },
]
export const CategoryData = [
{ code: 0, value: '普通发票' },
{ code: 1, value: '电子发票' },
{ code: 2, value: '纸质发票' },
]
import {
GetControllerClientList,
} from '/@/views/operation/seaexport/api/BookingLedger'
@ -169,7 +174,7 @@ export const columns: BasicColumn[] = [
},
{
title: '实际开出发票号',
dataIndex: 'orgName',
dataIndex: 'AcutalInvoiceNO',
width: 100,
align: 'left',
},
@ -199,7 +204,7 @@ export const columns: BasicColumn[] = [
},
{
title: '开票日期',
dataIndex: 'applyDate',
dataIndex: 'InvoiceDate',
width: 100,
align: 'left',
},
@ -285,8 +290,9 @@ export const detailForm: FormSchema[] = [
colProps: { span: 4 },
},
{
field: 'applicationNO',
field: 'AcutalInvoiceNO',
label: '实际发票号',
dynamicDisabled: true,
component: 'Input',
colProps: { span: 4 },
},
@ -329,4 +335,83 @@ export const detailForm: FormSchema[] = [
}
},
},
{
field: 'Category',
label: '申请类型',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: CategoryData,
},
},
{
field: 'invoiceCurrency',
label: '发票币别',
defaultValue: '',
component: 'ApiSelect',
colProps: { span: 4 },
componentProps: () => {
return {
api: GetFeeCurrencySelectList,
labelField: 'name',
valueField: 'codeName',
resultField: 'data',
}
},
},
{
label: '委托单位',
field: 'customerId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
api: () => {
return new Promise((resolve) => {
GetControllerClientList().then((res) => {
res.data.forEach((item) => {
if (item.codeName) item.shortName = item.codeName + '/' + item.shortName
})
resolve(res)
})
})
},
immediate: false,
labelField: 'shortName',
valueField: 'codeName',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
label: '代开客户',
field: 'autualCustomerName',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
api: () => {
return new Promise((resolve) => {
GetControllerClientList().then((res) => {
resolve(res)
})
})
},
immediate: false,
labelField: 'shortName',
valueField: 'shortName',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
]

@ -3,8 +3,8 @@
<a-spin :spinning="pdfLoad" style="height: 100%;" >
<div class="pdf-header">
<a-tabs style="width:150px" v-model:activeKey="fileCategory" @change="ChangeFileRadio">
<a-tab-pane key="BC" tab="BC文件"></a-tab-pane>
<a-tab-pane key="BC_NOTICE" tab="BC更改文件"></a-tab-pane>
<a-tab-pane :key="pdfType[0]" tab="BC文件"></a-tab-pane>
<a-tab-pane :key="pdfType[1]" tab="BC更改文件"></a-tab-pane>
</a-tabs>
<span style="margin:0 20px;font-size: 16px;font-weight: bold;color: black">{{ pdfName }}</span>
<a-button type="link" @click="handleDownPdf">
@ -26,11 +26,13 @@ const props = defineProps({
type: String || Number
},
});
const fileCategory = ref('BC')
const pdfType = ref([]) as any
const fileCategory = ref('')
const pdfName = ref('')
const pdfUrl = ref('')
const pdfRes = ref(null) as any
const pdfLoad = ref(false)
function ChangeFileRadio() {
init()
}
@ -82,7 +84,12 @@ function init() {
pdfLoad.value = false
})
}
defineExpose({ init })
function startInit(type){
pdfType.value = type
fileCategory.value = type[0]
init()
}
defineExpose({ startInit })
</script>
<style lang="less" scoped>
.pdf-header {

@ -353,6 +353,7 @@ function getCurrentTotalStat() {
}
levelTree.value = selectTreeLevel(levelTreeAll.value, activeNextKey.value, activeTopKey.value)
}
}
activeTreeKey.value = []
taskType.value = ''
@ -475,6 +476,17 @@ function changeTopLevel() {
levelTree.value.forEach(item => {
item.active = false
})
const arr = [] as any
columsAll.value.forEach(item => {
if (item.taskTypeCode === 'BASIC') {
JSON.parse(item.content).forEach(item => {
if (item.checked) {
arr.push(item)
}
})
}
})
setColumns(arr)
reload()
}
@ -487,6 +499,17 @@ function changeNextLevel() {
levelTree.value.forEach(item => {
item.active = false
})
const arr = [] as any
columsAll.value.forEach(item => {
if (item.taskTypeCode === 'BASIC') {
JSON.parse(item.content).forEach(item => {
if (item.checked) {
arr.push(item)
}
})
}
})
setColumns(arr)
reload()
}
function selectTreeLevel(list, key, topKey) {
@ -785,6 +808,17 @@ function getSetColumns() {
if (res.succeeded) {
if (res.data.length > 0) {
columsAll.value = res.data
const arr = [] as any
columsAll.value.forEach(item => {
if (item.taskTypeCode === 'BASIC') {
JSON.parse(item.content).forEach(item => {
if (item.checked) {
arr.push(item)
}
})
}
})
setColumns(arr)
}
}
})
@ -1205,15 +1239,15 @@ function handleClickTree(row, index) {
let arr1 = [] as any
columsAll.value.forEach(item => {
if (item.taskTypeCode === row.key) {
JSON.parse(item.content).forEach(item=>{
if(item.checked){
JSON.parse(item.content).forEach(item => {
if (item.checked) {
arr.push(item)
}
})
}
if (item.taskTypeCode === 'BASIC') {
JSON.parse(item.content).forEach(item=>{
if(item.checked){
JSON.parse(item.content).forEach(item => {
if (item.checked) {
arr1.push(item)
}
})

@ -35,7 +35,7 @@ const taskDataRef = ref()
const pdfData = ref()
onMounted(() => {
taskDataRef.value.getInfo('Amendment')
pdfData.value.init()
pdfData.value.startInit(['BC_MODIFY','BC_MODIFY_NOTICE'])
})
const taskPKId = ref(route.query.taskPKId)
const spinning = ref(false)

@ -42,7 +42,7 @@ const pdfData = ref()
onMounted(() => {
taskDataRef.value.getInfo()
pdfData.value.init()
pdfData.value.init(['BC','BC_NOTICE'])
})
function loadingStart() {

@ -43,7 +43,7 @@ function handleSuccess(url) {
const pdfData = ref()
onMounted(() => {
taskDataRef.value.getInfo()
pdfData.value.init()
pdfData.value.init(['BC','BC_NOTICE'])
})
function loadingStart() {

@ -4,6 +4,7 @@
"title":"基础信息",
"list":[
{"dataIndex":"tasK_NO","title":"任务流水号","width":150},
{"dataIndex":"tasK_USER_STATUS_NAME","width": 120,"title":"任务个人状态" },
{"dataIndex":"tasK_TYPE_NAME","title":"任务类型","width":100, "sortable": true},
{"dataIndex":"tasK_SOURCE_NAME","title":"任务来源","width":100},
{"dataIndex":"statuS_NAME","title":"任务状态","width":100},
@ -35,7 +36,7 @@
{"dataIndex":"batcH_STATIC","title":"批次统计","width":100},
{"dataIndex":"systeM_NAME","title":"平台名称","width":100},
{"dataIndex":"createdUserName","title":"接收人","width":100},
{"dataIndex":"createdTime","title":"接收时间","width":200, "sortable": true}
{"dataIndex":"createdTime","title":"创建时间","width":200, "sortable": true}
]
},
{

Loading…
Cancel
Save