Browse Source

价格车型修改

dev-xx
马远东 6 months ago
parent
commit
8ab5e8578d
  1. 37
      src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue

37
src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue

@ -30,7 +30,12 @@
</div> </div>
<div class="el_tc_dialog"> <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 v-loading="loading" element-loading-text="Loading...">
<div class="el_content"> <div class="el_content">
<div style="width: 100%"> <div style="width: 100%">
@ -279,6 +284,7 @@ import {
$_expenseDispatchPriceRuledetail, $_expenseDispatchPriceRuledetail,
} from '@/api/storagecost/index.js'; } from '@/api/storagecost/index.js';
import { $_ObtainRegion } from '@/api/basicdata/basicdataWarehouse'; import { $_ObtainRegion } from '@/api/basicdata/basicdataWarehouse';
import { getList } from '@/api/basicdata/basicdataVehicleInfo';
import { getDictionaryBiz } from '@/api/system/dict'; // import { getDictionaryBiz } from '@/api/system/dict'; //
import { deepClone } from '@/utils/util'; import { deepClone } from '@/utils/util';
const emit = defineEmits(['request-data']); const emit = defineEmits(['request-data']);
@ -491,11 +497,12 @@ const asurcharge = ref([
const dispatchSubjoinCategory = ref([ const dispatchSubjoinCategory = ref([
{ label: '序号', prop: 'index', type: 'string', width: '50', disabled: true }, { label: '序号', prop: 'index', type: 'string', width: '50', disabled: true },
{ {
label: '车型', label: '车型1',
prop: 'carModel', prop: 'carModel',
type: 'select', type: 'select',
width: 'auto', width: 'auto',
disabled: true, disabled: true, //
show: true, //
}, },
{ label: '操作', prop: '', type: '', width: 'auto', disabled: true }, { label: '操作', prop: '', type: '', width: 'auto', disabled: true },
]); ]);
@ -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 () => { const onLoadPage = async () => {
await onLoad(); await onLoad();
updateDictionary(optionsVehicle.value, 'price_vehicle_type'); // Obtainvehiclemodel(); //
GetRegion(); // GetRegion(); //
}; };
onLoadPage(); onLoadPage();

Loading…
Cancel
Save