Commit faf0db48 by 张权

Merge branch 'master' into 'v4.38.0-0425'

Master

See merge request !63
2 parents 94e26c78 9efd79f4
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div v-for="(item, index) in productList" :key="index" class="product_wrapper"> <div v-for="(item, index) in productList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> --> <!-- <el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox> -->
<el-checkbox @change="changeCheckBox($event, item, index)" :label="item.packageName" :disabled="item.disabled"> <el-checkbox @change="changeCheckBox($event, item, index)" :label="item.packageCode" :disabled="item.disabled">
<div v-if="errGlassName && item.idName == 'glass'"> <div v-if="errGlassName && item.idName == 'glass'">
{{ item.packageName }} {{ item.packageName }}
<span style="color: red; font-weight: normal">({{ errGlassName }})</span> <span style="color: red; font-weight: normal">({{ errGlassName }})</span>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<!-- 属性 --> <!-- 属性 -->
<template v-for="(ele, indexs) in curSelectPro"> <template v-for="(ele, indexs) in curSelectPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap"> <div v-if="ele == item.packageCode" :key="indexs" class="child_wrap">
<div :class="['child_wrap_pannel', attr.attributeType + '_child_wrap_pannel']" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex"> <div :class="['child_wrap_pannel', attr.attributeType + '_child_wrap_pannel']" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc"> <div class="attr_wrapper flex_sc">
<div :class="['attr_label', 'h13_title', attr.attributeType + '_label']"> <div :class="['attr_label', 'h13_title', attr.attributeType + '_label']">
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</template> </template>
<!-- 方案 --> <!-- 方案 -->
<div v-if="item.packageName.includes('碰撞') && curSelectPro.includes(item.packageName)" class="table_case_wrap"> <div v-if="item.packageName.includes('碰撞') && curSelectPro.includes(item.packageCode)" class="table_case_wrap">
<div class="case_title">方案</div> <div class="case_title">方案</div>
<div class="case_table"> <div class="case_table">
<div class="table_th flex_sc"> <div class="table_th flex_sc">
...@@ -152,14 +152,14 @@ ...@@ -152,14 +152,14 @@
<el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable"> <el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable">
<div v-for="(item, index) in customProductList" :key="index" class="product_wrapper"> <div v-for="(item, index) in customProductList" :key="index" class="product_wrapper">
<div style="padding-left: 73px"> <div style="padding-left: 73px">
<el-checkbox @change="changeRaido($event, item, index)" :label="item.packageName" :disabled="item.disabled"> <el-checkbox @change="changeRaido($event, item, index)" :label="item.packageCode" :disabled="item.disabled">
<div>{{ item.parentName ? item.packageName + '-' + item.parentName : item.packageName }}</div> <div>{{ item.parentName ? item.packageName + '-' + item.parentName : item.packageName }}</div>
</el-checkbox> </el-checkbox>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p> <p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div> </div>
<div class="customer-form"> <div class="customer-form">
<template v-for="(ele, indexs) in curSelectCustomPro"> <template v-for="(ele, indexs) in curSelectCustomPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap"> <div v-if="ele == item.packageCode" :key="indexs" class="child_wrap">
<div :class="['child_wrap_pannel', attr.attributeType + '_child_wrap_pannel']" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex"> <div :class="['child_wrap_pannel', attr.attributeType + '_child_wrap_pannel']" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc"> <div class="attr_wrapper flex_sc">
<div :class="['attr_label', 'h13_title', attr.attributeType + '_label']"> <div :class="['attr_label', 'h13_title', attr.attributeType + '_label']">
...@@ -1068,7 +1068,7 @@ export default { ...@@ -1068,7 +1068,7 @@ export default {
vailGlassPackage(item, index) { vailGlassPackage(item, index) {
this.currentVaildItem = item this.currentVaildItem = item
this.currentVaildIndex = index this.currentVaildIndex = index
let glassNameFlag = this.curSelectPro.includes(this.vailGlassName) let glassNameFlag = this.curSelectPro.includes(this.vailGlassCode)
if (item.idName == 'glass') this.vailIndex = index if (item.idName == 'glass') this.vailIndex = index
if (glassNameFlag) { if (glassNameFlag) {
let vaild = this.editForm.vehicle.invoicePrice && Number(this.editForm.vehicle.invoicePrice) > 500000 let vaild = this.editForm.vehicle.invoicePrice && Number(this.editForm.vehicle.invoicePrice) > 500000
...@@ -1755,7 +1755,7 @@ export default { ...@@ -1755,7 +1755,7 @@ export default {
} }
if (targetItem.packageType == 1) { if (targetItem.packageType == 1) {
this.equityRadio = 2 this.equityRadio = 2
this.curSelectCustomPro.push(targetItem.packageName) this.curSelectCustomPro.push(targetItem.packageCode)
this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro)) this.curSelectCustomPro = Array.from(new Set(this.curSelectCustomPro))
item.attributeDTOList.forEach(a => { item.attributeDTOList.forEach(a => {
if (a.attributeName.includes('price')) { if (a.attributeName.includes('price')) {
...@@ -1801,7 +1801,7 @@ export default { ...@@ -1801,7 +1801,7 @@ export default {
} }
} else { } else {
this.equityRadio = 1 this.equityRadio = 1
this.curSelectPro.push(targetItem.packageName) this.curSelectPro.push(targetItem.packageCode)
this.curSelectPro = Array.from(new Set(this.curSelectPro)) this.curSelectPro = Array.from(new Set(this.curSelectPro))
item.attributeDTOList.forEach(b => { item.attributeDTOList.forEach(b => {
if (b.attributeName.includes('price')) { if (b.attributeName.includes('price')) {
......
...@@ -48,5 +48,13 @@ export const detailShelfStatusEnum = { ...@@ -48,5 +48,13 @@ export const detailShelfStatusEnum = {
2: { 2: {
label: '上架失败', label: '上架失败',
color: '#FDB757' color: '#FDB757'
},
3: {
label: '上架中',
color: '#2CCA74'
},
4: {
label: '已下架',
color: '#C6C6C6'
} }
} }
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
上传文件 上传文件
<input type="file" style="opacity: 0;width: 0;height: 0;" ref="file" accept=".xlsx" @change="uploadFile" /> <input type="file" style="opacity: 0;width: 0;height: 0;" ref="file" accept=".xlsx" @change="uploadFile" />
</el-button> </el-button>
<img v-if="fileLoading" class="loading-img" :src="require('@/assets/loading.png')" alt="" />
<div class="file-wrap" v-if="uploadFormObj.fileName"> <div class="file-wrap" v-if="uploadFormObj.fileName">
<div class="file-box" @click="toOpenPDF(uploadFormObj.fileUrl)"> <div class="file-box" @click="toOpenPDF(uploadFormObj.fileUrl)">
<div class="info" v-if="uploadFormObj.fileName"> <div class="info" v-if="uploadFormObj.fileName">
...@@ -72,6 +73,7 @@ export default { ...@@ -72,6 +73,7 @@ export default {
taskStatusEnum, taskStatusEnum,
shelfStatusEnum, shelfStatusEnum,
isVisible: false, isVisible: false,
fileLoading: false,
uploadRules: { uploadRules: {
taskMonth: [{ required: true, message: '请选择任务时间', trigger: 'change' }], taskMonth: [{ required: true, message: '请选择任务时间', trigger: 'change' }],
taskCount: [{ required: true, message: '请输入任务数', trigger: 'change' }], taskCount: [{ required: true, message: '请输入任务数', trigger: 'change' }],
...@@ -345,12 +347,14 @@ export default { ...@@ -345,12 +347,14 @@ export default {
}, },
// 上传excel // 上传excel
uploadFile(e) { uploadFile(e) {
this.fileLoading = true
const file = e.srcElement.files[0] const file = e.srcElement.files[0]
let AllImgExt = '.xlsx' //文件格式判断 let AllImgExt = '.xlsx' //文件格式判断
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase() let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
if (AllImgExt !== extName) { if (AllImgExt !== extName) {
this.$message.error('文件格式不正确') this.$message.error('文件格式不正确')
this.$refs.file.value = '' this.$refs.file.value = ''
this.fileLoading = false
return false return false
} }
this.uploadFormObj.fileName = file.name this.uploadFormObj.fileName = file.name
...@@ -377,6 +381,7 @@ export default { ...@@ -377,6 +381,7 @@ export default {
}) })
.finally(end => { .finally(end => {
this.$refs.file.value = '' this.$refs.file.value = ''
this.fileLoading = false
}) })
} }
}, },
...@@ -434,6 +439,7 @@ export default { ...@@ -434,6 +439,7 @@ export default {
}, },
handleClose() { handleClose() {
this.isVisible = false this.isVisible = false
this.fileLoading = false
this.uploadFormObj = { this.uploadFormObj = {
id: '', id: '',
fileUrl: '', fileUrl: '',
...@@ -459,6 +465,21 @@ export default { ...@@ -459,6 +465,21 @@ export default {
/deep/ .task-input { /deep/ .task-input {
width: 284px; width: 284px;
} }
.loading-img {
width: 24px;
height: 24px;
vertical-align: middle;
margin-left: 12px;
animation: rotate 2s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg); /* 动画开始时的旋转角度 */
}
to {
transform: rotate(360deg); /* 动画结束时的旋转角度 */
}
}
.file-wrap { .file-wrap {
margin: 8px 0 0 154px; margin: 8px 0 0 154px;
display: flex; display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!