Commit c06f9535 by zhangquan

bug修复

1 parent 0dc6ae0e
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 自选权益 --> <!-- 自选权益 -->
<div v-if="equityRadio == '1'" class="auto_widget"> <div v-if="equityRadio == '1'" class="auto_widget">
<el-checkbox-group v-model="curSelectPro" :disabled="disabled || dataSourceDisable"> <el-checkbox-group v-model="curSelectPro" :disabled="disabled || (dataSourceDisable && curSelectPro.length)">
<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> -->
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<!-- 定制权益 --> <!-- 定制权益 -->
<div v-if="equityRadio == '2'" class="auto_widget"> <div v-if="equityRadio == '2'" class="auto_widget">
<el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || dataSourceDisable"> <el-checkbox-group v-model="curSelectCustomPro" :disabled="disabled || (dataSourceDisable && curSelectCustomPro.length)">
<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)" :label="item.packageCode" :disabled="item.disabled"> <el-checkbox @change="changeRaido($event, item)" :label="item.packageCode" :disabled="item.disabled">
...@@ -1671,6 +1671,9 @@ export default { ...@@ -1671,6 +1671,9 @@ export default {
this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1)) this.editForm.effectiveDate = new Date(new Date().setDate(new Date().getDate() + 1))
} }
this.dataSourceDisable = res.dataSource == 'car' this.dataSourceDisable = res.dataSource == 'car'
if (res?.vehicle?.invoicePrice && this.editForm.orderStatus != 2) {
productArrData = this.packageToPrice(res.vehicle.invoicePrice, true)
}
this.editForm.packageCode && this.packageAttr(true, productArrData, res) this.editForm.packageCode && this.packageAttr(true, productArrData, res)
const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId) const spaItem = this.baseData.agreeList.find(item => item.id == this.editForm.specialAppointId)
if (spaItem) { if (spaItem) {
...@@ -1729,8 +1732,8 @@ export default { ...@@ -1729,8 +1732,8 @@ export default {
this.toGetProductData(res) this.toGetProductData(res)
}) })
}, },
packageToPrice(e) { packageToPrice(e, formDetail) {
let _price = e?.target?.value || '' let _price = formDetail ? e : e?.target?.value || ''
if (_price && this.editForm.orderStatus != 2) { if (_price && this.editForm.orderStatus != 2) {
let _list = [] let _list = []
this.copyCustomProductList.forEach(item => { this.copyCustomProductList.forEach(item => {
...@@ -1743,6 +1746,7 @@ export default { ...@@ -1743,6 +1746,7 @@ export default {
} }
}) })
this.customProductList = _list this.customProductList = _list
if (formDetail) return _list
} }
// var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode) // var targetItem = this.packageList.find(item => item.packageCode == this.editForm.packageCode)
// this.editForm.suggestedSellingPrice = '' // this.editForm.suggestedSellingPrice = ''
...@@ -1764,6 +1768,7 @@ export default { ...@@ -1764,6 +1768,7 @@ export default {
detailInfo.attributes.forEach(item => { detailInfo.attributes.forEach(item => {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode) let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
//编辑时,把详情里面的副套餐parentId覆盖without产品列表里的parentId //编辑时,把详情里面的副套餐parentId覆盖without产品列表里的parentId
if (targetItem) {
if (targetItem && item.parentId) { if (targetItem && item.parentId) {
targetItem.parentId = item.parentId targetItem.parentId = item.parentId
targetItem.parentName = item.parentName targetItem.parentName = item.parentName
...@@ -1890,6 +1895,7 @@ export default { ...@@ -1890,6 +1895,7 @@ export default {
if (targetItem.printType == 2) { if (targetItem.printType == 2) {
this.showUploadInfo = true this.showUploadInfo = true
} }
}
packCode.push(item.packageCode) packCode.push(item.packageCode)
const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode) const _curProdTarget = this.allProdList.find(el => el.packageCode == item.packageCode)
......
...@@ -80,7 +80,8 @@ export default { ...@@ -80,7 +80,8 @@ export default {
glsxCombiForm glsxCombiForm
}, },
props: { props: {
images: Array images: Array,
lossTypeList: Array,
}, },
data() { data() {
return { return {
...@@ -196,7 +197,7 @@ export default { ...@@ -196,7 +197,7 @@ export default {
} else { } else {
el.secondClassifyList.forEach(ele => { el.secondClassifyList.forEach(ele => {
ele.attachmentList.forEach(ke => { ele.attachmentList.forEach(ke => {
if (ke.attachmentFile) { if ((ele.serviceItemCode != 'SC0006' || (ele.lossType && this.lossTypeList.includes(ele.lossType))) && ke.attachmentFile) {
ke.secondClassifyName = ele.secondClassifyName ke.secondClassifyName = ele.secondClassifyName
arr.push(ke) arr.push(ke)
} }
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</Card> </Card>
<fast-review :images.sync="insuranceAttachmentConfigs" ref="fastReviewDialog"></fast-review> <fast-review :lossTypeList="lossTypeList" :images.sync="insuranceAttachmentConfigs" ref="fastReviewDialog"></fast-review>
<GLDialog class="gl-form-page gl-form-min" title="审核不通过" mode="mid" :visible.sync="showNoPassDialog" @onOk="submitForm" @onCancel="cancelDialog"> <GLDialog class="gl-form-page gl-form-min" title="审核不通过" mode="mid" :visible.sync="showNoPassDialog" @onOk="submitForm" @onCancel="cancelDialog">
<div> <div>
<glsx-combi-form ref="imgPassRef" :isInline="false" labelWidth="90px" defaultWidth="184px" :formObj="imgPassObj" :formData="imgPassForm"></glsx-combi-form> <glsx-combi-form ref="imgPassRef" :isInline="false" labelWidth="90px" defaultWidth="184px" :formObj="imgPassObj" :formData="imgPassForm"></glsx-combi-form>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!