|
@@ -1,54 +1,102 @@
|
|
|
<template>
|
|
|
- <hc-card>
|
|
|
- <template #header>
|
|
|
- 111
|
|
|
- </template>
|
|
|
- <template #extra>
|
|
|
- 222
|
|
|
- </template>
|
|
|
- <div class="relative h-full flex">
|
|
|
- <div :id="`hc_tree_card_${uuid}`">
|
|
|
- <hc-card-item scrollbar>
|
|
|
- <hc-lazy-tree :h-props="treeProps" @load="treeLoadNode" />
|
|
|
- </hc-card-item>
|
|
|
- </div>
|
|
|
- <div :id="`hc_table_card_${uuid}`" class="flex-1">
|
|
|
- <hc-card-item>
|
|
|
- <template #header>
|
|
|
- <div class="font-400 text-orange">收方总金额:0元</div>
|
|
|
- </template>
|
|
|
- <template #extra>
|
|
|
- <el-button hc-btn color="#626aef">
|
|
|
- <HcIcon name="sort-desc" :line="false" />
|
|
|
- <span>按部位排序</span>
|
|
|
- </el-button>
|
|
|
- <el-button hc-btn color="#626aef">
|
|
|
- <HcIcon name="sort-desc" :line="false" />
|
|
|
- <span>按录入时间排序</span>
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check @selection-change="tableCheckChange">
|
|
|
- <template #action="{ row }">
|
|
|
- <el-link type="primary" @click="giveTaskModalClick(row)">下达</el-link>
|
|
|
- <el-link type="success">修改</el-link>
|
|
|
- <el-link type="danger">删除</el-link>
|
|
|
- </template>
|
|
|
- </hc-table>
|
|
|
- <template #action>
|
|
|
- <hc-pages :pages="searchForm" @change="pageChange" />
|
|
|
- </template>
|
|
|
- </hc-card-item>
|
|
|
- </div>
|
|
|
+ <div class="relative h-full flex">
|
|
|
+ <div :id="`hc_tree_card_${uuid}`">
|
|
|
+ <hc-new-card scrollbar>
|
|
|
+ <template #header>
|
|
|
+ <el-select v-model="searchForm.key1" filterable block placeholder="选择工区">
|
|
|
+ <el-option label="工区1" value="1" />
|
|
|
+ <el-option label="工区2" value="2" />
|
|
|
+ <el-option label="工区3" value="3" />
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ <hc-lazy-tree :h-props="treeProps" is-load-menu @load="treeLoadNode" @loadMenu="treeLoadMenu" @menuTap="treeMenuTap" />
|
|
|
+ </hc-new-card>
|
|
|
</div>
|
|
|
- </hc-card>
|
|
|
+ <div :id="`hc_table_card_${uuid}`" class="flex-1">
|
|
|
+ <hc-new-card scrollbar title="合同工程清单明细">
|
|
|
+ <template #extra>
|
|
|
+ <el-button hc-btn type="primary">增补清单</el-button>
|
|
|
+ <el-button hc-btn type="primary">导入</el-button>
|
|
|
+ <el-button hc-btn type="primary">导出</el-button>
|
|
|
+ </template>
|
|
|
+ <div class="relative">
|
|
|
+ <infoTable />
|
|
|
+ <HcTitle title="下级节点列表" />
|
|
|
+ <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }" />
|
|
|
+ </div>
|
|
|
+ </hc-new-card>
|
|
|
+ </div>
|
|
|
+ <!-- 节点数据 -->
|
|
|
+ <hc-new-dialog v-model="treeModalShow" widths="1100px" :title="treeModalTitle" @save="treeModalSave">
|
|
|
+ <el-form ref="formRef" class="p-4" label-position="left" label-width="auto" :model="formModel" :rules="formRules">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="清单编号:">
|
|
|
+ <el-input v-model="formModel.key1" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="清单名称:">
|
|
|
+ <el-input v-model="formModel.key2" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="单位:">
|
|
|
+ <el-input v-model="formModel.key3" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="清单节点:">
|
|
|
+ <el-select v-model="formModel.key4" block>
|
|
|
+ <el-option label="是" :value="1" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="中标单价:">
|
|
|
+ <el-input v-model="formModel.key5" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="合同数量:">
|
|
|
+ <el-input v-model="formModel.key6" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="章编号:">
|
|
|
+ <el-input v-model="formModel.key7" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="清单标识:">
|
|
|
+ <el-input v-model="formModel.key8" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="清单类型:">
|
|
|
+ <el-select v-model="formModel.key9" block>
|
|
|
+ <el-option label="普通清单" :value="1" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="备注:">
|
|
|
+ <el-input v-model="formModel.key10" :autosize="{ minRows: 4, maxRows: 8 }" type="textarea" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </hc-new-dialog>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { nextTick, onMounted, ref } from 'vue'
|
|
|
import { getRandom } from 'js-fast-way'
|
|
|
+import infoTable from './components/check-list/info-table.vue'
|
|
|
|
|
|
defineOptions({
|
|
|
- name: 'DebitPayAdminApply',
|
|
|
+ name: 'ProjectPeriodsBaseList',
|
|
|
})
|
|
|
|
|
|
const uuid = getRandom(4)
|
|
@@ -71,10 +119,7 @@ const setSplitRef = () => {
|
|
|
}
|
|
|
|
|
|
//搜索表单
|
|
|
-const searchForm = ref({
|
|
|
- key1: null, current: 1, size: 10, total: 0,
|
|
|
-})
|
|
|
-
|
|
|
+const searchForm = ref({})
|
|
|
|
|
|
//数据格式
|
|
|
const treeProps = {
|
|
@@ -99,33 +144,65 @@ const treeLoadNode = ({ level }, resolve) => {
|
|
|
}, 500)
|
|
|
}
|
|
|
|
|
|
-//分页
|
|
|
-const pageChange = ({ current, size }) => {
|
|
|
- searchForm.value.current = current
|
|
|
- searchForm.value.size = size
|
|
|
+//菜单
|
|
|
+const treeLoadMenu = ({ item, level }, resolve) => {
|
|
|
+ if (level === 1) {
|
|
|
+ return resolve([
|
|
|
+ { icon: 'lock', label: '锁定', key: 'lock' },
|
|
|
+ { icon: 'add', label: '新增', key: 'add' },
|
|
|
+ { icon: 'arrow-up-down-line', label: '排序', key: 'sort' },
|
|
|
+ ])
|
|
|
+ } else {
|
|
|
+ return resolve([
|
|
|
+ { icon: 'lock', label: '锁定', key: 'lock' },
|
|
|
+ { icon: 'add', label: '新增', key: 'add' },
|
|
|
+ { icon: 'pencil', label: '修改', key: 'edit' },
|
|
|
+ { icon: 'arrow-up-down-line', label: '排序', key: 'sort' },
|
|
|
+ { icon: 'close', label: '删除', key: 'del' },
|
|
|
+ ])
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const treeMenuTap = ({ key, node, data }) => {
|
|
|
+ if (key === 'add') {
|
|
|
+ treeModalTitle.value = '新增合同工程清单'
|
|
|
+ treeModalShow.value = true
|
|
|
+ }
|
|
|
+ if (key === 'edit') {
|
|
|
+ treeModalTitle.value = '修改合同工程清单'
|
|
|
+ treeModalShow.value = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//表格数据
|
|
|
const tableLoading = ref(false)
|
|
|
const tableColumn = ref([
|
|
|
- { key: 'key1', name: '收方单编号' },
|
|
|
- { key: 'key2', name: '收方期' },
|
|
|
- { key: 'key3', name: '工程划分部位' },
|
|
|
- { key: 'key4', name: '收方金额' },
|
|
|
- { key: 'key5', name: '业务日期' },
|
|
|
- { key: 'key6', name: '审核状态' },
|
|
|
- { key: 'action', name: '操作', width: 200, align: 'center' },
|
|
|
+ { 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: '是否增补' },
|
|
|
])
|
|
|
const tableData = ref([
|
|
|
{ key1: '1111' },
|
|
|
])
|
|
|
|
|
|
-//表格选择
|
|
|
-const tableCheckChange = () => {
|
|
|
+//弹窗
|
|
|
+const treeModalShow = ref(false)
|
|
|
+const treeModalTitle = ref('')
|
|
|
|
|
|
-}
|
|
|
-</script>
|
|
|
+//弹窗表单
|
|
|
+const formRef = ref(null)
|
|
|
+const formModel = ref({})
|
|
|
+const formRules = ref({})
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
+//弹窗保存
|
|
|
+const treeModalSave = () => {
|
|
|
|
|
|
-</style>
|
|
|
+}
|
|
|
+</script>
|