-
单号:{{ sn }}
+
+ 单号:{{ sn }}
+ 车次:{{ trainNum }}
+
+
+ 单号:{{ sn }}
+
@@ -70,11 +78,22 @@ defineExpose({
margin unset !important
}
- .form-items-sn {
+
+ .form-item {
margin: 0 0 16px 0;
text-align: center;
font-size: 16px;
font-weight: 600;
+ width 300px
+
+ &:has(> span) {
+ display flex
+ justify-content space-between
+ }
+
+ & > span {
+ display inline-block
+ }
}
}
diff --git a/src/pages/order/book/book.d.ts b/src/pages/order/book/book.d.ts
index 36d400f..f61001c 100644
--- a/src/pages/order/book/book.d.ts
+++ b/src/pages/order/book/book.d.ts
@@ -10,6 +10,7 @@ declare global {
driverId?: string
transOrgId?: string
sn?: string
+ trainNum?: number
}
interface SearchOrderParam extends G.PageParam {
diff --git a/src/pages/order/cancel/Cancel.vue b/src/pages/order/cancel/Cancel.vue
index ad54b6b..c35022e 100644
--- a/src/pages/order/cancel/Cancel.vue
+++ b/src/pages/order/cancel/Cancel.vue
@@ -3,112 +3,133 @@
ref="tablePage"
v-bind="tablePageProps">
-
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
+
-
+
-
+
-
+
+
+
-
+
-
-
-
-
+
+
+ {{ `${row.roughWeight == null ? '' : row.roughWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.tareWeight == null ? '' : row.tareWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.settleWeight == null ? '' : row.settleWeight + ' 吨'}` }}
+
+
+
-
+
-
-
-
-
-
+
+
+ {{ row.paymentStatusTxt }}
+
+
+
+
+ {{ row.checkStatusTxt }}
+
+
+
+
+ {{ row.transStatusTxt }}
+
+
-
-
+
+
+
diff --git a/src/pages/order/constants.ts b/src/pages/order/constants.ts
index 3a00267..8de2fd6 100644
--- a/src/pages/order/constants.ts
+++ b/src/pages/order/constants.ts
@@ -19,6 +19,8 @@ const orderCategoryList = [
txt: '短驳出',
},
] as const
+export type OrderCategoryType = typeof orderCategory[number]['val']
+
export const orderCategory = createEnum(orderCategoryList)
const orderStatusList = [
@@ -112,6 +114,21 @@ const checkStatusList = [
},
] as const
export const checkStatus = createEnum(checkStatusList)
+export const checkStatusColor: {
+ cs: (data?: any, defaultColorScheme?: ColorSchemeType | '') => ColorSchemeType | ''
+} & {
+ [key in typeof checkStatusList[number]['val']]: ColorSchemeType
+} = {
+ Wu: 'info',
+ YiKanLiao: 'success',
+ WeiKanLiao: 'warning',
+ cs(data?: any, defaultColorScheme: ColorSchemeType | '' = '') {
+ if (data) {
+ return this[data as typeof checkStatusList[number]['val']]
+ }
+ return defaultColorScheme
+ },
+}
const paymentStatusList = [
{
@@ -132,3 +149,19 @@ const paymentStatusList = [
},
] as const
export const paymentStatus = createEnum(paymentStatusList)
+export const paymentStatusColor: {
+ cs: (data?: any, defaultColorScheme?: ColorSchemeType | '') => ColorSchemeType | ''
+} & {
+ [key in typeof paymentStatusList[number]['val']]: ColorSchemeType
+} = {
+ MianFei: 'primary',
+ WeiZhiFu: 'warning',
+ YiZhiFu: 'success',
+ YiTuiKuan: 'dth',
+ cs(data?: any, defaultColorScheme: ColorSchemeType | '' = '') {
+ if (data) {
+ return this[data as typeof paymentStatusList[number]['val']]
+ }
+ return defaultColorScheme
+ },
+}
diff --git a/src/pages/order/history/History.vue b/src/pages/order/history/History.vue
index 8ed4817..9dffe58 100644
--- a/src/pages/order/history/History.vue
+++ b/src/pages/order/history/History.vue
@@ -3,112 +3,132 @@
ref="tablePage"
v-bind="tablePageProps">
-
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
+
-
+
-
+
-
+
+
+
-
+
-
-
-
-
+
+
+ {{ `${row.roughWeight == null ? '' : row.roughWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.tareWeight == null ? '' : row.tareWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.settleWeight == null ? '' : row.settleWeight + ' 吨'}` }}
+
+
+
-
+
-
-
-
-
-
+
+
+ {{ row.paymentStatusTxt }}
+
+
+
+
+ {{ row.checkStatusTxt }}
+
+
+
+
+ {{ row.transStatusTxt }}
+
+
-
-
+
+
+
diff --git a/src/pages/order/realtime/Realtime.vue b/src/pages/order/realtime/Realtime.vue
index 3d15959..d62f605 100644
--- a/src/pages/order/realtime/Realtime.vue
+++ b/src/pages/order/realtime/Realtime.vue
@@ -3,90 +3,102 @@
ref="tablePage"
v-bind="tablePageProps">
-
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
+
-
+
-
+
-
+
+
+
-
+
-
-
-
-
+
+
+ {{ `${row.roughWeight == null ? '' : row.roughWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.tareWeight == null ? '' : row.tareWeight + ' 吨'}` }}
+
+
+
+
+ {{ `${row.settleWeight == null ? '' : row.settleWeight + ' 吨'}` }}
+
+
+
-
+
-
-
-
-
-
+
+
+ {{ row.paymentStatusTxt }}
+
+
+
+
+ {{ row.checkStatusTxt }}
+
+
+
+
+ {{ row.transStatusTxt }}
+
+
-