Переглянути джерело

工区开工预付款计量单

ZaiZai 1 рік тому
батько
коміт
ef97d69862
1 змінених файлів з 115 додано та 3 видалено
  1. 115 3
      src/views/periods/start-work/order.vue

+ 115 - 3
src/views/periods/start-work/order.vue

@@ -1,20 +1,77 @@
 <template>
     <hc-card>
         <template #header>
-            1
+            <div class="w-40">
+                <el-select v-model="searchForm.key1" filterable block placeholder="选择计量期" @change="searchKey1Click">
+                    <el-option v-for="item in key1Data" :key="item.id" :label="item.name" :value="item.id" />
+                </el-select>
+            </div>
         </template>
         <template #extra>
-            <el-button hc-btn type="primary">
+            <el-button hc-btn type="primary" @click="addModalClick">
                 <HcIcon name="add" />
                 <span>新增</span>
             </el-button>
+            <el-button hc-btn type="primary" @click="reportClick">
+                <HcIcon name="send-plane-2" />
+                <span>上报</span>
+            </el-button>
         </template>
-        1111
+        <div class="relative h-full flex">
+            <div class="flex-1">
+                <hc-card-item>
+                    <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check @selection-change="tableCheckChange">
+                        <template #action="{ row }">
+                            <el-link type="success" @click="rowEditClick(row)">修改</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="ml-3 w-[600px]">
+                <hc-card-item title="详情信息" scrollbar>
+                    <hc-info-table>
+                        <tr>
+                            <hc-info-table-td center is-title>计量期:</hc-info-table-td>
+                            <hc-info-table-td width="120px">第1期</hc-info-table-td>
+                            <hc-info-table-td center is-title>业务日期:</hc-info-table-td>
+                            <hc-info-table-td width="120px">2020-09-10</hc-info-table-td>
+                        </tr>
+                        <tr>
+                            <hc-info-table-td center is-title>计量金额:</hc-info-table-td>
+                            <hc-info-table-td width="120px">2775000</hc-info-table-td>
+                            <hc-info-table-td center is-title>开工预付款总额:</hc-info-table-td>
+                            <hc-info-table-td width="120px">-</hc-info-table-td>
+                        </tr>
+                        <tr>
+                            <hc-info-table-td center is-title>申请依据:</hc-info-table-td>
+                            <hc-info-table-td width="auto" colspan="3">-</hc-info-table-td>
+                        </tr>
+                    </hc-info-table>
+                    <div class="mt-5">附件列表</div>
+                    <div class="mt-3">
+                        <el-check-tag checked class="mr-2">文件名称1.jpg</el-check-tag>
+                        <el-check-tag checked class="mr-2">文件名称2.jpg</el-check-tag>
+                        <el-check-tag checked class="mr-2">文件名称3.jpg</el-check-tag>
+                        <el-check-tag checked class="mr-2">文件名称4.jpg</el-check-tag>
+                    </div>
+                </hc-card-item>
+            </div>
+        </div>
+        <!-- 新增/修改 -->
+        <HcDataModal v-model="isDataModal" />
+
+        <!-- 上报弹窗 -->
+        <hc-report-dialog v-model="isReport" />
     </hc-card>
 </template>
 
 <script setup>
 import { onMounted, ref } from 'vue'
+import HcDataModal from './components/order/dataModal.vue'
 
 defineOptions({
     name: 'PeriodsStartWorkOrder',
@@ -24,6 +81,61 @@ defineOptions({
 onMounted(() => {
 
 })
+
+//搜索表单
+const searchForm = ref({
+    key1: null, current: 1, size: 10, total: 0,
+})
+
+//计量期
+const key1Data = ref([
+    { id: 1, name: '计量期1' },
+    { id: 2, name: '计量期2' },
+])
+const searchKey1Click = () => {
+
+}
+
+//分页
+const pageChange = ({ current, size }) => {
+    searchForm.value.current = current
+    searchForm.value.size = size
+}
+
+//表格数据
+const tableLoading = ref(false)
+const tableColumn = ref([
+    { key: 'key1', name: '计量期' },
+    { key: 'key2', name: '业务日期' },
+    { key: 'key3', name: '计量金额' },
+    { key: 'key4', name: '审批状态' },
+    { key: 'action', name: '操作', width: 94 },
+])
+const tableData = ref([
+    { key1: '1111' },
+])
+
+//表格选择
+const tableCheckChange = () => {
+
+}
+
+//新增
+const isDataModal = ref(false)
+const addModalClick = () => {
+    isDataModal.value = true
+}
+
+//修改
+const rowEditClick = (row) => {
+    isDataModal.value = true
+}
+
+//是否上报
+const isReport = ref(false)
+const reportClick = () => {
+    isReport.value = true
+}
 </script>
 
 <style scoped lang="scss">