更新发票申请

szh-new
sunzehua 4 months ago
parent a47ac90c60
commit 6e1a67ba51

@ -602,28 +602,28 @@ export const columns: BasicColumn[] = [
title: '创建日期',
align: 'center',
width: 150,
dataIndex: 'createdTime',
dataIndex: 'createTime',
customCell: sharedOnCell,
},
{
title: '创建人',
align: 'center',
width: 100,
dataIndex: 'createdUserName',
dataIndex: 'createUserName',
customCell: sharedOnCell,
},
{
title: '更新日期',
align: 'center',
width: 150,
dataIndex: 'updatedTime',
dataIndex: 'updateTime',
customCell: sharedOnCell,
},
{
title: '更新人',
align: 'center',
width: 100,
dataIndex: 'updatedUserName',
dataIndex: 'updateUserName',
customCell: sharedOnCell,
},
{
@ -785,12 +785,10 @@ export const detialForm: FormSchema[] = [
],
onChange: (e, obj) => {
if (e && obj) {
console.log(e, obj,1)
formModel.bookingSlotTypeName = obj.label
}
if (!obj && !e) {
formModel.bookingSlotTypeName = ''
console.log(e, obj,2)
}
},
}

@ -339,13 +339,13 @@ export const columns: BasicColumn[] = [
title: '订舱人',
align: 'center',
width: 130,
dataIndex: 'createdUserName'
dataIndex: 'createUserName'
},
{
title: '订舱日期',
align: 'center',
width: 150,
dataIndex: 'createdTime'
dataIndex: 'createTime'
},
{
title: '金额',

@ -96,4 +96,13 @@ export function RenderTemplate(parameter) {
})
}
export function InvoiceApplicationDelete(parameter) {
return request({
url: '/feeApi/InvoiceApplication/Delete',
method: 'post',
data: parameter,
})
}

@ -50,7 +50,7 @@ import { BasicForm, useForm } from '/@/components/Form/index'
import { AutoComplete } from 'ant-design-vue'
import { detailForm } from '../columns'
import feeTable from './feeTable.vue';
import { InvoiceApplicationSave, InvoiceApplicationGet, GetTemplateFields, SaveTemplate, GetTemplateList } from '../api'
import { InvoiceApplicationSave, InvoiceApplicationGet, GetTemplateFields, SaveTemplate, GetTemplateList,RenderTemplate } from '../api'
import { useMessage } from '/@/hooks/web/useMessage'
import { useRoute } from 'vue-router'
const route = useRoute()
@ -150,6 +150,12 @@ function getDetail() {
}
function openTempName() {
nameFlag.value = true
GetTemplateList().then(res => {
tempList.value = res.data
tempList.value.forEach(item => {
item.value = item.name
})
})
}
function updateListSave() {
@ -162,6 +168,14 @@ function handleRender(){
temp = item.content
}
})
const data = {
id:id.value,
template: temp
}
RenderTemplate(data).then(res=>{
})
}
const tempName = ref('')
const tempId = ref('')

@ -82,7 +82,7 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { GetList} from './api.js'
import { GetList,InvoiceApplicationDelete} from './api.js'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import { columns, searchFormSchema, billTypeData } from './columns'
import { GetOpenPrintModuleList } from '/@/views/operation/seaexport/api/BookingLedger.js'
@ -90,6 +90,7 @@
import DsPrint from '/@/components/Print/index.vue'
import { useMessage } from '/@/hooks/web/useMessage'
const { notification } = useMessage()
const { createMessage } = useMessage()
import { useGo } from '/@/hooks/web/usePage'
const go = useGo()
//
@ -97,7 +98,7 @@
import { useAppStore } from '/@/store/modules/app'
const appStore = useAppStore()
//
const [registerTable, { getForm, getPaginationRef, getSelectRows, getRawDataSource }] = useTable({
const [registerTable, { reload, getPaginationRef, getSelectRows, getRawDataSource }] = useTable({
title: '',
api: async (p) => {
const res: API.DataResult = await GetList(p)
@ -144,7 +145,15 @@
}
//
function FnDel() {
notification.warning({ message: '待开发', duration: 3 })
const ids = getSelectRows().map((item) => {
return item.id
})
InvoiceApplicationDelete({ids:ids}).then(res=>{
if(res.succeeded){
createMessage.success('删除成功')
reload()
}
})
}

Loading…
Cancel
Save