更新发票申请

szh-new
sunzehua 4 months ago
parent 7623171342
commit a47ac90c60

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

@ -9,7 +9,8 @@
<template #note="{ model, field }">
<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 type="link" @click="openTemp"><i class="icon-jichupeizhi iconfont"></i>模板设置</a-button>
</div>
@ -35,6 +36,11 @@
</div>
</div>
</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>
</div>
</template>
@ -57,6 +63,7 @@ const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
})
const feeTableRef = ref(null) as any
const open = ref(false)
const nameFlag = ref(false)
async function handleSave() {
const values = await validate()
const data = {
@ -141,11 +148,20 @@ function getDetail() {
}
})
}
function openTempName(){
function openTempName() {
nameFlag.value = true
}
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 tempId = ref('')

@ -1702,10 +1702,10 @@
let RData = 0
list.value.forEach((e) => {
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 })
}
//
@ -1713,10 +1713,10 @@
let RData = 0
list.value.forEach((e) => {
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 })
}
//

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

Loading…
Cancel
Save