Commit 39326684 by zhangxw

平台合同管理修改

1 parent c6c89541
...@@ -100,33 +100,13 @@ export default class MasterContractPage extends PaginationComponent<Contract> { ...@@ -100,33 +100,13 @@ export default class MasterContractPage extends PaginationComponent<Contract> {
contractStatus: [null, {label: '签署状态', field: 'contractStatus', type: 'select', optionItems: signedOptions, allowClear: true, operator: Operator.eq}], contractStatus: [null, {label: '签署状态', field: 'contractStatus', type: 'select', optionItems: signedOptions, allowClear: true, operator: Operator.eq}],
signerName: [null, {label: '签署乙方姓名', field: 'signerName', operator: Operator.like}], signerName: [null, {label: '签署乙方姓名', field: 'signerName', operator: Operator.like}],
createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}], createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}],
signTime: [null, {label: '签署时间', field: 'signTime', operator: Operator.dateBetween, type: 'date-range', disabled: true}], signTime: [null, {label: '签署时间', field: 'signTime', operator: Operator.dateBetween, type: 'date-range'}],
}); });
this.pagination.setDefaultSort('createTime', Order.desc); this.pagination.setDefaultSort('createTime', Order.desc);
this.pageLoad(); this.pageLoad();
} }
/** /**
* 监听签署状态变化,控制签署时间字段的禁用状态
*/
@Watch('pagination.queryForm.contractStatus')
onSignedChange(newVal: boolean, oldVal: boolean): void {
// 获取签署时间字段的配置
const signTimeField = this.pagination.filterFields.find(field => field.fieldName === 'signTime');
if (signTimeField) {
// 当签署状态不为"已签署"时,禁用签署时间字段并清空值
signTimeField.disabled = newVal !== true;
if (newVal !== true && this.pagination.queryForm.signTime) {
this.pagination.queryForm.signTime = null;
}
}
}
i18n(text: string): string {
return this.$t(text);
}
/**
* 复制合同编号 * 复制合同编号
*/ */
copyContractCode(contractCode: string): void { copyContractCode(contractCode: string): void {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!