|
@@ -398,7 +398,8 @@
|
|
|
}, {
|
|
|
name: '其他费用'
|
|
|
}, {
|
|
|
- name: '行程绕路'
|
|
|
+ name: '行程绕路',
|
|
|
+ badge: {},
|
|
|
}],
|
|
|
isTabs: '行程费用',
|
|
|
// 报销金额
|
|
@@ -508,6 +509,14 @@
|
|
|
// this.saveDisabled = false;
|
|
|
// this.upDisabled = true;
|
|
|
// }
|
|
|
+ if ((res.data.detourEmptyMile != null && res.data.detourEmptyMile != 0) || (res.data.detourLoadMile != null && res.data.detourLoadMile != 0)) {
|
|
|
+
|
|
|
+ for (var i = 0; i < this.tabs.length; i++) {
|
|
|
+ if (this.tabs[i].name === '行程绕路') {
|
|
|
+ this.tabs[i].badge.isDot = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
this.formData = res.data;
|
|
|
var costBreakdownList = res.data.loadFeeItemsList;
|
|
@@ -1354,6 +1363,16 @@
|
|
|
type: 'wgs84',
|
|
|
isHighAccuracy: true,
|
|
|
geocode: true,
|
|
|
+ fail: () => {
|
|
|
+ this.fileList1.pop();
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'warning',
|
|
|
+ icon: false,
|
|
|
+ message: "请打开定位!",
|
|
|
+ iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/warning.png'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ },
|
|
|
success: (map) => {
|
|
|
longitude = map.longitude
|
|
|
latitude = map.latitude
|