feature-JimuReport-1106-yjl
lijingjia 4 weeks ago
commit 7d380858f3

@ -56,7 +56,7 @@
name: { name: {
type: String, type: String,
default: '', default: '',
} },
}, },
setup(props, context) { setup(props, context) {
const { t } = useI18n() const { t } = useI18n()
@ -74,6 +74,7 @@
required: item.required || false, required: item.required || false,
colProps: item.colProps || { span: 24 }, colProps: item.colProps || { span: 24 },
component: item.component, component: item.component,
slot: item.slot,
} }
// //
if (item.show !== false) { if (item.show !== false) {
@ -95,8 +96,7 @@
columns: columns, columns: columns,
}), }),
} }
editCodeGoodsType(Apidata) editCodeGoodsType(Apidata).then((res) => {
.then((res) => {
if (res.succeeded) { if (res.succeeded) {
createMessage.success('添加成功!') createMessage.success('添加成功!')
} }

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<a-modal :footer="false" v-model:visible="visible" title="" width="1050px" :maskClosable="false"> <a-modal :zIndex="1100" :footer="false" v-model:visible="visible" title="" width="1050px" :maskClosable="false">
<div style="padding-bottom: 20px"> <div style="padding-bottom: 20px">
<div style="margin-bottom: 15px;padding-top: 15px;"> <div style="margin-bottom: 15px;padding-top: 15px;">
<a-button type="primary" size="small" @click="print"></a-button> <a-button type="primary" size="small" @click="print"></a-button>

@ -165,9 +165,6 @@
> >
</div> </div>
</template> </template>
<!-- <template #description="item">
</template> -->
<template #description="{ model, values }"> <template #description="{ model, values }">
<span <span
v-show="values.description" v-show="values.description"

@ -63,7 +63,7 @@
</a-menu> </a-menu>
</template> </template>
</a-dropdown> </a-dropdown>
<div class="status" > <div class="status">
<i class="icon-chenggong iconfont" style="font-size: 14px"></i> <i class="icon-chenggong iconfont" style="font-size: 14px"></i>
{{ form.statusText }} {{ form.statusText }}
</div> </div>
@ -822,12 +822,19 @@ function openTemp() {
}) })
} }
function handleApply() { function handleApply() {
if (!loading.value) {
loading.value = true
ApplyAudit({ ids: [route.query.id] }).then(res => { ApplyAudit({ ids: [route.query.id] }).then(res => {
if (res.succeeded) { if (res.succeeded) {
createMessage.success('操作成功') createMessage.success('操作成功')
getDetail() getDetail()
} else {
loading.value = false
} }
}).catch(() => {
loading.value = false
}) })
}
} }
function handleNew() { function handleNew() {
go(`/invoiceapplyDetail?type=add`) go(`/invoiceapplyDetail?type=add`)
@ -863,12 +870,20 @@ function init() {
}) })
} }
function handleWithdraw() { function handleWithdraw() {
if (!loading.value) {
loading.value = true
Withdraw({ ids: [route.query.id] }).then(res => { Withdraw({ ids: [route.query.id] }).then(res => {
if (res.succeeded) { if (res.succeeded) {
createMessage.success('操作成功') createMessage.success('操作成功')
getDetail() getDetail()
} else {
loading.value = false
} }
}).catch(()=>{
loading.value = false
}) })
}
} }
function handleAddLabel(val) { function handleAddLabel(val) {
tempContent.value += '[' + val.displayName + ']' tempContent.value += '[' + val.displayName + ']'
@ -1133,7 +1148,7 @@ function mergeByCurrency(arr) {
const result = {}; const result = {};
arr.forEach(item => { arr.forEach(item => {
if (result[item.currency]) { if (result[item.currency]) {
result[item.currency].applyAmount += item.applyAmount ; result[item.currency].applyAmount += item.applyAmount;
result[item.currency].applyAmount = Number(result[item.currency].applyAmount.toFixed(2)) result[item.currency].applyAmount = Number(result[item.currency].applyAmount.toFixed(2))
} else { } else {
result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) }; result[item.currency] = { currency: item.currency, applyAmount: Number(item.applyAmount.toFixed(2)) };

@ -77,7 +77,7 @@
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<div class="left-top"> <div class="left-top">
<div class="left-top-item" style="padding-right: 100px"> <div class="left-top-item" style="padding-right: 60px">
<editCompent :showEdit="false" ref="editCompentRef" label="发票币别:"> <editCompent :showEdit="false" ref="editCompentRef" label="发票币别:">
<template #text> <template #text>
<span> {{ form.currency }}</span> <span> {{ form.currency }}</span>

@ -6,7 +6,7 @@
<a-tab-pane :key="pdfType[0]" 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-tab-pane :key="pdfType[1]" tab="BC更改文件"></a-tab-pane>
</a-tabs> </a-tabs>
<span style="margin:0 20px;font-size: 16px;font-weight: bold;color: black">{{ pdfName }}</span> <span style="margin:0 20px;font-size: 16px;font-weight: bold;color: black;word-break: break-all">{{ pdfName }}</span>
<a-button type="link" @click="handleDownPdf"> <a-button type="link" @click="handleDownPdf">
<i class="iconfont icon-xiazai1"></i> <i class="iconfont icon-xiazai1"></i>
下载pdf文件</a-button> 下载pdf文件</a-button>

@ -274,12 +274,13 @@ function reload() {
getInfo(taskType.value) getInfo(taskType.value)
} }
const router = useRouter(); const router = useRouter();
import { useGo } from '/@/hooks/web/usePage'
const go = useGo()
function FnSee() { function FnSee() {
router.push({ path: '/BookingDetail?id=' + form.value.bookingOrderId }) go({ path: '/BookingDetail?id=' + form.value.bookingOrderId + '&source=edit' })
} }
function FnSee1() { function FnSee1() {
router.push({ path: '/CabinManagementDetails?type=Edit&id=' + form.value.bookingSlotId }) go({ path: '/CabinManagementDetail',query: { id: form.value.bookingSlotId,type:'edit'} })
} }
function copyText(text) { function copyText(text) {
const inputDom = document.createElement('textarea') const inputDom = document.createElement('textarea')

@ -845,7 +845,6 @@ function handledbclick(row) {
handleEdit(row) handleEdit(row)
} }
function handleResetFunc() { function handleResetFunc() {
console.log('handleResetFunc')
} }
function handleEdit(data) { function handleEdit(data) {
// id // id
@ -856,8 +855,6 @@ function handleEdit(data) {
if (item.recvUserId == userid) statusFlag = true if (item.recvUserId == userid) statusFlag = true
}) })
} }
console.log(data, 1111111111)
switch (data.tasK_TYPE) { switch (data.tasK_TYPE) {
case 'VGM_COMPARE': case 'VGM_COMPARE':
// VGM // VGM

Loading…
Cancel
Save