|
@@ -175,7 +175,8 @@
|
|
<HcTooltip keys="tentative_detect_test_annex">
|
|
<HcTooltip keys="tentative_detect_test_annex">
|
|
<el-link type="primary" @click="viewAttachmentModalClick(row)">附件</el-link>
|
|
<el-link type="primary" @click="viewAttachmentModalClick(row)">附件</el-link>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
- <HcTooltip keys="tentative_detect_test_info">
|
|
|
|
|
|
+ <el-link v-if="authBtnTabKey === '3'" type="primary" @click="relatedSearchClick(row)">关联查阅</el-link>
|
|
|
|
+ <HcTooltip v-else keys="tentative_detect_test_info">
|
|
<el-link type="primary" @click="samplingRecordModalClick(row)">样品信息</el-link>
|
|
<el-link type="primary" @click="samplingRecordModalClick(row)">样品信息</el-link>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
@@ -223,9 +224,49 @@
|
|
:loading="samplingTableLoading" is-new
|
|
:loading="samplingTableLoading" is-new
|
|
/>
|
|
/>
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 关联查阅 -->
|
|
|
|
+ <hc-dialog v-model="isRelatedSearch" :footer="false" is-table title="关联查阅" widths="80%" :padding="false" @close="relatedSearchModalClose">
|
|
|
|
+ <div class="hc-related-search-box relative mt-10px">
|
|
|
|
+ <hc-card-item title="样品信息">
|
|
|
|
+ <template #extra>
|
|
|
|
+ <el-button type="primary" size="small" @click="rowDispose">样品处理</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <hc-table :column="relatedColumn1" :datas="relatedData1" :is-index="false" />
|
|
|
|
+ </hc-card-item>
|
|
|
|
+ <hc-card-item title="委托单信息" class="mt-14px">
|
|
|
|
+ <hc-table :column="relatedColumn2" :datas="relatedData2" :is-index="false" />
|
|
|
|
+ </hc-card-item>
|
|
|
|
+ <hc-card-item title="设备采集信息" class="mt-14px">
|
|
|
|
+ <hc-table :column="relatedColumn3" :datas="relatedData3" :is-index="false" />
|
|
|
|
+ </hc-card-item>
|
|
|
|
+ </div>
|
|
|
|
+ </hc-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 样品处理 -->
|
|
|
|
+ <hc-new-dialog v-model="disposeModal" is-footer-center title="样品处理" widths="40rem" @close="disposeClose">
|
|
|
|
+ <el-form ref="formRef" :model="formModel" :rules="formRules" label-position="left" label-width="auto">
|
|
|
|
+ <el-form-item label="处理方式:" prop="key1">
|
|
|
|
+ <el-radio-group v-model="formModel.key1">
|
|
|
|
+ <el-radio :value="1">处理</el-radio>
|
|
|
|
+ <el-radio :value="2">留样</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item v-if="formModel.key1 === 1" label="处理原因:" prop="key2">
|
|
|
|
+ <el-input v-model="formModel.key2" type="textarea" :rows="5" resize="none" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item v-if="formModel.key1 === 2" label="留样时间:" prop="startTime">
|
|
|
|
+ <hc-date-picker :dates="betweenTime1" clearable @change="betweenTimeUpdate1" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <el-button @click="disposeClose">取消</el-button>
|
|
|
|
+ <el-button hc-btn type="primary" @click="disposeSave">确定</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </hc-new-dialog>
|
|
|
|
+
|
|
<!-- 批量上报审批 -->
|
|
<!-- 批量上报审批 -->
|
|
<HcReportModal
|
|
<HcReportModal
|
|
-
|
|
|
|
:classify-type="authBtnTabKey"
|
|
:classify-type="authBtnTabKey"
|
|
:addition="reportAddition" :contract-id="contractId" :ids="reportIds"
|
|
:addition="reportAddition" :contract-id="contractId" :ids="reportIds"
|
|
:project-id="projectId" :show="showReportModal" :task-name="reportTaskName"
|
|
:project-id="projectId" :show="showReportModal" :task-name="reportTaskName"
|
|
@@ -369,14 +410,21 @@ const authBtnTabKey = ref('1')
|
|
const authBtnTabdata = ref([
|
|
const authBtnTabdata = ref([
|
|
{ key: '1', name: '施工质检' },
|
|
{ key: '1', name: '施工质检' },
|
|
{ key: '2', name: '监理抽检' },
|
|
{ key: '2', name: '监理抽检' },
|
|
|
|
+ { key: '3', name: '业主抽检' },
|
|
])
|
|
])
|
|
const authBtnTabClick = (item) => {
|
|
const authBtnTabClick = (item) => {
|
|
- if (item.key !== authBtnTabKey.value) {
|
|
|
|
|
|
+ if (item.key !== authBtnTabKey.value && item.key < 3) {
|
|
authBtnTabKey.value = item.key
|
|
authBtnTabKey.value = item.key
|
|
searchForm.value.type = item.key
|
|
searchForm.value.type = item.key
|
|
searchForm.value.current = 1
|
|
searchForm.value.current = 1
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
|
|
+ if (item.key === '3') {
|
|
|
|
+ authBtnTabKey.value = item.key
|
|
|
|
+ searchForm.value.type = item.key
|
|
|
|
+ searchForm.value.current = 1
|
|
|
|
+ tableData.value = [{}]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//contractType, 1施工,2监理
|
|
//contractType, 1施工,2监理
|
|
const setContractType = (contractType) => {
|
|
const setContractType = (contractType) => {
|
|
@@ -922,6 +970,129 @@ const onmousedown = () => {
|
|
document.onmouseup = null
|
|
document.onmouseup = null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//关联查阅
|
|
|
|
+const isRelatedSearch = ref(false)
|
|
|
|
+const relatedSearchClick = (row) => {
|
|
|
|
+ isRelatedSearch.value = true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//样品信息
|
|
|
|
+const relatedColumn1 = [
|
|
|
|
+ { key: 'key1', name: '取样名称' },
|
|
|
|
+ { key: 'key2', name: '取样日期' },
|
|
|
|
+ { key: 'key3', name: '取样编号' },
|
|
|
|
+ { key: 'key4', name: '规格型号' },
|
|
|
|
+ { key: 'key5', name: '试样数量' },
|
|
|
|
+ { key: 'key6', name: '计算单位' },
|
|
|
|
+ { key: 'key7', name: '拟用部位' },
|
|
|
|
+ { key: 'key8', name: '代表数量' },
|
|
|
|
+ { key: 'key9', name: '取样人' },
|
|
|
|
+ { key: 'key10', name: '入库时间' },
|
|
|
|
+ { key: 'key11', name: '试验时间' },
|
|
|
|
+ { key: 'key12', name: '样品处理' },
|
|
|
|
+ { key: 'key13', name: '时间(或处理原因)' },
|
|
|
|
+]
|
|
|
|
+const relatedData1 = ref([])
|
|
|
|
+
|
|
|
|
+//委托单信息
|
|
|
|
+const relatedColumn2 = [
|
|
|
|
+ { key: 'key1', name: '委托单位' },
|
|
|
|
+ { key: 'key2', name: '委托单编号' },
|
|
|
|
+ { key: 'key3', name: '委托名称' },
|
|
|
|
+ { key: 'key4', name: '委托状态' },
|
|
|
|
+]
|
|
|
|
+const relatedData2 = ref([])
|
|
|
|
+
|
|
|
|
+//设备采集信息
|
|
|
|
+const relatedColumn3 = [
|
|
|
|
+ { key: 'key1', name: '工程部位' },
|
|
|
|
+ { key: 'key2', name: '设备名称' },
|
|
|
|
+ { key: 'key3', name: '设备采集编号' },
|
|
|
|
+ { key: 'key4', name: '试验日期' },
|
|
|
|
+ { key: 'key5', name: '样品编号' },
|
|
|
|
+ { key: 'key6', name: '试验类型' },
|
|
|
|
+ { key: 'key7', name: '承压面积(mm2)' },
|
|
|
|
+ { key: 'key8', name: '试件尺寸(mm)' },
|
|
|
|
+ { key: 'key9', name: '设计强度(MPa)' },
|
|
|
|
+ { key: 'key10', name: '龄期(d)' },
|
|
|
|
+ { key: 'key11', name: '荷载1(KN)' },
|
|
|
|
+ { key: 'key12', name: '荷载1(KN)' },
|
|
|
|
+ { key: 'key13', name: '荷载2(KN)' },
|
|
|
|
+ { key: 'key14', name: '荷载3(KN)' },
|
|
|
|
+ { key: 'key15', name: '荷载4(KN)' },
|
|
|
|
+ { key: 'key16', name: '荷载5(KN)' },
|
|
|
|
+ { key: 'key17', name: '荷载6(KN)' },
|
|
|
|
+ { key: 'key18', name: '其余荷载(KN)' },
|
|
|
|
+ { key: 'key19', name: '强度代表值(MPa)' },
|
|
|
|
+ {
|
|
|
|
+ name: '最大力总延伸(%)',
|
|
|
|
+ children: [
|
|
|
|
+ { key: 'key20', name: '1' },
|
|
|
|
+ { key: 'key21', name: '2' },
|
|
|
|
+ { key: 'key22', name: '3' },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ { key: 'key23', name: '试验结果是否合格', width: 100, align: 'center' },
|
|
|
|
+]
|
|
|
|
+const relatedData3 = ref([])
|
|
|
|
+
|
|
|
|
+//关闭关联查阅
|
|
|
|
+const relatedSearchModalClose = () => {
|
|
|
|
+ isRelatedSearch.value = false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//表单数据
|
|
|
|
+const formRef = ref(null)
|
|
|
|
+const formModel = ref({})
|
|
|
|
+const formRules = {
|
|
|
|
+ key1: {
|
|
|
|
+ required: true,
|
|
|
|
+ trigger: 'blur',
|
|
|
|
+ message: '请选择处理方式',
|
|
|
|
+ },
|
|
|
|
+ key2: {
|
|
|
|
+ required: true,
|
|
|
|
+ trigger: 'blur',
|
|
|
|
+ message: '请填写处理原因',
|
|
|
|
+ },
|
|
|
|
+ startTime: {
|
|
|
|
+ required: true,
|
|
|
|
+ trigger: 'blur',
|
|
|
|
+ message: '请选择留样时间',
|
|
|
|
+ },
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//样品处理
|
|
|
|
+const disposeModal = ref(false)
|
|
|
|
+const rowDispose = () => {
|
|
|
|
+ formModel.value = { key1: 1 }
|
|
|
|
+ disposeModal.value = true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//日期时间被选择
|
|
|
|
+const betweenTime1 = ref(null)
|
|
|
|
+const betweenTimeUpdate1 = ({ arr }) => {
|
|
|
|
+ betweenTime1.value = arr
|
|
|
|
+ if (arr.length > 0) {
|
|
|
|
+ formModel.value.startTime = arr[0]
|
|
|
|
+ formModel.value.endTime = arr[1]
|
|
|
|
+ } else {
|
|
|
|
+ formModel.value.startTime = ''
|
|
|
|
+ formModel.value.endTime = ''
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//确定提交
|
|
|
|
+const disposeSave = async () => {
|
|
|
|
+ disposeClose()
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//关闭弹窗
|
|
|
|
+const disposeClose = () => {
|
|
|
|
+ disposeModal.value = false
|
|
|
|
+ formModel.value = {}
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -955,3 +1126,17 @@ const onmousedown = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
+
|
|
|
|
+<style lang="scss">
|
|
|
|
+.hc-related-search-box .hc-card-item-box {
|
|
|
|
+ background: #f5f5f5;
|
|
|
|
+ .hc-card-item-header {
|
|
|
|
+ color: #101010;
|
|
|
|
+ padding-bottom: 14px;
|
|
|
|
+ border-bottom: 1px solid #d6d6d6;
|
|
|
|
+ }
|
|
|
|
+ .hc-card-item-header .item-header {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|