|
@@ -96,7 +96,7 @@
|
|
|
</hc-card-item>
|
|
|
<!-- 变更申请部位 -->
|
|
|
<hc-card-item title="变更申请部位" class="mt-3">
|
|
|
- <hc-table :column="tableColumn" :datas="tableData" is-new :index-style="{ width: 60 }">
|
|
|
+ <hc-table :column="tableColumn" :datas="tableData" is-new is-current-row :index-style="{ width: 60 }" @row-click="rowChangeNodeClick">
|
|
|
<template #contractPicture="{ row }">
|
|
|
<hc-table-input v-model="row.contractPicture" />
|
|
|
</template>
|
|
@@ -111,7 +111,7 @@
|
|
|
<el-link type="primary" @click="changeShowClick">添加</el-link>
|
|
|
</template>
|
|
|
<div class="hc-table-ref-box no-border">
|
|
|
- <el-table class="w-full" :data="tableData" row-key="id" height="100%" highlight-current-row border>
|
|
|
+ <el-table class="w-full" :data="tableData1" row-key="id" height="100%" highlight-current-row border>
|
|
|
<el-table-column type="index" label="序号" />
|
|
|
<el-table-column prop="key1" label="清单编号" />
|
|
|
<el-table-column prop="key2" label="清单名称" />
|
|
@@ -322,24 +322,26 @@ const delChangeNode = (index) => {
|
|
|
tableData.value.splice(index, 1)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-const addModalSave = () => {
|
|
|
- emit('finish')
|
|
|
- addModalClose()
|
|
|
-}
|
|
|
-
|
|
|
-//关闭弹窗
|
|
|
-const addModalClose = () => {
|
|
|
- isShow.value = false
|
|
|
- emit('close')
|
|
|
+//变更申请部位 行被点击
|
|
|
+const changeNodeItem = ref({})
|
|
|
+const rowChangeNodeClick = ({ row }) => {
|
|
|
+ changeNodeItem.value = row
|
|
|
}
|
|
|
|
|
|
+//变更申请清单
|
|
|
+const tableData1 = ref([])
|
|
|
//变更清单的添加弹窗
|
|
|
const isChangeShow = ref(false)
|
|
|
const changeShowClick = () => {
|
|
|
+ const row = changeNodeItem.value
|
|
|
+ if (isNullES(row.id)) {
|
|
|
+ window.$message.warning('请先选择变更申请部位')
|
|
|
+ return false
|
|
|
+ }
|
|
|
isChangeShow.value = true
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//引用预变更的弹窗
|
|
|
const isChangeQuoteShow = ref(false)
|
|
|
const quoteClick = () => {
|
|
@@ -356,4 +358,16 @@ const tableColumn2 = ref([
|
|
|
const tableData2 = ref([
|
|
|
{ key1: '工程设计变更申请单', key2: '是', key3: '文件名称' },
|
|
|
])
|
|
|
+
|
|
|
+
|
|
|
+const addModalSave = () => {
|
|
|
+ emit('finish')
|
|
|
+ addModalClose()
|
|
|
+}
|
|
|
+
|
|
|
+//关闭弹窗
|
|
|
+const addModalClose = () => {
|
|
|
+ isShow.value = false
|
|
|
+ emit('close')
|
|
|
+}
|
|
|
</script>
|