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

View File

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