马远东 1 year ago
parent
commit
c9f1f03b2b
  1. 59
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue

59
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -392,10 +392,35 @@
<el-dialog <el-dialog
:title="title" :title="title"
v-model="box" v-model="box"
width="70%" width="80%"
class="el-dialog-view"
:fullscreen="wrapoption.fullscreen"
:before-close="beforeClose" :before-close="beforeClose"
append-to-body append-to-body
> >
<template #header="{ close, titleId, titleClass }">
<div class="my-header flex-c-sb">
<div :id="titleId" :class="titleClass">{{ title }}</div>
<div class="flex-c-c">
<!-- 全屏显示按钮 -->
<el-button type="text" v-if="!wrapoption.fullscreen">
<el-icon class="" @click="handleFullScrean('open', 'el-dialog-view')"
><FullScreen
/></el-icon>
</el-button>
<el-button type="text" v-else>
<el-icon class="" @click="handleFullScrean('close', 'el-dialog-view')"
><CopyDocument
/></el-icon>
</el-button>
<!-- 弹窗关闭按钮 -->
<el-button type="text">
<el-icon class="" @click="close"><Close /></el-icon>
</el-button>
</div>
</div>
</template>
<!-- <el-table <!-- <el-table
ref="table" ref="table"
v-loading="loading" v-loading="loading"
@ -432,6 +457,7 @@
@inputTxt="winputsc" @inputTxt="winputsc"
@timeCheck="timesc" @timeCheck="timesc"
@selectCheck="selectsc" @selectCheck="selectsc"
ref="wtableBox"
@selection="selectionChange" @selection="selectionChange"
> >
<template #default="slotProps"> <template #default="slotProps">
@ -647,6 +673,7 @@ import dayjs from 'dayjs';
import { updateReservation } from '@/api/distribution/distributionReservation'; import { updateReservation } from '@/api/distribution/distributionReservation';
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { setNodeHeight } from '@/utils/util.js';
export default { export default {
data() { data() {
return { return {
@ -2330,7 +2357,10 @@ export default {
index: true, index: true,
border: true, border: true,
selection: true, selection: true,
/** 搜索 */
query: {}, query: {},
/** 是否全屏 */
fullscreen: false,
column: [ column: [
{ {
label: '序号', label: '序号',
@ -3431,13 +3461,38 @@ export default {
this.form = res.data.data; this.form = res.data.data;
}); });
}, },
handleView(row) { async handleView(row) {
console.log('查看>>>>>>>>>>', row); console.log('查看>>>>>>>>>>', row);
this.title = '客户包件'; this.title = '客户包件';
this.view = true; this.view = true;
this.box = true; this.box = true;
this.wid = row.id; this.wid = row.id;
this.getWrapdetails(this.wpage); this.getWrapdetails(this.wpage);
await this.$nextTick();
setNodeHeight(this.$refs.wtableBox.$el, '600px');
},
/** 是否全屏 */
/**
* 是否开启全屏
* @params(_type) 开启或关闭
*/
handleFullScrean(_type, _name) {
let _node = '';
if (_name) _node = document.querySelector(`.${_name} .maboxhi`);
switch (_name) {
case 'el-dialog-view':
this.wrapoption.fullscreen = !this.wrapoption.fullscreen;
if (_type === 'close') {
if (_node) setNodeHeight(_node, '600px');
} else {
if (_node) setNodeHeight(_node);
}
break;
default:
break;
}
}, },
handleSign(row) { handleSign(row) {
console.log('签收>>>>>>>>>>', row); console.log('签收>>>>>>>>>>', row);

Loading…
Cancel
Save