查询出入库单编辑按钮

ywj_dev
anthonywj 2 years ago
parent 49f9925597
commit d8bb844c13

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

@ -175,13 +175,13 @@
>打印
</el-button
>
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="printOrderDetailPDF(scope.row)"-->
<!-- >报表打印-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click.native="printOrderDetailPDF(scope.row)"-->
<!-- >报表打印-->
<!-- </el-button-->
<!-- >-->
<el-button
type="text"
size="small"
@ -337,7 +337,6 @@
type="text"
size="small"
@click.native.stop="upload(scope.row)"
v-if="scope.row.checkFileName != null"
>编辑
</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="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
@ -493,8 +492,8 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogCheck from "@/views/inout/DialogCheck";
import {getDeptListByUser} from "@/api/auth/authDept";
import { previewImage } from '@/api/purchase/supCompany'
import { getBizDetailList } from '@/api/inout/orderDetailBiz'
import {previewImage} from '@/api/purchase/supCompany'
import {getBizDetailList} from '@/api/inout/orderDetailBiz'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@ -510,13 +509,13 @@ export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
imgViewerVisible:false,
imgViewerVisibleCold:false,
imgList:[],
imgListCold:[],
imgViewerVisible: false,
imgViewerVisibleCold: false,
imgList: [],
imgListCold: [],
showSearch: true,
currentManufacturer:{},
Upinvoice:false,
currentManufacturer: {},
Upinvoice: false,
filterQuery: {
id: "",
billNo: null,
@ -643,7 +642,7 @@ export default {
acceptOrderVisible: false,
};
},
components: {AcceptOrder,DialogCheck,ElImageViewer},
components: {AcceptOrder, DialogCheck, ElImageViewer},
methods: {
onReset() {
this.$router.push({
@ -688,67 +687,75 @@ export default {
this.getList();
},
showImgViewer(row){
showImgViewer(row) {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgList=[];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
console.log(this.certFileUrl + "========");
this.imgList = [];
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
this.imgList = response.data;
}
console.log(this.imgList)
this.imgViewerVisible = true;
});
const m = (e) => { e.preventDefault() };
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
showImgViewerCold(row){
showImgViewerCold(row) {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
console.log(this.certFileUrl+"========");
this.imgListCold=[];
previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
console.log(this.certFileUrl + "========");
this.imgListCold = [];
previewImage({imageUrl: row.coldFilePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgListCold=response.data;
this.imgListCold = response.data;
}
console.log(this.imgListCold)
this.imgViewerVisibleCold = true;
});
const m = (e) => { e.preventDefault() };
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
},
closeImgViewer(){
closeImgViewer() {
this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() };
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
closeImgViewerCold(){
closeImgViewerCold() {
this.imgViewerVisibleCold = false;
const m = (e) => { e.preventDefault() };
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
upload(row){
upload(row) {
this.currentManufacturer = row;
this.Upinvoice = true;
},
closeCheckDialog(){
closeCheckDialog() {
this.Upinvoice = false;
this.getOrderDetails();
},
freshen(){
freshen() {
this.Upinvoice = false;
this.getOrderDetails();
},

Loading…
Cancel
Save