|
@@ -192,6 +192,7 @@
|
|
|
ref="tableRef"
|
|
|
border
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
+ id="salesLogisticsStat_saleSteelReports_table"
|
|
|
:height="maxHeight"
|
|
|
:max-height="maxHeight"
|
|
|
:row-class-name="tableRowClassName"
|
|
@@ -2130,6 +2131,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getSteelReport = this.debounce(() => {
|
|
|
+ this.getSteelReportDebounce()
|
|
|
+ }, 100)
|
|
|
this.orgCode = getCookie('orgCode')
|
|
|
this.userId = getCookie('userId')
|
|
|
if (this.orgCodeList.includes(getCookie('orgCode'))) {
|
|
@@ -2161,6 +2165,7 @@ export default {
|
|
|
this.getinformation()
|
|
|
}, 1000 * 180)
|
|
|
}
|
|
|
+ this.getSteelReport()
|
|
|
if (getCookie('orgCode') == 'shouhuokehu') {
|
|
|
//如果是收货客户,则查询
|
|
|
this.axios
|
|
@@ -2171,10 +2176,12 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.columnNoRoutList = res.data
|
|
|
+ this.reset()
|
|
|
})
|
|
|
this.notRoutList = ['select']
|
|
|
} else {
|
|
|
this.getColumShowHideScheme()
|
|
|
+ this.reset()
|
|
|
}
|
|
|
if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
|
|
|
this.isShowOperateYeWuYuan = true
|
|
@@ -2195,18 +2202,13 @@ export default {
|
|
|
this.exceptionHandleMakeSure = this.debounce(() => {
|
|
|
this.exceptionHandleMakeSure1()
|
|
|
}, 500)
|
|
|
- this.getSteelReport = this.debounce(() => {
|
|
|
- this.getSteelReportDebounce()
|
|
|
- }, 100)
|
|
|
this.submitSteelDebounce = this.debounce(obj => {
|
|
|
this.submitSteel(obj)
|
|
|
})
|
|
|
- this.getSteelReport()
|
|
|
},
|
|
|
watch: {
|
|
|
visibleList: {
|
|
|
deep: true,
|
|
|
- immediate: true,
|
|
|
handler(val) {
|
|
|
let standList = this.$store.state.saleSteelToggleIds
|
|
|
this.$nextTick(() => {
|
|
@@ -2245,7 +2247,6 @@ export default {
|
|
|
if (val <= 0) {
|
|
|
val = 0
|
|
|
}
|
|
|
- console.log('执行')
|
|
|
const start = Math.floor(val / 30)
|
|
|
this.visibleList = this.tableData.slice(
|
|
|
start,
|
|
@@ -5083,7 +5084,6 @@ export default {
|
|
|
return e != '净重'
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
let a = 1
|
|
|
if (
|
|
|
this.visibleList.length > 0 &&
|
|
@@ -5093,11 +5093,13 @@ export default {
|
|
|
}
|
|
|
this.visibleList = []
|
|
|
// this.getNodeLNum(this.tableData)
|
|
|
- this.visibleist = this.tableData.slice(
|
|
|
+ this.visibleList = this.tableData.slice(
|
|
|
0,
|
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
)
|
|
|
+
|
|
|
this.getSpanArr(this.visibleList)
|
|
|
+ console.log(this.visibleList, 'this.visibleList--------------------')
|
|
|
this.$refs.tableRef.bodyWrapper.scrollTop = 30 * (a - 1)
|
|
|
loading.close()
|
|
|
})
|