|
|
|
@ -30,7 +30,12 @@
|
|
|
|
|
</div> |
|
|
|
|
<div class="el_tc_dialog"> |
|
|
|
|
<!-- 配置计价规则 --> |
|
|
|
|
<el-dialog v-model="form.dialogPricingrules" :title="dialogtitle" width="70%"> |
|
|
|
|
<el-dialog |
|
|
|
|
v-model="form.dialogPricingrules" |
|
|
|
|
:title="dialogtitle" |
|
|
|
|
width="70%" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
> |
|
|
|
|
<div v-loading="loading" element-loading-text="Loading..."> |
|
|
|
|
<div class="el_content"> |
|
|
|
|
<div style="width: 100%"> |
|
|
|
@ -279,6 +284,7 @@ import {
|
|
|
|
|
$_expenseDispatchPriceRuledetail, |
|
|
|
|
} from '@/api/storagecost/index.js'; |
|
|
|
|
import { $_ObtainRegion } from '@/api/basicdata/basicdataWarehouse'; |
|
|
|
|
import { getList } from '@/api/basicdata/basicdataVehicleInfo'; |
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; //字典 |
|
|
|
|
import { deepClone } from '@/utils/util'; |
|
|
|
|
const emit = defineEmits(['request-data']); |
|
|
|
@ -491,11 +497,12 @@ const asurcharge = ref([
|
|
|
|
|
const dispatchSubjoinCategory = ref([ |
|
|
|
|
{ label: '序号', prop: 'index', type: 'string', width: '50', disabled: true }, |
|
|
|
|
{ |
|
|
|
|
label: '车型', |
|
|
|
|
label: '车型1', |
|
|
|
|
prop: 'carModel', |
|
|
|
|
type: 'select', |
|
|
|
|
width: 'auto', |
|
|
|
|
disabled: true, |
|
|
|
|
disabled: true, //是否显示 |
|
|
|
|
show: true, //禁止输入框 |
|
|
|
|
}, |
|
|
|
|
{ label: '操作', prop: '', type: '', width: 'auto', disabled: true }, |
|
|
|
|
]); |
|
|
|
@ -773,13 +780,13 @@ const Categoryprocessing = (value, data, type) => {
|
|
|
|
|
const Oversizedbillingprocessing = (value, data) => { |
|
|
|
|
OversizedbillingData.value.forEach(item => { |
|
|
|
|
console.log(item, '超区计费-----》'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 拆解出 region 数组中的省、市、区编码 |
|
|
|
|
const [province, city, district] = item.region; |
|
|
|
|
|
|
|
|
|
// 查找省对象 |
|
|
|
|
const provinceObj = item.options.find(option => option.value == province); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据省对象查找市集合 |
|
|
|
|
const cityObj = provinceObj?.children?.find(cityItem => cityItem.value == city); |
|
|
|
|
|
|
|
|
@ -1079,11 +1086,31 @@ const onLoad = async () => {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 获取车型 |
|
|
|
|
const Obtainvehiclemodel = async () => { |
|
|
|
|
try { |
|
|
|
|
let _res = await getList(); |
|
|
|
|
const { code, data } = _res.data; |
|
|
|
|
if (code == 200) { |
|
|
|
|
console.log(data, '车型'); |
|
|
|
|
optionsVehicle.value = data.map(item => { |
|
|
|
|
return { |
|
|
|
|
label: item.vehicleModel, |
|
|
|
|
value: item.id, |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
initData(); |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log(e, 'error'); |
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 页面初始化 |
|
|
|
|
const onLoadPage = async () => { |
|
|
|
|
await onLoad(); |
|
|
|
|
updateDictionary(optionsVehicle.value, 'price_vehicle_type'); // 获取车型 |
|
|
|
|
|
|
|
|
|
Obtainvehiclemodel(); //获取车型 |
|
|
|
|
GetRegion(); //获取地区 |
|
|
|
|
}; |
|
|
|
|
onLoadPage(); |
|
|
|
|