救援集成进度1/5
This commit is contained in:
parent
fc9837fc01
commit
e150793fcd
@ -143,6 +143,12 @@ export const DICT_TYPE = {
|
|||||||
// 资产取得方式
|
// 资产取得方式
|
||||||
PROPERTY_GET_WAY : 'property_get_way',
|
PROPERTY_GET_WAY : 'property_get_way',
|
||||||
COMPANY_COST_TYPE: 'company_cost_type',
|
COMPANY_COST_TYPE: 'company_cost_type',
|
||||||
|
// 救援车车型
|
||||||
|
JYC_TYPE : 'jyc_type',
|
||||||
|
// 车牌颜色
|
||||||
|
CAR_LICENSE_COLOR: 'car_license_color',
|
||||||
|
// 车辆使用性质
|
||||||
|
CAR_USE_NATURE : 'car_use_nature',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,7 @@ export function delRescueCustomer(id) {
|
|||||||
//ai
|
//ai
|
||||||
export function getdeptTree() {
|
export function getdeptTree() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/deptTree' ,
|
url: '/system/dept/list' ,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<el-form-item label="车辆类型" prop="rescueCarType">
|
<el-form-item label="车辆类型" prop="rescueCarType">
|
||||||
<el-select v-model="queryParams.rescueCarType" placeholder="请选择车辆类型" clearable>
|
<el-select v-model="queryParams.rescueCarType" placeholder="请选择车辆类型" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.jyc_type"
|
v-for="dict in this.getDictDatas(DICT_TYPE.JYC_TYPE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<el-form-item label="车牌颜色" prop="carLicenseColor">
|
<el-form-item label="车牌颜色" prop="carLicenseColor">
|
||||||
<el-select v-model="queryParams.carLicenseColor" placeholder="请选择车牌颜色" clearable>
|
<el-select v-model="queryParams.carLicenseColor" placeholder="请选择车牌颜色" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.car_license_color"
|
v-for="dict in this.getDictDatas(DICT_TYPE.CAR_LICENSE_COLOR)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<el-form-item label="车辆性质" prop="carUseNature">
|
<el-form-item label="车辆性质" prop="carUseNature">
|
||||||
<el-select v-model="queryParams.carUseNature" placeholder="请选择车辆性质" clearable>
|
<el-select v-model="queryParams.carUseNature" placeholder="请选择车辆性质" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.car_use_nature"
|
v-for="dict in this.getDictDatas(DICT_TYPE.CAR_USE_NATURE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@ -69,10 +69,14 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="rescueCarList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="rescueCarList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column label="序号" align="center">
|
||||||
|
<template scope="scope">
|
||||||
|
<span>{{ scope.$index + 1 }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="车辆类型" align="center" prop="rescueCarType">
|
<el-table-column label="车辆类型" align="center" prop="rescueCarType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.jyc_type" :value="scope.row.rescueCarType"/>
|
<dict-tag :type="DICT_TYPE.JYC_TYPE" :value="scope.row.rescueCarType"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="车牌号" align="center" prop="rescueCarNum" />
|
<el-table-column label="车牌号" align="center" prop="rescueCarNum" />
|
||||||
@ -105,7 +109,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="车牌颜色" align="center" prop="carLicenseColor">
|
<el-table-column label="车牌颜色" align="center" prop="carLicenseColor">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.car_license_color" :value="scope.row.carLicenseColor"/>
|
<dict-tag :type="DICT_TYPE.CAR_LICENSE_COLOR" :value="scope.row.carLicenseColor"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="车辆所属" align="center" prop="carLicenseColor">-->
|
<!-- <el-table-column label="车辆所属" align="center" prop="carLicenseColor">-->
|
||||||
@ -115,10 +119,10 @@
|
|||||||
<!-- </el-table-column>-->
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="车辆性质" align="center" prop="carUseNature">
|
<el-table-column label="车辆性质" align="center" prop="carUseNature">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.car_use_nature" :value="scope.row.carUseNature"/>
|
<dict-tag :type="DICT_TYPE.CAR_USE_NATURE" :value="scope.row.carUseNature"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -153,7 +157,7 @@
|
|||||||
<el-form-item label="车辆类型" prop="rescueCarType">
|
<el-form-item label="车辆类型" prop="rescueCarType">
|
||||||
<el-select v-model="form.rescueCarType" placeholder="请选择车辆类型">
|
<el-select v-model="form.rescueCarType" placeholder="请选择车辆类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.jyc_type"
|
v-for="dict in this.getDictDatas(DICT_TYPE.JYC_TYPE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@ -207,7 +211,7 @@
|
|||||||
<el-form-item label="车牌颜色" prop="carLicenseColor">
|
<el-form-item label="车牌颜色" prop="carLicenseColor">
|
||||||
<el-radio-group v-model="form.carLicenseColor">
|
<el-radio-group v-model="form.carLicenseColor">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in dict.type.car_license_color"
|
v-for="dict in this.getDictDatas(DICT_TYPE.CAR_LICENSE_COLOR)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.value"
|
||||||
>{{dict.label}}</el-radio>
|
>{{dict.label}}</el-radio>
|
||||||
@ -216,7 +220,7 @@
|
|||||||
<el-form-item label="车辆性质" prop="carUseNature">
|
<el-form-item label="车辆性质" prop="carUseNature">
|
||||||
<el-radio-group v-model="form.carUseNature">
|
<el-radio-group v-model="form.carUseNature">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in dict.type.car_use_nature"
|
v-for="dict in this.getDictDatas(DICT_TYPE.CAR_USE_NATURE)"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.value"
|
||||||
>{{dict.label}}</el-radio>
|
>{{dict.label}}</el-radio>
|
||||||
@ -293,8 +297,8 @@
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listRescueCar(this.queryParams).then(response => {
|
listRescueCar(this.queryParams).then(response => {
|
||||||
this.rescueCarList = response.rows;
|
this.rescueCarList = response.data.records;
|
||||||
this.total = response.total;
|
this.total = response.data.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<el-tree :data="Thetree"
|
<el-tree :data="Thetree"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
|
ref="tree"
|
||||||
:default-expanded-keys="[200, 201]"
|
:default-expanded-keys="[200, 201]"
|
||||||
:default-checked-keys="[206]"
|
:default-checked-keys="[206]"
|
||||||
@node-click="handleNodeClick"></el-tree>
|
@node-click="handleNodeClick"></el-tree>
|
||||||
@ -127,7 +128,7 @@
|
|||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="客户公司" prop="customerDeptId">
|
<el-form-item label="客户公司" prop="customerDeptId">
|
||||||
|
|
||||||
<span style="font-weight: bold; font-size: 16px">{{ deptName ||xtitle}}</span>
|
<span style="font-weight: bold; font-size: 16px">{{ form.deptName ||xtitle}}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="客户名称" prop="customerName">
|
<el-form-item label="客户名称" prop="customerName">
|
||||||
<el-input v-model="form.customerName" placeholder="请输入客户名称" />
|
<el-input v-model="form.customerName" placeholder="请输入客户名称" />
|
||||||
@ -188,7 +189,7 @@ export default {
|
|||||||
filterText:'',
|
filterText:'',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'label'
|
label: 'name'
|
||||||
},
|
},
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -236,7 +237,6 @@ export default {
|
|||||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
{ required: true, message: '不能为空', trigger: 'blur' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -244,31 +244,27 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filterText(val) {
|
filterText(val) {
|
||||||
this.$refs.tree.filter(val);
|
// TODO 待完成
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleCheckChange(data, checked, indeterminate) {
|
handleCheckChange(data, checked, indeterminate) {
|
||||||
console.log(data, checked, indeterminate);
|
// console.log(data, checked, indeterminate);
|
||||||
},
|
},
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
this.xid = data.id
|
this.xid = data.id
|
||||||
// this.form.customerDeptId
|
this.xtitle = data.name
|
||||||
this.xtitle = data.label
|
|
||||||
console.log('x',data);
|
|
||||||
console.log(this.form.customerDeptId)
|
|
||||||
},
|
},
|
||||||
/** 查询救援的客户信息列表 */
|
/** 查询救援的客户信息列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listRescueCustomer(this.queryParams).then(response => {
|
listRescueCustomer(this.queryParams).then(response => {
|
||||||
this.rescueCustomerList = response.rows;
|
this.rescueCustomerList = response.data.records;
|
||||||
this.total = response.total;
|
this.total = response.data.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
getdeptTree().then(res=>{
|
getdeptTree().then(res=>{
|
||||||
console.log(res)
|
this.Thetree = this.handleTree(res.data, 'id')
|
||||||
this.Thetree = res.data
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
Loading…
Reference in New Issue
Block a user