Commit a1ca2e2b by chenwq1

fix:报价

1 parent ca788cc1
......@@ -215,8 +215,9 @@ export default {
default: -1
},
videoImg: {
type: String,
default: ""
// 兼容外部传入布尔值(例如 :video-img="true"),以及历史遗留的字符串形式
type: [String, Boolean],
default: false
}
},
watch: {
......
......@@ -156,6 +156,8 @@ export default {
},
data() {
return {
// 给 el-form 的 :rules 绑定占位,避免在渲染时出现 rules 未声明的警告
rules: {},
configData: [
{
title: "总部定价师估价与意见",
......
......@@ -47,7 +47,7 @@ export default {
append: "元",
},
{
label: "核价",
label: "核价意见",
name: "checkOpinion",
type: "input",
maxlength: 200,
......
......@@ -552,6 +552,26 @@ export default {
return "image";
return "file";
},
getOssImageUrl(url) {
if (!url)
return url;
// 已经带有 x-oss-process 参数时不重复拼接
if (url.includes("x-oss-process="))
return url;
const param = "x-oss-process=image/format,jpg/quality,q_100";
const sep = url.includes("?") ? "&" : "?";
return `${url}${sep}${param}`;
},
// imgList 类型(如 carImageUrls、carVideoUrls)预览使用的 URL 列表
getImgPreviewUrls(item) {
const urls = this.detailInfo && this.detailInfo[item.key];
if (!urls || !Array.isArray(urls))
return [];
// 视频不加图片处理参数
if (item.otherType === "video")
return urls;
return urls.map(url => this.getOssImageUrl(url));
},
getFileNameFromUrlForDisplay(url) {
if (!url)
return "未知文件";
......
......@@ -121,7 +121,7 @@ export default {
},
{
label: "卖方单位/个人",
name: "partBName",
name: "partAName",
type: "input",
isClear: true,
maxlength: 20,
......@@ -154,7 +154,7 @@ export default {
tableColumns: [
{
label: "卖方单位/个人",
prop: "partBName",
prop: "partAName",
minWidth: 120,
},
{
......@@ -164,12 +164,12 @@ export default {
},
{
label: "卖方单位代码/车主身份证号码",
prop: "partBIdentityCode",
prop: "partAIdentityCode",
minWidth: 120,
},
{
label: "电话",
prop: "partBContactMobile",
prop: "partAContactMobile",
minWidth: 120,
},
{
......@@ -207,6 +207,11 @@ export default {
prop: "evalPrice",
minWidth: 120,
},
{
label: "入库时间",
prop: "storageTime",
minWidth: 120,
},
],
},
track_event_code: "vehicle_management",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!