车辆打标签
This commit is contained in:
parent
e3d84594e2
commit
cb3bd9f88b
@ -18,6 +18,15 @@ export function updateCarMain(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//车辆打标签
|
||||||
|
export function setLabelList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/base/carMain/setLabel',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 删除车辆信息
|
// 删除车辆信息
|
||||||
export function deleteCarMain(id) {
|
export function deleteCarMain(id) {
|
||||||
return request({
|
return request({
|
||||||
@ -59,3 +68,5 @@ export function exportCarMainExcel(params) {
|
|||||||
responseType: 'blob'
|
responseType: 'blob'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="车标图片" align="center" prop="logoImg" >
|
<el-table-column label="车标图片" align="center" prop="logoImg" >
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-image style="width: 7rem; height: 7rem" :preview-src-list="[scope.row.logoImg]" :src="scope.row.logoImg" />
|
<el-image style="width: 4rem; height: 4rem" :preview-src-list="[scope.row.logoImg]" :src="scope.row.logoImg" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="品牌名称" align="center" prop="brandName">
|
<el-table-column label="品牌名称" align="center" prop="brandName">
|
||||||
|
@ -192,11 +192,13 @@
|
|||||||
<!-- 对话框(添加 / 修改) -->
|
<!-- 对话框(添加 / 修改) -->
|
||||||
<CarMainForm ref="formRef" @success="getList" />
|
<CarMainForm ref="formRef" @success="getList" />
|
||||||
<CustomerCarForm ref="bindCustomerFormRef" @success="getList" />
|
<CustomerCarForm ref="bindCustomerFormRef" @success="getList" />
|
||||||
|
<CarLabelForm ref="labelFormRef" @success="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CustomerCarForm from '@/views/base/carmain/components/CustomerCarForm.vue';
|
import CustomerCarForm from '@/views/base/carmain/components/CustomerCarForm.vue';
|
||||||
|
import CarLabelForm from '@/views/base/carmain/components/CarLabelForm.vue';
|
||||||
import * as CarMainApi from '@/api/base/carmain';
|
import * as CarMainApi from '@/api/base/carmain';
|
||||||
import CarMainForm from './CarMainForm.vue';
|
import CarMainForm from './CarMainForm.vue';
|
||||||
import { getDictDatas, DICT_TYPE, getDictData } from '@/utils/dict';
|
import { getDictDatas, DICT_TYPE, getDictData } from '@/utils/dict';
|
||||||
@ -205,6 +207,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
CarMainForm,
|
CarMainForm,
|
||||||
CustomerCarForm,
|
CustomerCarForm,
|
||||||
|
CarLabelForm,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -249,12 +252,13 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
/**更多操作*/
|
/**更多操作*/
|
||||||
handleCommand(command, index, row) {
|
handleCommand(command, index, row) {
|
||||||
switch (command) {
|
switch (command) {
|
||||||
|
|
||||||
//打标签
|
//打标签
|
||||||
case 'markSign': this.openForm(row.id); break;
|
case 'markSign': this.bindLabel(row.id); break;
|
||||||
|
|
||||||
//绑定客户信息
|
//绑定客户信息
|
||||||
case 'bindCustomer': this.openFormBindCustomer(row.id); break;
|
case 'bindCustomer': this.openFormBindCustomer(row.id); break;
|
||||||
@ -265,6 +269,10 @@ export default {
|
|||||||
openFormBindCustomer(id) {
|
openFormBindCustomer(id) {
|
||||||
this.$refs["bindCustomerFormRef"].open(id);
|
this.$refs["bindCustomerFormRef"].open(id);
|
||||||
},
|
},
|
||||||
|
/**打标签*/
|
||||||
|
bindLabel(id) {
|
||||||
|
this.$refs["labelFormRef"].open(id);
|
||||||
|
},
|
||||||
/** 查询列表 */
|
/** 查询列表 */
|
||||||
async getList() {
|
async getList() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user