查询出入库单编辑按钮

ywj_dev
anthonywj 2 years ago
parent 49f9925597
commit d8bb844c13

@ -228,8 +228,6 @@
>撤回 >撤回
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -238,7 +236,6 @@
>审核/验收 >审核/验收
</el-button </el-button
> >
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->
@ -377,7 +374,6 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="upload(scope.row)" @click.native.stop="upload(scope.row)"
v-if="scope.row.checkFileName != null"
>编辑 >编辑
</el-button </el-button
> >

@ -175,13 +175,13 @@
>打印 >打印
</el-button </el-button
> >
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->
<!-- @click.native="printOrderDetailPDF(scope.row)"--> <!-- @click.native="printOrderDetailPDF(scope.row)"-->
<!-- >报表打印--> <!-- >报表打印-->
<!-- </el-button--> <!-- </el-button-->
<!-- >--> <!-- >-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -337,7 +337,6 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="upload(scope.row)" @click.native.stop="upload(scope.row)"
v-if="scope.row.checkFileName != null"
>编辑 >编辑
</el-button </el-button
> >
@ -436,8 +435,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
@ -493,8 +492,8 @@ 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 } from '@/api/purchase/supCompany' import {previewImage} 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";
@ -510,13 +509,13 @@ export default {
data() { data() {
return { return {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
imgViewerVisible:false, imgViewerVisible: false,
imgViewerVisibleCold:false, imgViewerVisibleCold: false,
imgList:[], imgList: [],
imgListCold:[], imgListCold: [],
showSearch: true, showSearch: true,
currentManufacturer:{}, currentManufacturer: {},
Upinvoice:false, Upinvoice: false,
filterQuery: { filterQuery: {
id: "", id: "",
billNo: null, billNo: null,
@ -643,7 +642,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({
@ -688,67 +687,75 @@ export default {
this.getList(); this.getList();
}, },
showImgViewer(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=";
console.log(this.certFileUrl+"========"); console.log(this.certFileUrl + "========");
this.imgList=[]; this.imgList = [];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => { previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.imgList=response.data; this.imgList = response.data;
} }
console.log(this.imgList) console.log(this.imgList)
this.imgViewerVisible = true; this.imgViewerVisible = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
showImgViewerCold(row){ showImgViewerCold(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=";
console.log(this.certFileUrl+"========"); console.log(this.certFileUrl + "========");
this.imgListCold=[]; this.imgListCold = [];
previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => { previewImage({imageUrl: row.coldFilePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.imgListCold=response.data; this.imgListCold = response.data;
} }
console.log(this.imgListCold) console.log(this.imgListCold)
this.imgViewerVisibleCold = true; this.imgViewerVisibleCold = true;
}); });
const m = (e) => { e.preventDefault() }; const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
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();
}, },
freshen(){ freshen() {
this.Upinvoice = false; this.Upinvoice = false;
this.getOrderDetails(); this.getOrderDetails();
}, },

Loading…
Cancel
Save