|
@@ -949,7 +949,7 @@
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<div class="quoteTitle">方案明细</div>
|
|
<div class="quoteTitle">方案明细</div>
|
|
|
- <el-table :data="scope.row.projectList?.[scope.row.productIndex]?.kinds">
|
|
|
|
|
|
|
+ <el-table :data="filterKind(scope.row, 'quote')">
|
|
|
<el-table-column width="50" align="center"
|
|
<el-table-column width="50" align="center"
|
|
|
v-if="scope.row.projectList?.[scope.row.productIndex]?.schemeType != '1'">
|
|
v-if="scope.row.projectList?.[scope.row.productIndex]?.schemeType != '1'">
|
|
|
<template #header>
|
|
<template #header>
|
|
@@ -983,44 +983,46 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
- <div class="quoteTitle"
|
|
|
|
|
- v-if="scope.row.projectList?.[scope.row.productIndex]?.rescue && scope.row.projectList?.[scope.row.productIndex]?.detection && scope.row.projectList?.[scope.row.productIndex]?.driver && scope.row.projectList?.[scope.row.productIndex]?.inspect">
|
|
|
|
|
|
|
+ <div class="quoteTitle" v-if="filterKind(scope.row, 'noquote')">
|
|
|
增值服务</div>
|
|
增值服务</div>
|
|
|
- <el-row :gutter="20"
|
|
|
|
|
- v-if="scope.row.projectList?.[scope.row.productIndex]?.rescue && scope.row.projectList?.[scope.row.productIndex]?.detection && scope.row.projectList?.[scope.row.productIndex]?.driver && scope.row.projectList?.[scope.row.productIndex]?.inspect">
|
|
|
|
|
|
|
+ <el-row :gutter="20" v-if="filterKind(scope.row, 'noquote')">
|
|
|
<el-col :span="6" class="quoteFlex">
|
|
<el-col :span="6" class="quoteFlex">
|
|
|
救援
|
|
救援
|
|
|
- <el-select v-model="scope.row.projectList[scope.row.productIndex].rescue"
|
|
|
|
|
- :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1'"
|
|
|
|
|
|
|
+ <el-select v-model="filterKind(scope.row, 'TY1').amount"
|
|
|
|
|
+ :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY1').kindCode"
|
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
|
- <el-option label="1" value="1"></el-option>
|
|
|
|
|
|
|
+ <el-option v-for="item in filterKind(scope.row, 'TY1').options" :label="item.label"
|
|
|
|
|
+ :value="item.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
次
|
|
次
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6" class="quoteFlex">
|
|
<el-col :span="6" class="quoteFlex">
|
|
|
检测
|
|
检测
|
|
|
- <el-select v-model="scope.row.projectList[scope.row.productIndex].detection"
|
|
|
|
|
- :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1'"
|
|
|
|
|
|
|
+ <el-select v-model="filterKind(scope.row, 'TY2').amount"
|
|
|
|
|
+ :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY2').kindCode"
|
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
|
- <el-option label="1" value="1"></el-option>
|
|
|
|
|
|
|
+ <el-option v-for="item in filterKind(scope.row, 'TY2').options" :label="item.label"
|
|
|
|
|
+ :value="item.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
次
|
|
次
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6" class="quoteFlex">
|
|
<el-col :span="6" class="quoteFlex">
|
|
|
代驾
|
|
代驾
|
|
|
- <el-select v-model="scope.row.projectList[scope.row.productIndex].driver"
|
|
|
|
|
- :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1'"
|
|
|
|
|
|
|
+ <el-select v-model="filterKind(scope.row, 'TY3').amount"
|
|
|
|
|
+ :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY3').kindCode"
|
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
|
- <el-option label="1" value="1"></el-option>
|
|
|
|
|
|
|
+ <el-option v-for="item in filterKind(scope.row, 'TY3').options" :label="item.label"
|
|
|
|
|
+ :value="item.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
次
|
|
次
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6" class="quoteFlex">
|
|
<el-col :span="6" class="quoteFlex">
|
|
|
送检
|
|
送检
|
|
|
- <el-select v-model="scope.row.projectList[scope.row.productIndex].inspect"
|
|
|
|
|
- :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1'"
|
|
|
|
|
|
|
+ <el-select v-model="filterKind(scope.row, 'TY4').amount"
|
|
|
|
|
+ :disabled="scope.row.projectList?.[scope.row.productIndex]?.schemeType == '1' || !filterKind(scope.row, 'TY4').kindCode"
|
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
size="small" style="width: 80px; margin: 0 10px">
|
|
|
- <el-option label="1" value="1"></el-option>
|
|
|
|
|
|
|
+ <el-option v-for="item in filterKind(scope.row, 'TY4').options" :label="item.label"
|
|
|
|
|
+ :value="item.value"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
次
|
|
次
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -2969,7 +2971,7 @@ let ordersNo = ref('')
|
|
|
let shareImageUrl = ref('')
|
|
let shareImageUrl = ref('')
|
|
|
const handleShare = async (scope: any) => {
|
|
const handleShare = async (scope: any) => {
|
|
|
ordersNo.value = scope;
|
|
ordersNo.value = scope;
|
|
|
- shareImageUrl.value = await QRCode.toDataURL(`https://tennat.baoxianzhanggui.com/h5/#/pages/quote/quoteRecordDetail?ordersNo=${scope}&from=share`, {
|
|
|
|
|
|
|
+ shareImageUrl.value = await QRCode.toDataURL(`https://tennat.baoxianzhanggui.com/text_h5/#/pages/quote/quoteRecordDetail?ordersNo=${scope}&from=share`, {
|
|
|
width: 150,
|
|
width: 150,
|
|
|
margin: 2
|
|
margin: 2
|
|
|
});
|
|
});
|
|
@@ -3018,7 +3020,7 @@ const handleCancelPayment = (scope: any) => {
|
|
|
const handleCopyLink = async () => {
|
|
const handleCopyLink = async () => {
|
|
|
shareShow.value = false
|
|
shareShow.value = false
|
|
|
try {
|
|
try {
|
|
|
- await navigator.clipboard.writeText(`https://tennat.baoxianzhanggui.com/h5/#/pages/quote/quoteRecordDetail?ordersNo=${ordersNo.value}&from=share`);
|
|
|
|
|
|
|
+ await navigator.clipboard.writeText(`https://tennat.baoxianzhanggui.com/text_h5/#/pages/quote/quoteRecordDetail?ordersNo=${ordersNo.value}&from=share`);
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
message: '复制成功!',
|
|
message: '复制成功!',
|
|
|
type: 'success'
|
|
type: 'success'
|
|
@@ -3960,10 +3962,34 @@ const ruleFilterCompany = (item: any, obj: any) => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const filterKind = (row, key) => {
|
|
|
|
|
+ const kinds = row.projectList?.[row.productIndex]?.kinds ?? []
|
|
|
|
|
+ if (key === 'quote') {
|
|
|
|
|
+ return kinds.filter(v => !['TY1', 'TY2', 'TY3', 'TY4'].includes(v.kindCode))
|
|
|
|
|
+ }
|
|
|
|
|
+ if (key === 'noquote') {
|
|
|
|
|
+ return kinds.find(v => ['TY1', 'TY2', 'TY3', 'TY4'].includes(v.kindCode))
|
|
|
|
|
+ }
|
|
|
|
|
+ if (key === 'TY1') {
|
|
|
|
|
+ return kinds.find(v => ['TY1'].includes(v.kindCode)) ?? {}
|
|
|
|
|
+ }
|
|
|
|
|
+ if (key === 'TY2') {
|
|
|
|
|
+ return kinds.find(v => ['TY2'].includes(v.kindCode)) ?? {}
|
|
|
|
|
+ }
|
|
|
|
|
+ if (key === 'TY3') {
|
|
|
|
|
+ return kinds.find(v => ['TY3'].includes(v.kindCode)) ?? {}
|
|
|
|
|
+ }
|
|
|
|
|
+ if (key === 'TY4') {
|
|
|
|
|
+ return kinds.find(v => ['TY4'].includes(v.kindCode)) ?? {}
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const quotationRef = ref(null)
|
|
const quotationRef = ref(null)
|
|
|
const quotationObj = ref({})
|
|
const quotationObj = ref({})
|
|
|
const handleQuotationView = (obj) => {
|
|
const handleQuotationView = (obj) => {
|
|
|
quotationObj.value = obj
|
|
quotationObj.value = obj
|
|
|
|
|
+ insurancePolicyForm.value.vehicleUseName=optionObj.value.vehicle_use_code.find(a=>a.value===insurancePolicyForm.value.vehicleUseCode)?.label
|
|
|
quotationRef.value.show(obj)
|
|
quotationRef.value.show(obj)
|
|
|
}
|
|
}
|
|
|
|
|
|