| | |
| | | }, |
| | | readOnly: { |
| | | handler(newVal) { |
| | | console.log('readOnly', newVal) |
| | | if (this.editor) { |
| | | this.editor.setReadOnly(newVal) |
| | | } |
| | |
| | | } |
| | | resolve(data); |
| | | }).catch((error) => { |
| | | console.log('error error', error) |
| | | // reject(error); |
| | | }) |
| | | }); |
| | |
| | | } |
| | | resolve(data); |
| | | }).catch((error) => { |
| | | console.log('error error', error) |
| | | // reject(error); |
| | | }) |
| | | }); |
| | |
| | | } |
| | | resolve(data); |
| | | }).catch((error) => { |
| | | console.log('error error', error) |
| | | // reject(error); |
| | | }) |
| | | }); |
| | |
| | | }); |
| | | } |
| | | |
| | | console.log(submitData,'修改的数据') |
| | | this.$emit("success", submitData); |
| | | this.handleClose(); |
| | | } else { |
| | |
| | | } |
| | | }, |
| | | handleImageSuccess(res, file, fileList) { |
| | | console.log('res, file, fileList',res, file, fileList) |
| | | const url = res.msg; |
| | | file.url = getFullUrl(url); |
| | | const imageHeader = this.headerList.find(h => h.type === 'image'); |
| | |
| | | const processedData = { ...formData }; |
| | | |
| | | // 调试输出 |
| | | console.log('添加/编辑行数据:', processedData, 'isEdit', isEdit); |
| | | |
| | | if (isEdit) { |
| | | // Vue无法检测到对象或数组深层属性的变化,使用Vue.set来确保响应式 |
| | | this.$set( |
| | |
| | | updateTime: new Date().toLocaleString() |
| | | }); |
| | | } |
| | | console.log('this.components', this.components); |
| | | |
| | | // 手动触发组件更新 |
| | | this.$forceUpdate(); |
| | |
| | | this.form.endTime=this.form.date[1] |
| | | } |
| | | getDataList({ ...this.form }).then(res => { |
| | | console.log('/////////////', res); |
| | | this.tableData = res.data.records || [] |
| | | this.total = res.data.total || 0 |
| | | if (this.selectedData && this.selectedData.id) { |
| | |
| | | this.handleSearch() |
| | | }, |
| | | handleSearch() { |
| | | console.log('shuju',this.form); |
| | | |
| | | this.open() |
| | | }, |
| | |
| | | }, |
| | | |
| | | mounted() { |
| | | console.log( |
| | | "JSON.parse(sessionStorage.getItem(", |
| | | JSON.parse(sessionStorage.getItem("userInfo")) |
| | | ); |
| | | this.form.developPerson = JSON.parse( |
| | | sessionStorage.getItem("userInfo") |
| | | ).nickName; |
| | |
| | | status: -1, // 草稿箱状态 |
| | | commitPersonId: JSON.parse(sessionStorage.getItem("userInfo")).userId, |
| | | }; |
| | | console.log("qaReportFiles qaReportFiles", this.form.qaReportFiles); |
| | | // if (this.form.qaReportFiles && this.form.qaReportFiles.length > 0) { |
| | | // // const prefix = apiConfig.showImgUrl; |
| | | // console.log('0000000000000000') |
| | | // this.form = { |
| | | // ...this.form, |
| | | // qaReportFiles: this.form.qaReportFiles.map((file) => { |
| | | // if (file.fileUrl && file.fileUrl.startsWith(prefix)) { |
| | | // file.fileUrl = file.fileUrl.substring(prefix.length) |
| | | // } |
| | | // console.log('1111111111111', file) |
| | | // return file; |
| | | // }), |
| | | // }; |
| | | // } |
| | | console.log("data", data); |
| | | if (valid) { |
| | | this.loading = true; |
| | | if (this.$route.query.id) { |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log(); |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | }, |
| | | handleDelConfirm() { |
| | | // 调用删除API |
| | | console.log('1222222222222') |
| | | deleteById({ id: this.rowId }).then(res => { |
| | | if (res) { |
| | | this.$message.success('删除成功'); |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-qa-produce-report/auditReport', { ...data }) |
| | | } |
| | | |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log(); |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-qa-produce-report/auditReport', { ...data }) |
| | | } |
| | | |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log('this.$route.query.itemId', this.$route.query) |
| | | |
| | | if (this.$route.query.id) { |
| | | this.getDetail() |
| | | } |
| | |
| | | |
| | | this.loading = true |
| | | if (this.$route.query.id) { |
| | | console.log('data updateDetail', data) |
| | | updateDetail({ ...data, id: this.$route.query.id }).then(res => { |
| | | console.log('res',res) |
| | | if (res.code === 200) { |
| | | this.$message.success('修改成功') |
| | | this.back() |
| | |
| | | this.loading = false |
| | | }) |
| | | } else { |
| | | console.log('data addDetail', data) |
| | | addDetail(data).then(res => { |
| | | console.log('res',res) |
| | | if (res.code === 200) { |
| | | this.$message.success('发布成功') |
| | | this.back() |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | }, |
| | | async handleSearch() { |
| | | try { |
| | | console.log('111111111') |
| | | // this.loading = true; |
| | | await this.$refs.searchForm.validate(); |
| | | this.queryForm.pageNum = 1; |
| | |
| | | |
| | | //修改QA检测项管理状态 |
| | | export function commitEvaluate(data) { |
| | | console.log(data) |
| | | return axios.put(`/open/t-qa-test-item/commitEvaluate?id=${data.id}`) |
| | | } |
| | | |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-qa-produce-report/auditReport', { ...data }) |
| | | } |
| | | |
| | |
| | | |
| | | // 检查编辑器内容是否为空 |
| | | const emptyFields = []; |
| | | console.log("editorContents", editorContents); |
| | | |
| | | // 判断内容是否为空(排除<p></p>) |
| | | const isEmptyContent = (content) => { |
| | | return ( |
| | |
| | | if (this.id) { |
| | | formData.id = this.id; |
| | | } |
| | | |
| | | console.log("请求参数:", { |
| | | formData, |
| | | }); |
| | | |
| | | request(formData) |
| | | .then((res) => { |
| | | console.log("接口返回:", res); |
| | | if (res.code === 200) { |
| | | const successMsg = |
| | | type === "draft" |
| | |
| | | // 获取详情 |
| | | getDetail() { |
| | | if (this.id) { |
| | | console.log("获取详情参数:", { id: this.id }); |
| | | getDetailById({ id: this.id }) |
| | | .then((res) => { |
| | | console.log("详情接口返回:", res); |
| | | if (res) { |
| | | const data = res; |
| | | // 设置表单数据 |
| | |
| | | watch: { |
| | | visible: { |
| | | handler(val) { |
| | | console.log("visible", val, "22", this.data); |
| | | if (val && this.data && this.data.id) { |
| | | this.getDetail(this.data.id); |
| | | } |
| | |
| | | methods: { |
| | | // 获取详情 |
| | | getDetail(id) { |
| | | console.log("获取详情参数:", { id }); |
| | | getDetailById({ id }) |
| | | .then((res) => { |
| | | console.log("获取详情:", res); |
| | | if (res) { |
| | | this.form = { ...res, processData: [] }; |
| | | // 组装流程数据 |
| | |
| | | auditStatus: this.status === "1" ? 2 : 3, // 2-已通过,3-已驳回 |
| | | auditRemark: this.remark, |
| | | }; |
| | | console.log('审批请求参数:', params); |
| | | audit(params) |
| | | .then((res) => { |
| | | console.log('审批返回结果:', res); |
| | | if (res.code === 200) { |
| | | this.$message.success("审批成功"); |
| | | this.$emit("update:visible", false); |
| | |
| | | mounted() { }, |
| | | methods: { |
| | | setSelectedScheduling(data) { |
| | | console.log('data', data) |
| | | if (!data || data.length === 0) return; |
| | | const selectedData = data[0]; // 获取选中的第一条数据 |
| | | this.selectedScheduling = selectedData; |
| | |
| | | } |
| | | |
| | | // 打印草稿参数 |
| | | console.log('保存草稿参数:', JSON.stringify(draftData, null, 2)) |
| | | |
| | | // 根据是否有 id 决定调用新增还是更新接口 |
| | | if (this.formData.id) { |
| | | draftData.id = this.formData.id |
| | | console.log('调用更新草稿接口,参数:', JSON.stringify(draftData, null, 2)) |
| | | await update(draftData) |
| | | this.$message.success('更新草稿成功') |
| | | } else { |
| | | console.log('调用新增草稿接口,参数:', JSON.stringify(draftData, null, 2)) |
| | | await add(draftData) |
| | | this.$message.success('保存草稿成功') |
| | | } |
| | |
| | | status: this.getStatusText(res.status) // 状态 |
| | | |
| | | }] |
| | | // this.confirmFormData = { |
| | | // planName: res.projectName || '', |
| | | // testCode: res.experimentCode || '', |
| | | // testName: res.experimentName || '', |
| | | // }; |
| | | console.log('confirmFormData confirmFormData ',this.confirmFormData) |
| | | |
| | | // 设置检测项数据 |
| | | this.testItems = res.testMethodConfirmSheetTerms.map(item => ({ |
| | |
| | | ...this.form |
| | | }; |
| | | getDispatchList(params).then(res => { |
| | | console.log('222222222222',res) |
| | | if (res) { |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | |
| | | this.getTableData(); |
| | | }, |
| | | changeSelectedRows(val) { |
| | | console.log('val',val) |
| | | this.selectedRows = val; |
| | | }, |
| | | handleCancel() { |
| | |
| | | try { |
| | | this.loading = true; |
| | | const res = await getDetail({ id: this.id }); |
| | | console.log('res', res) |
| | | if (res) { |
| | | this.formData = { |
| | | ...res, |
| | |
| | | })), |
| | | ], |
| | | }; |
| | | |
| | | // TODO: 调用接口提交数据 |
| | | console.log("提交数据:", submitData); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | handleGroupSubmit(form) { |
| | | console.log("11111111", form, "2222222", this.groupTableData); |
| | | const index = this.groupTableData.findIndex( |
| | | (item) => item.id === form.id |
| | | ); |
| | |
| | | this.$refs.form.validate((valid) => { |
| | | if (valid) { |
| | | const eventName = "submit"; |
| | | console.log('this.form',this.form) |
| | | this.$emit(eventName, {...this.form}); |
| | | this.handleClose(); |
| | | } |
| | |
| | | dispatchId: this.data.id, // 传递当前调度id |
| | | confirmSign: this.imgSrc, // 签名图片 |
| | | }; |
| | | console.log('params',params) |
| | | sign(params).then(res => { |
| | | if (res && res.code === 200) { |
| | | this.$message.success('签字成功'); |
| | |
| | | status: this.currentType == 'draft' ? '-1' : this.form.status |
| | | }; |
| | | getDispatchList(params).then(res => { |
| | | console.log('111111111111',res) |
| | | if (res.code==200) { |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | |
| | | |
| | | if (this.currentOperationType == 'submit') { |
| | | commit({id:this.currentOperationRow.id}).then(res => { |
| | | console.log('2222222',res) |
| | | if (res.code == 200) { |
| | | this.$message.success('提交成功!'); |
| | | this.changeStatus = false; |
| | |
| | | } |
| | | |
| | | const { createTime, ...requestParams } = this.form; |
| | | console.log('requestParams',requestParams) |
| | | getList(requestParams).then(res => { |
| | | if (res.code == 200) { |
| | | this.tableData = res.data.records || []; |
| | |
| | | }, |
| | | methods: { |
| | | setFormData(data) { |
| | | console.log('data',data) |
| | | |
| | | // 设置基础表单数据 |
| | | this.form.dataCode = data.dataCode; |
| | | this.form.dataTitle = data.dataTitle; |
| | |
| | | resultText: item.resultText || '' |
| | | })) |
| | | }; |
| | | |
| | | console.log('提交数据:', submitData); |
| | | |
| | | // 调用更新接口 |
| | | const res = await update(submitData); |
| | | if (res.code === 200) { |
| | |
| | | startTime: this.form.startTime, |
| | | endTime: this.form.endTime |
| | | }; |
| | | console.log('params',params) |
| | | |
| | | getList(params).then(res => { |
| | | if (res.code == 200) { |
| | | this.tableData = res.data.records || []; |
| | |
| | | ...this.form |
| | | }; |
| | | getDispatchList(params).then(res => { |
| | | console.log('222222222222',res) |
| | | if (res.code==200) { |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | |
| | | this.getTableData(); |
| | | }, |
| | | changeSelectedRows(val) { |
| | | console.log('val',val) |
| | | this.selectedRows = val; |
| | | }, |
| | | handleCancel() { |
| | |
| | | this.signatureDialogVisible = true; |
| | | }, |
| | | handleSignatureConfirm(imageData) { |
| | | console.log("imageData imageData", imageData); |
| | | this.signatureDialogVisible = false; |
| | | this.imgSrc = imageData; |
| | | }, |
| | |
| | | const params = { |
| | | ...this.form |
| | | }; |
| | | console.log('params',params) |
| | | getDispatchList(params).then(res => { |
| | | console.log('222222222222',res) |
| | | if (res.code==200) { |
| | | this.tableData = res.data.records || []; |
| | | this.total = res.data.total || 0; |
| | |
| | | this.getTableData(); |
| | | }, |
| | | changeSelectedRows(val) { |
| | | console.log('val',val) |
| | | this.selectedRows = val; |
| | | }, |
| | | handleCancel() { |
| | |
| | | auditRemark: this.remark, |
| | | status: this.status === '1' ? 3 : 4 // 1表示通过(status=3),2表示拒绝(status=4) |
| | | }; |
| | | console.log('params params',params) |
| | | const res = await audit(params); |
| | | console.log('res res',res) |
| | | if (res) { |
| | | this.$message.success('审批成功'); |
| | | this.handleClose(); |
| | | } |
| | | } catch (error) { |
| | | console.error('审批失败:', error); |
| | | this.$message.error('审批失败'); |
| | | } |
| | | }, |
| | |
| | | this.signatureDialogVisible = true; |
| | | }, |
| | | handleSignatureConfirm(imageData) { |
| | | console.log("imageData imageData", imageData); |
| | | this.signatureDialogVisible = false; |
| | | this.imgSrc = imageData; |
| | | }, |
| | |
| | | dispatchId: this.currentOperationRow.dispatchId, |
| | | status: 1 |
| | | }; |
| | | console.log('evaluateData',evaluateData) |
| | | |
| | | evaluateProcess(evaluateData).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('评定成功'); |
| | |
| | | this.showScheduling = false; |
| | | }, |
| | | handleSchedulingSubmit(data) { |
| | | console.log("data data", data); |
| | | this.tableData = data || []; |
| | | if (data && data.length > 0 && data[0].id) { |
| | | getEvaluateChemist({ dispatchId: data[0].id }) |
| | | .then((res) => { |
| | | console.log("获取参加人员列表:", res); |
| | | if (res) { |
| | | this.participantsData = res.map(item=>{ |
| | | return { |
| | |
| | | }) |
| | | .catch((err) => { |
| | | this.$message.error("获取参加人员列表失败"); |
| | | console.error("获取参加人员列表失败:", err); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | dispatchId:this.tableData[0]?.id, |
| | | status: 1 |
| | | }; |
| | | |
| | | |
| | | console.log("11111111111", evaluateTable.activeIndex); |
| | | console.log("2222222222222222", evaluateData); |
| | | add(evaluateData).then(res=>{ |
| | | if(res.code==200){ |
| | | this.$message.success("保存成功"); |
| | |
| | | dispatchId: this.currentOperationRow.dispatchId, |
| | | status: 1 |
| | | }; |
| | | console.log('evaluateData',evaluateData) |
| | | |
| | | evaluateProcess(evaluateData).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('评定成功'); |
| | |
| | | endTime: apiItem.endTime || "-", |
| | | }; |
| | | }); |
| | | console.log("craftList craftList", this.craftList); |
| | | this.tabData = this.craftList; |
| | | } else if (tabType == 2) { |
| | | // 化验师 |
| | |
| | | this.showScheduling = false; |
| | | }, |
| | | handleSchedulingSubmit(data) { |
| | | console.log("data data", data); |
| | | this.tableData = data || []; |
| | | if (data && data.length > 0 && data[0].id) { |
| | | getEvaluateChemist({ dispatchId: data[0].id }) |
| | | .then((res) => { |
| | | console.log("获取参加人员列表:", res); |
| | | if (res) { |
| | | this.participantsData = res.map((item) => { |
| | | return { |
| | |
| | | }, |
| | | async handleSearch() { |
| | | try { |
| | | console.log("111111111"); |
| | | // this.loading = true; |
| | | await this.$refs.searchForm.validate(); |
| | | this.queryForm.pageNum = 1; |
| | |
| | | // 初始化时检查窗口大小 |
| | | this.handleResize(); |
| | | getList().then(res=>{ |
| | | console.log('22222222',res) |
| | | this.list = res |
| | | |
| | | }) |
| | |
| | | }, |
| | | methods: { |
| | | onPanelChange(e) { |
| | | console.log("eeeeeee", e); |
| | | }, |
| | | // 添加处理窗口大小变化的方法 |
| | | handleResize() { |
| | |
| | | } |
| | | }, |
| | | toDetail(item){ |
| | | console.log('item item',item) |
| | | read({id:item.id}).then(res=>{ |
| | | let urlList=['/dataManagement/approvalPlan','/dataManagement/suspendExperiment','/dataManagement/testResultReport' |
| | | ,'/reportLibrary/feasibilityStudy','/deliveryAssessment/reportEvaluation','/dataManagement/confirmation-sheet', |
| | |
| | | roleType: member.roleType |
| | | })) |
| | | } |
| | | console.log('data data data',data) |
| | | addProject(data).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('添加成功') |
| | |
| | | return |
| | | } |
| | | } |
| | | console.log('data data data',data) |
| | | this.selectMemberData = data; |
| | | this.$refs.selectMember.close(); |
| | | }, |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | } |
| | | }, |
| | | submit() { |
| | | console.log(this.$refs.materialEditor.getContent()); |
| | | if (this.tableData.length == 0) { |
| | | this.$message.error('请选择项目组') |
| | | return |
| | |
| | | |
| | | mounted() { |
| | | this.roleType = JSON.parse(sessionStorage.getItem('userInfo'))?.roleType |
| | | console.log('adwqedwqeqwe', this.roleType); |
| | | |
| | | this.getList() |
| | | }, |
| | | |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-feasibility-study-report/auditReport', { ...data }) |
| | | } |
| | | |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | } |
| | | }, |
| | | submit() { |
| | | console.log(this.$refs.materialEditor.getContent()); |
| | | if (this.tableData.length == 0) { |
| | | this.$message.error('请选择项目组') |
| | | return |
| | |
| | | |
| | | mounted() { |
| | | this.roleType = JSON.parse(sessionStorage.getItem('userInfo'))?.roleType |
| | | console.log('adwqedwqeqwe', this.roleType); |
| | | |
| | | this.getList() |
| | | }, |
| | | |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-feasibility-study-report/auditReport', { ...data }) |
| | | } |
| | | |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | } |
| | | }, |
| | | submit() { |
| | | console.log(this.$refs.materialEditor.getContent()); |
| | | if (this.tableData.length == 0) { |
| | | this.$message.error('请选择项目组') |
| | | return |
| | |
| | | |
| | | // 查询列表 |
| | | export function getDataList(data) { |
| | | console.log('data11111111', data); |
| | | return axios.post('/api/t-project-approval-report/pageList', { ...data }) |
| | | } |
| | | |
| | | // 添加 |
| | | export function addData(data) { |
| | | console.log('data', data); |
| | | return axios.post('/api/t-project-approval-report/add', { ...data }) |
| | | } |
| | | |
| | |
| | | customUploadRequest({ |
| | | file, |
| | | onSuccess: (res) => { |
| | | console.log() |
| | | if (res.code === 200) { |
| | | const fileObj = { |
| | | id: new Date().getTime(), |
| | |
| | | } |
| | | }, |
| | | submit() { |
| | | console.log(this.$refs.materialEditor.getContent()); |
| | | if (this.tableData.length == 0) { |
| | | this.$message.error('请选择项目组') |
| | | return |
| | |
| | | |
| | | // 查询列表 |
| | | export function getDataList(data) { |
| | | console.log('data111111', data); |
| | | return axios.post('/api/t-feasibility-study-report/pageList', { ...data }) |
| | | } |
| | | |
| | | // 添加 |
| | | export function addData(data) { |
| | | console.log('data', data); |
| | | return axios.post('/api/t-feasibility-study-report/add', { ...data }) |
| | | } |
| | | |
| | |
| | | |
| | | //审核 |
| | | export function audit(data) { |
| | | console.log(data) |
| | | return axios.post('/api/t-feasibility-study-report/auditReport', { ...data }) |
| | | } |
| | | |