diff --git a/api/hj.js b/api/hj.js index 69855fc..ca0c7e6 100644 --- a/api/hj.js +++ b/api/hj.js @@ -150,11 +150,18 @@ export const reqMaterialInfoByMaterialCode = (materialCode)=>get(`BaseInfo/GetMa * @param {String} WeldJointId */ export const reqPreWeldJointByWeldJointId = (WeldJointId)=>get(`PreWeldInspection/getPreWeldJointByWeldJointId?WeldJointId=${WeldJointId}`) + /** - * 保存焊前基础信息(材料编码及炉批号校验、材料数量校验) + * 获取下料检查记录 + * @param {String} weldJointId + */ +export const reqCuttingCheckByWeldJointId = (weldJointId)=>get(`/PreWeldCuttingCheck/GetRecordsByWeldJointId?weldJointId=${weldJointId}`) + +/** + * 保存下料检查记录 * @param {Object} data */ -export const reqSaveCuttingCheck = (data)=> post(`PreWeldInspection/SaveCuttingCheck`, data) +export const reqSaveCuttingCheck = (data)=> post(`/PreWeldCuttingCheck/SaveRecord`, data) /** * 获取坡口类型列表 diff --git a/components/nbd-anti-record.vue b/components/nbd-anti-record.vue deleted file mode 100644 index 30393e0..0000000 --- a/components/nbd-anti-record.vue +++ /dev/null @@ -1,444 +0,0 @@ - - - - - diff --git a/components/nbd-record-card.vue b/components/nbd-record-card.vue new file mode 100644 index 0000000..de2b9b8 --- /dev/null +++ b/components/nbd-record-card.vue @@ -0,0 +1,362 @@ + + + + + diff --git a/scanpages/hj/do_anti_rust.vue b/scanpages/hj/do_anti_rust.vue index 5998f32..2efd0cd 100644 --- a/scanpages/hj/do_anti_rust.vue +++ b/scanpages/hj/do_anti_rust.vue @@ -162,7 +162,9 @@ - + + + @@ -179,7 +181,25 @@ import { onLoad } from '@dcloudio/uni-app' import { storeToRefs } from 'pinia' import { watch, nextTick } from 'vue' import { useUserStore } from '@/store' -import { reqMaterialInfoByMaterialCode, reqPaintCodeList, reqSaveAntiCorrosionCheck , reqGetAntiCorrosionCheck } from '@/api/hj.js' +import { reqMaterialInfoByMaterialCode, reqPaintCodeList, reqSaveAntiCorrosionCheck, reqGetAntiCorrosionCheck } from '@/api/hj.js' + +// 防腐记录字段 +const antiFields = [ + { label: '防腐等级', key: 'AnticorrosionLevel' }, + { label: '中间漆', key: 'IntermediatePaint' }, + { label: '面漆', key: 'Topcoat' }, + { label: '漆膜厚度', key: 'FilmThickness' }, + { label: '喷砂情况', key: 'SandBlasting' }, + { label: '除锈喷砂情况', key: 'RustSandBlasting' }, + { label: '检查人', key: 'CheckPersonName' }, + { label: '检查时间', key: 'CheckTime' }, + { label: '检查结果', key: 'CheckResult', type: 'tag', tagMatch: '合格' }, + { label: '不合格原因', key: 'UnqualifiedReason', showWhen: { key: 'CheckResult', notEqual: '合格' } }, + { label: '整改要求', key: 'RectifyRequirement', showWhen: { key: 'CheckResult', notEqual: '合格' } }, + { label: '照片', key: 'AttachUrl1', type: 'photo', cols: 4 }, +] + +const antiList = ref([]) const userStore = useUserStore() const { userInfo, currentProject } = storeToRefs(userStore) @@ -265,12 +285,13 @@ const loadData = async (id) => { form.value = res.data } if (res1.code === 1 && res1.data) { + antiList.value = res1.data let antiData = res1.data - if(antiData&&antiData.length>0){ + if (antiData && antiData.length > 0) { antiForm.value = { ...antiData[0], CheckResult: '合格', - UnqualifiedReason: '', + UnqualifiedReason: '', RectifyRequirement: '', Remark: '' } @@ -284,6 +305,7 @@ const loadData = async (id) => { } } +// 提交 const handleSubmit = async () => { if (!antiForm.value.PaintId) { uni.showToast({ title: '请选择防腐等级', icon: 'none' }) @@ -480,6 +502,4 @@ $shadow-md: 0 2rpx 12rpx rgba(0, 0, 0, 0.04), 0 8rpx 24rpx rgba(0, 0, 0, 0.06); opacity: 1; } } - - diff --git a/scanpages/hj/make_right.vue b/scanpages/hj/make_right.vue index 3e6317c..9deb433 100644 --- a/scanpages/hj/make_right.vue +++ b/scanpages/hj/make_right.vue @@ -2,203 +2,281 @@ - {{ form.WeldJointCode || '焊口编码' }} + {{ info.WeldJointCode || '--' }} 管线编码 - {{ form.PipelineCode || '--' }} + {{ info.PipelineCode || '--' }} - 项目编号 - {{ form.ProjectName || form.ProjectId || '--' }} + 项目名称 + {{ info.ProjectName || info.ProjectId || '--' }} - + - 坡口类型 + 组对填报 - - *坡口类型名称 + + + 坡口类型名称 - - {{ form.GrooveTypeName || '请选择坡口类型' }} + + {{ makeRightForm.GrooveTypeName || '请选择坡口类型' }} + 坡口类型编码 - {{ form.GrooveTypeCode || '--' }} + + + + 坡口加工类型 - + - - - - - - - - 坡口参数 - - + 坡口角度 - - ° + + 组对间隙 - - mm + + 错边量 - - mm + + + + + + 焊缝余高 + + + + + + + 焊缝高度 + + + + + + + 焊缝宽度 + + + + + + + 表面缺陷 + + - + - 备注 + 检查信息 + -