| | |
| | | }), |
| | | isChange: null |
| | | }); |
| | | |
| | | const gonggaoRules = reactive({ |
| | | interface FormInlineType { |
| | | // 项目标题 |
| | | projectName: string | null | undefined; |
| | | // 投标报名开始时间(通常为ISO日期字符串格式) |
| | | toubiaoStartDate: string | null | undefined; |
| | | // 投标报名结束时间 |
| | | toubiaoEndDate: string | null | undefined; |
| | | // 开标时间 |
| | | kaibiaoDate: string | null | undefined; |
| | | // 招标文件(可能是文件路径、ID或文件对象) |
| | | zhaobiaowenjian: string | null | undefined; |
| | | // 变更文件 |
| | | biangengwenjian: string | null | undefined; |
| | | // 附件(文本描述或路径) |
| | | fujian: string | null | undefined; |
| | | // 开标地点 |
| | | kaibiaodidian: string | null | undefined; |
| | | } |
| | | const gonggaoRules = reactive<FormRules<FormInlineType>>({ |
| | | projectName: [{ required: true, message: "请输入标题", trigger: "change" }], |
| | | toubiaoStartDate: [ |
| | | { required: true, message: "请选择投标报名开始时间", trigger: "change" } |
| | |
| | | let res = await getUploadToken(); |
| | | if (res.code == 200) { |
| | | let keyVal = generateTimestampWithRandom(res.result.DirPath, file.name); |
| | | let upUrl = res.result.url; |
| | | let upPath = res.result.DirPath; |
| | | let formData = new FormData(); |
| | | formData.append("policy", res.result.policy); |
| | | formData.append( |
| | |
| | | formData.append("key", keyVal); // 文件名 |
| | | formData.append("file", file.raw); // file 必须为最后一个表单域 |
| | | uploadFileAli(formData, res.result.url).then(res => { |
| | | let path = res.result.url + "/" + res.result.DirPath + keyVal; |
| | | console.log(path); |
| | | |
| | | let path = `${upUrl}"/"${upPath}${upPath};`; |
| | | if (props.isChange) { |
| | | newFormInline.value.biangengwenjian = path; |
| | | } else { |