|
@@ -1,9 +1,11 @@
|
|
|
import {BasicColumn} from '/@/components/Table';
|
|
|
import {FormSchema} from '/@/components/Table';
|
|
|
-import { rules} from '/@/utils/helper/validator';
|
|
|
-import { render } from '/@/utils/common/renderUtils';
|
|
|
+
|
|
|
+
|
|
|
import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'
|
|
|
-import { getWeekMonthQuarterYear } from '/@/utils';
|
|
|
+import { defHttp } from '/@/utils/http/axios';
|
|
|
+import { ref } from 'vue';
|
|
|
+var intermediatorOption = ref([]);
|
|
|
|
|
|
export const columns: BasicColumn[] = [
|
|
|
{
|
|
@@ -54,7 +56,7 @@ export const columns: BasicColumn[] = [
|
|
|
{
|
|
|
title: '中间人(intermediator)',
|
|
|
align:"center",
|
|
|
- dataIndex: 'intermediator'
|
|
|
+ dataIndex: 'intermediator_dictText'
|
|
|
},
|
|
|
{
|
|
|
title: '折扣(discount)',
|
|
@@ -341,9 +343,9 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'intermediator',
|
|
|
colProps: {span: 12},
|
|
|
labelWidth: 200,
|
|
|
- component: 'JDictSelectTag',
|
|
|
+ component: 'JSelectInput',
|
|
|
componentProps:{
|
|
|
- dictCode:"intermediator"
|
|
|
+ options:intermediatorOption
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -488,3 +490,17 @@ export function getBpmFormSchema(_formData): FormSchema[]{
|
|
|
|
|
|
return formSchema;
|
|
|
}
|
|
|
+export function getIntermediatorOptions(){
|
|
|
+ let params = {pageSize:'-1',status:1}
|
|
|
+ defHttp.get({url:'/cuspCode/cuspIntermediator/list',params}, { isTransformResponse: false }).then(res=>{
|
|
|
+ if(res){
|
|
|
+ intermediatorOption.value.splice(0,intermediatorOption.value.length);
|
|
|
+ res.result.records.forEach(item=>{
|
|
|
+ intermediatorOption.value.push({
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|