| | |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: '客æ·ä¿¡æ¯', |
| | | name: 'customerInfo', |
| | | url: "/CustomerInfo/", |
| | | name: 'Customer', |
| | | url: "/Customer/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([ |
| | | const editFormFields = ref({ |
| | | client_no: "", |
| | | client_name: "", |
| | | telephone: "", |
| | | address: "", |
| | | email: "", |
| | | remark: "" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | {title:"客æ·ç¼ç ", field:"code", type:"like"}, |
| | | {title:"客æ·åç§°", field:"name", type:"like"}, |
| | | {title:"客æ·å
¨ç§°", field : "nickName", type:"like"}, |
| | | {title:"ç¶æ", field:"state",type:"select",dataKey:"",data:[]} |
| | | { |
| | | field: "client_no", |
| | | title: "客æ·ç¼ç ", |
| | | type: "string", |
| | | required: true, |
| | | span: 12 |
| | | }, |
| | | { |
| | | field: "client_name", |
| | | title: "客æ·åç§°", |
| | | type: "string", |
| | | required: true, |
| | | span: 12 |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | field: "telephone", |
| | | title: "çµè¯", |
| | | type: "string", |
| | | span: 12 |
| | | }, |
| | | { |
| | | field: "email", |
| | | title: "é®ç®±", |
| | | type: "string", |
| | | required: true, |
| | | span: 12 |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | field: "address", |
| | | title: "å°å", |
| | | type: "string", |
| | | span: 24 |
| | | } |
| | | ], |
| | | [ |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | required: true, |
| | | span: 24 |
| | | } |
| | | ] |
| | | ]); |
| | | const columns = ref([{field:'id',title:'主é®',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'code',title:'客æ·ç¼ç ',type:'string',width:110,align:'left',sort:true}, |
| | | {field:'name',title:'客æ·åç§°',type:'string',width:110,align:'left'}, |
| | | {field:'nickName',title:'客æ·å
¨ç§°',type:'string',width:120,align:'left'}, |
| | | {field:'state',title:'ç¶æ',type:'bool',width:110,require:true,align:'left',bind: { key: "status", data: [] }}, |
| | | {field:'creater',title:'å建è
',type:'string',width:110,require:true,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',width:150,require:true,align:'left',sort:true}, |
| | | const searchFormFields = ref({ |
| | | client_no: "", |
| | | client_name: "", |
| | | telephone: "" |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | {title:"客æ·ç¼ç ", field:"client_no", type:"like"}, |
| | | {title:"客æ·åç§°", field:"client_name", type:"like"}, |
| | | {title:"çµè¯", field:"telephone", type:"like"} |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | {field:'id',title:'主é®',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'client_no',title:'客æ·ç¼ç ',type:'string',width:120,align:'left',sort:true}, |
| | | {field:'client_name',title:'客æ·åç§°',type:'string',width:150,align:'left'}, |
| | | {field:'telephone',title:'çµè¯',type:'string',width:120,align:'left'}, |
| | | {field:'address',title:'å°å',type:'string',width:180,align:'left'}, |
| | | {field:'email',title:'é®ç®±',type:'string',width:150,align:'left'}, |
| | | {field:'remark',title:'夿³¨',type:'string',width:200,align:'left'}, |
| | | {field:'creater',title:'å建è
',type:'string',width:100,require:true,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',width:160,require:true,align:'left',sort:true}, |
| | | {field:'modifier',title:'ä¿®æ¹äºº',type:'string',width:100,align:'left'}, |
| | | {field:'modifyDate',title:'ä¿®æ¹æ¥æ',type:'datetime',width:150,align:'left',sort:true}]); |
| | | {field:'modifyDate',title:'ä¿®æ¹æ¥æ',type:'datetime',width:160,align:'left',sort:true} |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |