Compare commits
19 Commits
prod-26-01
...
prod-25-12
| Author | SHA1 | Date | |
|---|---|---|---|
| 284872fa73 | |||
| 703062825c | |||
| a7e217100e | |||
| 8677a0c99a | |||
| 7739f61d36 | |||
| 66f28ad8ce | |||
| e6a669e41d | |||
| a84e5a3531 | |||
| b6fd5b5db6 | |||
| 4e37efeca4 | |||
| 8979dcaf98 | |||
| f6e225ed4b | |||
| 821a35b382 | |||
| 2b0c6d6a36 | |||
| 073312a56b | |||
| d493ebca97 | |||
| ed5a0d9478 | |||
| 0a281ea877 | |||
| b42db4e98f |
@@ -198,22 +198,30 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="isJoin">
|
<div class="isJoin">
|
||||||
<van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled }" :disabled="vehicleInfoDisabled" @change="isVehicleChange" class="joinWrap">
|
<van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled }" :disabled="vehicleInfoDisabled" @change="isVehicleChange" class="joinWrap">
|
||||||
<van-radio :name="1" style="margin-right: 26px">
|
<van-radio :name="1" style="margin-right: 14px">
|
||||||
启用
|
启1用
|
||||||
<img
|
<img
|
||||||
slot="icon"
|
slot="icon"
|
||||||
slot-scope="props"
|
slot-scope="props"
|
||||||
:src="props.checked ? activeIcon : inactiveIcon"
|
:src="props.checked ? activeIcon : inactiveIcon"
|
||||||
>
|
>
|
||||||
</van-radio>
|
</van-radio>
|
||||||
<van-radio :name="2">
|
<van-radio :name="2" style="margin-right: 14px">
|
||||||
停用
|
停1用
|
||||||
<img
|
<img
|
||||||
slot="icon"
|
slot="icon"
|
||||||
slot-scope="props"
|
slot-scope="props"
|
||||||
:src="props.checked ? activeIcon : inactiveIcon"
|
:src="props.checked ? activeIcon : inactiveIcon"
|
||||||
>
|
>
|
||||||
</van-radio>
|
</van-radio>
|
||||||
|
<van-radio :name="12" disabled>
|
||||||
|
否-服务商停用
|
||||||
|
<img
|
||||||
|
slot="icon"
|
||||||
|
slot-scope="props"
|
||||||
|
:src="props.checked ? activeIcon : inactiveIcon"
|
||||||
|
>
|
||||||
|
</van-radio>
|
||||||
</van-radio-group>
|
</van-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -243,7 +251,7 @@
|
|||||||
</van-radio-group>
|
</van-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item_content_btn">
|
<div class="item_content_btn" v-if="[2,3].includes(this.liabilityInsuranceAudit)">
|
||||||
<span @click="goContinueInsurance">续保更新</span>
|
<span @click="goContinueInsurance">续保更新</span>
|
||||||
</div>
|
</div>
|
||||||
<span style="color: red">如有投保,选“有”,未投保选“无”,不必上传交强险或者商业险等其他保单</span>
|
<span style="color: red">如有投保,选“有”,未投保选“无”,不必上传交强险或者商业险等其他保单</span>
|
||||||
@@ -261,6 +269,7 @@
|
|||||||
:deletable="!disabledShow"
|
:deletable="!disabledShow"
|
||||||
max-count="1"
|
max-count="1"
|
||||||
:preview-size="54"
|
:preview-size="54"
|
||||||
|
@click-preview="clickPreview"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="lineBot"></div>
|
<div class="lineBot"></div>
|
||||||
@@ -335,7 +344,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>-->
|
</div>-->
|
||||||
</div>
|
</div>
|
||||||
<two-common-btn class="btn" @cancelClick="h5GoBack" @submitClick="submitAuditHandle" />
|
<two-common-btn class="btn" @cancelClick="h5GoBack" @submitClick="submitBtn" />
|
||||||
<van-calendar v-model="showDatePicker" :min-date="minDate"
|
<van-calendar v-model="showDatePicker" :min-date="minDate"
|
||||||
:max-date="maxDate" type="range" @confirm="onConfirm" />
|
:max-date="maxDate" type="range" @confirm="onConfirm" />
|
||||||
|
|
||||||
@@ -732,6 +741,12 @@ export default {
|
|||||||
this.vehicleFrontPhoto = res.data;
|
this.vehicleFrontPhoto = res.data;
|
||||||
await this.ocrCarFrontHandler()
|
await this.ocrCarFrontHandler()
|
||||||
},
|
},
|
||||||
|
clickPreview(){
|
||||||
|
console.log(' this.insurancePicturePhoto', this.insurancePicturePhoto)
|
||||||
|
if(this.insurancePicturePhoto && this.insurancePicturePhoto.indexOf('.pdf') !== -1){
|
||||||
|
window.open(this.insurancePicturePhoto.replace("http://", "https://"))
|
||||||
|
}
|
||||||
|
},
|
||||||
async insurancePictureFilesHandler(file) {
|
async insurancePictureFilesHandler(file) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file" , file.file);
|
formData.append("file" , file.file);
|
||||||
@@ -969,6 +984,9 @@ export default {
|
|||||||
if(key=='serviceIds'){
|
if(key=='serviceIds'){
|
||||||
this.approvalForm.serviceChange[key]=this.$refs.tree.getCheckedKeys(true)
|
this.approvalForm.serviceChange[key]=this.$refs.tree.getCheckedKeys(true)
|
||||||
}
|
}
|
||||||
|
if(key=='vehicleType'){
|
||||||
|
this.approvalForm.serviceChange[key]=this.selectedOption?.join(',') || ''
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
this.vehicleInfoChange=false
|
this.vehicleInfoChange=false
|
||||||
@@ -1000,8 +1018,9 @@ export default {
|
|||||||
this.approvalForm.insuranceChange=null
|
this.approvalForm.insuranceChange=null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.vehicleInfoChange || this.insuranceChange){
|
if((this.vehicleInfoChange || this.insuranceChange) && this.id){
|
||||||
this.approvalDialogShow=true
|
// this.approvalDialogShow=true
|
||||||
|
this.submitApprovalHandle()
|
||||||
console.log('11111',this.approvalForm.serviceChange)
|
console.log('11111',this.approvalForm.serviceChange)
|
||||||
console.log('2222',this.approvalForm.insuranceChange)
|
console.log('2222',this.approvalForm.insuranceChange)
|
||||||
}else {
|
}else {
|
||||||
@@ -1027,10 +1046,10 @@ export default {
|
|||||||
this.$toast('车辆状态不能为空')
|
this.$toast('车辆状态不能为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!this.approvalForm.serviceRemark){
|
/* if(!this.approvalForm.serviceRemark){
|
||||||
this.$toast('车辆和服务备注不能为空')
|
this.$toast('车辆和服务备注不能为空')
|
||||||
return
|
return
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
if(this.insuranceChange){
|
if(this.insuranceChange){
|
||||||
if(this.hasLiabilityInsurance === null || this.hasLiabilityInsurance === undefined || this.hasLiabilityInsurance === '') { // 有职业责任险,就需要有保单照片
|
if(this.hasLiabilityInsurance === null || this.hasLiabilityInsurance === undefined || this.hasLiabilityInsurance === '') { // 有职业责任险,就需要有保单照片
|
||||||
@@ -1053,10 +1072,10 @@ export default {
|
|||||||
this.$toast('保单有效期不能为空')
|
this.$toast('保单有效期不能为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!this.approvalForm.insuranceRemark){
|
/* if(!this.approvalForm.insuranceRemark){
|
||||||
this.$toast('保单备注不能为空')
|
this.$toast('保单备注不能为空')
|
||||||
return
|
return
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@@ -1177,6 +1196,8 @@ export default {
|
|||||||
timeObj = this.formatDateTimeRange(this.dateVal)
|
timeObj = this.formatDateTimeRange(this.dateVal)
|
||||||
}
|
}
|
||||||
this.serviceIds = this.$refs.tree.getCheckedKeys(true)
|
this.serviceIds = this.$refs.tree.getCheckedKeys(true)
|
||||||
|
console.log('1122',this.vehicleStatus)
|
||||||
|
// return
|
||||||
await saveVehicle({
|
await saveVehicle({
|
||||||
vehicleId:this.id ? this.id : '',
|
vehicleId:this.id ? this.id : '',
|
||||||
plateNumber:this.carNum ? this.carNum :'',
|
plateNumber:this.carNum ? this.carNum :'',
|
||||||
@@ -1196,6 +1217,8 @@ export default {
|
|||||||
liabilityInsuranceStartTime: this.hasLiabilityInsurance == 1 ? (timeObj?.startTime || '' ) : '',
|
liabilityInsuranceStartTime: this.hasLiabilityInsurance == 1 ? (timeObj?.startTime || '' ) : '',
|
||||||
liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '',
|
liabilityInsuranceEndTime: this.hasLiabilityInsurance == 1 ? (timeObj?.endTime || '') : '',
|
||||||
virtualVehicle: this.virtualVehicle,
|
virtualVehicle: this.virtualVehicle,
|
||||||
|
canSubmitApproval:true,
|
||||||
|
vehicleStatus:this.vehicleStatus
|
||||||
})
|
})
|
||||||
if(this.id){
|
if(this.id){
|
||||||
this.$toast('修改成功')
|
this.$toast('修改成功')
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<div class="carItem" v-for="(item,index) in vehicleList" :key="index" @click.stop="updateVehicle(item)">
|
<div class="carItem" v-for="(item,index) in vehicleList" :key="index" @click.stop="updateVehicle(item)">
|
||||||
<div class="carCode">
|
<div class="carCode">
|
||||||
<div class="codeLeft">{{item.plateNumber}} / {{item.vehicleTypeString}}
|
<div class="codeLeft">{{item.plateNumber}} / {{item.vehicleTypeString}}
|
||||||
<span class="ml10" @click.stop="updateStatus(item)" :class="{'insuranceSuccess': item.vehicleStatus == 1, 'insuranceDanger': item.vehicleStatus == 2 ,'insuranceGray': !item.vehicleStatus }">{{ item.vehicleStatus == 1 ? '启用' :( item.vehicleStatus == 2 ? '停用' : '无状态') }} </span>
|
<span class="ml10" @click.stop="updateStatus(item)" :class="{'insuranceSuccess': item.vehicleStatus == 1, 'insuranceDanger': item.vehicleStatus == 2 ,'insuranceGray': !item.vehicleStatus }">{{ item.vehicleStatus == 1 ? '启用' :( item.vehicleStatus == 2 ? '停用' : ( item.vehicleStatus == 12 ? '否-服务商停用' : '无状态')) }} </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1327,7 +1327,8 @@ export default {
|
|||||||
columnObj.label = item.month // 每一列的标题的名称
|
columnObj.label = item.month // 每一列的标题的名称
|
||||||
columnObj.prop = props + index //自定义每一列标题字段名称
|
columnObj.prop = props + index //自定义每一列标题字段名称
|
||||||
this.etlLabelList.push(columnObj)
|
this.etlLabelList.push(columnObj)
|
||||||
let mappings = [ 'complainOrderCount', 'complainOrderRate', 'pinganFavorableCount','pinganFavorableRate' ];
|
// 'pinganFavorableCount','pinganFavorableRate'
|
||||||
|
let mappings = [ 'complainOrderCount', 'complainOrderRate' ];
|
||||||
for (let i = 0; i < mappings.length; i++) {
|
for (let i = 0; i < mappings.length; i++) {
|
||||||
this.$set(this.etlDetailList[i], columnObj.prop, item[mappings[i]]);
|
this.$set(this.etlDetailList[i], columnObj.prop, item[mappings[i]]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ export default {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
.report_icon {
|
.report_icon {
|
||||||
width: 45px;
|
width: 60px;
|
||||||
height: 45px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
.report_title {
|
.report_title {
|
||||||
color: rgba(53, 53, 53, 0.67);
|
color: rgba(53, 53, 53, 0.67);
|
||||||
|
|||||||
@@ -263,10 +263,10 @@
|
|||||||
data.lat = this.lat;
|
data.lat = this.lat;
|
||||||
data.lng = this.lng;
|
data.lng = this.lng;
|
||||||
}
|
}
|
||||||
if( !this.remark ) {
|
/*if( !this.remark ) {
|
||||||
Toast('备注内容不能为空')
|
Toast('备注内容不能为空')
|
||||||
return
|
return
|
||||||
}
|
}*/
|
||||||
this.clickFlag = false;
|
this.clickFlag = false;
|
||||||
try {
|
try {
|
||||||
await newOrderReporting(data)
|
await newOrderReporting(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user