Browse Source

自提新增页面优化

dev-xx
qb 1 year ago
parent
commit
f00916918a
  1. 46
      src/views/distribution/inventory/distrilbutionBillLading.vue
  2. 11
      src/views/distribution/inventory/distrilbutionBillLadingList.vue

46
src/views/distribution/inventory/distrilbutionBillLading.vue

@ -103,6 +103,7 @@
> </el-button
>
<tablecmt
class="tablesc"
:columnList="columnListedit"
:tableData="dataList"
:loading="loading"
@ -155,6 +156,7 @@
> </el-button
>
<tablecmt
class="tablesc"
:columnList="columnStock"
:tableData="data"
:loading="loading"
@ -345,6 +347,7 @@
<!-- 添加库存品 -->
<el-dialog v-model="dialogFormVisible" title="添加库存品" style="width: 80%">
<tablecmt
class="addTable"
:columnList="option.columnStock"
:tableData="dataOwn"
:loading="loading"
@ -444,6 +447,7 @@
<!-- 添加订单 -->
<el-dialog v-model="dialogFormOrderVisible" title="添加订单" style="width: 80%">
<tablecmt
class="addTable"
ref="multipleTable"
:columnList="columnList"
:tableData="dataOrder"
@ -631,6 +635,7 @@ import dayjs from 'dayjs';
import { detail } from '@/api/flow/flow';
import { nextTick, ref } from 'vue';
import { useStore } from 'vuex';
import { setNodeHeight } from '@/utils/util.js';
const $store = useStore();
export default {
data() {
@ -858,7 +863,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary:true
isshowSummary: true,
},
{
prop: 'consigneeUnit',
@ -888,7 +893,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -899,7 +904,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -910,7 +915,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -921,7 +926,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -932,7 +937,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -943,7 +948,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -954,7 +959,7 @@ export default {
width: '150',
checkarr: [],
fixed: false,
isshowSummary:true,
isshowSummary: true,
sortable: true,
},
{
@ -1324,6 +1329,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1357,6 +1363,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1368,6 +1375,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1379,6 +1387,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1390,6 +1399,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1401,6 +1411,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1412,6 +1423,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1423,6 +1435,7 @@ export default {
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
head: false,
},
{
@ -1859,6 +1872,8 @@ export default {
};
},
mounted() {
this.setTableHeight();
this.init();
if (this.$route.query.type == '2') {
@ -1992,11 +2007,22 @@ export default {
},
},
methods: {
async setTableHeight() {
await this.$nextTick();
const _nodeList1 = document.querySelectorAll('.tablesc');
const _nodeList2 = document.querySelectorAll('.addTable');
setNodeHeight(_nodeList1, '600px');
setNodeHeight(_nodeList2, '600px');
},
// tab
handleChlickTab(val) {
this.tabletit = val.props.label;
console.log(this.tabletit, '当前点击的标题栏');
this.query = {}; //
this.setTableHeight();
},
showdrawer(value) {
this.drawerShow = value;
@ -2843,6 +2869,8 @@ export default {
this.dialogFormOrderVisible = true;
//
this.onLoadOrder(this.pageOrder);
this.setTableHeight();
},
toggleSelection(rows) {
if (rows) {
@ -2910,6 +2938,8 @@ export default {
this.selectionList = [];
this.dialogFormVisible = true;
this.onLoadList();
this.setTableHeight();
},
handleDelete() {
if (this.selectionList.length === 0) {

11
src/views/distribution/inventory/distrilbutionBillLadingList.vue

@ -919,12 +919,15 @@ export default {
},
//
handleLike({ row }, type = 'view') {
const jumpData = {
id: row.id,
type,
};
if (type === 'sigin') jumpData.name = '确认提货';
this.$router.push({
path: '/distribution/inventory/distrilbutionBillLadingView',
query: {
id: row.id,
type,
},
query: jumpData,
});
},

Loading…
Cancel
Save