Browse Source

修复弹窗不关闭bug

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
f9c205eb41
  1. 2
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue
  2. 293
      src/views/distribution/signfor/distributionSignforedt.vue
  3. 0
      src/views/distribution/signfor/distributionSignforedtDT.vue
  4. 1
      src/views/distribution/signfor/distributionSignfortreat.vue

2
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

@ -333,7 +333,7 @@
<el-button type="primary" icon="el-icon-circle-check" @click="handleSubmitly"
> </el-button
>
<el-button icon="el-icon-circle-close" @click="box = false"> </el-button>
<el-button icon="el-icon-circle-close" @click="box3 = false"> </el-button>
</span>
</template>
</el-dialog>

293
src/views/distribution/signfor/distributionSignforedt.vue

@ -391,6 +391,130 @@
</el-tab-pane>
</template>
</el-tabs>
<!-- 增值服务信息 -->
<el-divider content-position="left">增值服务信息</el-divider>
<el-tabs
v-loading="editLoading"
element-loading-text="数据正在更新中..."
type="border-card"
@tab-click="tabClickB"
>
<template v-for="(item, indexS) in TabB" :key="item.name">
<el-tab-pane :label="item.label" :name="item.name">
<template v-for="(itemT, index) in TabTitle" :key="index">
<div v-if="index == TabIndex" class="tab-title">
<span v-for="item in itemT" :key="item.name">
<el-icon><component :is="item.icon" /></el-icon> {{ item.name }} {{ item.value }}
{{ item.tap }}
</span>
</div>
</template>
<div class="el-Cart">
<!-- 表格列开始 -->
<el-table
:data="dataAdded"
row-key="name"
border
height="500"
style="width: 100%"
ref="tableRef"
@select-all="selectAll"
@select="selectChange"
>
<el-table-column type="selection" width="55" fixed />
<el-table-column
type="index"
fixed
width="50"
height="100"
label="#"
align="center"
/>
<!--
Type ===1 普通文本
Type ===2 图片显示
Type ===3 操作功能
label: 标题
width: 宽度
prop: 数据字段
-->
<el-table-column
:prop="item.prop"
:label="item.label"
:width="item.width"
:fixed="item.fixed"
align="center"
v-for="(item, index) in menuDataB"
:key="item.label"
>
<template #default="props">
<img :src="props.row[item.prop]" class="el-Img" v-if="item.type === 2" />
<!-- <div :class="ElBtnClass" v-if="item.type === 3">
<el-button
:link="ElButtonS[0].link"
:class="ElButtonS[0].class"
:auto-insert-space="ElButtonS[0].space"
:size="ElButtonS[0].size"
:icon="ElButtonS[0].icon"
@click="DeleteEvent(scope.row)"
>删除</el-button
>
<el-button
:link="ElButtonS[1].link"
:class="ElButtonS[1].class"
:auto-insert-space="ElButtonS[1].space"
:size="ElButtonS[1].size"
:icon="ElButtonS[1].icon"
@click="EditEvent(scope.row)"
>编辑</el-button
>
<el-button
:link="ElButtonS[2].link"
:class="ElButtonS[2].class"
:auto-insert-space="ElButtonS[2].space"
:size="ElButtonS[2].size"
:icon="ElButtonS[2].icon"
@click="ViewEvent(scope.row)"
>查看</el-button
>
</div> -->
<span v-else>{{ props.row[item.prop] ? props.row[item.prop] : '/' }}</span>
</template>
</el-table-column>
<template>
<el-table-column
v-if="item.head"
fixed="right"
label="操作"
width="280"
align="center "
>
<!-- <template #default="scope">
</template> -->
</el-table-column>
</template>
</el-table>
<!-- 表格翻页功能 -->
<!-- <div class="demo-pagination-block">
<el-pagination
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="pageList"
:disabled="disabled"
:background="background"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
@size-change="PageSizeChange"
@current-change="SizeChange"
/>
</div> -->
</div>
</el-tab-pane>
</template>
</el-tabs>
</el-card>
</template>
@ -401,10 +525,11 @@ import {
getDetail,
signforPackageList,
signforInventoryList,
addvalueInfoList,
} from '@/api/distribution/distributionSignfor';
import { getToken } from '@/utils/auth';
const form = ref({}); //
const RouterId = ref(); //ID
const RouterId = ref('1721707916601487362'); //ID
const DoorstepPhoto = ref([]); //
const StackingPhoto = ref([]); //
const FragilePhotos = ref([]); //
@ -413,6 +538,7 @@ const SignForPhotos = ref([]); //签收照
const data = ref([]); //
const InitializeTable = ref([]); //
const menuData = ref([]); //
const menuDataB = ref([]); //
const editLoading = ref(false); //
const currentPage = ref(1); //
const pageSize = ref(30); //
@ -432,7 +558,9 @@ const dialogVisibleD = ref(false);
const dialogVisibleE = ref(false);
const active = ref(1); //
const route = useRoute();
const router = useRouter();
const router = useRouter(); //ID
const dataAdded = ref([]); //
const TabIndex = ref(0); //
const enlargeImage = (dialogImageUrl, dialogVisible) => {
return uploadFile => {
console.log(uploadFile, '点击放大的内容');
@ -461,6 +589,74 @@ const Tabs = ref([
name: '2',
},
]);
//
const TabB = ref([
{
label: '上楼',
name: '0',
},
{
label: '超区',
name: '1',
},
{
label: '平移',
name: '2',
},
{
label: '搬运',
name: '3',
},
{
label: '分拣',
name: '4',
},
{
label: '专车',
name: '5',
},
]);
const TabTitle = ref([
//
[
{ name: '操作人:', value: '汤建军', tap: null, icon: 'Avatar' },
{ name: '楼层:', value: 5, tap: '层', icon: 'School' },
{ name: '件数:', value: 13, tap: '件', icon: 'Box' },
{ name: '费用:', value: 999.9, tap: '¥', icon: 'Coin' },
//
],
[
{ name: '操作人:', value: '曹遇宗', tap: null, icon: 'Avatar' },
{ name: '公里数:', value: 15, tap: '公里', icon: 'Van' },
{ name: '件数:', value: 13, tap: '件', icon: 'Box' },
{ name: '费用:', value: 888.9, tap: '¥', icon: 'Coin' },
],
//
[
{ name: '公里数:', value: 15, tap: '公里', icon: 'Van' },
{ name: '件数:', value: 13, tap: '件', icon: 'Box' },
{ name: '费用:', value: 888.9, tap: '¥', icon: 'Coin' },
],
//
[
{ name: '操作人:', value: '漆标', tap: null, icon: 'Avatar' },
{ name: '件数:', value: 15, tap: '', icon: 'Box' },
{ name: '费用:', value: 13, tap: '¥', icon: 'Coin' },
{ name: '班组:', value: 888.9, tap: null, icon: 'ScaleToOriginal' },
],
//
[
{ name: '操作人:', value: '小马', tap: null, icon: 'Avatar' },
{ name: '件数:', value: 15, tap: '公里', icon: 'Box' },
{ name: '费用:', value: 13, tap: '¥', icon: 'Coin' },
],
//
[
{ name: '操作人:', value: '小东', tap: null, icon: 'Avatar' },
{ name: '件数:', value: 15, tap: '公里', icon: 'Box' },
{ name: '费用:', value: 13, tap: '¥', icon: 'Coin' },
],
]);
//
const menuData1 = ref([
{
@ -623,7 +819,7 @@ const menuData1 = ref([
label: '终端收获地址',
type: 4,
values: '',
width: '350',
width: '400',
checkarr: [],
fixed: false,
sortable: true,
@ -1102,12 +1298,73 @@ const ElButtonS = ref([
table: '删除',
},
]);
// menuDataB
const menuDataB1 = ref([
{
prop: 'orderCode',
label: '订单自编号',
type: 4,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: true,
},
{
prop: 'materialName',
label: '货物名称',
type: 4,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: true,
},
{
prop: 'orderPackageCode',
label: '包条码',
type: 4,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: true,
},
{
prop: 'quantity',
label: '数量',
type: 4,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: true,
},
{
prop: 'conditions',
label: '包条类型',
type: 4,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: true,
},
]);
//
const onLoad = () => {
menuData.value = menuData1.value; //
data.value = InitializeTable.value; //
};
RouterId.value = route.query.id; //ID
// RouterId.value = route.query.id; //ID
console.log(route.query.id, '当前路由参数');
// TOKEN
const headers = computed(() => {
@ -1197,6 +1454,24 @@ const tabClick = val => {
break;
}
};
//
const goUpstairs = () => {
addvalueInfoList({
addvalueId: 1,
signforId: RouterId.value,
}).then(res => {
dataAdded.value = res.data.data.packageEntityList;
console.log(res, '增值服务上楼的返回值');
});
};
// tab
const tabClickB = val => {
TabIndex.value = val.props.name;
if (val.props.name == 0) {
menuDataB.value = menuDataB1.value;
goUpstairs();
}
};
//
const switchTableFields = fields => {
menuData.value = fields; //
@ -1341,4 +1616,14 @@ const ImgSuccessE = (response, uploadFile) => {
width: 100%;
}
}
.tab-title {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
span {
display: flex;
align-items: center;
}
}
</style>

0
src/views/distribution/signfor/distributionSignforedtYL.vue → src/views/distribution/signfor/distributionSignforedtDT.vue

1
src/views/distribution/signfor/distributionSignfortreat.vue

@ -494,7 +494,6 @@ export default {
dialogVisibleC: false,
dialogVisibleD: false,
dialogVisibleE: false,
TcForm: {}, //
//
DoorstepPhoto: [],

Loading…
Cancel
Save