|  | @@ -34,7 +34,9 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        const { createMessage } = useMessage()
 | 
	
		
			
				|  |  |        const officeStore = useOfficeStore()
 | 
	
		
			
				|  |  | -      const options = computed(() => officeStore.getCategoryOptions)
 | 
	
		
			
				|  |  | +      const options = computed(() =>
 | 
	
		
			
				|  |  | +        officeStore.getCategoryOptions.map(item => ({ label: item.label, value: item.label }))
 | 
	
		
			
				|  |  | +      )
 | 
	
		
			
				|  |  |        const staffOptions = computed(() => officeStore.getCategoriedStaff)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        const schemas = computed<FormSchema[]>(() => [
 | 
	
	
		
			
				|  | @@ -80,7 +82,7 @@
 | 
	
		
			
				|  |  |            required: true
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -          field: 'insideCategoryId',
 | 
	
		
			
				|  |  | +          field: 'insideCategory',
 | 
	
		
			
				|  |  |            component: 'Select',
 | 
	
		
			
				|  |  |            componentProps: {
 | 
	
		
			
				|  |  |              options,
 | 
	
	
		
			
				|  | @@ -91,7 +93,7 @@
 | 
	
		
			
				|  |  |            required: true
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -          field: 'categoryId',
 | 
	
		
			
				|  |  | +          field: 'category',
 | 
	
		
			
				|  |  |            component: 'Select',
 | 
	
		
			
				|  |  |            label: '销售负责人',
 | 
	
		
			
				|  |  |            componentProps: {
 | 
	
	
		
			
				|  | @@ -158,29 +160,29 @@
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |        async function checkOffice() {
 | 
	
		
			
				|  |  |          officeStore.checkStaffList()
 | 
	
		
			
				|  |  | -        if (props.info.categoryId) {
 | 
	
		
			
				|  |  | -          await officeStore.getStaffWithCategoryIdAction({ categoryId: props.info.categoryId })
 | 
	
		
			
				|  |  | +        if (props.info.category) {
 | 
	
		
			
				|  |  | +          await officeStore.getStaffWithCategoryIdAction({ category: props.info.category })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        checkOffice()
 | 
	
		
			
				|  |  |        onMountedOrActivated(async () => {
 | 
	
		
			
				|  |  |          await updateSchema([
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            field: 'insideCategoryId',
 | 
	
		
			
				|  |  | +            field: 'insideCategory',
 | 
	
		
			
				|  |  |              component: 'Select',
 | 
	
		
			
				|  |  |              label: '所在办事处',
 | 
	
		
			
				|  |  |              componentProps: { options, showArrow: true },
 | 
	
		
			
				|  |  |              required: true
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            field: 'categoryId',
 | 
	
		
			
				|  |  | +            field: 'category',
 | 
	
		
			
				|  |  |              component: 'Select',
 | 
	
		
			
				|  |  |              label: '销售负责人',
 | 
	
		
			
				|  |  |              componentProps: {
 | 
	
		
			
				|  |  |                options,
 | 
	
		
			
				|  |  |                showArrow: true,
 | 
	
		
			
				|  |  |                onChange: (value: string) => {
 | 
	
		
			
				|  |  | -                officeStore.getStaffWithCategoryIdAction({ categoryId: value })
 | 
	
		
			
				|  |  | +                officeStore.getStaffWithCategoryIdAction({ category: value })
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              colProps: {
 | 
	
	
		
			
				|  | @@ -194,8 +196,8 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        const handleOnSave = async (values: {
 | 
	
		
			
				|  |  |          name: string
 | 
	
		
			
				|  |  | -        insideCategoryId: string
 | 
	
		
			
				|  |  | -        categoryId: string
 | 
	
		
			
				|  |  | +        insideCategory: string
 | 
	
		
			
				|  |  | +        category: string
 | 
	
		
			
				|  |  |          staffId: string
 | 
	
		
			
				|  |  |          remark: string
 | 
	
		
			
				|  |  |          status: string
 | 
	
	
		
			
				|  | @@ -207,11 +209,11 @@
 | 
	
		
			
				|  |  |            category: '',
 | 
	
		
			
				|  |  |            staffName: ''
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if (values.insideCategoryId) {
 | 
	
		
			
				|  |  | -          newVal.insideCategory = options.value.find(item => item.value === values.insideCategoryId)?.label || ''
 | 
	
		
			
				|  |  | +        if (values.insideCategory) {
 | 
	
		
			
				|  |  | +          newVal.insideCategory = options.value.find(item => item.value === values.insideCategory)?.label || ''
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if (values.categoryId) {
 | 
	
		
			
				|  |  | -          newVal.category = options.value.find(item => item.value === values.categoryId)?.label || ''
 | 
	
		
			
				|  |  | +        if (values.category) {
 | 
	
		
			
				|  |  | +          newVal.category = options.value.find(item => item.value === values.category)?.label || ''
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (values.staffId) {
 | 
	
		
			
				|  |  |            newVal.staffName = staffOptions.value.find(item => item.value === values.staffId)?.label || ''
 |