Commit 41585f26 by 前端

Merge branch 'v3.15.0' into 'master'

V3.15.0

See merge request !38
2 parents 8b0c20b7 cb7dc4c4
...@@ -452,6 +452,7 @@ export default { ...@@ -452,6 +452,7 @@ export default {
this.renewGR({ approveAmounts: JSON.stringify(approveAmounts), fileList: files }, 1) this.renewGR({ approveAmounts: JSON.stringify(approveAmounts), fileList: files }, 1)
}, },
renewGR(params, operation) { renewGR(params, operation) {
params.equitySource = 1
this.$apis.claims.commitClaimsOrder({ ...this.editForm, operation, id: this.routeInfo.orderId, ...this.accountForm, ...params }).then(res => { this.$apis.claims.commitClaimsOrder({ ...this.editForm, operation, id: this.routeInfo.orderId, ...this.accountForm, ...params }).then(res => {
if (res) { if (res) {
this.$message({ this.$message({
......
...@@ -697,7 +697,6 @@ export default { ...@@ -697,7 +697,6 @@ export default {
this.getSpeAgreeOptions() this.getSpeAgreeOptions()
this.pickerOptions = this.setDateLimit() this.pickerOptions = this.setDateLimit()
this.pickerOptions2 = this.setDateLimit2() this.pickerOptions2 = this.setDateLimit2()
this.getHotline()
}, },
mounted() { mounted() {
...@@ -715,18 +714,18 @@ export default { ...@@ -715,18 +714,18 @@ export default {
this.getOptionsList('editFormDataOther', false) this.getOptionsList('editFormDataOther', false)
this.disabled && this.setDisabled() this.disabled && this.setDisabled()
this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate', 'merchantName', 'merchantPhone', 'merchantAddress']) this.successDisable && this.setDisabled(['invoicePrice', 'billingDate', 'packageCode', 'actualSalesPrice', 'servicePeriod', 'effectiveDate', 'merchantName', 'merchantPhone', 'merchantAddress'])
this.getHotline()
}, },
methods: { methods: {
// 查找服务热线 // 查找服务热线
getHotline() { getHotline() {
if (this.routeInfo.addOrEdit == 3) { if (this.routeInfo.addOrEdit == 1) {
return
}
this.$apis.beforeSale.getHotlineApi({}).then(res => { this.$apis.beforeSale.getHotlineApi({}).then(res => {
this.hotline = res.serviceHotline this.hotline = res.serviceHotline
this.getStoreInfo() this.getStoreInfo()
}) })
}
}, },
// 设置日期组件时间范围---今天之后 // 设置日期组件时间范围---今天之后
setDateLimit() { setDateLimit() {
...@@ -1043,7 +1042,8 @@ export default { ...@@ -1043,7 +1042,8 @@ export default {
}, },
// 处理数据结构对比后台所需的参数 // 处理数据结构对比后台所需的参数
handleProductArrParam(arr, codearr) { handleProductArrParam(arr, codearr) {
let newArr = [],filterList = [] let newArr = [],
filterList = []
const codeList = Array.from(new Set(codearr)) const codeList = Array.from(new Set(codearr))
this.checkCodeList = codeList this.checkCodeList = codeList
let blackArr = [] let blackArr = []
...@@ -1055,10 +1055,10 @@ export default { ...@@ -1055,10 +1055,10 @@ export default {
filterList = this.unique(arr) filterList = this.unique(arr)
} }
arr = filterList arr = filterList
arr.forEach(el=>{ arr.forEach(el => {
arr.forEach(els=>{ arr.forEach(els => {
if(el.packageCode==els.packageCode){ if (el.packageCode == els.packageCode) {
if(el.contractNo){ if (el.contractNo) {
els.contractNo = el.contractNo els.contractNo = el.contractNo
} }
} }
...@@ -1182,11 +1182,11 @@ export default { ...@@ -1182,11 +1182,11 @@ export default {
e.optionList = [...arr] e.optionList = [...arr]
this.serviceObj[item.packageCode] = item.servicePeriod this.serviceObj[item.packageCode] = item.servicePeriod
// this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1') this.$set(this.productModal[item.idName], `${e.attributeName}`, '1')
} else if (e.attributeDesc == '购车类型') { } else if (e.attributeDesc == '购车类型') {
e.optionList = this.baseData.buyCarTypeList e.optionList = this.baseData.buyCarTypeList
// this.productModal[item.idName][e.attributeName] = '0' // this.productModal[item.idName][e.attributeName] = '0'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'0') this.$set(this.productModal[item.idName], `${e.attributeName}`, '0')
} else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == `vip${item.packageCode}` || item.idName == 'glass') && e.attributeDesc == '服务期限') { } else if ((item.idName == 'tire' || item.idName == 'crash' || item.idName == `vip${item.packageCode}` || item.idName == 'glass') && e.attributeDesc == '服务期限') {
if (item.idName == 'tire' || item.idName == 'crash') { if (item.idName == 'tire' || item.idName == 'crash') {
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
...@@ -1201,15 +1201,15 @@ export default { ...@@ -1201,15 +1201,15 @@ export default {
e.optionList = this.baseData.servicePeriodList e.optionList = this.baseData.servicePeriodList
} }
// this.productModal[item.idName][e.attributeName] = '1' // this.productModal[item.idName][e.attributeName] = '1'
this.$set(this.productModal[item.idName],`${e.attributeName}`,'1') this.$set(this.productModal[item.idName], `${e.attributeName}`, '1')
} else if (e.attributeDesc == '生效日期') { } else if (e.attributeDesc == '生效日期') {
let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000 let nextDay = new Date().getTime() + 24 * 60 * 60 * 1000
// this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(nextDay)
this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(nextDay)) this.$set(this.productModal[item.idName], `${e.attributeName}`, utils.dateFormat(nextDay))
if (item.idName == 'glass') { if (item.idName == 'glass') {
let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2 let tAdd2 = new Date().getTime() + 24 * 60 * 60 * 1000 * 2
// this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2) // this.productModal[item.idName][e.attributeName] = utils.dateFormat(tAdd2)
this.$set(this.productModal[item.idName],`${e.attributeName}`,utils.dateFormat(tAdd2)) this.$set(this.productModal[item.idName], `${e.attributeName}`, utils.dateFormat(tAdd2))
e.disabled = true e.disabled = true
} }
} }
...@@ -1348,7 +1348,7 @@ export default { ...@@ -1348,7 +1348,7 @@ export default {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode) let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList) const defalutAttr = this.handleDefaultValue(targetItem, item.attributeDTOList)
if (defalutAttr.length) { if (defalutAttr.length) {
item.attributeDTOList = [...item.attributeDTOList, ...defalutAttr] item.attributeDTOList = [...defalutAttr, ...item.attributeDTOList]
} }
if (targetItem.packageType == 1) { if (targetItem.packageType == 1) {
this.equityRadio = 2 this.equityRadio = 2
...@@ -1371,13 +1371,13 @@ export default { ...@@ -1371,13 +1371,13 @@ export default {
this.customProductList.map(c => { this.customProductList.map(c => {
c.disabled = true c.disabled = true
c.groupAttributeList.map(ele => { c.groupAttributeList.map(ele => {
if (ele.attributeName == 'service_period'&&(this.routeInfo.addOrEdit >2)) { if (ele.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
ele.disabled = true ele.disabled = true
} }
if (ele.attributeName == 'card') { if (ele.attributeName == 'card') {
ele.disabled = true ele.disabled = true
} }
if (ele.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) { if (ele.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 3) {
ele.disabled = true ele.disabled = true
} }
}) })
...@@ -1419,13 +1419,13 @@ export default { ...@@ -1419,13 +1419,13 @@ export default {
this.productList.map(d => { this.productList.map(d => {
d.disabled = true d.disabled = true
d.groupAttributeList.map(elee => { d.groupAttributeList.map(elee => {
if (elee.attributeName == 'service_period'&&(this.routeInfo.addOrEdit >2)) { if (elee.attributeName == 'service_period' && this.routeInfo.addOrEdit > 2) {
elee.disabled = true elee.disabled = true
} }
if (elee.attributeName == 'card') { if (elee.attributeName == 'card') {
elee.disabled = true elee.disabled = true
} }
if (elee.attributeName == 'effective_date'&&this.routeInfo.addOrEdit==3) { if (elee.attributeName == 'effective_date' && this.routeInfo.addOrEdit == 3) {
elee.disabled = true elee.disabled = true
} }
if (elee.attributeName == 'buy_car_type' && elee.attributeValue == 1) { if (elee.attributeName == 'buy_car_type' && elee.attributeValue == 1) {
......
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
packageCode: '', packageCode: '',
subChannel: '', subChannel: '',
equippedCardFlag: '', equippedCardFlag: '',
snFlag: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: []
}, },
...@@ -61,6 +62,14 @@ export default { ...@@ -61,6 +62,14 @@ export default {
name: 'vin' name: 'vin'
}, },
{ {
label: '设备号',
name: 'sn'
},
{
label: '卡号',
name: 'cardSeqNo'
},
{
label: '店面名称', label: '店面名称',
name: 'merchantName' name: 'merchantName'
} }
...@@ -115,6 +124,15 @@ export default { ...@@ -115,6 +124,15 @@ export default {
optionsName: 'cardFlagList' optionsName: 'cardFlagList'
}, },
{ {
label: '是否带设备号',
name: 'snFlag',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'snFlagList'
},
{
label: '提单成功时间', label: '提单成功时间',
name: 'successDate', name: 'successDate',
type: 'datePicker', type: 'datePicker',
...@@ -217,6 +235,22 @@ export default { ...@@ -217,6 +235,22 @@ export default {
} }
}, },
{ {
label: '是否带设备',
prop: 'cardSeqNo',
width: '120px',
formatter: cellValue => {
return cellValue.snFlag==1 ? '是' : '否'
}
},
{
label: '设备号',
prop: 'sns',
width: '180px',
formatter: cellValue => {
return cellValue.snFlag==1 ? cellValue.sns : '--'
}
},
{
label: '生效时间', label: '生效时间',
line: 1, line: 1,
prop: 'effectiveDate', prop: 'effectiveDate',
...@@ -307,6 +341,16 @@ export default { ...@@ -307,6 +341,16 @@ export default {
confName: '否' confName: '否'
} }
], ],
snFlagList: [
{
confId: 1,
confName: '是'
},
{
confId: 2,
confName: '否'
}
],
completList: [ completList: [
{ {
confId: 2, confId: 2,
...@@ -460,6 +504,7 @@ export default { ...@@ -460,6 +504,7 @@ export default {
packageCode: '', packageCode: '',
subChannel: '', subChannel: '',
equippedCardFlag: '', equippedCardFlag: '',
snFlag: '',
successDate: [], successDate: [],
effectiveDate: [] effectiveDate: []
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="explanation-list"> <div class="explanation-list">
<label class="label" for="">{{ `说明${idx + 1}:` }}</label> <label class="label" for="">{{ `说明${idx + 1}:` }}</label>
<el-input :disabled="isCheck || isDisabled || item.operation == 1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input> <el-input :disabled="isCheck || isDisabled || item.operation == 1" :placeholder="`请输入说明${idx + 1}`" v-model="item.content" maxlength="200" type="textarea" :rows="3"></el-input>
<i class="el-icon-delete del" v-if="!isCheck && supplementListTemp.length > 1&&item.operation!=1" @click="handleDel(idx)"></i> <i class="el-icon-delete del" v-if="!isCheck && supplementListTemp.length > 1 && item.operation != 1" @click="handleDel(idx)"></i>
<div class="follow-list" @click="showFollow">跟进记录</div> <div class="follow-list" @click="showFollow">跟进记录</div>
</div> </div>
<div class="operator"> <div class="operator">
...@@ -89,11 +89,16 @@ export default { ...@@ -89,11 +89,16 @@ export default {
}, },
watch:{ watch:{
supplementList(val){ supplementList:{
deep:true,
handler(val){
this.supplementListTemp = val this.supplementListTemp = val
val.forEach(item=>{ val.forEach(item=>{
item.operationTime = dayjs( item.operationTime).format('YYYY-MM-DD HH:mm:ss') item.operationTime = dayjs( item.operationTime).format('YYYY-MM-DD HH:mm:ss')
}) })
},
immediate:true
} }
}, },
methods: { methods: {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
</el-tabs> </el-tabs>
</div> </div>
</template> </template>
<!-- 底部按钮 --> <!-- 底部按钮 -->
<div v-if="pageType != 2 && activeName != 'second'" class="btn-box"> <div v-if="pageType != 2 && activeName != 'second'" class="btn-box">
<el-button plain class="btn-three" @click="toBackList">取消</el-button> <el-button plain class="btn-three" @click="toBackList">取消</el-button>
...@@ -136,6 +135,7 @@ export default { ...@@ -136,6 +135,7 @@ export default {
maxlength: 200 maxlength: 200
} }
], ],
isSave:true,
testServiceList: [], testServiceList: [],
insuranceAttachmentConfigs: [], insuranceAttachmentConfigs: [],
itemList: [], itemList: [],
...@@ -285,7 +285,9 @@ export default { ...@@ -285,7 +285,9 @@ export default {
if (res.bankAccountDTO) { if (res.bankAccountDTO) {
this.accountForm = res.bankAccountDTO this.accountForm = res.bankAccountDTO
} }
console.log(this.repotData,'----------------')
}) })
}, },
// 处理查看状态下数据展示 // 处理查看状态下数据展示
handlerWatch(obj, type) { handlerWatch(obj, type) {
...@@ -382,6 +384,7 @@ export default { ...@@ -382,6 +384,7 @@ export default {
}, },
// 通过订单 // 通过订单
toPassOrder() { toPassOrder() {
this.isSave =false
if (this.orderMsg.status == 12 || this.orderMsg.status == 2) { if (this.orderMsg.status == 12 || this.orderMsg.status == 2) {
const isPass = this.verifyImages(this.claimsAttachmentConfigs) const isPass = this.verifyImages(this.claimsAttachmentConfigs)
if (!isPass) { if (!isPass) {
...@@ -580,7 +583,7 @@ export default { ...@@ -580,7 +583,7 @@ export default {
[claimsId]: this.orderMsg.id, [claimsId]: this.orderMsg.id,
[content]: item.content, [content]: item.content,
[suppType]: item.suppType, [suppType]: item.suppType,
[operation]:1 [operation]:this.isSave&&!item.id?0:1
} }
Object.assign(obj, temp) Object.assign(obj, temp)
}) })
...@@ -596,7 +599,8 @@ export default { ...@@ -596,7 +599,8 @@ export default {
[claimsId]: this.orderMsg.id, [claimsId]: this.orderMsg.id,
[content]: item.content, [content]: item.content,
[suppType]: item.suppType, [suppType]: item.suppType,
[operation]:1 [operation]:this.isSave&&!item.id?0:1
} }
Object.assign(obj, temp) Object.assign(obj, temp)
}) })
...@@ -763,6 +767,7 @@ export default { ...@@ -763,6 +767,7 @@ export default {
}, },
// 保存订单 // 保存订单
toSaveOrder() { toSaveOrder() {
this.isSave =true
let para = this.savePara() let para = this.savePara()
const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG' const name = this.orderMsg.status == 12 || this.orderMsg.status == 2 ? 'saveClaimsCG' : 'saveCG'
let loading = this.createLoading() let loading = this.createLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!