add
This commit is contained in:
parent
ddab7a6b4d
commit
c416e1e494
@ -85,3 +85,24 @@ export function apiInvliceInvoice(params: any) {
|
|||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function apiInvlicevVoids(params: any) {
|
||||||
|
return request.post({
|
||||||
|
url: "/works.finance.invoice/voids",
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
export function apiInvliceLists(params: any) {
|
||||||
|
return request.get({ url: "/works.finance.income/lists", params });
|
||||||
|
}
|
||||||
|
|
||||||
|
export function apiInvliceIncomeIndex(params: any) {
|
||||||
|
return request.get({ url: "/works.finance.income/index", params });
|
||||||
|
}
|
||||||
|
|
||||||
|
export function apiInvlicevAdd(params: any) {
|
||||||
|
return request.post({
|
||||||
|
url: "/works.finance.income/add",
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@ -1,130 +1,139 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detail-popup">
|
<div class="detail-popup">
|
||||||
<popup ref="popupRef" :showFootBtn="false" title="审批详情" :async="true" width="60vw">
|
<popup ref="popupRef" :showFootBtn="false" title="审批详情" :async="true" width="60vw">
|
||||||
<el-card>
|
<el-card>
|
||||||
<template #header>审批内容</template>
|
<template #header>审批内容</template>
|
||||||
<el-descriptions :column="3" border>
|
<el-descriptions :column="3" border>
|
||||||
<el-descriptions-item label="发票金额" label-align="left" align="left">
|
<el-descriptions-item label="发票金额" label-align="left" align="left">
|
||||||
{{ formData.amount }}
|
{{ formData.amount }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="抬头类型" label-align="left" align="left">
|
<el-descriptions-item label="抬头类型" label-align="left" align="left">
|
||||||
{{ formData.type_text }}
|
{{ formData.type_text }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="发票主体" label-align="left" align="left">
|
<el-descriptions-item label="发票主体" label-align="left" align="left">
|
||||||
{{ formData.invoice_subject }}
|
{{ formData.invoice_subject }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="发票类型" label-align="left" align="left">
|
<el-descriptions-item label="发票类型" label-align="left" align="left">
|
||||||
{{ formData.invoice_type_text }}
|
{{ formData.invoice_type_text }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="开票抬头" label-align="left" align="left">
|
<el-descriptions-item label="开票抬头" label-align="left" align="left">
|
||||||
{{ formData.invoice_title }}
|
{{ formData.invoice_title }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="电话号码" label-align="left" align="left">
|
<el-descriptions-item label="电话号码" label-align="left" align="left">
|
||||||
{{ formData.invoice_phone }}
|
{{ formData.invoice_phone }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="纳税人识别号" label-align="left" align="left">
|
<el-descriptions-item label="纳税人识别号" label-align="left" align="left">
|
||||||
{{ formData.invoice_tax }}
|
{{ formData.invoice_tax }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="开户银行" label-align="left" align="left">
|
<el-descriptions-item label="开户银行" label-align="left" align="left">
|
||||||
{{ formData.invoice_bank }}
|
{{ formData.invoice_bank }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="银行账号" label-align="left" align="left">
|
<el-descriptions-item label="银行账号" label-align="left" align="left">
|
||||||
{{ formData.invoice_account }}
|
{{ formData.invoice_account }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="银行营业网点" label-align="left" align="left">
|
<el-descriptions-item label="银行营业网点" label-align="left" align="left">
|
||||||
{{ formData.invoice_banking }}
|
{{ formData.invoice_banking }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="地址" label-align="left" align="left">
|
<el-descriptions-item label="地址" label-align="left" align="left">
|
||||||
{{ formData.invoice_address }}
|
{{ formData.invoice_address }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="开票人" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="未到账金额" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="已到账金额" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item label="开票人" label-align="left" align="left">
|
<el-descriptions-item label="备注" label-align="left" align="left">
|
||||||
{{ formData.invoice_address }}
|
{{ formData.remark }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="未到账金额" label-align="left" align="left">
|
<el-descriptions-item label="附件" label-align="left" align="left">
|
||||||
{{ formData.invoice_address }}
|
<annexLink :annex="formData.annex || []"></annexLink>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="已到账金额" label-align="left" align="left">
|
</el-descriptions>
|
||||||
{{ formData.invoice_address }}
|
</el-card>
|
||||||
</el-descriptions-item>
|
<el-card>
|
||||||
|
<template #header> 到账信息 </template>
|
||||||
|
<el-descriptions :column="3" border>
|
||||||
|
<el-descriptions-item label="到账状态" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_account }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="未到账金额(元)" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_banking }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="已到账金额(元)" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_address }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
|
||||||
|
<el-table :data="detail">
|
||||||
<el-descriptions-item label="备注" label-align="left" align="left">
|
<el-table-column label="到账金额" show-overflow-tooltip prop="amount">
|
||||||
{{ formData.remark }}
|
</el-table-column>
|
||||||
</el-descriptions-item>
|
<el-table-column label="到账日期" show-overflow-tooltip prop="enter_time">
|
||||||
<el-descriptions-item label="附件" label-align="left" align="left">
|
</el-table-column>
|
||||||
<annexLink :annex="formData.annex || []"></annexLink>
|
<el-table-column label="备注信息" show-overflow-tooltip prop="remarks">
|
||||||
</el-descriptions-item>
|
</el-table-column>
|
||||||
</el-descriptions>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
</popup>
|
||||||
</popup>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup name="customdetail">
|
<script lang="ts" setup name="customdetail">
|
||||||
import annexLink from './../../components/annexLink/index.vue'
|
import annexLink from "./../../components/annexLink/index.vue";
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from "@/components/popup/index.vue";
|
||||||
import useUserStore from "@/stores/modules/user";
|
import { apiInvliceLists } from '@/api/oa_financial'
|
||||||
import { Clock } from '@element-plus/icons-vue'
|
|
||||||
import { apiInvliceCheck } from '@/api/oa_financial'
|
|
||||||
|
|
||||||
|
const emit = defineEmits(["close"]);
|
||||||
const emit = defineEmits(['close'])
|
const popupRef = shallowRef<InstanceType<typeof Popup>>();
|
||||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
|
||||||
const showPerDialog = ref(false);
|
|
||||||
const personnel = ref(null);
|
|
||||||
const userStore = useUserStore().userInfo;
|
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
id: 0,
|
id: 0,
|
||||||
extends: {}
|
extends: {},
|
||||||
})
|
});
|
||||||
|
|
||||||
// 获取详情
|
// 获取详情
|
||||||
const setFormData = async (data: Record<any, any>) => {
|
const setFormData = async (data: Record<any, any>) => {
|
||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
if (data[key] != null && data[key] != undefined) {
|
if (data[key] != null && data[key] != undefined) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
formData[key] = data[key]
|
formData[key] = data[key];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
console.log(formData)
|
}
|
||||||
}
|
getLists()
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//打开弹窗
|
//打开弹窗
|
||||||
const open = () => {
|
const open = () => {
|
||||||
popupRef.value?.open()
|
popupRef.value?.open();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const detail = ref([])
|
||||||
|
|
||||||
|
const getLists = async () => {
|
||||||
|
let res = await await apiInvliceLists({ id: formData.id })
|
||||||
|
detail.value = res.lists
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 关闭回调
|
// 关闭回调
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
emit('close')
|
emit("close");
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 显示
|
// 显示
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
open,
|
open,
|
||||||
setFormData,
|
setFormData,
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
:deep(.el-step__icon) {
|
:deep(.el-step__icon) {
|
||||||
margin-top: 10px !important;
|
margin-top: 10px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
183
src/views/oa_arrival/edit.vue
Normal file
183
src/views/oa_arrival/edit.vue
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
<template>
|
||||||
|
<div class="detail-popup">
|
||||||
|
<popup ref="popupRef" :showFootBtn="false" title="审批详情" :async="true" width="60vw">
|
||||||
|
<el-card>
|
||||||
|
<template #header>审批内容</template>
|
||||||
|
<el-descriptions :column="3" border>
|
||||||
|
<el-descriptions-item label="发票金额" label-align="left" align="left">
|
||||||
|
{{ formData.amount }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="抬头类型" label-align="left" align="left">
|
||||||
|
{{ formData.type_text }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="发票主体" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_subject }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="发票类型" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_type_text }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="开票抬头" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_title }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="电话号码" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_phone }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="纳税人识别号" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_tax }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="开户银行" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_bank }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="银行账号" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_account }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="银行营业网点" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_banking }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="地址" label-align="left" align="left">
|
||||||
|
{{ formData.invoice_address }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="开票人" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="未到账金额" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="已到账金额" label-align="left" align="left">
|
||||||
|
{{}}
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="备注" label-align="left" align="left">
|
||||||
|
{{ formData.remark }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="附件" label-align="left" align="left">
|
||||||
|
<annexLink :annex="formData.annex || []"></annexLink>
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</el-card>
|
||||||
|
<el-card>
|
||||||
|
<template #header> 到账信息 </template>
|
||||||
|
<el-descriptions :column="3" border>
|
||||||
|
<el-descriptions-item label="到账状态" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_account }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="未到账金额(元)" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_banking }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="已到账金额(元)" label-align="left" align="left">
|
||||||
|
<!-- {{ formData.invoice_address }} -->
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
<el-table :data="detail">
|
||||||
|
<el-table-column label="到账金额">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-input v-model="row.amount" clearable placeholder="请输入报销金额" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="到账日期">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-date-picker class="flex-1 !flex" v-model="row.enter_time" clearable type="date"
|
||||||
|
value-format="YYYY-MM-DD" placeholder="选择到账日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="备注信息">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-input v-model="row.remarks" clearable placeholder="请输入备注信息" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" prop="lead_admin_name">
|
||||||
|
<template #default="{ row, $index }">
|
||||||
|
<el-button type="primary" @click="handAdd">添加选项</el-button>
|
||||||
|
<el-button @click="handDel($index)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="submit">确定</el-button>
|
||||||
|
<el-button @click="close">取消</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</popup>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup name="customdetail">
|
||||||
|
import annexLink from "./../../components/annexLink/index.vue";
|
||||||
|
import Popup from "@/components/popup/index.vue";
|
||||||
|
import { apiInvliceLists,apiInvlicevAdd } from '@/api/oa_financial'
|
||||||
|
import {defineEmits}from "vue"
|
||||||
|
const popupRef = shallowRef<InstanceType<typeof Popup>>();
|
||||||
|
const emit = defineEmits(["success", "close"]);
|
||||||
|
|
||||||
|
|
||||||
|
// 表单数据
|
||||||
|
const formData = reactive({
|
||||||
|
id: 0,
|
||||||
|
extends: {},
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取详情
|
||||||
|
const setFormData = async (data: Record<any, any>) => {
|
||||||
|
for (const key in data) {
|
||||||
|
if (data[key] != null && data[key] != undefined) {
|
||||||
|
//@ts-ignore
|
||||||
|
formData[key] = data[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
getLists()
|
||||||
|
};
|
||||||
|
|
||||||
|
//打开弹窗
|
||||||
|
const open = () => {
|
||||||
|
popupRef.value?.open();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const detail = ref([
|
||||||
|
{
|
||||||
|
"amount": '',
|
||||||
|
"enter_time": "",
|
||||||
|
"remarks": ""
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
|
const getLists = async () => {
|
||||||
|
let res = await await apiInvliceLists({ id: formData.id })
|
||||||
|
detail.value = res.lists
|
||||||
|
}
|
||||||
|
// 关闭回调
|
||||||
|
const handAdd = () => {
|
||||||
|
detail.value.push({
|
||||||
|
"amount": '',
|
||||||
|
"enter_time": "",
|
||||||
|
"remarks": ""
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const handDel = (i) => {
|
||||||
|
detail.value.splice(i, 1)
|
||||||
|
}
|
||||||
|
const submit = async () => {
|
||||||
|
let res=await apiInvlicevAdd({invoice_id:formData.id,detail:detail.value})
|
||||||
|
emit("success");
|
||||||
|
|
||||||
|
}
|
||||||
|
const close=()=>{
|
||||||
|
emit("success");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 显示
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
open,
|
||||||
|
setFormData,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
:deep(.el-step__icon) {
|
||||||
|
margin-top: 10px !important;
|
||||||
|
}
|
||||||
|
</style>
|
@ -42,11 +42,11 @@
|
|||||||
<el-table-column label="开票时间" prop="code" show-overflow-tooltip />
|
<el-table-column label="开票时间" prop="code" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="170" fixed="right">
|
<el-table-column label="操作" width="170" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link @click="form.id = row.id, showDialog = true">
|
<el-button type="primary" link @click="handEdit(row.id)">
|
||||||
到账管理
|
到账管理
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" link @click="handDetail(row.id)">
|
<el-button type="primary" link @click="handDetail(row.id)">
|
||||||
详情
|
到账详情
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -56,6 +56,8 @@
|
|||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
<edit-popup v-if="showEdit" ref="editRef" @success="getLists,showEdit = false" @close="showEdit = false" />
|
||||||
|
|
||||||
<detailPopup v-if="showDetail" ref="detailRef" @success="showDetail = false, getLists()"
|
<detailPopup v-if="showDetail" ref="detailRef" @success="showDetail = false, getLists()"
|
||||||
@close="showDetail = false, getLists()" />
|
@close="showDetail = false, getLists()" />
|
||||||
</div>
|
</div>
|
||||||
@ -63,16 +65,16 @@
|
|||||||
|
|
||||||
<script lang="ts" setup name="oaSealCateLists">
|
<script lang="ts" setup name="oaSealCateLists">
|
||||||
import { usePaging } from '@/hooks/usePaging'
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import detailPopup from './detail.vue'
|
||||||
import { timeFormat } from '@/utils/util'
|
import EditPopup from './edit.vue'
|
||||||
import feedback from '@/utils/feedback'
|
import { apiInvliceIncomeIndex, apiInvliceDetail, apiInvliceList2 } from '@/api/oa_financial'
|
||||||
import detailPopup from '@/views/oa_Initiate/detail.vue'
|
|
||||||
import { apiInvliceList2, apiInvliceDetail, apiInvliceInvoice } from '@/api/oa_financial'
|
|
||||||
|
|
||||||
const detailRef = ref(null)
|
const detailRef = ref(null)
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
const showDetail = ref(false)
|
const showDetail = ref(false)
|
||||||
const showDialog = ref(false)
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||||
|
// 是否显示编辑框
|
||||||
|
const showEdit = ref(false)
|
||||||
|
|
||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
@ -90,7 +92,6 @@ const handleSelectionChange = (val: any[]) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取字典数据
|
// 获取字典数据
|
||||||
const { dictData } = useDictData('')
|
|
||||||
|
|
||||||
// 分页相关
|
// 分页相关
|
||||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
@ -98,12 +99,21 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
|
|||||||
params: queryParams
|
params: queryParams
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const handEdit = async (id: any) => {
|
||||||
|
let res = await apiInvliceDetail({ id })
|
||||||
|
showEdit.value = true
|
||||||
|
await nextTick()
|
||||||
|
editRef.value?.open('edit')
|
||||||
|
editRef.value?.setFormData(res)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const handDetail = async (id: any) => {
|
const handDetail = async (id: any) => {
|
||||||
// let res = await apiInvliceDetail({ id })
|
let res = await apiInvliceDetail({ id })
|
||||||
showDetail.value = true
|
showDetail.value = true
|
||||||
await nextTick()
|
await nextTick()
|
||||||
detailRef.value?.open()
|
detailRef.value?.open()
|
||||||
detailRef.value?.setFormData({})
|
detailRef.value?.setFormData(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
@ -114,11 +124,6 @@ const form = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
setTimeout(() => {
|
|
||||||
pager.lists.push({})
|
|
||||||
}, 2000);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@ -56,7 +56,7 @@ import { usePaging } from '@/hooks/usePaging'
|
|||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import feedback from '@/utils/feedback'
|
import feedback from '@/utils/feedback'
|
||||||
import detailPopup from '@/views/oa_Initiate/detail.vue'
|
import detailPopup from './detail.vue'
|
||||||
import { apiInvliceCopy, apiInvliceDetail } from '@/api/oa_financial'
|
import { apiInvliceCopy, apiInvliceDetail } from '@/api/oa_financial'
|
||||||
|
|
||||||
const detailRef = ref(null)
|
const detailRef = ref(null)
|
||||||
@ -99,4 +99,3 @@ const handDetail = async (id: any) => {
|
|||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -126,6 +126,7 @@ import Popup from '@/components/popup/index.vue'
|
|||||||
import useUserStore from "@/stores/modules/user";
|
import useUserStore from "@/stores/modules/user";
|
||||||
import { Clock } from '@element-plus/icons-vue'
|
import { Clock } from '@element-plus/icons-vue'
|
||||||
import { apiInvliceCheck } from '@/api/oa_financial'
|
import { apiInvliceCheck } from '@/api/oa_financial'
|
||||||
|
import { ref, reactive } from "vue"
|
||||||
|
|
||||||
|
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
@ -148,7 +149,7 @@ const setFormData = async (data: Record<any, any>) => {
|
|||||||
formData[key] = data[key]
|
formData[key] = data[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(formData)
|
console.log('formData', formData)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ import { usePaging } from '@/hooks/usePaging'
|
|||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { timeFormat } from '@/utils/util'
|
import { timeFormat } from '@/utils/util'
|
||||||
import feedback from '@/utils/feedback'
|
import feedback from '@/utils/feedback'
|
||||||
import detailPopup from '@/views/oa_Initiate/detail.vue'
|
import detailPopup from './detail.vue'
|
||||||
import { apiInvlicedealwith, apiInvliceDetail } from '@/api/oa_financial'
|
import { apiInvlicedealwith, apiInvliceDetail } from '@/api/oa_financial'
|
||||||
|
|
||||||
const detailRef = ref(null)
|
const detailRef = ref(null)
|
||||||
@ -96,4 +96,3 @@ const handDetail = async (id: any) => {
|
|||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
<el-button type="primary" link @click="form.id = row.id, showDialog = true">
|
<el-button type="primary" link @click="form.id = row.id, showDialog = true">
|
||||||
开具发票
|
开具发票
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" link @click="handVoid(row.id)">
|
||||||
|
发票作废
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -78,10 +81,8 @@
|
|||||||
<script lang="ts" setup name="oaSealCateLists">
|
<script lang="ts" setup name="oaSealCateLists">
|
||||||
import { usePaging } from '@/hooks/usePaging'
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { timeFormat } from '@/utils/util'
|
import detailPopup from './detail.vue'
|
||||||
import feedback from '@/utils/feedback'
|
import { apiInvliceList2, apiInvliceDetail, apiInvliceInvoice, apiInvlicevVoids } from '@/api/oa_financial'
|
||||||
import detailPopup from '@/views/oa_Initiate/detail.vue'
|
|
||||||
import { apiInvliceList2, apiInvliceDetail, apiInvliceInvoice } from '@/api/oa_financial'
|
|
||||||
|
|
||||||
const detailRef = ref(null)
|
const detailRef = ref(null)
|
||||||
// 是否显示编辑框
|
// 是否显示编辑框
|
||||||
@ -129,16 +130,16 @@ const form = reactive({
|
|||||||
|
|
||||||
|
|
||||||
const submit = async () => {
|
const submit = async () => {
|
||||||
// await apiInvliceInvoice({ ...form })
|
await apiInvliceInvoice({ ...form })
|
||||||
console.log(form)
|
|
||||||
showDialog.value = false
|
showDialog.value = false
|
||||||
getLists()
|
getLists()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
const handVoid = async (id: any) => {
|
||||||
|
await apiInvlicevVoids({ id })
|
||||||
|
getLists()
|
||||||
|
|
||||||
|
}
|
||||||
getLists()
|
getLists()
|
||||||
setTimeout(() => {
|
|
||||||
pager.lists.push({})
|
|
||||||
}, 2000);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<el-button link @click="handDetail(row.id)">
|
<el-button link @click="handDetail(row.id)">
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" link @click="handPayment(row.id)">
|
<el-button type="primary" link @click="handPayment(row.id)" v-if="row.check_status != 2">
|
||||||
设置打款
|
设置打款
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -122,4 +122,3 @@ const handPayment = async (id: any) => {
|
|||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user