|
@@ -2,11 +2,9 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="frameCalculation">
|
|
|
- <el-form :inline="true" >
|
|
|
+ <el-form :inline="true">
|
|
|
<el-form-item>
|
|
|
- <label style="width: 200px;margin-left: 10px"
|
|
|
- >计毛时间:</label
|
|
|
- >
|
|
|
+ <label style="width: 200px;margin-left: 10px">计毛时间:</label>
|
|
|
<el-date-picker
|
|
|
v-model="startTime"
|
|
|
type="datetime"
|
|
@@ -21,36 +19,48 @@
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
<el-form-item>
|
|
|
- <el-select v-model="condition1" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-input
|
|
|
- placeholder="请输入内容"
|
|
|
- v-model="input1"
|
|
|
- style="width:200px"
|
|
|
- clearable
|
|
|
- >
|
|
|
- </el-input>
|
|
|
- <el-select v-model="condition2" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-input
|
|
|
- placeholder="请输入内容"
|
|
|
- v-model="input2"
|
|
|
- style="width:200px"
|
|
|
- clearable
|
|
|
- >
|
|
|
- </el-input>
|
|
|
+ <el-select
|
|
|
+ v-model="condition1"
|
|
|
+ placeholder="请选择筛选条件"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input1"
|
|
|
+ style="width:200px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <el-select
|
|
|
+ v-model="condition2"
|
|
|
+ placeholder="请选择筛选条件"
|
|
|
+ style="width:150px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input2"
|
|
|
+ style="width:200px"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-form-item>
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
@@ -66,7 +76,7 @@
|
|
|
<i class="el-icon-refresh"></i>
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
- <el-form-item >
|
|
|
+ <el-form-item>
|
|
|
<span>合计净重:</span>
|
|
|
<el-input
|
|
|
v-model="totalNumber"
|
|
@@ -112,14 +122,32 @@
|
|
|
@radio-change="selectOne"
|
|
|
:pageSize="pageSize"
|
|
|
>
|
|
|
- <el-table-column label="抵达地址" width="150" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column
|
|
|
+ label="抵达地址"
|
|
|
+ width="150"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="showPic(scope.row.arrivalPhoto)">{{scope.row.arrivalAddress}}</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="showPic(scope.row.arrivalPhoto)"
|
|
|
+ >{{ scope.row.arrivalAddress }}</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="签收地址" width="150" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column
|
|
|
+ label="签收地址"
|
|
|
+ width="150"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="showPic(scope.row.receiptPhoto)">{{scope.row.receiptAddress}}</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ @click="showPic(scope.row.receiptPhoto)"
|
|
|
+ >{{ scope.row.receiptAddress }}</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</dilTable>
|
|
@@ -140,41 +168,34 @@
|
|
|
</div>
|
|
|
<el-dialog :visible.sync="disvisiable">
|
|
|
<div class="admin2">
|
|
|
- <div class="carrier from">
|
|
|
- <el-form
|
|
|
- :inline="true"
|
|
|
- class="demo-form-inline"
|
|
|
- label-width="80px"
|
|
|
- >
|
|
|
- <el-form-item label="车牌号:">
|
|
|
- <el-autocomplete
|
|
|
- class="inline-input"
|
|
|
- v-model="capacityName"
|
|
|
- :fetch-suggestions="querySearchCapacity"
|
|
|
- placeholder="车牌号"
|
|
|
- :trigger-on-focus="false"
|
|
|
- @select="handleSelectCapacity"
|
|
|
- >
|
|
|
- <template slot-scope="{ item }">
|
|
|
- <div class="name">{{ item.capacityNumber }}</div>
|
|
|
- </template>
|
|
|
- </el-autocomplete>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- <div class="poundNo from">
|
|
|
- <span class="text">运输订单号:</span>
|
|
|
- <el-input v-model="orderNumber" disabled></el-input>
|
|
|
- </div>
|
|
|
- <div class="button_box">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="updateCanwork"
|
|
|
- :disabled="disabled"
|
|
|
- >确认</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="carrier from">
|
|
|
+ <el-form :inline="true" class="demo-form-inline" label-width="80px">
|
|
|
+ <el-form-item label="车牌号:">
|
|
|
+ <el-autocomplete
|
|
|
+ class="inline-input"
|
|
|
+ v-model="capacityName"
|
|
|
+ :fetch-suggestions="querySearchCapacity"
|
|
|
+ placeholder="车牌号"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ @select="handleSelectCapacity"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ item }">
|
|
|
+ <div class="name">{{ item.capacityNumber }}</div>
|
|
|
+ </template>
|
|
|
+ </el-autocomplete>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="poundNo from">
|
|
|
+ <span class="text">运输订单号:</span>
|
|
|
+ <el-input v-model="orderNumber" disabled></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="button_box">
|
|
|
+ <el-button type="primary" @click="updateCanwork" :disabled="disabled"
|
|
|
+ >确认</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
title="抵达签收"
|
|
@@ -261,13 +282,19 @@
|
|
|
<img width="100%" :src="dialogImageUrl" alt="" />
|
|
|
</el-dialog>
|
|
|
<el-dialog title="图片查看" :visible.sync="dialogVisible2" width="80%">
|
|
|
- <img width="100%" v-for="item in picList" :src="item" :key="item" alt="" />
|
|
|
+ <img
|
|
|
+ width="100%"
|
|
|
+ v-for="item in picList"
|
|
|
+ :src="item"
|
|
|
+ :key="item"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { sjTime } from "@/utils/sharedJsFile";
|
|
|
+import { sjTime } from '@/utils/sharedJsFile'
|
|
|
import { getCookie } from '@/utils/util.js'
|
|
|
import PathView from './mapTest.vue'
|
|
|
import currentLocation from './currentLocation.vue'
|
|
@@ -279,33 +306,33 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- condition1:null,
|
|
|
- condition2:null,
|
|
|
- input1:null,
|
|
|
- input2:null,
|
|
|
- options:[
|
|
|
- {
|
|
|
- label:"车牌号",
|
|
|
- value:"capacityNumber"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"收货单位",
|
|
|
- value:"receivName"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"物资名称/备注",
|
|
|
- value:"remark"
|
|
|
- },
|
|
|
- {
|
|
|
- label:"装货地点",
|
|
|
- value:"wareHouse"
|
|
|
- }
|
|
|
+ condition1: null,
|
|
|
+ condition2: null,
|
|
|
+ input1: null,
|
|
|
+ input2: null,
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: '车牌号',
|
|
|
+ value: 'capacityNumber'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '收货单位',
|
|
|
+ value: 'receivName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '物资名称/备注',
|
|
|
+ value: 'remark'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '装货地点',
|
|
|
+ value: 'wareHouse'
|
|
|
+ }
|
|
|
],
|
|
|
orderNumber: null,
|
|
|
- orderId:null,
|
|
|
+ orderId: null,
|
|
|
disabled: false,
|
|
|
- capacityName:null,
|
|
|
- disvisiable:false,
|
|
|
+ capacityName: null,
|
|
|
+ disvisiable: false,
|
|
|
wareHouse: null,
|
|
|
inputMaterial: null,
|
|
|
shiyHeigth: 140,
|
|
@@ -313,9 +340,9 @@ export default {
|
|
|
pageSize: 100,
|
|
|
isKuang: false,
|
|
|
option: {
|
|
|
- requestUrl: "",
|
|
|
- selectionType:"radio",
|
|
|
- requestQuery:null
|
|
|
+ requestUrl: '',
|
|
|
+ selectionType: 'radio',
|
|
|
+ requestQuery: null
|
|
|
},
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
@@ -323,11 +350,11 @@ export default {
|
|
|
totalNumber: 0,
|
|
|
//合计车数
|
|
|
totalCapacity: 0,
|
|
|
- tableTitle: "销售统计报表",
|
|
|
+ tableTitle: '销售统计报表',
|
|
|
inputReceiveName: null,
|
|
|
//抵达签收
|
|
|
- selection:null,
|
|
|
- orgCode:null,
|
|
|
+ selection: null,
|
|
|
+ orgCode: null,
|
|
|
location: null,
|
|
|
capacityNumber: null,
|
|
|
arrivalReceiving: false,
|
|
@@ -337,8 +364,8 @@ export default {
|
|
|
fileListReceive: [],
|
|
|
dialogImageUrl: '',
|
|
|
dialogVisible: false,
|
|
|
- picList:[],
|
|
|
- dialogVisible2:false,
|
|
|
+ picList: [],
|
|
|
+ dialogVisible2: false,
|
|
|
isLoading: false,
|
|
|
arrivalTime: null,
|
|
|
receiptTime: null,
|
|
@@ -351,37 +378,37 @@ export default {
|
|
|
startPointName: '',
|
|
|
endPointName: '',
|
|
|
statusCode: '位置'
|
|
|
- },
|
|
|
- };
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
//初始化表头
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=null&endTime=null&orderType=2&shipperId=2&carrierSsoId=" +
|
|
|
- getCookie("userId") +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=null&endTime=null&orderType=2&shipperId=2&carrierSsoId=' +
|
|
|
+ getCookie('userId') +
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
} else {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=null&endTime=null&orderType=2&shipperId=2&carrierSsoId=" +
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=null&endTime=null&orderType=2&shipperId=2&carrierSsoId=' +
|
|
|
null +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
}
|
|
|
//时间段初始化
|
|
|
- const start = new Date(new Date(new Date().toLocaleDateString()).getTime());
|
|
|
- var startTime = this.dataFormat(sjTime(start));
|
|
|
- var endTime = this.dataFormat(sjTime(new Date()));
|
|
|
- this.tableTitle = startTime + " 至 " + endTime;
|
|
|
- this.orgCode=getCookie('orgCode');
|
|
|
- console.log(this.orgCode);
|
|
|
+ const start = new Date(new Date(new Date().toLocaleDateString()).getTime())
|
|
|
+ var startTime = this.dataFormat(sjTime(start))
|
|
|
+ var endTime = this.dataFormat(sjTime(new Date()))
|
|
|
+ this.tableTitle = startTime + ' 至 ' + endTime
|
|
|
+ this.orgCode = getCookie('orgCode')
|
|
|
+ console.log(this.orgCode)
|
|
|
},
|
|
|
methods: {
|
|
|
//选中
|
|
|
- selectOne(selection){
|
|
|
- console.log("selection",selection);
|
|
|
- this.selection=selection;
|
|
|
+ selectOne(selection) {
|
|
|
+ console.log('selection', selection)
|
|
|
+ this.selection = selection
|
|
|
},
|
|
|
//抵达签收
|
|
|
openReceive() {
|
|
@@ -401,7 +428,8 @@ export default {
|
|
|
//其次获取车辆定位
|
|
|
this.axios
|
|
|
.get(
|
|
|
- '/api/v1/otms/getCurrentLocation?capcityNumber=' + row.capacityNumber
|
|
|
+ '/api/v1/otms/getCurrentLocation?capcityNumber=' +
|
|
|
+ row.capacityNumber
|
|
|
)
|
|
|
.then(res => {
|
|
|
if (
|
|
@@ -441,7 +469,9 @@ export default {
|
|
|
})
|
|
|
//签收图片
|
|
|
this.axios
|
|
|
- .post('/api/v1/otms/getReceivingPhotoByUrl?orderNumber=' + row.orderNumber)
|
|
|
+ .post(
|
|
|
+ '/api/v1/otms/getReceivingPhotoByUrl?orderNumber=' + row.orderNumber
|
|
|
+ )
|
|
|
.then(res => {
|
|
|
console.log('ReceivingPhoto:', res)
|
|
|
if (res.data) {
|
|
@@ -552,7 +582,7 @@ export default {
|
|
|
},
|
|
|
showPic(urls) {
|
|
|
//获取图片到本地
|
|
|
- this.axios.post('/api/v1/uc/getPicture', {urls:urls}).then(res => {
|
|
|
+ this.axios.post('/api/v1/uc/getPicture', { urls: urls }).then(res => {
|
|
|
console.log(res)
|
|
|
if (res.data) {
|
|
|
// let remarkPicList = []
|
|
@@ -606,40 +636,47 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- exportToExcel(tableTitle="表格标题") {
|
|
|
- //创建工作簿对象
|
|
|
- let wb = XLSX.utils.book_new();
|
|
|
- //查询数据
|
|
|
- let map={isExcel:1};
|
|
|
- this.axios.post(this.option.requestUrl,map).then(res=>{
|
|
|
- let columnData=res.data.data.columnData;
|
|
|
- let data=[];
|
|
|
- if(!res.data.data.list || res.data.data.list.length<=0){
|
|
|
- this.$message({
|
|
|
- message:"请先查询,再导出!",
|
|
|
- type:"warning",
|
|
|
- duration:1000
|
|
|
- });
|
|
|
- return;
|
|
|
- }else{
|
|
|
- //替换表头
|
|
|
- console.log("columnData",columnData);
|
|
|
- res.data.data.list.forEach((item,index)=>{
|
|
|
- let temp={};
|
|
|
- columnData.forEach((col)=>{
|
|
|
- temp[col.label] = item[col.prop];
|
|
|
- });
|
|
|
- data.push(temp);
|
|
|
- });
|
|
|
- console.log("data",data);
|
|
|
- //将json数组转换成sheet
|
|
|
- let table_sheet = XLSX.utils.json_to_sheet(data);
|
|
|
- //为工作簿添加sheet
|
|
|
- XLSX.utils.book_append_sheet(wb, table_sheet, "第一页");
|
|
|
- //导出
|
|
|
- XLSX.writeFile(wb, tableTitle+'.xlsx');
|
|
|
- }
|
|
|
- });
|
|
|
+ exportToExcel(tableTitle = '表格标题') {
|
|
|
+ //创建工作簿对象
|
|
|
+ let wb = XLSX.utils.book_new()
|
|
|
+ let startTime = null
|
|
|
+ let endTime = null
|
|
|
+ let requestQuery = {}
|
|
|
+ requestQuery[this.condition1] = this.input1 + ''
|
|
|
+ requestQuery[this.condition2] = this.input2 + ''
|
|
|
+ requestQuery.isExcel = 1
|
|
|
+ //查询数据
|
|
|
+ let map = { isExcel: 1 }
|
|
|
+ this.axios.post(this.option.requestUrl, requestQuery).then(res => {
|
|
|
+ console.log(res, 'res')
|
|
|
+ let columnData = res.data.data.columnData
|
|
|
+ let data = []
|
|
|
+ if (!res.data.data.list || res.data.data.list.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '请先查询,再导出!',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 1000
|
|
|
+ })
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ //替换表头
|
|
|
+ console.log('columnData', columnData)
|
|
|
+ res.data.data.list.forEach((item, index) => {
|
|
|
+ let temp = {}
|
|
|
+ columnData.forEach(col => {
|
|
|
+ temp[col.label] = item[col.prop]
|
|
|
+ })
|
|
|
+ data.push(temp)
|
|
|
+ })
|
|
|
+ console.log('data', data)
|
|
|
+ //将json数组转换成sheet
|
|
|
+ let table_sheet = XLSX.utils.json_to_sheet(data)
|
|
|
+ //为工作簿添加sheet
|
|
|
+ XLSX.utils.book_append_sheet(wb, table_sheet, '第一页')
|
|
|
+ //导出
|
|
|
+ XLSX.writeFile(wb, tableTitle + '.xlsx')
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// getReceiveName() {
|
|
|
// let startTime = null;
|
|
@@ -690,8 +727,8 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
// },
|
|
|
- dealWithOverWeight(){
|
|
|
- this.disvisiable=true
|
|
|
+ dealWithOverWeight() {
|
|
|
+ this.disvisiable = true
|
|
|
},
|
|
|
//以下是运力边输边查搜索
|
|
|
querySearchCapacity(queryString, cb) {
|
|
@@ -751,116 +788,116 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
refresh() {
|
|
|
- this.$router.go(0);
|
|
|
+ this.$router.go(0)
|
|
|
},
|
|
|
func(res) {
|
|
|
- console.log(res);
|
|
|
- var resultNetWeightTotal = 0;
|
|
|
+ console.log(res)
|
|
|
+ var resultNetWeightTotal = 0
|
|
|
res.list.forEach(e => {
|
|
|
- resultNetWeightTotal = resultNetWeightTotal + e.resultNetWeight;
|
|
|
- });
|
|
|
- this.totalNumber = resultNetWeightTotal.toFixed(2) + " t";
|
|
|
- this.totalCapacity = res.total;
|
|
|
+ resultNetWeightTotal = resultNetWeightTotal + e.resultNetWeight
|
|
|
+ })
|
|
|
+ this.totalNumber = resultNetWeightTotal.toFixed(2) + ' t'
|
|
|
+ this.totalCapacity = res.total
|
|
|
//获取总记录条数作为合计车数
|
|
|
// this.totalCapacity = res.total;
|
|
|
- this.isKuang = false;
|
|
|
+ this.isKuang = false
|
|
|
},
|
|
|
onclick() {
|
|
|
- let startTime = null;
|
|
|
- let endTime = null;
|
|
|
- let requestQuery={}
|
|
|
- requestQuery[this.condition1]=this.input1+''
|
|
|
- requestQuery[this.condition2]=this.input2+''
|
|
|
- this.option.requestQuery=requestQuery;
|
|
|
+ let startTime = null
|
|
|
+ let endTime = null
|
|
|
+ let requestQuery = {}
|
|
|
+ requestQuery[this.condition1] = this.input1 + ''
|
|
|
+ requestQuery[this.condition2] = this.input2 + ''
|
|
|
+ this.option.requestQuery = requestQuery
|
|
|
if (this.startTime && this.endTime) {
|
|
|
- startTime = sjTime(this.startTime);
|
|
|
- endTime = sjTime(this.endTime);
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
//修改报表名称
|
|
|
this.tableTitle =
|
|
|
- this.dataFormat(startTime) + " 至 " + this.dataFormat(endTime);
|
|
|
+ this.dataFormat(startTime) + ' 至 ' + this.dataFormat(endTime)
|
|
|
//加上时间重置表头
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=' +
|
|
|
startTime +
|
|
|
- "&endTime=" +
|
|
|
+ '&endTime=' +
|
|
|
endTime +
|
|
|
- "&orderType=2&shipperId=2" +
|
|
|
- "&carrierSsoId=" +
|
|
|
- getCookie("userId") +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '&orderType=2&shipperId=2' +
|
|
|
+ '&carrierSsoId=' +
|
|
|
+ getCookie('userId') +
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
} else {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=' +
|
|
|
startTime +
|
|
|
- "&endTime=" +
|
|
|
+ '&endTime=' +
|
|
|
endTime +
|
|
|
- "&orderType=2&shipperId=2" +
|
|
|
- "&carrierSsoId=" +
|
|
|
+ '&orderType=2&shipperId=2' +
|
|
|
+ '&carrierSsoId=' +
|
|
|
null +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
}
|
|
|
} else {
|
|
|
if (this.startTime) {
|
|
|
- startTime = sjTime(this.startTime);
|
|
|
+ startTime = sjTime(this.startTime)
|
|
|
} else if (this.endTime) {
|
|
|
- endTime = sjTime(this.endTime);
|
|
|
+ endTime = sjTime(this.endTime)
|
|
|
}
|
|
|
//加上时间重置表头
|
|
|
- if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ if (getCookie('orgCode') == 'chengyunshang') {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=' +
|
|
|
startTime +
|
|
|
- "&endTime=" +
|
|
|
+ '&endTime=' +
|
|
|
endTime +
|
|
|
- "&orderType=2&shipperId=2" +
|
|
|
- "&carrierSsoId=" +
|
|
|
- getCookie("userId") +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '&orderType=2&shipperId=2' +
|
|
|
+ '&carrierSsoId=' +
|
|
|
+ getCookie('userId') +
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
} else {
|
|
|
this.option.requestUrl =
|
|
|
- "/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
|
+ '/api/v1/tms/getAllSaleReport?apiId=526&startTime=' +
|
|
|
startTime +
|
|
|
- "&endTime=" +
|
|
|
+ '&endTime=' +
|
|
|
endTime +
|
|
|
- "&orderType=2&shipperId=2" +
|
|
|
- "&carrierSsoId=" +
|
|
|
+ '&orderType=2&shipperId=2' +
|
|
|
+ '&carrierSsoId=' +
|
|
|
null +
|
|
|
- "&i=" +
|
|
|
- new Date();
|
|
|
+ '&i=' +
|
|
|
+ new Date()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
//格式化日期
|
|
|
dataFormat(value) {
|
|
|
- let date = new Date(value);
|
|
|
- let y = date.getFullYear();
|
|
|
- let MM = date.getMonth() + 1;
|
|
|
- MM = MM < 10 ? "0" + MM : MM;
|
|
|
- let d = date.getDate();
|
|
|
- d = d < 10 ? "0" + d : d;
|
|
|
- let h = date.getHours();
|
|
|
- h = h < 10 ? "0" + h : h;
|
|
|
- let m = date.getMinutes();
|
|
|
- m = m < 10 ? "0" + m : m;
|
|
|
- let s = date.getSeconds();
|
|
|
- s = s < 10 ? "0" + s : s;
|
|
|
- return y + "-" + MM + "-" + d + " " + h + ":" + m + ":" + s;
|
|
|
+ let date = new Date(value)
|
|
|
+ let y = date.getFullYear()
|
|
|
+ let MM = date.getMonth() + 1
|
|
|
+ MM = MM < 10 ? '0' + MM : MM
|
|
|
+ let d = date.getDate()
|
|
|
+ d = d < 10 ? '0' + d : d
|
|
|
+ let h = date.getHours()
|
|
|
+ h = h < 10 ? '0' + h : h
|
|
|
+ let m = date.getMinutes()
|
|
|
+ m = m < 10 ? '0' + m : m
|
|
|
+ let s = date.getSeconds()
|
|
|
+ s = s < 10 ? '0' + s : s
|
|
|
+ return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s
|
|
|
}
|
|
|
}
|
|
|
-};
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- .frameCalculation {
|
|
|
- margin-left: 20px;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
- .table {
|
|
|
- margin-left: 20px;
|
|
|
- margin-top: 20px;
|
|
|
- }
|
|
|
+.frameCalculation {
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+.table {
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
</style>
|