This commit is contained in:
PQZ 2024-09-20 16:23:59 +08:00
parent a85bf4c466
commit 6f6bb47263
2 changed files with 24 additions and 2 deletions

View File

@ -107,6 +107,7 @@
v-hasPermi="['base:customer-main:car']">绑定车辆</el-dropdown-item>
<el-dropdown-item command="openFormAttn" size="mini" type="text" icon="el-icon-s-custom"
v-hasPermi="['base:customer-main:attn']">经办人</el-dropdown-item>
<el-dropdown-item command="bindLabel" size="mini" type="text" icon="el-icon-s-management">打标签</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@ -119,6 +120,7 @@
<!-- 对话框(添加 / 修改) -->
<CustomerMainForm ref="formRef" @success="getList"/>
<CustomerCarForm ref="carFormRef" @success="getList"/>
<CustomerLabelForm ref="labelFormRef" @success="getList"/>
</div>
</template>
@ -126,10 +128,11 @@
import * as CustomerMainApi from '@/api/base/customer';
import CustomerMainForm from '@/views/base/customer/CustomerMainForm.vue';
import CustomerCarForm from '@/views/base/customer/CustomerCarForm.vue';
import CustomerLabelForm from '@/views/base/customer/CustomerLabelForm.vue';
export default {
name: "CorpCustomer",
components: {
CustomerMainForm,CustomerCarForm
CustomerMainForm,CustomerCarForm,CustomerLabelForm
},
props: {
typeCode: {
@ -195,6 +198,9 @@ export default {
//
this.openFormAttn(row);
break;
case 'bindLabel':
this.bindLabel(row);
break;
default:
break;
}
@ -207,6 +213,11 @@ export default {
this.$refs["carFormRef"].open(row);
},
/**打标签*/
bindLabel(row){
this.$refs["labelFormRef"].open(row);
},
/** 查询列表 */
async getList() {
try {

View File

@ -82,6 +82,8 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="bindCar" size="mini" type="text" icon="el-icon-truck"
v-hasPermi="['base:customer-main:car']">绑定车辆</el-dropdown-item>
<el-dropdown-item command="bindLabel" size="mini" type="text" icon="el-icon-s-management">打标签</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
@ -93,6 +95,7 @@
<!-- 对话框(添加 / 修改) -->
<CustomerMainForm ref="formRef" @success="getList"/>
<CustomerCarForm ref="carFormRef" @success="getList"/>
<CustomerLabelForm ref="labelFormRef" @success="getList"/>
</div>
</template>
@ -100,10 +103,11 @@
import * as CustomerMainApi from '@/api/base/customer';
import CustomerMainForm from '@/views/base/customer/CustomerMainForm.vue';
import CustomerCarForm from '@/views/base/customer/CustomerCarForm.vue';
import CustomerLabelForm from '@/views/base/customer/CustomerLabelForm.vue';
export default {
name: "TodoCustomer",
components: {
CustomerMainForm,CustomerCarForm
CustomerMainForm,CustomerCarForm,CustomerLabelForm
},
props:{
typeCode: {
@ -165,6 +169,9 @@ export default {
//
this.bindCar(row);
break;
case 'bindLabel':
this.bindLabel(row);
break;
default:
break;
}
@ -175,6 +182,10 @@ export default {
bindCar(row){
this.$refs["carFormRef"].open(row);
},
/**打标签*/
bindLabel(row){
this.$refs["labelFormRef"].open(row);
},
/** 查询列表 */
async getList() {
try {