查询单据新增物资标识

fp_dev
anthonywj 2 years ago
parent 36dfedeeb1
commit 220ea40c43

@ -197,6 +197,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
@ -282,6 +287,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
@ -766,7 +776,7 @@ export default {
}) })
.catch(() => { .catch(() => {
}); });
this.getBusType(); this.getBusType();
}, },
getSubInvList() { getSubInvList() {
let query = { let query = {

@ -110,7 +110,7 @@
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createTime" width="150" show-overflow-tooltip <el-table-column label="创建时间" prop="createTime" width="150" show-overflow-tooltip
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
<span>{{ scope.row.createTime }}</span> <span>{{ scope.row.createTime }}</span>
@ -235,6 +235,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" width="150" label="物资名称" width="150"
prop="coName" prop="coName"

@ -99,7 +99,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="8">--> <!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="审核时间:">--> <!-- <el-form-item class="query-form-item" label="审核时间:">-->
<!-- <el-date-picker--> <!-- <el-date-picker-->
<!-- :picker-options="pickerOptions"--> <!-- :picker-options="pickerOptions"-->
@ -137,7 +137,7 @@
border border
@current-change="handleSelectionChange" @current-change="handleSelectionChange"
:default-sort="defaultSort" :default-sort="defaultSort"
@sort-change="handleSortChange" > @sort-change="handleSortChange">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="送货单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="送货单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column> <el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
@ -145,7 +145,7 @@
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150" <el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150"
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
<!--<template slot-scope="scope">--> <!--<template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>--> <!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.createTime }}</span>--> <!-- <span>{{ scope.row.createTime }}</span>-->
@ -153,7 +153,7 @@
</el-table-column> </el-table-column>
<el-table-column label="核对时间" prop="checkTime" show-overflow-tooltip width="150" <el-table-column label="核对时间" prop="checkTime" show-overflow-tooltip width="150"
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
<!--<template slot-scope="scope">--> <!--<template slot-scope="scope">-->
<!-- <i class="el-icon-time"></i>--> <!-- <i class="el-icon-time"></i>-->
<!-- <span>{{ scope.row.createTime }}</span>--> <!-- <span>{{ scope.row.createTime }}</span>-->
@ -286,6 +286,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" width="160" prop="coName" width="160"
@ -336,7 +341,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div> <div style="color: #1890ff;" @click="showImgViewer(scope.row)">{{ scope.row.checkFileName }}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -376,7 +381,8 @@
</el-table> </el-table>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<pagination <pagination
@ -592,11 +598,10 @@ import {
orderPDFFromTemplateFile orderPDFFromTemplateFile
} from '@/api/itextpdf/orderPrint' } from '@/api/itextpdf/orderPrint'
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import { previewImage ,previewFile} from '@/api/purchase/supCompany' import {previewImage, previewFile} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
const formJson = { const formJson = {
site_id: "", site_id: "",
site_name: "", site_name: "",
@ -609,10 +614,10 @@ export default {
data() { data() {
return { return {
defaultSort: {prop: 'createTime', order: 'desc'}, defaultSort: {prop: 'createTime', order: 'desc'},
imgList:[], imgList: [],
imgListCold:[], imgListCold: [],
imgViewerVisible:false, imgViewerVisible: false,
imgViewerVisibleCold:false, imgViewerVisibleCold: false,
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true, showSearch: true,
filterQuery: { filterQuery: {
@ -744,7 +749,7 @@ export default {
acceptOrderVisible: false, acceptOrderVisible: false,
}; };
}, },
components: {AcceptOrder,ElImageViewer}, components: {AcceptOrder, ElImageViewer},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -761,9 +766,9 @@ export default {
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
invCode : this.$store.getters.locInvCode invCode: this.$store.getters.locInvCode
}; };
if(invCode!=this.$store.getters.locInvCode){ if (invCode != this.$store.getters.locInvCode) {
this.getBusType(); this.getBusType();
} }
this.actDateRange = []; this.actDateRange = [];
@ -793,21 +798,21 @@ export default {
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
showImgViewer(row){ showImgViewer(row) {
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.filePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.filePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.filePath.lastIndexOf('.'); let index = row.filePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.filePath.substr(index+1)==='pdf'){ if (row.filePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -831,21 +836,21 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
showImgViewerCold(row){ showImgViewerCold(row) {
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.coldFilePath.lastIndexOf('.'); let index = row.coldFilePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.coldFilePath.substr(index+1)==='pdf'){ if (row.coldFilePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -869,16 +874,20 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer(){ closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){ closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
@ -990,7 +999,7 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.currentRow.billNo=val.billNo; this.currentRow.billNo = val.billNo;
this.getOrderDetails(); this.getOrderDetails();
}, },
// //
@ -1027,7 +1036,6 @@ export default {
}, },
// //
getList() { getList() {
this.loading = true; this.loading = true;

@ -154,7 +154,7 @@
border border
@current-change="handleSelectionChange" @current-change="handleSelectionChange"
:default-sort="defaultSort" :default-sort="defaultSort"
@sort-change="handleSortChange" > @sort-change="handleSortChange">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="送单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="送单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column> <el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
@ -295,6 +295,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
@ -564,7 +569,8 @@
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<el-dialog <el-dialog
title="检验报告" title="检验报告"
@ -614,13 +620,11 @@ import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder"; import AcceptOrder from "@/views/inout/DialogReviewOrder";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import { previewImage,previewFile } from '@/api/purchase/supCompany' import {previewImage, previewFile} from '@/api/purchase/supCompany'
import DialogCheck from "@/views/inout/DialogCheck"; import DialogCheck from "@/views/inout/DialogCheck";
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
const formJson = { const formJson = {
site_id: "", site_id: "",
site_name: "", site_name: "",
@ -633,13 +637,13 @@ export default {
data() { data() {
return { return {
defaultSort: {prop: 'createTime', order: 'desc'}, defaultSort: {prop: 'createTime', order: 'desc'},
imgViewerVisible:false, imgViewerVisible: false,
imgViewerVisibleCold:false, imgViewerVisibleCold: false,
imgList:[], imgList: [],
imgListCold:[], imgListCold: [],
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
currentManufacturer:{}, currentManufacturer: {},
Upinvoice:false, Upinvoice: false,
showSearch: true, showSearch: true,
filterQuery: { filterQuery: {
id: "", id: "",
@ -774,7 +778,7 @@ export default {
acceptOrderVisible: false, acceptOrderVisible: false,
}; };
}, },
components: {AcceptOrder,DialogCheck,ElImageViewer}, components: {AcceptOrder, DialogCheck, ElImageViewer},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -819,24 +823,24 @@ export default {
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
showImgViewer(row){ showImgViewer(row) {
if(row.filePath.substr(-1) == ','){ if (row.filePath.substr(-1) == ',') {
row.filePath=row.filePath.slice(0, row.filePath.length-1); row.filePath = row.filePath.slice(0, row.filePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.filePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.filePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.filePath.lastIndexOf('.'); let index = row.filePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.filePath.substr(index+1)==='pdf'){ if (row.filePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -861,24 +865,24 @@ export default {
}, },
showImgViewerCold(row){ showImgViewerCold(row) {
if(row.coldFilePath.substr(-1) == ','){ if (row.coldFilePath.substr(-1) == ',') {
row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.coldFilePath.lastIndexOf('.'); let index = row.coldFilePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.coldFilePath.substr(index+1)==='pdf'){ if (row.coldFilePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -902,38 +906,41 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer(){ closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){ closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
upload(row){ upload(row) {
this.currentManufacturer = row; this.currentManufacturer = row;
this.Upinvoice = true; this.Upinvoice = true;
}, },
freshen(){ freshen() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },
closeCheckDialog(){ closeCheckDialog() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },

@ -174,7 +174,7 @@
></pagination> ></pagination>
</el-card> </el-card>
<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>
@ -204,10 +204,20 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border class="table-fixed" <el-table v-loading="bizDetailLoading" :data="bizDetailList" style="width: 100%" border class="table-fixed"
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
@ -388,7 +398,8 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
<el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold" :url-list="imgListCold"/> <el-image-viewer v-if="imgViewerVisibleCold" style="z-index:9999" :on-close="closeImgViewerCold"
:url-list="imgListCold"/>
<el-dialog <el-dialog
@ -440,8 +451,8 @@ import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/ap
import AcceptOrder from "@/views/inout/DialogThrReviewOrder"; import AcceptOrder from "@/views/inout/DialogThrReviewOrder";
import {getDeptListByUser} from "@/api/auth/authDept"; import {getDeptListByUser} from "@/api/auth/authDept";
import DialogCheck from "@/views/inout/DialogCheck"; import DialogCheck from "@/views/inout/DialogCheck";
import { getBizDetailList } from '@/api/inout/orderDetailBiz' import {getBizDetailList} from '@/api/inout/orderDetailBiz'
import { previewFile, previewImage } from '@/api/purchase/supCompany' import {previewFile, previewImage} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@ -458,13 +469,13 @@ export default {
return { return {
defaultSort: {prop: 'createTime', order: 'desc'}, defaultSort: {prop: 'createTime', order: 'desc'},
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
imgList:[], imgList: [],
imgListCold:[], imgListCold: [],
imgViewerVisible:false, imgViewerVisible: false,
imgViewerVisibleCold:false, imgViewerVisibleCold: false,
showSearch: true, showSearch: true,
Upinvoice:false, Upinvoice: false,
currentManufacturer:{}, currentManufacturer: {},
filterQuery: { filterQuery: {
id: "", id: "",
billNo: null, billNo: null,
@ -585,7 +596,7 @@ export default {
acceptOrderVisible: false, acceptOrderVisible: false,
}; };
}, },
components: {AcceptOrder,DialogCheck,ElImageViewer}, components: {AcceptOrder, DialogCheck, ElImageViewer},
methods: { methods: {
onReset() { onReset() {
this.$router.push({ this.$router.push({
@ -604,7 +615,7 @@ export default {
endTime: null, endTime: null,
invCode: this.$store.getters.locInvCode, invCode: this.$store.getters.locInvCode,
}; };
if(invCode!=this.$store.getters.locInvCode){ if (invCode != this.$store.getters.locInvCode) {
this.getBusType(); this.getBusType();
} }
this.actDateRange = []; this.actDateRange = [];
@ -640,23 +651,23 @@ export default {
}, },
showImgViewer(row) { showImgViewer(row) {
if(row.filePath.substr(-1) == ','){ if (row.filePath.substr(-1) == ',') {
row.filePath=row.filePath.slice(0, row.filePath.length-1); row.filePath = row.filePath.slice(0, row.filePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.filePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.filePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.filePath.lastIndexOf('.'); let index = row.filePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.filePath.substr(index+1)==='pdf'){ if (row.filePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -681,23 +692,23 @@ export default {
}, },
showImgViewerCold(row) { showImgViewerCold(row) {
if(row.coldFilePath.substr(-1) == ','){ if (row.coldFilePath.substr(-1) == ',') {
row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.coldFilePath.lastIndexOf('.'); let index = row.coldFilePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.coldFilePath.substr(index+1)==='pdf'){ if (row.coldFilePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -721,32 +732,35 @@ export default {
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer(){ closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
closeImgViewerCold(){ closeImgViewerCold() {
this.imgViewerVisibleCold = false; this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
upload(row) {
upload(row){
this.currentManufacturer = row; this.currentManufacturer = row;
this.Upinvoice = true; this.Upinvoice = true;
}, },
closeCheckDialog(){ closeCheckDialog() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.currentRow.billNo=val.billNo; this.currentRow.billNo = val.billNo;
this.getOrderDetails(); this.getOrderDetails();
}, },
// //
@ -976,7 +990,7 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
freshen(){ freshen() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },

@ -131,7 +131,7 @@
border border
@current-change="handleSelectionChange" @current-change="handleSelectionChange"
:default-sort="defaultSort" :default-sort="defaultSort"
@sort-change="handleSortChange" > @sort-change="handleSortChange">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip width="140"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="140"></el-table-column> <el-table-column label="单据类型" prop="billTypeName" width="140"></el-table-column>
@ -141,7 +141,7 @@
</el-table-column> </el-table-column>
<el-table-column label="审核时间" prop="checkTime" width="140" show-overflow-tooltip <el-table-column label="审核时间" prop="checkTime" width="140" show-overflow-tooltip
sortable="custom" sortable="custom"
:sort-orders="['ascending', 'descending']" > :sort-orders="['ascending', 'descending']">
</el-table-column> </el-table-column>
<!-- <el-table-column label="送货单位" prop="fromName" width="220">--> <!-- <el-table-column label="送货单位" prop="fromName" width="220">-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
@ -258,6 +258,11 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column
label="物资标识" width="150"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="coName" prop="coName"
@ -498,7 +503,7 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogCheck from "@/views/inout/DialogCheck"; import DialogCheck from "@/views/inout/DialogCheck";
import {getDeptListByUser} from "@/api/auth/authDept"; import {getDeptListByUser} from "@/api/auth/authDept";
import {previewImage,previewFile} from '@/api/purchase/supCompany' import {previewImage, previewFile} from '@/api/purchase/supCompany'
import {getBizDetailList} from '@/api/inout/orderDetailBiz' import {getBizDetailList} from '@/api/inout/orderDetailBiz'
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@ -695,23 +700,23 @@ export default {
}, },
showImgViewer(row) { showImgViewer(row) {
if(row.filePath.substr(-1) == ','){ if (row.filePath.substr(-1) == ',') {
row.filePath=row.filePath.slice(0, row.filePath.length-1); row.filePath = row.filePath.slice(0, row.filePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.filePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.filePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.filePath.lastIndexOf('.'); let index = row.filePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.filePath.substr(index+1)==='pdf'){ if (row.filePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);
@ -737,23 +742,23 @@ export default {
showImgViewerCold(row) { showImgViewerCold(row) {
if(row.coldFilePath.substr(-1) == ','){ if (row.coldFilePath.substr(-1) == ',') {
row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1); row.coldFilePath = row.coldFilePath.slice(0, row.coldFilePath.length - 1);
} }
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath; "/udiwms/image/register/file/getImage?type=image2&name=" + row.coldFilePath;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl)
let index = row.coldFilePath.lastIndexOf('.'); let index = row.coldFilePath.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!")
return false return false
} }
if(row.coldFilePath.substr(index+1)==='pdf'){ if (row.coldFilePath.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf"
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
window.open(URL); window.open(URL);

Loading…
Cancel
Save