| | |
| | | import dayjs from 'dayjs'; |
| | | import {formatDate} from "@/utils/ruoyi"; |
| | | import {getTmsSettlementEntity, listTmsSettlementEntity} from "@/api/tms/tmsSettlementEntity"; |
| | | import router from "@/router"; |
| | | const {proxy} = useCurrentInstance(); |
| | | const crudRef = ref(); |
| | | |
| | |
| | | { |
| | | required: true, |
| | | message: "系统编号不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | isTempContract: { |
| | | label: '临时合同', |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is', |
| | | addDisplay: true,value:'1', |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "是否临时合同不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "签约日期不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | contractDate: { |
| | | label: '合同期限', |
| | |
| | | hide: false, |
| | | search: true, |
| | | }, |
| | | isTempContract: { |
| | | label: '临时合同', |
| | | type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is', |
| | | display: false,minWidth:150, |
| | | hide: false, |
| | | search: true, |
| | | }, |
| | | contractType: { |
| | | label: '合同类型', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_type', |
| | |
| | | deleteApi: delTmsContract, |
| | | addApi: addTmsContract, |
| | | updateApi: updateTmsContract, |
| | | getBeginListFunc:()=>{ |
| | | queryParams.value.contractStatus = <any>router.currentRoute.value.query.contactStatus || undefined; |
| | | }, |
| | | handleUpdateFunc: () => { |
| | | crudRef.value.rowEdit(selectionList.value[0]); |
| | | }, |
| | |
| | | selectionList.value = selection; |
| | | }, |
| | | }) |
| | | |
| | | console.log(router.currentRoute.value.query.contactStatus) |
| | | |
| | | |
| | | </script> |