更新发票申请

szh-new
sunzehua 3 months ago
parent 7623171342
commit a47ac90c60

@ -87,3 +87,13 @@ export function GetTemplateList(parameter) {
params:parameter params:parameter
}) })
} }
export function RenderTemplate(parameter) {
return request({
url: '/feeApi/InvoiceApplication/RenderTemplate',
method: 'get',
params:parameter
})
}

@ -9,7 +9,8 @@
<template #note="{ model, field }"> <template #note="{ model, field }">
<div style="display: flex;align-items: center;height: 22px;line-height: 22px;"> <div style="display: flex;align-items: center;height: 22px;line-height: 22px;">
备注: 备注:
<a-button @click="openTempName" style="margin: 0 15px 0 20px;" type="link"> <i class="icon-a-17Btuichu iconfont"></i> <a-button @click="openTempName" style="margin: 0 15px 0 20px;" type="link"> <i
class="icon-a-17Btuichu iconfont"></i>
提取备注</a-button> 提取备注</a-button>
<a-button type="link" @click="openTemp"><i class="icon-jichupeizhi iconfont"></i>模板设置</a-button> <a-button type="link" @click="openTemp"><i class="icon-jichupeizhi iconfont"></i>模板设置</a-button>
</div> </div>
@ -35,6 +36,11 @@
</div> </div>
</div> </div>
</a-modal> </a-modal>
<a-modal @cancel="nameFlag = false" width="700px" :visible="nameFlag" title="提取发票备注" @ok="handleRender">
<a-select v-model:value="tempNameId" style="width: 80%">
<a-select-option :value="item.id" v-for="(item,index) in tempList" :key="index" >{{ item.name }}</a-select-option>
</a-select>
</a-modal>
</a-spin> </a-spin>
</div> </div>
</template> </template>
@ -57,6 +63,7 @@ const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
}) })
const feeTableRef = ref(null) as any const feeTableRef = ref(null) as any
const open = ref(false) const open = ref(false)
const nameFlag = ref(false)
async function handleSave() { async function handleSave() {
const values = await validate() const values = await validate()
const data = { const data = {
@ -142,10 +149,19 @@ function getDetail() {
}) })
} }
function openTempName() { function openTempName() {
nameFlag.value = true
} }
function updateListSave() { function updateListSave() {
}
const tempNameId = ref('')
function handleRender(){
let temp = ''
tempList.value.forEach(item=>{
if(item.id==tempNameId.value){
temp = item.content
}
})
} }
const tempName = ref('') const tempName = ref('')
const tempId = ref('') const tempId = ref('')

@ -1702,10 +1702,10 @@
let RData = 0 let RData = 0
list.value.forEach((e) => { list.value.forEach((e) => {
if (e.kgs) { if (e.kgs) {
RData = RData + parseInt(e.kgs) RData = RData + Number(e.kgs)
} }
}) })
totalKgs.value = RData totalKgs.value = RData.toFixed(2)
emit('changeTotal', { type: 'totalKgs', val: totalKgs.value }) emit('changeTotal', { type: 'totalKgs', val: totalKgs.value })
} }
// //
@ -1713,10 +1713,10 @@
let RData = 0 let RData = 0
list.value.forEach((e) => { list.value.forEach((e) => {
if (e.cbm) { if (e.cbm) {
RData = RData + parseInt(e.cbm) RData = RData + Number(e.cbm)
} }
}) })
totalCbm.value = RData totalCbm.value = RData.toFixed(2)
emit('changeTotal', { type: 'totalCbm', val: totalCbm.value }) emit('changeTotal', { type: 'totalCbm', val: totalCbm.value })
} }
// //

@ -1053,7 +1053,7 @@
const voltaFlag = ref(false) const voltaFlag = ref(false)
const voltaData = ref([]) const voltaData = ref([])
const bookingModelFrom = reactive({ const bookingModelFrom = reactive({
id: props, id: props.id,
orderNo: props.details.mblno, orderNo: props.details.mblno,
useForwarderCode: false, useForwarderCode: false,
forwarderCode: '', forwarderCode: '',
@ -1281,7 +1281,6 @@
fileRole: bookingModelFrom.fileRole, fileRole: bookingModelFrom.fileRole,
sendType: modelType.value === 'bookingSpace' ? 'B' : 'E', sendType: modelType.value === 'bookingSpace' ? 'B' : 'E',
} }
EDISloading.value = true EDISloading.value = true
if (modelType.value === 'bookingSpace') { if (modelType.value === 'bookingSpace') {
// //

Loading…
Cancel
Save