|
@@ -67,7 +67,7 @@
|
|
|
style="width:150px"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
- <el-button type="primary" class="btn" @click="getSteelReport">
|
|
|
+ <el-button type="primary" class="btn" @click="onclick()">
|
|
|
<i class="el-icon-search"></i>
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
@@ -109,6 +109,14 @@
|
|
|
><i class="el-icon-circle-check"></i>确认执行价</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item v-show="activeName == 'second'">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="cancelMakeSure"
|
|
|
+ v-if="!notRoutList.includes('capacityNo')"
|
|
|
+ ><i class="el-icon-circle-check"></i>取消确认</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
<el-form-item v-show="activeName == 'second'">
|
|
|
<el-button type="primary" @click="openStatement">
|
|
|
<i class="el-icon-circle-check"></i>生成账单
|
|
@@ -492,7 +500,7 @@
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="actualAddress"
|
|
|
+ prop="addressPlace"
|
|
|
label="下货地点"
|
|
|
width="300px"
|
|
|
sortable
|
|
@@ -1274,6 +1282,58 @@ export default {
|
|
|
let endPageNum = this.currentPage * this.currentPageSize
|
|
|
this.priceList = this.priceAllList.slice(startPageNum, endPageNum)
|
|
|
},
|
|
|
+ cancelMakeSure() {
|
|
|
+ if (this.$refs.tableRef1.selection.length == 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ offset: '250',
|
|
|
+ message: '请勾选'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let orderList = this.$refs.tableRef1.selection.map(e => {
|
|
|
+ return e.orderId
|
|
|
+ })
|
|
|
+ let map = {
|
|
|
+ orderList: orderList,
|
|
|
+ updateStatus: 1
|
|
|
+ }
|
|
|
+ this.$confirm('是否将勾选住的单据取消确认', '提示', {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ center: true
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.axios.post('/api/v1/bms/updateDetailsStatus', map).then(res => {
|
|
|
+ if (res.data.code == '200') {
|
|
|
+ this.$refs.tableRef.clearSelection()
|
|
|
+ this.getSteelReport()
|
|
|
+ this.makeSurePriceOrderList = []
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '取消确认执行价成功',
|
|
|
+ duration: 2000,
|
|
|
+ offset: '250'
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '修改失败,联系管理员',
|
|
|
+ duration: 2000,
|
|
|
+ offset: '250'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '取消操作',
|
|
|
+ duration: 2000,
|
|
|
+ offset: '250'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
makeSurePrice() {
|
|
|
let map = {
|
|
|
orderList: this.makeSurePriceOrderList,
|
|
@@ -3015,167 +3075,226 @@ export default {
|
|
|
//查询,输入查询条件
|
|
|
onclick(obj) {
|
|
|
this.isRowClick = 0
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: '正在获取数据',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- })
|
|
|
- let startTime = null
|
|
|
- let endTime = null
|
|
|
- let carrierSsoId = null
|
|
|
- let carrierName = null
|
|
|
- let consigneeName = null
|
|
|
- let capacityNo = null
|
|
|
- let remark = null
|
|
|
- let saler = null
|
|
|
- let easPrimaryId = null
|
|
|
- let consigneeSsoId = null
|
|
|
- let consigneeLoginName = null
|
|
|
- if (this.startTime && this.endTime) {
|
|
|
- startTime = sjTime(this.startTime)
|
|
|
- endTime = sjTime(this.endTime)
|
|
|
- }
|
|
|
- if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
- carrierSsoId = getCookie('userId')
|
|
|
- }
|
|
|
- if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
|
|
|
- saler = getCookie('loginName')
|
|
|
- }
|
|
|
- if (getCookie('orgCode') == 'shouhuokehu') {
|
|
|
- consigneeLoginName =
|
|
|
- JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
|
|
|
- obj.consigneeLoginName = consigneeLoginName
|
|
|
- }
|
|
|
- if (this.screen == '客户') {
|
|
|
- consigneeName = this.input
|
|
|
- } else if (this.screen == '承运商') {
|
|
|
- carrierName = this.input
|
|
|
- } else if (this.screen == '车号') {
|
|
|
- capacityNo = this.input
|
|
|
- } else if (this.screen == '分录ID') {
|
|
|
- console.log('进入了分录')
|
|
|
- easPrimaryId = this.input
|
|
|
- } else {
|
|
|
- remark = this.input
|
|
|
- }
|
|
|
- if (this.screen1 == '客户' && this.input1 != null && this.input1 != '') {
|
|
|
- consigneeName = this.input1
|
|
|
- } else if (
|
|
|
- this.screen1 == '承运商' &&
|
|
|
- this.input1 != null &&
|
|
|
- this.input1 != ''
|
|
|
- ) {
|
|
|
- carrierName = this.input1
|
|
|
- } else if (
|
|
|
- this.screen1 == '车号' &&
|
|
|
- this.input1 != null &&
|
|
|
- this.input1 != ''
|
|
|
- ) {
|
|
|
- capacityNo = this.input1
|
|
|
- } else if (this.input1 != null && this.input1 != '') {
|
|
|
- remark = this.input1
|
|
|
- }
|
|
|
- debugger
|
|
|
- this.axios
|
|
|
- .post(
|
|
|
- '/api/v1/tms/getSaleSteelReportNew?startTime=' +
|
|
|
- startTime +
|
|
|
- '&endTime=' +
|
|
|
- endTime +
|
|
|
- '&carrierSsoId=' +
|
|
|
- carrierSsoId +
|
|
|
- '&i=' +
|
|
|
- new Date() +
|
|
|
- '&remark=' +
|
|
|
- remark +
|
|
|
- '&consigneeName=' +
|
|
|
- consigneeName +
|
|
|
- '&carrierName=' +
|
|
|
- carrierName +
|
|
|
- '&capacityNo=' +
|
|
|
- capacityNo +
|
|
|
- '&saler=' +
|
|
|
- saler +
|
|
|
- '&easPrimaryId=' +
|
|
|
- easPrimaryId,
|
|
|
- obj
|
|
|
- )
|
|
|
- .then(res => {
|
|
|
- this.tableData = res.data.data
|
|
|
- this.getNodeNum(this.tableData)
|
|
|
- //遍历保留两位小数
|
|
|
- // this.tableData.forEach(e=>{
|
|
|
- // try {
|
|
|
- // if(e.priceValue){
|
|
|
- // e.priceValue=e.priceValue.toFixed(2);
|
|
|
- // }
|
|
|
- // if(e.detailsAmount){
|
|
|
- // e.detailsAmount=e.detailsAmount.toFixed(2);
|
|
|
- // }
|
|
|
- // } catch (error) {
|
|
|
-
|
|
|
- // }
|
|
|
- // })
|
|
|
- this.maxHeight =
|
|
|
- window.innerHeight -
|
|
|
- document.querySelector('.tableTop').offsetHeight -
|
|
|
- 40
|
|
|
- this.visibleList = []
|
|
|
- this.visibleList = this.tableData.slice(
|
|
|
- 0,
|
|
|
- Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
- )
|
|
|
- console.log(this.visibleList)
|
|
|
- console.log(this.visibleList, 'this.visibleList')
|
|
|
- this.getSpanArr(this.visibleList)
|
|
|
- this.getTotalNum(this.tableData)
|
|
|
- console.log(this.visibleList)
|
|
|
- loading.close()
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- loading.close()
|
|
|
+ if (this.activeName == 'first') {
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '正在获取数据',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
- this.axios
|
|
|
- .post(
|
|
|
- '/api/v1/tms/getSettledSaleSteelReportNew?startTime=' +
|
|
|
- startTime +
|
|
|
- '&endTime=' +
|
|
|
- endTime +
|
|
|
- '&carrierSsoId=' +
|
|
|
- carrierSsoId +
|
|
|
- '&i=' +
|
|
|
- new Date() +
|
|
|
- '&remark=' +
|
|
|
- remark +
|
|
|
- '&consigneeName=' +
|
|
|
- consigneeName +
|
|
|
- '&carrierName=' +
|
|
|
- carrierName +
|
|
|
- '&capacityNo=' +
|
|
|
- capacityNo +
|
|
|
- '&saler=' +
|
|
|
- saler +
|
|
|
- '&easPrimaryId=' +
|
|
|
- easPrimaryId,
|
|
|
- obj
|
|
|
- )
|
|
|
- .then(res => {
|
|
|
- this.tableData1 = res.data.data
|
|
|
- this.getNodeNum(this.tableData1)
|
|
|
- this.maxHeight =
|
|
|
- window.innerHeight -
|
|
|
- document.querySelector('.tableTop').offsetHeight -
|
|
|
- 40
|
|
|
- this.visibleList1 = []
|
|
|
- this.visibleList1 = this.tableData1.slice(
|
|
|
- 0,
|
|
|
- Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
+ let startTime = null
|
|
|
+ let endTime = null
|
|
|
+ let carrierSsoId = null
|
|
|
+ let carrierName = null
|
|
|
+ let consigneeName = null
|
|
|
+ let capacityNo = null
|
|
|
+ let remark = null
|
|
|
+ let saler = null
|
|
|
+ let easPrimaryId = null
|
|
|
+ let consigneeLoginName = null
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
+ carrierSsoId = getCookie('userId')
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
|
|
|
+ saler = getCookie('loginName')
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'shouhuokehu') {
|
|
|
+ consigneeLoginName =
|
|
|
+ JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
|
|
|
+ obj.consigneeLoginName = consigneeLoginName
|
|
|
+ }
|
|
|
+ if (this.screen == '客户') {
|
|
|
+ consigneeName = this.input
|
|
|
+ } else if (this.screen == '承运商') {
|
|
|
+ carrierName = this.input
|
|
|
+ } else if (this.screen == '车号') {
|
|
|
+ capacityNo = this.input
|
|
|
+ } else if (this.screen == '分录ID') {
|
|
|
+ console.log('进入了分录')
|
|
|
+ easPrimaryId = this.input
|
|
|
+ } else {
|
|
|
+ remark = this.input
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.screen1 == '客户' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ consigneeName = this.input1
|
|
|
+ } else if (
|
|
|
+ this.screen1 == '承运商' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ carrierName = this.input1
|
|
|
+ } else if (
|
|
|
+ this.screen1 == '车号' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ capacityNo = this.input1
|
|
|
+ } else if (this.input1 != null && this.input1 != '') {
|
|
|
+ remark = this.input1
|
|
|
+ }
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ '/api/v1/tms/getSaleSteelReportNew?startTime=' +
|
|
|
+ startTime +
|
|
|
+ '&endTime=' +
|
|
|
+ endTime +
|
|
|
+ '&carrierSsoId=' +
|
|
|
+ carrierSsoId +
|
|
|
+ '&i=' +
|
|
|
+ new Date() +
|
|
|
+ '&remark=' +
|
|
|
+ remark +
|
|
|
+ '&consigneeName=' +
|
|
|
+ consigneeName +
|
|
|
+ '&carrierName=' +
|
|
|
+ carrierName +
|
|
|
+ '&capacityNo=' +
|
|
|
+ capacityNo +
|
|
|
+ '&saler=' +
|
|
|
+ saler +
|
|
|
+ '&easPrimaryId=' +
|
|
|
+ easPrimaryId,
|
|
|
+ obj
|
|
|
)
|
|
|
- console.log(this.visibleList1, 'this.visibleList1')
|
|
|
- this.getSpanArr1(this.visibleList1)
|
|
|
- this.getTotalNum(this.tableData1)
|
|
|
+ .then(res => {
|
|
|
+ this.tableData = res.data.data
|
|
|
+ this.getNodeNum(this.tableData)
|
|
|
+ this.maxHeight =
|
|
|
+ window.innerHeight -
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
+ 40
|
|
|
+ this.visibleList = []
|
|
|
+ this.visibleList = this.tableData.slice(
|
|
|
+ 0,
|
|
|
+ Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
+ )
|
|
|
+ this.getSpanArr(this.visibleList)
|
|
|
+ this.getTotalNum(this.tableData)
|
|
|
+ loading.close()
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ loading.close()
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ console.log('执行')
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '正在获取数据',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
+ let startTime = null
|
|
|
+ let endTime = null
|
|
|
+ let carrierSsoId = null
|
|
|
+ let carrierName = null
|
|
|
+ let consigneeName = null
|
|
|
+ let capacityNo = null
|
|
|
+ let remark = null
|
|
|
+ let saler = null
|
|
|
+ let easPrimaryId = null
|
|
|
+ let consigneeLoginName = null
|
|
|
+ if (this.startTime && this.endTime) {
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
+ carrierSsoId = getCookie('userId')
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
|
|
|
+ saler = getCookie('loginName')
|
|
|
+ }
|
|
|
+ if (getCookie('orgCode') == 'shouhuokehu') {
|
|
|
+ consigneeLoginName =
|
|
|
+ JSON.parse(getCookie('userInfo')).userCode || getCookie('loginName')
|
|
|
+ obj.consigneeLoginName = consigneeLoginName
|
|
|
+ }
|
|
|
+ console.log(this.screen1, this.input1, 'here')
|
|
|
+ if (this.screen == '客户') {
|
|
|
+ consigneeName = this.input
|
|
|
+ } else if (this.screen == '承运商') {
|
|
|
+ carrierName = this.input
|
|
|
+ } else if (this.screen == '车号') {
|
|
|
+ capacityNo = this.input
|
|
|
+ } else if (this.screen == '分录ID') {
|
|
|
+ console.log('进入了分录')
|
|
|
+ easPrimaryId = this.input
|
|
|
+ } else {
|
|
|
+ remark = this.input
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.screen1 == '客户' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ consigneeName = this.input1
|
|
|
+ } else if (
|
|
|
+ this.screen1 == '承运商' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ carrierName = this.input1
|
|
|
+ } else if (
|
|
|
+ this.screen1 == '车号' &&
|
|
|
+ this.input1 != null &&
|
|
|
+ this.input1 != ''
|
|
|
+ ) {
|
|
|
+ capacityNo = this.input1
|
|
|
+ } else if (this.input1 != null && this.input1 != '') {
|
|
|
+ remark = this.input1
|
|
|
+ }
|
|
|
+ this.axios
|
|
|
+ .post(
|
|
|
+ '/api/v1/tms/getSettledSaleSteelReportNew?startTime=' +
|
|
|
+ startTime +
|
|
|
+ '&endTime=' +
|
|
|
+ endTime +
|
|
|
+ '&carrierSsoId=' +
|
|
|
+ carrierSsoId +
|
|
|
+ '&i=' +
|
|
|
+ new Date() +
|
|
|
+ '&remark=' +
|
|
|
+ remark +
|
|
|
+ '&consigneeName=' +
|
|
|
+ consigneeName +
|
|
|
+ '&carrierName=' +
|
|
|
+ carrierName +
|
|
|
+ '&capacityNo=' +
|
|
|
+ capacityNo +
|
|
|
+ '&saler=' +
|
|
|
+ saler +
|
|
|
+ '&easPrimaryId=' +
|
|
|
+ easPrimaryId,
|
|
|
+ obj
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ this.tableData1 = res.data.data
|
|
|
+ this.getNodeNum(this.tableData1)
|
|
|
+ this.maxHeight =
|
|
|
+ window.innerHeight -
|
|
|
+ document.querySelector('.tableTop').offsetHeight -
|
|
|
+ 40
|
|
|
+ this.visibleList1 = []
|
|
|
+ this.visibleList1 = this.tableData1.slice(
|
|
|
+ 0,
|
|
|
+ Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
+ )
|
|
|
+ console.log(this.visibleList1, 'this.visibleList1')
|
|
|
+ this.getSpanArr1(this.visibleList1)
|
|
|
+ this.getTotalNum(this.tableData1)
|
|
|
+ loading.close()
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ loading.close()
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
//重新获取表格数据
|
|
|
refresh() {
|
|
@@ -3260,7 +3379,6 @@ export default {
|
|
|
let carrierSsoId = null
|
|
|
let carrierName = null
|
|
|
let consigneeName = null
|
|
|
- let consigneeSsoId = null
|
|
|
let consigneeLoginName = null
|
|
|
let capacityNo = null
|
|
|
let remark = null
|
|
@@ -3375,6 +3493,7 @@ export default {
|
|
|
this.filterMap
|
|
|
)
|
|
|
.then(res => {
|
|
|
+ loading.close()
|
|
|
this.tableData1 = res.data.data
|
|
|
this.getNodeNum(this.tableData1)
|
|
|
this.maxHeight =
|