Browse Source

修复部分字段

dev
qb 2 weeks ago
parent
commit
bf6789a35e
  1. 22
      src/option/reportforms/CreateOrderTimelinessRatioReport.js
  2. 20
      src/option/reportforms/OrderAllTime.js
  3. 9
      src/views/reportforms/OrderAllTime.vue

22
src/option/reportforms/CreateOrderTimelinessRatioReport.js

@ -52,7 +52,7 @@ export const columnList = [
label: '总单数',
type: 1,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -76,7 +76,7 @@ export const columnList = [
label: '应开单数',
type: 1,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -88,7 +88,7 @@ export const columnList = [
label: '已开单数',
type: 1,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -100,7 +100,7 @@ export const columnList = [
label: '未开单数',
type: 1,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -112,7 +112,7 @@ export const columnList = [
label: '准时开单数',
type: 1,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -124,12 +124,12 @@ export const columnList = [
label: '开单准时率',
type: 6,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
isshowSummary: false, //开启统计
},
{
@ -137,7 +137,7 @@ export const columnList = [
label: '平均开单时效(小时)',
type: 1,
values: '',
width: '160',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
@ -149,7 +149,7 @@ export const columnList = [
label: '未开单占比',
type: 6,
values: '',
width: '150',
width: '100',
checkarr: [],
fixed: false,
sortable: true,
@ -184,7 +184,7 @@ export const columnList = [
label: '未开单未超时占比',
type: 6,
values: '',
width: '200',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
@ -208,7 +208,7 @@ export const columnList = [
label: '未开单超时占比',
type: 6,
values: '',
width: '200',
width: '150',
checkarr: [],
fixed: false,
sortable: true,

20
src/option/reportforms/OrderAllTime.js

@ -79,6 +79,7 @@ export const columnList = [
fixed: false,
sortable: true,
head: false,
isshowSummary: true, //开启统计
},
{
prop: 'departureWarehouseName',
@ -114,8 +115,19 @@ export const columnList = [
head: false,
},
{
prop: 'loadCode',
label: '干线车次号',
prop: 'loadingLoadCode',
label: '装车车次号',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'unloadLoadCode',
label: '卸车车次号',
type: 2,
values: '',
width: '150',
@ -126,7 +138,7 @@ export const columnList = [
},
{
prop: 'createTime',
label: '创建时间',
label: '工厂推送时间',
type: 1,
values: '',
width: '150',
@ -148,7 +160,7 @@ export const columnList = [
},
{
prop: 'startTime',
label: '发车时间',
label: '始发仓发车时间',
type: 1,
values: '',
width: '150',

9
src/views/reportforms/OrderAllTime.vue

@ -322,9 +322,14 @@ const onLoad = async (params = {}) => {
return ElMessage.warning('开单时间不能大于31天');
}
if (getObjType(submitData.timeArr) !== 'array' || submitData.timeArr.length === 0) {
if (
getObjType(submitData.timeArr) !== 'array' ||
submitData.timeArr.length === 0 ||
getObjType(submitData.openTime) !== 'array' ||
submitData.openTime.length === 0
) {
details.data = [];
return ElMessage.warning('请选择工厂推送时间');
return ElMessage.warning('请选择时间');
}
delete submitData.timeArr;

Loading…
Cancel
Save