人车管理 星油车辆添加车牌

pull/13/head
李飞 2 years ago
parent cf8ebd30fe
commit 27459621fa
  1. 7
      src/api/user/oilVehicleOwner.js
  2. 7
      src/views/driver/vehicle/OilVehicleOwnerAdd.vue
  3. 2
      src/views/driver/vehicle/OilVehicleOwnerList.vue

@ -30,6 +30,13 @@ export default {
data: oilVehicleOwner data: oilVehicleOwner
}) })
}, },
saveDispat(oilVehicleOwner) { // 新保存(调度管理)
return request({
url: `/xkhl-user/saasCustomerPlatenum/save `,
method: 'post',
data: oilVehicleOwner
})
},
saveSite(oilVehicleOwner) { // 保存 saveSite(oilVehicleOwner) { // 保存
return request({ return request({
url: `/${service_name}/${group_name}/saveSite`, url: `/${service_name}/${group_name}/saveSite`,

@ -197,9 +197,14 @@ export default {
} }
}, },
save() { save() {
// //
oilVehicleOwnerApi.saveDispatch(this.oilVehicleOwner).then((res) => { oilVehicleOwnerApi.saveDispatch(this.oilVehicleOwner).then((res) => {
this.$message.success(res.msg); this.$message.success(res.msg);
this.$emit("closeDialog");
this.$emit("getByPage");
});
//
oilVehicleOwnerApi.saveDispat(this.oilVehicleOwner).then((res) => {
this.$emit("closeDialog"); this.$emit("closeDialog");
this.$emit("getByPage"); this.$emit("getByPage");
this.oilVehicleOwner = {}; this.oilVehicleOwner = {};

@ -194,7 +194,7 @@
direction="ltr" direction="ltr"
destroy-on-close destroy-on-close
> >
<OilVehicleOwnerAdd @getByPage="getByPage" @closeDialog="closeDialog" /> <OilVehicleOwnerAdd v-if="addDialog" @getByPage="getByPage" @closeDialog="closeDialog" />
</el-drawer> </el-drawer>
<!-- 导出抽屉 --> <!-- 导出抽屉 -->

Loading…
Cancel
Save