|
@@ -123,9 +123,12 @@
|
|
reserve-selection
|
|
reserve-selection
|
|
:selectable="selectInit"
|
|
:selectable="selectInit"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column type="index" width="50"> </el-table-column>
|
|
|
|
<el-table-column prop="capacityNumber" label="车牌号" fit>
|
|
<el-table-column prop="capacityNumber" label="车牌号" fit>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="listNodeOrder"
|
|
|
|
+ label="序号"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="resultStartTime" label="排队开始时间">
|
|
<el-table-column prop="resultStartTime" label="排队开始时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="consigneeName" label="客户" fit>
|
|
<el-table-column prop="consigneeName" label="客户" fit>
|
|
@@ -162,10 +165,82 @@
|
|
|
|
|
|
<el-table-column prop="gatepostName" label="进厂门岗">
|
|
<el-table-column prop="gatepostName" label="进厂门岗">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="ctrlZQueueAllow(scope)"
|
|
|
|
+ >
|
|
|
|
+ 撤销放行
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button type="text" size="mini" @click="updateBill(scope)">
|
|
|
|
+ 修改提货单
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ <el-tab-pane label="两拼车辆排队链表" name="fourth">
|
|
|
|
+ <el-table
|
|
|
|
+ :data="tableData2"
|
|
|
|
+ :span-method="objectSpanMethod"
|
|
|
|
+ border
|
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
+ :row-key="getRowKey"
|
|
|
|
+ max-height="500px"
|
|
|
|
+ ref="spellData"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ type="selection"
|
|
|
|
+ width="55"
|
|
|
|
+ reserve-selection
|
|
|
|
+ :selectable="selectInitSplleing"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column prop="capacityNumber" label="车牌号" fit>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="listNodeOrder"
|
|
prop="listNodeOrder"
|
|
label="序号"
|
|
label="序号"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column prop="resultStartTime" label="排队开始时间">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="consigneeName" label="客户" fit>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="materialName" label="物资名称">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="steelMeter" label="钢材长度">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="materialSpecification" label="规格型号">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="materialNumber" label="物资件数">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="装货点" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-select
|
|
|
|
+ size="mini"
|
|
|
|
+ v-model="scope.row.id"
|
|
|
|
+ @change="changePriority(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in option"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.value"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="grid" label="拼数" fit> </el-table-column>
|
|
|
|
+ <el-table-column prop="driverTel" label="司机电话号码">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="gatepostName" label="进厂门岗">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="sureTime" label="可进厂确认时间">
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -189,16 +264,22 @@
|
|
border
|
|
border
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
|
+ :row-key="getRowKey"
|
|
max-height="500px"
|
|
max-height="500px"
|
|
|
|
+ ref="spellData"
|
|
>
|
|
>
|
|
- <el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
- width="80"
|
|
|
|
- align="center"
|
|
|
|
- prop="Nosort"
|
|
|
|
|
|
+ type="selection"
|
|
|
|
+ width="55"
|
|
|
|
+ reserve-selection
|
|
|
|
+ :selectable="selectInitSplleing"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column prop="capacityNumber" label="车牌号" fit>
|
|
<el-table-column prop="capacityNumber" label="车牌号" fit>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="listNodeOrder"
|
|
|
|
+ label="序号"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="resultStartTime" label="排队开始时间">
|
|
<el-table-column prop="resultStartTime" label="排队开始时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="consigneeName" label="客户" fit>
|
|
<el-table-column prop="consigneeName" label="客户" fit>
|
|
@@ -229,11 +310,6 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="grid" label="拼数" fit> </el-table-column>
|
|
<el-table-column prop="grid" label="拼数" fit> </el-table-column>
|
|
-
|
|
|
|
- <el-table-column
|
|
|
|
- prop="listNodeOrder"
|
|
|
|
- label="序号"
|
|
|
|
- ></el-table-column>
|
|
|
|
<el-table-column prop="driverTel" label="司机电话号码">
|
|
<el-table-column prop="driverTel" label="司机电话号码">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="gatepostName" label="进厂门岗">
|
|
<el-table-column prop="gatepostName" label="进厂门岗">
|
|
@@ -297,6 +373,7 @@ export default {
|
|
activeName: 'first',
|
|
activeName: 'first',
|
|
tableData: [],
|
|
tableData: [],
|
|
tableData1: [],
|
|
tableData1: [],
|
|
|
|
+ tableData2:[],
|
|
tableData3: [],
|
|
tableData3: [],
|
|
//存放每一行记录的合并数
|
|
//存放每一行记录的合并数
|
|
spanArr: [],
|
|
spanArr: [],
|
|
@@ -319,7 +396,8 @@ export default {
|
|
i: 0,
|
|
i: 0,
|
|
totalQueueNumFirst: null,
|
|
totalQueueNumFirst: null,
|
|
//厂内钢材车辆总数
|
|
//厂内钢材车辆总数
|
|
- steelOrderNum: 0
|
|
|
|
|
|
+ steelOrderNum: 0,
|
|
|
|
+ isQueryCapacity: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -397,6 +475,7 @@ export default {
|
|
this.redDotNum = null
|
|
this.redDotNum = null
|
|
this.totalQueueNum = null
|
|
this.totalQueueNum = null
|
|
this.totalQueueNumFirst = null
|
|
this.totalQueueNumFirst = null
|
|
|
|
+ this.isQueryCapacity = null
|
|
this.i = 0
|
|
this.i = 0
|
|
clearInterval(this.timer)
|
|
clearInterval(this.timer)
|
|
this.start()
|
|
this.start()
|
|
@@ -428,6 +507,25 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ selectInitSplleing(row) {
|
|
|
|
+ if (this.maplist.length == 0) {
|
|
|
|
+ if (row.ROW_ID == 1) {
|
|
|
|
+ return true
|
|
|
|
+ } else {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (
|
|
|
|
+ this.maplist.some(e => {
|
|
|
|
+ return e.ROW_ID == row.ROW_ID || e.ROW_ID + 1 == row.ROW_ID
|
|
|
|
+ })
|
|
|
|
+ ) {
|
|
|
|
+ return true
|
|
|
|
+ } else {
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
rowDbClick(row) {
|
|
rowDbClick(row) {
|
|
this.materialList = []
|
|
this.materialList = []
|
|
this.materialList.push(row)
|
|
this.materialList.push(row)
|
|
@@ -471,13 +569,20 @@ export default {
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData1 = res.data.data
|
|
this.tableData1 = res.data.data
|
|
})
|
|
})
|
|
- } else {
|
|
|
|
|
|
+ } else if(this.activeName ==second){
|
|
this.axios
|
|
this.axios
|
|
.post('/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1', map)
|
|
.post('/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1', map)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
this.getSpanArr(this.tableData)
|
|
this.getSpanArr(this.tableData)
|
|
})
|
|
})
|
|
|
|
+ }else if (this.activeName == fourth){
|
|
|
|
+ this.axios
|
|
|
|
+ .post('/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2', map)
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.tableData2 = res.data.data
|
|
|
|
+ this.getSpanArr(this.tableData2)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
this.table1 = false
|
|
this.table1 = false
|
|
},
|
|
},
|
|
@@ -495,26 +600,23 @@ export default {
|
|
if (i === 0) {
|
|
if (i === 0) {
|
|
this.spanArr.push(1)
|
|
this.spanArr.push(1)
|
|
this.pos = 0
|
|
this.pos = 0
|
|
|
|
+ data[i].group = i
|
|
|
|
+ data[i].ROW_ID = i + 1
|
|
} else {
|
|
} else {
|
|
// 判断当前元素与上一个元素是否相同
|
|
// 判断当前元素与上一个元素是否相同
|
|
if (data[i].resultTotalId === data[i - 1].resultTotalId) {
|
|
if (data[i].resultTotalId === data[i - 1].resultTotalId) {
|
|
this.spanArr[this.pos] += 1
|
|
this.spanArr[this.pos] += 1
|
|
this.spanArr.push(0)
|
|
this.spanArr.push(0)
|
|
|
|
+ data[i].group = data[i - 1].group
|
|
|
|
+ data[i].ROW_ID = data[i - 1].ROW_ID
|
|
} else {
|
|
} else {
|
|
this.spanArr.push(1)
|
|
this.spanArr.push(1)
|
|
this.pos = i
|
|
this.pos = i
|
|
|
|
+ data[i].group = data[i - 1].group + 1
|
|
|
|
+ data[i].ROW_ID = data[i - 1].ROW_ID + 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- // 表格序号
|
|
|
|
- let Nosort = 0
|
|
|
|
- for (let n in this.spanArr) {
|
|
|
|
- if (this.spanArr[n] > 0) {
|
|
|
|
- Nosort += 1
|
|
|
|
- this.$set(data[n], 'Nosort', Nosort)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
if (
|
|
if (
|
|
@@ -547,6 +649,8 @@ export default {
|
|
this.getNoSpellingArray()
|
|
this.getNoSpellingArray()
|
|
} else if (this.activeName == 'second') {
|
|
} else if (this.activeName == 'second') {
|
|
this.getSpellingArray()
|
|
this.getSpellingArray()
|
|
|
|
+ }else if (this.activeName == 'fourth'){
|
|
|
|
+ this.getSpellingArrayTwo()
|
|
} else {
|
|
} else {
|
|
this.getStoreArray()
|
|
this.getStoreArray()
|
|
}
|
|
}
|
|
@@ -556,6 +660,7 @@ export default {
|
|
.post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0&i=' + new Date())
|
|
.post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0&i=' + new Date())
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData1 = res.data.data
|
|
this.tableData1 = res.data.data
|
|
|
|
+ this.isQueryCapacity = null
|
|
console.log(this.tableData1)
|
|
console.log(this.tableData1)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -567,10 +672,24 @@ export default {
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
|
|
+ this.isQueryCapacity = null
|
|
console.log(this.tableData)
|
|
console.log(this.tableData)
|
|
this.getSpanArr(this.tableData)
|
|
this.getSpanArr(this.tableData)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getSpellingArrayTwo() {
|
|
|
|
+ this.axios
|
|
|
|
+ .post(
|
|
|
|
+ '/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2&i=' +
|
|
|
|
+ new Date()
|
|
|
|
+ )
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.tableData2 = res.data.data
|
|
|
|
+ this.isQueryCapacity = null
|
|
|
|
+ console.log(this.tableData2)
|
|
|
|
+ this.getSpanArr(this.tableData2)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getStoreArray() {
|
|
getStoreArray() {
|
|
this.axios.post('/api/v1/qms/getStoreQueueList').then(res => {
|
|
this.axios.post('/api/v1/qms/getStoreQueueList').then(res => {
|
|
this.tableData3 = res.data.data
|
|
this.tableData3 = res.data.data
|
|
@@ -587,10 +706,11 @@ export default {
|
|
this.capacityNo
|
|
this.capacityNo
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ this.isQueryCapacity = 1
|
|
this.tableData1 = res.data.data
|
|
this.tableData1 = res.data.data
|
|
})
|
|
})
|
|
console.log('wzxxx')
|
|
console.log('wzxxx')
|
|
- } else {
|
|
|
|
|
|
+ } else if (this.activeName == second){
|
|
this.axios
|
|
this.axios
|
|
.post(
|
|
.post(
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1&i=' +
|
|
'/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1&i=' +
|
|
@@ -599,9 +719,23 @@ export default {
|
|
this.capacityNo
|
|
this.capacityNo
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ this.isQueryCapacity = 1
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
this.getSpanArr(this.tableData)
|
|
this.getSpanArr(this.tableData)
|
|
})
|
|
})
|
|
|
|
+ }else if (this.activeName ==fourth){
|
|
|
|
+ this.axios
|
|
|
|
+ .post(
|
|
|
|
+ '/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2&i=' +
|
|
|
|
+ new Date() +
|
|
|
|
+ '&capacityNumber=' +
|
|
|
|
+ this.capacityNo
|
|
|
|
+ )
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.isQueryCapacity = 1
|
|
|
|
+ this.tableData2 = res.data.data
|
|
|
|
+ this.getSpanArr(this.tableData2)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
@@ -611,6 +745,7 @@ export default {
|
|
if (i + 1 < this.maplist.length) {
|
|
if (i + 1 < this.maplist.length) {
|
|
if (this.maplist[i].ROW_ID + 1 != this.maplist[i + 1].ROW_ID) {
|
|
if (this.maplist[i].ROW_ID + 1 != this.maplist[i + 1].ROW_ID) {
|
|
this.$refs.mutiData.clearSelection()
|
|
this.$refs.mutiData.clearSelection()
|
|
|
|
+ this.$refs.spellData.clearSelection()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -621,6 +756,7 @@ export default {
|
|
})
|
|
})
|
|
) {
|
|
) {
|
|
this.$refs.mutiData.clearSelection()
|
|
this.$refs.mutiData.clearSelection()
|
|
|
|
+ this.$refs.spellData.clearSelection()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
updateBill(scope) {
|
|
updateBill(scope) {
|
|
@@ -686,11 +822,14 @@ export default {
|
|
})
|
|
})
|
|
let map = {
|
|
let map = {
|
|
ssoId: getCookie('userId'),
|
|
ssoId: getCookie('userId'),
|
|
- mapList: filterArr2
|
|
|
|
|
|
+ mapList: filterArr2,
|
|
|
|
+ isQueryCapacity: this.isQueryCapacity
|
|
}
|
|
}
|
|
if (this.activeName == 'first') {
|
|
if (this.activeName == 'first') {
|
|
map.mapList = this.maplist
|
|
map.mapList = this.maplist
|
|
}
|
|
}
|
|
|
|
+ console.log("勾选的数据")
|
|
|
|
+ console.log(map)
|
|
this.axios.post('/api/v1/qms/allowEnFactory', map).then(res => {
|
|
this.axios.post('/api/v1/qms/allowEnFactory', map).then(res => {
|
|
if (res.data.code == '200') {
|
|
if (res.data.code == '200') {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -702,6 +841,7 @@ export default {
|
|
})
|
|
})
|
|
this.maplist = []
|
|
this.maplist = []
|
|
this.$refs.mutiData.clearSelection()
|
|
this.$refs.mutiData.clearSelection()
|
|
|
|
+ this.$refs.spellData.clearSelection()
|
|
this.getNoSpellingArray()
|
|
this.getNoSpellingArray()
|
|
this.getSpellingArray()
|
|
this.getSpellingArray()
|
|
this.getStoreArray()
|
|
this.getStoreArray()
|