| | |
| | | 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: '合同期限', |
| | |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_status', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | viewDisplay: true,value: '0', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | contactName: { |
| | | label: '联系人姓名',minWidth: 120, |
| | | }, |
| | | signCompany: { |
| | | signCompanyName: { |
| | | label: '签约公司', minWidth: 150, |
| | | }, |
| | | }, |
| | |
| | | Object.assign(form.value, { |
| | | partyAId: active.id, |
| | | partyAName: active.customerShortName, |
| | | partyAContact: active.contactName, |
| | | partyAContactInfo: active.contactPhone, |
| | | }); |
| | | } |
| | | }, |
| | |
| | | Object.assign(form.value, { |
| | | partyBId: active.id, |
| | | partyBName: active.customerShortName, |
| | | partyBContact: active.contactName, |
| | | partyBContactInfo: active.contactPhone, |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | partyBName: { |
| | | label: '乙方名称', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "乙方名称不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | // partyBName: { |
| | | // label: '乙方名称', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "乙方名称不能为空", trigger: "blur" |
| | | // } |
| | | // ], |
| | | // }, |
| | | partyBContact: { |
| | | label: '乙方联系人', |
| | | addDisplay: true, |
| | |
| | | } |
| | | ], |
| | | }, |
| | | paymentMethod: { |
| | | label: '付款方式', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "付款方式不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | // paymentMethod: { |
| | | // label: '付款方式', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "付款方式不能为空", trigger: "change" |
| | | // } |
| | | // ], |
| | | // }, |
| | | paymentCycle: { |
| | | label: '付款周期', |
| | | addDisplay: true, |
| | |
| | | // viewDisplay: true, |
| | | // }, |
| | | attachmentPath: { |
| | | label: '附件路径', |
| | | label: '附件', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true,span: 24, |
| | |
| | | home:'url', |
| | | name:'newFileName', |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请上传附件", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | // uploadedBy: { |
| | | // 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', |
| | |
| | | hide: false,minWidth:150, |
| | | search: false, |
| | | }, |
| | | paymentMethod: { |
| | | label: '付款方式', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | display: false, |
| | | hide: false,minWidth:150, |
| | | search: true, |
| | | }, |
| | | // paymentMethod: { |
| | | // label: '付款方式', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // display: false, |
| | | // hide: false,minWidth:150, |
| | | // search: true, |
| | | // }, |
| | | |
| | | invoiceStatus: { |
| | | label: '发票状态', |
| | |
| | | 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> |