This commit is contained in:
parent
4a14d52403
commit
f72430d42e
Binary file not shown.
|
After Width: | Height: | Size: 923 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 619 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 237 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 477 KiB |
|
|
@ -32,7 +32,7 @@ export const carTypeOptions = [
|
||||||
"定员": "556人",
|
"定员": "556人",
|
||||||
"轴重": "≤17t"
|
"轴重": "≤17t"
|
||||||
},
|
},
|
||||||
image: "/src/assets/images/cars/CR400AF.jpg"
|
image: "/images/cars/CR400AF.jpg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -49,7 +49,7 @@ export const carTypeOptions = [
|
||||||
"定员": "556人",
|
"定员": "556人",
|
||||||
"轴重": "≤17t"
|
"轴重": "≤17t"
|
||||||
},
|
},
|
||||||
image: "/src/assets/images/cars/CR400AF.jpg"
|
image: "/images/cars/CR400AF.jpg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "CR400BF",
|
value: "CR400BF",
|
||||||
|
|
@ -61,7 +61,7 @@ export const carTypeOptions = [
|
||||||
"定员": "556人",
|
"定员": "556人",
|
||||||
"轴重": "≤17t"
|
"轴重": "≤17t"
|
||||||
},
|
},
|
||||||
image: "/src/assets/images/cars/CR400BF.jpg"
|
image: "/images/cars/CR400BF.jpg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -78,7 +78,7 @@ export const carTypeOptions = [
|
||||||
"定员": "613人",
|
"定员": "613人",
|
||||||
"轴重": "≤16t"
|
"轴重": "≤16t"
|
||||||
},
|
},
|
||||||
image: "/src/assets/images/cars/CRH3A.jpg"
|
image: "/images/cars/CRH3A.jpg"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="image-box right-align">
|
<div class="image-box right-align">
|
||||||
<img
|
<img
|
||||||
src="../../../assets/images/3D.png"
|
src="/images/3D.png"
|
||||||
alt="3D结构图"
|
alt="3D结构图"
|
||||||
class="main-img"
|
class="main-img"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ import {
|
||||||
defaultDisputeTerms,
|
defaultDisputeTerms,
|
||||||
} from "@/data/stepMockData";
|
} from "@/data/stepMockData";
|
||||||
|
|
||||||
const activeTab = ref('pay');
|
const activeTab = ref("pay");
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
pay: defaultPaymentTerms,
|
pay: defaultPaymentTerms,
|
||||||
|
|
@ -91,7 +91,7 @@ const form = reactive({
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
height: calc(100vh - 200px);
|
height: calc(100vh - 320px);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
@ -120,7 +120,7 @@ const form = reactive({
|
||||||
|
|
||||||
:deep(.el-textarea__inner) {
|
:deep(.el-textarea__inner) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
min-height: 400px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -128,8 +128,8 @@ const form = reactive({
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
margin-top: 20px;
|
margin-top: 16px;
|
||||||
padding-top: 20px;
|
padding-top: 16px;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -56,18 +56,18 @@
|
||||||
icon="Plus"
|
icon="Plus"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['order:intention:add']"
|
v-hasPermi="['order:intention:add']"
|
||||||
>新增</el-button
|
>新增订单/意向单</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
plain
|
plain
|
||||||
icon="Edit"
|
icon="View"
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['order:intention:edit']"
|
v-hasPermi="['order:intention:edit']"
|
||||||
>修改</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['order:intention:remove']"
|
v-hasPermi="['order:intention:remove']"
|
||||||
>删除</el-button
|
>取消</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
|
|
@ -105,10 +105,22 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
>
|
>
|
||||||
<span style="font-weight: bold; margin-right: 5px"
|
<span
|
||||||
>{{ index + 1 }}、{{ item.date }}:</span
|
:style="{
|
||||||
|
fontWeight: 'bold',
|
||||||
|
marginRight: '5px',
|
||||||
|
color: isPastDate(item.date) ? '#409eff' : 'inherit',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
{{ index + 1 }}、{{ item.date }}:
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
:style="{
|
||||||
|
color: isPastDate(item.date) ? '#409eff' : 'inherit',
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
{{ item.description }}
|
{{ item.description }}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -142,17 +154,17 @@
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
icon="Edit"
|
icon="View"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['order:intention:edit']"
|
v-hasPermi="['order:intention:edit']"
|
||||||
>修改</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
icon="Delete"
|
icon="Delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['order:intention:remove']"
|
v-hasPermi="['order:intention:remove']"
|
||||||
>删除</el-button
|
>取消</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -166,7 +178,7 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改意向订单对话框 -->
|
<!-- 添加或查看意向订单对话框 -->
|
||||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||||
<el-form
|
<el-form
|
||||||
ref="intentionRef"
|
ref="intentionRef"
|
||||||
|
|
@ -319,14 +331,14 @@ function handleAdd() {
|
||||||
router.push("/order/create");
|
router.push("/order/create");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 修改按钮操作 */
|
/** 查看按钮操作 */
|
||||||
function handleUpdate(row) {
|
function handleUpdate(row) {
|
||||||
const id = row.id || ids.value[0];
|
const id = row.id || ids.value[0];
|
||||||
// const intention = mockData.value.find(item => item.id === id)
|
// const intention = mockData.value.find(item => item.id === id)
|
||||||
// if (intention) {
|
// if (intention) {
|
||||||
// form.value = { ...intention }
|
// form.value = { ...intention }
|
||||||
// open.value = true
|
// open.value = true
|
||||||
// title.value = "修改意向订单"
|
// title.value = "查看意向订单"
|
||||||
// }
|
// }
|
||||||
router.push({ path: "/order/create", query: { id: id } });
|
router.push({ path: "/order/create", query: { id: id } });
|
||||||
}
|
}
|
||||||
|
|
@ -340,7 +352,7 @@ function handleUpdate(row) {
|
||||||
// const index = mockData.value.findIndex(item => item.id === form.value.id);
|
// const index = mockData.value.findIndex(item => item.id === form.value.id);
|
||||||
// if (index !== -1) {
|
// if (index !== -1) {
|
||||||
// mockData.value[index] = { ...form.value };
|
// mockData.value[index] = { ...form.value };
|
||||||
// ElMessage.success("修改成功");
|
// ElMessage.success("查看成功");
|
||||||
// }
|
// }
|
||||||
// } else {
|
// } else {
|
||||||
// // Add operation
|
// // Add operation
|
||||||
|
|
@ -355,11 +367,11 @@ function handleUpdate(row) {
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 取消按钮操作 */
|
||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
const intentionIds = row.id ? [row.id] : ids.value;
|
const intentionIds = row.id ? [row.id] : ids.value;
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
'是否确认删除意向订单编号为"' + intentionIds + '"的数据项?',
|
'是否确认取消意向订单编号为"' + intentionIds + '"的数据项?',
|
||||||
"警告",
|
"警告",
|
||||||
{
|
{
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
|
|
@ -368,14 +380,14 @@ function handleDelete(row) {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// 模拟删除
|
// 模拟取消
|
||||||
mockData.value = mockData.value.filter(
|
mockData.value = mockData.value.filter(
|
||||||
(item) => !intentionIds.includes(item.id)
|
(item) => !intentionIds.includes(item.id)
|
||||||
);
|
);
|
||||||
ids.value = []; // Clear selection after deletion
|
ids.value = []; // Clear selection after deletion
|
||||||
single.value = true;
|
single.value = true;
|
||||||
multiple.value = true;
|
multiple.value = true;
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("取消成功");
|
||||||
getList();
|
getList();
|
||||||
})
|
})
|
||||||
.catch(() => {}); // Catch cancel to avoid console error
|
.catch(() => {}); // Catch cancel to avoid console error
|
||||||
|
|
@ -394,6 +406,15 @@ function handleDelete(row) {
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// Add isPastDate function
|
||||||
|
function isPastDate(dateStr) {
|
||||||
|
const today = new Date();
|
||||||
|
today.setHours(0, 0, 0, 0);
|
||||||
|
const itemDate = new Date(dateStr);
|
||||||
|
itemDate.setHours(0, 0, 0, 0);
|
||||||
|
return itemDate <= today;
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue