|
|
|
|
@ -205,12 +205,10 @@ import { listContractInfo, delContractInfo } from '@/api/oa/erp/contractInfo';
|
|
|
|
|
import { ContractInfoVO, ContractInfoQuery } from '@/api/oa/erp/contractInfo/types';
|
|
|
|
|
import { updateContractInfo } from '@/api/oa/erp/contractInfo';
|
|
|
|
|
import download from '@/plugins/download';
|
|
|
|
|
import { startWorkFlow } from '@/api/workflow/task';
|
|
|
|
|
import ApprovalRecord from '@/components/Process/approvalRecord.vue';
|
|
|
|
|
import SubmitVerify from '@/components/Process/submitVerify.vue';
|
|
|
|
|
import { StartProcessBo } from '@/api/workflow/workflowCommon/types';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const { contract_category, business_direction, active_flag, contract_flag, contract_type, contract_status } = toRefs<any>(
|
|
|
|
|
proxy?.useDict('contract_category', 'business_direction', 'active_flag', 'contract_flag', 'contract_type', 'contract_status')
|
|
|
|
|
);
|
|
|
|
|
@ -224,11 +222,6 @@ const multiple = ref(true);
|
|
|
|
|
const total = ref(0);
|
|
|
|
|
|
|
|
|
|
const queryFormRef = ref<ElFormInstance>();
|
|
|
|
|
const approvalRecordRef = ref<InstanceType<typeof ApprovalRecord>>();
|
|
|
|
|
const submitVerifyRef = ref<InstanceType<typeof SubmitVerify>>();
|
|
|
|
|
|
|
|
|
|
// 任务变量
|
|
|
|
|
const taskVariables = ref<Record<string, any>>({});
|
|
|
|
|
|
|
|
|
|
// 列显隐信息
|
|
|
|
|
const columns = ref<FieldOption[]>([
|
|
|
|
|
@ -340,8 +333,8 @@ const handleSelectionChange = (selection: ContractInfoVO[]) => {
|
|
|
|
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
const handleAdd = () => {
|
|
|
|
|
proxy.$tab.closePage(proxy.$route);
|
|
|
|
|
proxy.$router.push({
|
|
|
|
|
proxy.$tab.closePage(route);
|
|
|
|
|
router.push({
|
|
|
|
|
path: '/contract/contractInfo/edit',
|
|
|
|
|
query: {}
|
|
|
|
|
});
|
|
|
|
|
@ -350,7 +343,7 @@ const handleAdd = () => {
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
const handleUpdate = (row?: ContractInfoVO) => {
|
|
|
|
|
const _contractId = row?.contractId || ids.value[0];
|
|
|
|
|
proxy.$router.push({
|
|
|
|
|
router.push({
|
|
|
|
|
path: '/contract/contractInfo/edit',
|
|
|
|
|
query: {
|
|
|
|
|
id: _contractId
|
|
|
|
|
|