CRM_26-08-13#story#9201,新增调度APP通过复制快速新增车辆的功能
This commit is contained in:
@@ -82,7 +82,11 @@
|
||||
<div class="codeLeft">{{item.plateNumber}} / {{item.vehicleTypeString}}
|
||||
<span class="ml10" :class="{'insuranceSuccess': item.vehicleStatus == 1, 'insuranceDanger': item.vehicleStatus == 2 ,'insuranceGray': !item.vehicleStatus }">{{ item.vehicleStatus == 1 ? '启用' :( item.vehicleStatus == 2 ? '停用' : ( item.vehicleStatus == 12 ? '否-服务商停用' : '无状态')) }} </span>
|
||||
</div>
|
||||
<div class="codeRight" v-if="item.vehicleStatus == 1" @click.stop="updateStatus(item)">停用</div>
|
||||
<div class="btnWrap">
|
||||
<!-- v-if="permissonList.includes('vehicleAddBtn')"-->
|
||||
<div class="codeRight" @click.stop="copyAddVehicle(item)">复制新增</div>
|
||||
<div class="codeRight" v-if="item.vehicleStatus == 1" @click.stop="updateStatus(item)">停用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="juhe flex-between">
|
||||
<span class="zdJuhe">核验认证</span>
|
||||
@@ -360,6 +364,19 @@ export default {
|
||||
// on cancel
|
||||
});
|
||||
},
|
||||
copyAddVehicle(item){//复制新增:把源车的类别/属性/服务种类通过 query 带入新增页(后端未返回新字段时为空,新增页按普通新增兜底)
|
||||
const query = {
|
||||
copyFlag: 1,
|
||||
vehicleType: item.vehicleType || '',
|
||||
virtualVehicle: item.virtualVehicle || '',
|
||||
serviceIds: (item.serviceIds || []).join(','),
|
||||
}
|
||||
if (this.supplierId) {//潜在服务商流程,与「添加」按钮保持一致
|
||||
query.supplierId = this.supplierId
|
||||
query.potentialFlag = this.potentialFlag
|
||||
}
|
||||
this.goPage('vehicleAdd', query)
|
||||
},
|
||||
updateVehicle(item){//修改
|
||||
if( this.permissonList.includes('vehicleModifyBtn') ) {
|
||||
this.$router.push({
|
||||
@@ -445,6 +462,13 @@ export default {
|
||||
.codeLeft{
|
||||
@include fontWeightSize(bold,14px)
|
||||
}
|
||||
.btnWrap{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.codeRight + .codeRight{
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
.codeRight{
|
||||
padding: 2px 8px;
|
||||
border: 1px solid #DDDDDD;
|
||||
|
||||
Reference in New Issue
Block a user