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