修改 发票登记

ywj_dev
wangwei 2 years ago
parent d0419d144f
commit f3edef9022

@ -171,6 +171,81 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:limit.sync="filterQuery.limit"
:page.sync="filterQuery.page"
@pagination="getList"
></pagination>
</el-card>
<el-tabs type="border-card" style="margin: 15px">
<!--单据业务详情-->
<el-tab-pane>
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
row-key="id" @row-click="BizDetail" highlight-current-row
>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资名称"
prop="coName"
width="150"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="规格型号"
width="150"
prop="spec"
></el-table-column>
<el-table-column
label="批次号"
width="100"
prop="batchNo"
></el-table-column>
<el-table-column
label="数量"
prop="count"
width="100"
></el-table-column>
<el-table-column
label="扫码数量"
prop="reCount"
width="100"
></el-table-column>
<el-table-column
label="价格"
prop="price"
width="100"
></el-table-column>
<el-table-column
label="生产日期"
prop="productDate"
width="100"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
width="100"
></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname">
</el-table-column>
<el-table-column
label="生产企业"
prop="manufacturer"
width="160"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="注册/备案号"
width="160"
prop="certCode"
show-overflow-tooltip
></el-table-column>
<el-table-column label="操作" width="160" fixed="right"> <el-table-column label="操作" width="160" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
@ -185,19 +260,23 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="bizTotal>0"
:total="total" :total="bizTotal"
:limit.sync="filterQuery.limit" :page.sync="bizQuery.page"
:page.sync="filterQuery.page" :limit.sync="bizQuery.limit"
@pagination="getList" @pagination="getBizDetailList"
></pagination> />
</el-card> </el-tab-pane>
</el-tabs>
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<!--单据业务详情-->
<el-tab-pane> <el-tab-pane>
<span slot="label">订单 {{ currentRow.billNo }}-发票信息</span> <span slot="label">单据 {{ currentRow.billNo }}-发票信息</span>
<el-form :inline="true" :model="bizQuery" class="query-form" size="mini">
</el-form>
<el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border <el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border
row-key="id" row-key="id"
> >
@ -272,7 +351,8 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="toViewCompanyCert(scope.row)" :disabled="!scope.row.licenseUrl"
@click.native.stop="showImgViewer(scope.row)"
>预览 >预览
</el-button </el-button
> >
@ -288,82 +368,9 @@
@pagination="getBizDetailList" @pagination="getBizDetailList"
/> />
</el-tab-pane> </el-tab-pane>
<!--单据业务详情-->
<el-tab-pane>
<span slot="label">单据 {{ currentRow.billNo }}-单据详情</span>
<el-table v-loading="bizDetailLoading" :data="codeDetailList" style="width: 100%" border
row-key="id"
>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资名称"
prop="coName"
width="150"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="规格型号"
width="150"
prop="spec"
></el-table-column>
<el-table-column
label="批次号"
width="100"
prop="batchNo"
></el-table-column>
<el-table-column
label="数量"
prop="count"
width="100"
></el-table-column>
<el-table-column
label="扫码数量"
prop="reCount"
width="100"
></el-table-column>
<el-table-column
label="价格"
prop="price"
width="100"
></el-table-column>
<el-table-column
label="生产日期"
prop="productDate"
width="100"
></el-table-column>
<el-table-column
label="失效日期"
prop="expireDate"
width="100"
></el-table-column>
<el-table-column width="100" label="计量单位" prop="measname">
</el-table-column>
<el-table-column
label="生产企业"
prop="manufacturer"
width="160"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="注册/备案号"
width="160"
prop="certCode"
show-overflow-tooltip
></el-table-column>
</el-table>
<pagination
v-show="bizTotal>0"
:total="bizTotal"
:page.sync="bizQuery.page"
:limit.sync="bizQuery.limit"
@pagination="getBizDetailList"
/>
</el-tab-pane>
</el-tabs> </el-tabs>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-dialog <el-dialog
title="发票编辑" title="发票编辑"
:visible.sync="Upinvoice" :visible.sync="Upinvoice"
@ -419,7 +426,7 @@ import {getLocalJoinByUser} from "@/api/basic/busType";
import {getInvListByUser} from "@/api/system/invWarehouse"; import {getInvListByUser} from "@/api/system/invWarehouse";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {selectSysParamByKey} from "@/api/param/systemParamConfig";
import {filterListInvoice, getBizDetailList, deleteById} from '@/api/inout/orderDetailBiz' import {filterListInvoice, getBizDetailList, deleteById,insertInvoice} from '@/api/inout/orderDetailBiz'
import {getCodeList} from "@/api/inout/code"; import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder"; import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogInvoice from "@/views/inout/DialogInvoice"; import DialogInvoice from "@/views/inout/DialogInvoice";
@ -428,6 +435,10 @@ import InvoiceRegister from "@/views/inout/InvoiceRegister";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getDeptListByUser} from "@/api/auth/authDept"; import {getDeptListByUser} from "@/api/auth/authDept";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import { previewImage } from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
const formJson = { const formJson = {
@ -441,6 +452,8 @@ export default {
name: "IoCheckSuccessOrder", name: "IoCheckSuccessOrder",
data() { data() {
return { return {
imgList:[],
imgViewerVisible:false,
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true, showSearch: true,
filterQuery: { filterQuery: {
@ -579,7 +592,7 @@ export default {
acceptOrderVisible: false, acceptOrderVisible: false,
}; };
}, },
components: {AcceptOrder, DialogInvoice, InvoiceRegister}, components: {AcceptOrder, DialogInvoice, InvoiceRegister,ElImageViewer},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -600,8 +613,17 @@ export default {
this.getList(); this.getList();
}, },
InvoiceRegister(row) { InvoiceRegister(row) {
this.inputQueryId = row.billNo; insertInvoice(row)
this.InvoiceRegisterv = true; .then(response => {
if (response.code === 20000) {
this.closeInvoice();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.$message.error(response.message);
});
}, },
onSubmit() { onSubmit() {
this.loading = true; this.loading = true;
@ -627,10 +649,30 @@ export default {
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
toViewCompanyCert(row) { showImgViewer(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
window.open(this.certFileUrl + row.licenseUrl); this.imgList=[];
previewImage({imageUrl:row.licenseUrl,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
debugger
this.imgList=response.data;
}
console.log(this.imgList)
this.imgViewerVisible = true;
});
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer(){
this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
invChange() { invChange() {
this.filterQuery.action = null; this.filterQuery.action = null;
this.getBusType(); this.getBusType();
@ -689,11 +731,9 @@ export default {
}, },
// //
getOrderDetails() { getOrderDetails() {
this.bizQuery.page = 1;
this.codeQuery.page = 1; this.codeQuery.page = 1;
this.resultQuery.page = 1; this.resultQuery.page = 1;
this.getBizDetailList();
this.getCodeDetailList(); this.getCodeDetailList();
this.getResultDetailList(); this.getResultDetailList();
}, },
@ -884,6 +924,10 @@ export default {
this.bizTotal = 0; this.bizTotal = 0;
}) })
}, },
BizDetail(){
this.bizQuery.page=1;
this.getBizDetailList();
},
// //

Loading…
Cancel
Save