|
@@ -2,14 +2,14 @@
|
|
<template>
|
|
<template>
|
|
<div class="saleSteelReports">
|
|
<div class="saleSteelReports">
|
|
<div class="tableTop">
|
|
<div class="tableTop">
|
|
- <el-form :inline="true" style="margin-top :5px">
|
|
|
|
|
|
+ <el-form :inline="true">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-select
|
|
<el-select
|
|
v-model="screen"
|
|
v-model="screen"
|
|
placeholder="请选择需筛选的内容"
|
|
placeholder="请选择需筛选的内容"
|
|
clearable
|
|
clearable
|
|
@change="changeScreen"
|
|
@change="changeScreen"
|
|
- style="width:100px"
|
|
|
|
|
|
+ style="width:90px"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in options"
|
|
v-for="item in options"
|
|
@@ -20,34 +20,12 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-input
|
|
<el-input
|
|
- style="width:170px"
|
|
|
|
|
|
+ style="width:150px"
|
|
v-model="input"
|
|
v-model="input"
|
|
placeholder="请输入查询条件"
|
|
placeholder="请输入查询条件"
|
|
clearable
|
|
clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item>
|
|
|
|
- <el-select
|
|
|
|
- v-model="screen1"
|
|
|
|
- placeholder="请选择需筛选的内容"
|
|
|
|
- clearable
|
|
|
|
- style="width:100px"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in options1"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <el-input
|
|
|
|
- style="width:170px"
|
|
|
|
- v-model="input1"
|
|
|
|
- placeholder="请输入查询条件"
|
|
|
|
- clearable
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<label class="el-form-item__label" style="width: auto;"
|
|
<label class="el-form-item__label" style="width: auto;"
|
|
>订单日期:</label
|
|
>订单日期:</label
|
|
@@ -56,7 +34,7 @@
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- style="width:150px"
|
|
|
|
|
|
+ style="width:140px"
|
|
:picker-options="pickerOptions"
|
|
:picker-options="pickerOptions"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -65,7 +43,7 @@
|
|
v-model="endTime"
|
|
v-model="endTime"
|
|
type="date"
|
|
type="date"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
- style="width:150px"
|
|
|
|
|
|
+ style="width:140px"
|
|
:picker-options="pickerOptions1"
|
|
:picker-options="pickerOptions1"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
@@ -121,55 +99,46 @@
|
|
@click="batchCarrier()"
|
|
@click="batchCarrier()"
|
|
v-if="!notRoutList.includes('batchCarrier')"
|
|
v-if="!notRoutList.includes('batchCarrier')"
|
|
>
|
|
>
|
|
- <i class="el-icon-share"></i>批量授权</el-button
|
|
|
|
|
|
+ <i class="el-icon-share"></i>批量</el-button
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="isShowOperate">
|
|
<el-form-item v-if="isShowOperate">
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="exceptionHandle()"
|
|
|
|
- v-if="!notRoutList.includes('exceptionHandle')"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-s-open"></i>
|
|
|
|
- 异常处理
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="isShowOperate">
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="mergeSplit()"
|
|
|
|
- v-if="!notRoutList.includes('mergeSplit')"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-pie-chart"></i>
|
|
|
|
- 合并或拆分
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="isShowOperate">
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="showSaleLog()"
|
|
|
|
- v-if="!notRoutList.includes('saleLog')"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-pie-chart"></i>
|
|
|
|
- 操作日志
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item v-if="isShowOperate">
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="showBatchCapacity()"
|
|
|
|
- v-if="!notRoutList.includes('batchCapacity')"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-edit"></i>
|
|
|
|
- 批量改车
|
|
|
|
- </el-button>
|
|
|
|
|
|
+ <el-dropdown>
|
|
|
|
+ <el-button type="primary">
|
|
|
|
+ 更多<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="exceptionHandle()"
|
|
|
|
+ v-if="!notRoutList.includes('exceptionHandle')"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-s-open"></i>
|
|
|
|
+ 异常处理
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="mergeSplit()"
|
|
|
|
+ v-if="!notRoutList.includes('mergeSplit')"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-pie-chart"></i>
|
|
|
|
+ 合并或拆分
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="showSaleLog()"
|
|
|
|
+ v-if="!notRoutList.includes('saleLog')"
|
|
|
|
+ >
|
|
|
|
+ <i class="el-icon-pie-chart"></i>
|
|
|
|
+ 操作日志
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <label
|
|
|
|
- class="el-form-item__label"
|
|
|
|
- style="width: auto;font-size: 16px;line-height: auto;"
|
|
|
|
|
|
+ <span style="width: auto;font-size: 16px;line-height: auto;"
|
|
>车数/件数: {{ totalCapacity }}/{{ totalNumber }}
|
|
>车数/件数: {{ totalCapacity }}/{{ totalNumber }}
|
|
- </label>
|
|
|
|
|
|
+ </span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
@@ -1134,21 +1103,48 @@
|
|
<img width="100%" :src="dialogImageUrl" alt="" />
|
|
<img width="100%" :src="dialogImageUrl" alt="" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog :visible.sync="batchCarrierVisible" width="30%" center>
|
|
<el-dialog :visible.sync="batchCarrierVisible" width="30%" center>
|
|
- <div>批量授权承运商</div>
|
|
|
|
- <el-form>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-autocomplete
|
|
|
|
- style="width:250px"
|
|
|
|
- v-model="batchCarrierName"
|
|
|
|
- :fetch-suggestions="querySearchCarrier"
|
|
|
|
- placeholder="请输入承运商"
|
|
|
|
- @select="handleSelectCarrier"
|
|
|
|
- >
|
|
|
|
- </el-autocomplete>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <el-button @click="batchCarrierVisible = false">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="batchCarrierMakeSure">确 定</el-button>
|
|
|
|
|
|
+ <div class="batchCarrierClass">
|
|
|
|
+ <el-form :inline="true">
|
|
|
|
+ <span>批量授权承运商</span>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-autocomplete
|
|
|
|
+ style="width:250px"
|
|
|
|
+ v-model="batchCarrierName"
|
|
|
|
+ :fetch-suggestions="querySearchCarrier"
|
|
|
|
+ placeholder="请输入承运商"
|
|
|
|
+ @select="handleSelectCarrier"
|
|
|
|
+ >
|
|
|
|
+ </el-autocomplete>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button @click="batchCarrierVisible = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="batchCarrierMakeSure"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="batchCapacityClass">
|
|
|
|
+ <el-form :inline="true">
|
|
|
|
+ <span>批量修改车牌号</span>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-autocomplete
|
|
|
|
+ style="width:250px"
|
|
|
|
+ v-model="capacityNo"
|
|
|
|
+ :fetch-suggestions="querySearch"
|
|
|
|
+ placeholder="请输入车牌号"
|
|
|
|
+ @select="batchCapacitySelect"
|
|
|
|
+ >
|
|
|
|
+ </el-autocomplete>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button @click="batchCapacityVisible = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="batchEditCapacity"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<div class="dialog">
|
|
<div class="dialog">
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -1387,23 +1383,6 @@
|
|
<dil-table v-bind.sync="optionSaleLog"></dil-table>
|
|
<dil-table v-bind.sync="optionSaleLog"></dil-table>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
- <el-dialog :visible.sync="batchCapacityVisible" width="30%" center>
|
|
|
|
- <div>批量修改车牌号</div>
|
|
|
|
- <el-form>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-autocomplete
|
|
|
|
- style="width:250px"
|
|
|
|
- v-model="capacityNo"
|
|
|
|
- :fetch-suggestions="querySearch"
|
|
|
|
- placeholder="请输入车牌号"
|
|
|
|
- @select="batchCapacitySelect"
|
|
|
|
- >
|
|
|
|
- </el-autocomplete>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <el-button @click="batchCapacityVisible = false">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="batchEditCapacity">确 定</el-button>
|
|
|
|
- </el-dialog>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -1420,6 +1399,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ toggleRowIds: [],
|
|
capacityNo: null,
|
|
capacityNo: null,
|
|
capacityId: null,
|
|
capacityId: null,
|
|
batchCapacityList: [],
|
|
batchCapacityList: [],
|
|
@@ -1455,7 +1435,6 @@ export default {
|
|
isShow4: false,
|
|
isShow4: false,
|
|
input: null,
|
|
input: null,
|
|
screen: '',
|
|
screen: '',
|
|
- screen1: '',
|
|
|
|
options: [
|
|
options: [
|
|
{
|
|
{
|
|
value: '客户',
|
|
value: '客户',
|
|
@@ -1474,20 +1453,6 @@ export default {
|
|
lable: '分录ID'
|
|
lable: '分录ID'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- options1: [
|
|
|
|
- {
|
|
|
|
- value: '客户',
|
|
|
|
- lable: '客户'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: '承运商',
|
|
|
|
- lable: '承运商'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- value: '车牌号',
|
|
|
|
- lable: '车牌号'
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
disabledDate(time) {
|
|
disabledDate(time) {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
@@ -1635,7 +1600,6 @@ export default {
|
|
isShow: false,
|
|
isShow: false,
|
|
srcList2: [],
|
|
srcList2: [],
|
|
isShow2: false,
|
|
isShow2: false,
|
|
- input1: '',
|
|
|
|
maxHeight: 700,
|
|
maxHeight: 700,
|
|
//轨迹窗口
|
|
//轨迹窗口
|
|
value7: false,
|
|
value7: false,
|
|
@@ -1739,7 +1703,8 @@ export default {
|
|
'订单变更时间',
|
|
'订单变更时间',
|
|
'销售订单变更记录',
|
|
'销售订单变更记录',
|
|
'运输订单变更记录'
|
|
'运输订单变更记录'
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ scrollUpdateSelectFlag: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -1808,13 +1773,29 @@ export default {
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // tableData: {
|
|
|
|
- // handler(oldVal, newVal) {
|
|
|
|
- // this.filterListChange()
|
|
|
|
- // },
|
|
|
|
- // deep: true,
|
|
|
|
- // immediate: true
|
|
|
|
- // },
|
|
|
|
|
|
+ visibleList: {
|
|
|
|
+ deep: true,
|
|
|
|
+ immediate: true,
|
|
|
|
+ handler(val) {
|
|
|
|
+ let standList = this.$store.state.saleSteelToggleIds
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.visibleList.forEach(e => {
|
|
|
|
+ if (standList.includes(e.saleOrderMaterialId))
|
|
|
|
+ this.$refs.tableRef.toggleRowSelection(e, true)
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ maxHeight() {
|
|
|
|
+ this.visibleList = this.tableData.slice(
|
|
|
|
+ 0,
|
|
|
|
+ Math.floor(this.maxHeight / 30)
|
|
|
|
+ )
|
|
|
|
+ this.getSpanArr(this.visibleList)
|
|
|
|
+ document.querySelector(
|
|
|
|
+ '.el-table__body-wrapper .el-table__body'
|
|
|
|
+ ).style.transform = `translateY(${0}px)`
|
|
|
|
+ },
|
|
scrollTop: {
|
|
scrollTop: {
|
|
immediate: true,
|
|
immediate: true,
|
|
deep: true,
|
|
deep: true,
|
|
@@ -1833,10 +1814,11 @@ export default {
|
|
if (val <= 0) {
|
|
if (val <= 0) {
|
|
val = 0
|
|
val = 0
|
|
}
|
|
}
|
|
|
|
+ console.log(this.$refs.tableRef.selection, 'selection2')
|
|
const start = Math.floor(val / 30)
|
|
const start = Math.floor(val / 30)
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
start,
|
|
start,
|
|
- start + Math.floor(this.maxHeight / 30) + 1
|
|
|
|
|
|
+ start + Math.floor(this.maxHeight / 30)
|
|
)
|
|
)
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
document.querySelector(
|
|
document.querySelector(
|
|
@@ -1855,33 +1837,24 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
return (() => {
|
|
return (() => {
|
|
- this.maxHeight = window.innerHeight - 146
|
|
|
|
- this.getSteelReport()
|
|
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
})()
|
|
})()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
console.log(this.scrollTop, 'scrollTop')
|
|
console.log(this.scrollTop, 'scrollTop')
|
|
- // console.log(this.debounceS,'WXSDD-20230112-00067671')
|
|
|
|
- // console.log(e)
|
|
|
|
if (this.debounceS) return
|
|
if (this.debounceS) return
|
|
this.debounceS = true
|
|
this.debounceS = true
|
|
this.scrollTop = e.target.scrollTop
|
|
this.scrollTop = e.target.scrollTop
|
|
-
|
|
|
|
- // let upDownLenght = this.scrollTop - this.scrollTopUpDownLenght
|
|
|
|
- // if (upDownLenght < 0) {
|
|
|
|
- // } else {
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.debounceS = false
|
|
|
|
- // }, 60)
|
|
|
|
- // }
|
|
|
|
- // document.querySelector(
|
|
|
|
- // '.el-table__body-wrapper .el-table__body'
|
|
|
|
- // ).style.transform = `translateY(0px)`
|
|
|
|
|
|
+ this.scrollUpdateSelectFlag = 1
|
|
})
|
|
})
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
- this.maxHeight = window.innerHeight - 146
|
|
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight - document.querySelector('.tableTop').offsetHeight - 40
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
@@ -1910,7 +1883,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
batchCapacitySelect(selection) {
|
|
batchCapacitySelect(selection) {
|
|
- console.log(selection)
|
|
|
|
this.capacityNo = selection.capacityNumber
|
|
this.capacityNo = selection.capacityNumber
|
|
this.capacityId = selection.capacityId
|
|
this.capacityId = selection.capacityId
|
|
},
|
|
},
|
|
@@ -1960,7 +1932,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.batchCapacityVisible = false
|
|
|
|
|
|
+ this.batchCarrierVisible = false
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
} else {
|
|
} else {
|
|
this.$message.warning('请先注册车牌号或者选中弹出后再提交!')
|
|
this.$message.warning('请先注册车牌号或者选中弹出后再提交!')
|
|
@@ -1974,8 +1946,6 @@ export default {
|
|
},
|
|
},
|
|
//删除计量实绩
|
|
//删除计量实绩
|
|
linkageDeleteTransportOrder(row, steelMap) {
|
|
linkageDeleteTransportOrder(row, steelMap) {
|
|
- console.log(row, 'row')
|
|
|
|
- console.log(steelMap, 'steelMap')
|
|
|
|
if (row.netWeight != null && row.netWeight != '') {
|
|
if (row.netWeight != null && row.netWeight != '') {
|
|
//如果净重不为空
|
|
//如果净重不为空
|
|
let arr = []
|
|
let arr = []
|
|
@@ -2293,7 +2263,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
batchCarrierMakeSure() {
|
|
batchCarrierMakeSure() {
|
|
- console.log(this.batchCarrierName)
|
|
|
|
let batchCarrierId = null
|
|
let batchCarrierId = null
|
|
this.carrierList.forEach(item => {
|
|
this.carrierList.forEach(item => {
|
|
if (item.carrierName == this.batchCarrierName) {
|
|
if (item.carrierName == this.batchCarrierName) {
|
|
@@ -2356,7 +2325,20 @@ export default {
|
|
map.saleOrderMaterialId = e.saleOrderMaterialId
|
|
map.saleOrderMaterialId = e.saleOrderMaterialId
|
|
return map
|
|
return map
|
|
})
|
|
})
|
|
- console.log(this.batchCarrierList)
|
|
|
|
|
|
+ console.log(this.scrollUpdateSelectFlag)
|
|
|
|
+ if (this.scrollUpdateSelectFlag == 0) {
|
|
|
|
+ let arr = []
|
|
|
|
+ arr = Array.from(
|
|
|
|
+ this.$refs.tableRef.selection.map(e => {
|
|
|
|
+ return e.saleOrderMaterialId
|
|
|
|
+ })
|
|
|
|
+ )
|
|
|
|
+ let [...arr2] = arr
|
|
|
|
+ this.toggleRowIds = arr2
|
|
|
|
+ this.$store.commit('updateSaleSteelToggleIds', {
|
|
|
|
+ saleSteelToggleIds: arr
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
receiveClick(src, title) {
|
|
receiveClick(src, title) {
|
|
// this.dialogImageUrl = src
|
|
// this.dialogImageUrl = src
|
|
@@ -3716,6 +3698,12 @@ export default {
|
|
},
|
|
},
|
|
//查询,输入查询条件
|
|
//查询,输入查询条件
|
|
onclick(obj) {
|
|
onclick(obj) {
|
|
|
|
+ this.$store.commit('updateSaleSteelToggleIds', { isClear: 1 })
|
|
|
|
+ // console.table(
|
|
|
|
+ // this.$refs.tableRef.bodyWrapper.children[0].children[1].rows[2]
|
|
|
|
+ // .offsetHeight
|
|
|
|
+ // )
|
|
|
|
+ // return
|
|
this.isRowClick = 0
|
|
this.isRowClick = 0
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -3758,15 +3746,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
remark = this.input
|
|
remark = this.input
|
|
}
|
|
}
|
|
- if (this.screen1 == '客户') {
|
|
|
|
- consigneeName = this.input1
|
|
|
|
- } else if (this.screen1 == '承运商') {
|
|
|
|
- carrierName = this.input1
|
|
|
|
- } else if (this.screen1 == '车牌号') {
|
|
|
|
- capacityNo = this.input1
|
|
|
|
- } else {
|
|
|
|
- remark = this.input1
|
|
|
|
- }
|
|
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
'/api/v1/tms/getSaleSteelReport?startTime=' +
|
|
'/api/v1/tms/getSaleSteelReport?startTime=' +
|
|
@@ -3795,7 +3774,6 @@ export default {
|
|
}
|
|
}
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
- debugger
|
|
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
if (res.data.data.length > 0) {
|
|
if (res.data.data.length > 0) {
|
|
this.totalNumber = res.data.data[0].totalNumber
|
|
this.totalNumber = res.data.data[0].totalNumber
|
|
@@ -3810,8 +3788,10 @@ export default {
|
|
this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
|
|
this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
|
|
this.filterSaleRemark = res.data.data[0].filterSaleRemark
|
|
this.filterSaleRemark = res.data.data[0].filterSaleRemark
|
|
}
|
|
}
|
|
-
|
|
|
|
- // this.getNodeNum(this.tableData)
|
|
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
if (
|
|
if (
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
this.tableData[0].isGcKeHu == '0'
|
|
this.tableData[0].isGcKeHu == '0'
|
|
@@ -3828,7 +3808,6 @@ export default {
|
|
a = this.visibleList[0].rowKey
|
|
a = this.visibleList[0].rowKey
|
|
}
|
|
}
|
|
this.visibleList = []
|
|
this.visibleList = []
|
|
- this.maxHeight = window.innerHeight - 146
|
|
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
0,
|
|
0,
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
@@ -3840,7 +3819,10 @@ export default {
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
loading.close()
|
|
loading.close()
|
|
- this.maxHeight = window.innerHeight - 146
|
|
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
this.$message.error('查询失败')
|
|
this.$message.error('查询失败')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -3852,6 +3834,7 @@ export default {
|
|
},
|
|
},
|
|
//获取钢材统计报表
|
|
//获取钢材统计报表
|
|
getSteelReportDebounce() {
|
|
getSteelReportDebounce() {
|
|
|
|
+ this.$store.commit('updateSaleSteelToggleIds', { isClear: 1 })
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
text: '正在获取数据,请稍候',
|
|
text: '正在获取数据,请稍候',
|
|
@@ -3891,15 +3874,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
remark = this.input
|
|
remark = this.input
|
|
}
|
|
}
|
|
- if (this.screen1 == '下单客户') {
|
|
|
|
- consigneeName = this.input1
|
|
|
|
- } else if (this.screen1 == '承运商') {
|
|
|
|
- carrierName = this.input1
|
|
|
|
- } else if (this.screen1 == '车牌号') {
|
|
|
|
- capacityNo = this.input1
|
|
|
|
- } else {
|
|
|
|
- remark = this.input1
|
|
|
|
- }
|
|
|
|
if (getCookie('orgCode') == 'chengyunshang') {
|
|
if (getCookie('orgCode') == 'chengyunshang') {
|
|
carrierSsoId = getCookie('userId')
|
|
carrierSsoId = getCookie('userId')
|
|
}
|
|
}
|
|
@@ -3931,16 +3905,23 @@ export default {
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
- this.totalNumber = res.data.data[0].totalNumber
|
|
|
|
- this.totalCapacity = res.data.data[0].totalCapacity
|
|
|
|
- this.filterConsigneeList = res.data.data[0].filterConsigneeList
|
|
|
|
- this.filterCarrierList = res.data.data[0].filterCarrierList
|
|
|
|
- this.filterCapacityList = res.data.data[0].filterCapacityList
|
|
|
|
- this.filtermaterialNameList = res.data.data[0].filtermaterialNameList
|
|
|
|
- this.filterorderStatus = res.data.data[0].filterorderStatus
|
|
|
|
- this.filteraddressPlace = res.data.data[0].filteraddressPlace
|
|
|
|
- this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
|
|
|
|
- this.filterSaleRemark = res.data.data[0].filterSaleRemark
|
|
|
|
|
|
+ if (res.data.data.length > 0) {
|
|
|
|
+ this.totalNumber = res.data.data[0].totalNumber
|
|
|
|
+ this.totalCapacity = res.data.data[0].totalCapacity
|
|
|
|
+ this.filterConsigneeList = res.data.data[0].filterConsigneeList
|
|
|
|
+ this.filterCarrierList = res.data.data[0].filterCarrierList
|
|
|
|
+ this.filterCapacityList = res.data.data[0].filterCapacityList
|
|
|
|
+ this.filtermaterialNameList =
|
|
|
|
+ res.data.data[0].filtermaterialNameList
|
|
|
|
+ this.filterorderStatus = res.data.data[0].filterorderStatus
|
|
|
|
+ this.filteraddressPlace = res.data.data[0].filteraddressPlace
|
|
|
|
+ this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
|
|
|
|
+ this.filterSaleRemark = res.data.data[0].filterSaleRemark
|
|
|
|
+ }
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
if (
|
|
if (
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
this.tableData[0].isGcKeHu == '0'
|
|
this.tableData[0].isGcKeHu == '0'
|
|
@@ -3957,7 +3938,6 @@ export default {
|
|
a = this.visibleList[0].rowKey
|
|
a = this.visibleList[0].rowKey
|
|
}
|
|
}
|
|
this.visibleList = []
|
|
this.visibleList = []
|
|
- this.maxHeight = window.innerHeight - 130
|
|
|
|
// this.getNodeNum(this.tableData)
|
|
// this.getNodeNum(this.tableData)
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
0,
|
|
0,
|
|
@@ -3968,7 +3948,10 @@ export default {
|
|
loading.close()
|
|
loading.close()
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
- this.maxHeight = window.innerHeight - 130
|
|
|
|
|
|
+ this.maxHeight =
|
|
|
|
+ window.innerHeight -
|
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
|
+ 40
|
|
loading.close()
|
|
loading.close()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -3981,6 +3964,7 @@ export default {
|
|
.tableTop {
|
|
.tableTop {
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
|
|
+ // height: ;
|
|
}
|
|
}
|
|
.table {
|
|
.table {
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
@@ -4002,6 +3986,16 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .batchCarrierClass {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+ .batchCapacityClass {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
.dialog {
|
|
.dialog {
|
|
.exceptionHandleClass {
|
|
.exceptionHandleClass {
|
|
display: flex;
|
|
display: flex;
|