|
@@ -82,10 +82,7 @@
|
|
</el-button>
|
|
</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="checkTrans()"
|
|
|
|
- v-if="!notRoutList.includes('checkTrans')"
|
|
|
|
|
|
+ <el-button type="primary" @click="checkTrans()"
|
|
><i class="el-icon-truck"></i>轨迹</el-button
|
|
><i class="el-icon-truck"></i>轨迹</el-button
|
|
>
|
|
>
|
|
<el-button type="primary" @click="operation()"
|
|
<el-button type="primary" @click="operation()"
|
|
@@ -94,10 +91,7 @@
|
|
<!-- <el-button type="primary" @click="batchoperation()"
|
|
<!-- <el-button type="primary" @click="batchoperation()"
|
|
><i class="el-icon-edit"></i>批量更改</el-button
|
|
><i class="el-icon-edit"></i>批量更改</el-button
|
|
> -->
|
|
> -->
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="checkPoint()"
|
|
|
|
- v-if="!notRoutList.includes('checkPoint')"
|
|
|
|
|
|
+ <el-button type="primary" @click="checkPoint()"
|
|
><i class="el-icon-map-location"></i>实时路径</el-button
|
|
><i class="el-icon-map-location"></i>实时路径</el-button
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -957,15 +951,13 @@
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
action="/api/v1/otms/addtmstruckArrivalResult"
|
|
:limit="1"
|
|
:limit="1"
|
|
:on-change="fileChange1"
|
|
:on-change="fileChange1"
|
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
</el-upload>
|
|
</el-upload>
|
|
- <el-dialog :visible.sync="dialogVisible1">
|
|
|
|
- <img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
|
- </el-dialog>
|
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="签收图片(空货箱、质保书、签收单)">
|
|
<el-form-item label="签收图片(空货箱、质保书、签收单)">
|
|
<el-upload
|
|
<el-upload
|
|
@@ -974,15 +966,13 @@
|
|
action="null"
|
|
action="null"
|
|
:limit="5"
|
|
:limit="5"
|
|
:on-change="fileChange2"
|
|
:on-change="fileChange2"
|
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
:on-exceed="exceed"
|
|
:on-exceed="exceed"
|
|
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
accept=".jpg,.jpeg,.png,.gif,.bmp,.pdf,.JPG,.JPEG,.PBG,.GIF,.BMP,.PDF"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
>
|
|
>
|
|
<i class="el-icon-plus"></i>
|
|
<i class="el-icon-plus"></i>
|
|
</el-upload>
|
|
</el-upload>
|
|
- <el-dialog :visible.sync="dialogVisible2">
|
|
|
|
- <img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
|
- </el-dialog>
|
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-button
|
|
<el-button
|
|
@@ -993,6 +983,9 @@
|
|
>确定</el-button
|
|
>确定</el-button
|
|
>
|
|
>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog :visible.sync="dialogVisible" width="80%">
|
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -1196,8 +1189,7 @@ export default {
|
|
fileListArrival: [],
|
|
fileListArrival: [],
|
|
fileListReceive: [],
|
|
fileListReceive: [],
|
|
dialogImageUrl: '',
|
|
dialogImageUrl: '',
|
|
- dialogVisible1: false,
|
|
|
|
- dialogVisible2: false,
|
|
|
|
|
|
+ dialogVisible: false,
|
|
isLoading: false,
|
|
isLoading: false,
|
|
batchList: []
|
|
batchList: []
|
|
}
|
|
}
|
|
@@ -1250,15 +1242,12 @@ export default {
|
|
immediate: true,
|
|
immediate: true,
|
|
handler(val) {
|
|
handler(val) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- console.log(val)
|
|
|
|
const start = Math.floor(val / this.itemHeight)
|
|
const start = Math.floor(val / this.itemHeight)
|
|
- console.log(start)
|
|
|
|
this.visibleList = []
|
|
this.visibleList = []
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
start,
|
|
start,
|
|
start + Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
start + Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
)
|
|
)
|
|
- console.log(this.visibleList)
|
|
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
this.top = start * this.itemHeight
|
|
this.top = start * this.itemHeight
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -1277,12 +1266,19 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
- this.$nextTick(() => {
|
|
|
|
- window.onresize = () => {
|
|
|
|
- return (() => {
|
|
|
|
- this.maxHeight = window.innerHeight - 150
|
|
|
|
- })()
|
|
|
|
- }
|
|
|
|
|
|
+ // window.onresize = () => {
|
|
|
|
+ // return (() => {
|
|
|
|
+ // console.log('wjll')
|
|
|
|
+ // this.maxHeight = window.innerHeight - 150
|
|
|
|
+ // })()
|
|
|
|
+ // }
|
|
|
|
+ let that = this
|
|
|
|
+ window.addEventListener('resize', function() {
|
|
|
|
+ console.log('wjll')
|
|
|
|
+ console.log(window)
|
|
|
|
+
|
|
|
|
+ that.maxHeight =
|
|
|
|
+ window.innerHeight - that.$refs.tableRef.$el.offsetTop - 150
|
|
})
|
|
})
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
if (this.debounceS) return
|
|
if (this.debounceS) return
|
|
@@ -1439,6 +1435,10 @@ export default {
|
|
exceed() {
|
|
exceed() {
|
|
this.$message.warning('超出上传数量!')
|
|
this.$message.warning('超出上传数量!')
|
|
},
|
|
},
|
|
|
|
+ handlePictureCardPreview(file) {
|
|
|
|
+ this.dialogImageUrl = file.url;
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ },
|
|
closeUpload() {
|
|
closeUpload() {
|
|
this.arrivalReceiving = false
|
|
this.arrivalReceiving = false
|
|
this.$refs.arrival.clearFiles()
|
|
this.$refs.arrival.clearFiles()
|
|
@@ -1682,7 +1682,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
cellMouse(row, column, cell, event) {
|
|
cellMouse(row, column, cell, event) {
|
|
- console.log(row)
|
|
|
|
if (this.isRowClick == 0) {
|
|
if (this.isRowClick == 0) {
|
|
this.tableRowIndex = row.group
|
|
this.tableRowIndex = row.group
|
|
}
|
|
}
|