Przeglądaj źródła

变更令台账

ZaiZai 1 rok temu
rodzic
commit
c80a9ea506
3 zmienionych plików z 50 dodań i 7 usunięć
  1. 1 1
      package.json
  2. 45 2
      src/views/alter/ledgers/ledger.vue
  3. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -18,7 +18,7 @@
         "dayjs": "^1.11.10",
         "echarts": "^5.4.3",
         "element-plus": "2.4.0",
-        "hc-vue3-ui": "^2.0.9",
+        "hc-vue3-ui": "^2.1.0",
         "js-base64": "^3.7.5",
         "js-fast-way": "0.2.9",
         "js-md5": "^0.8.3",

+ 45 - 2
src/views/alter/ledgers/ledger.vue

@@ -9,6 +9,13 @@
                     <el-option label="工区3" value="3" />
                 </el-select>
             </div>
+            <div class="ml-3 w-40">
+                <el-select v-model="searchForm.key2" filterable block placeholder="按变更金额过滤">
+                    <el-option label="所有变更" value="1" />
+                    <el-option label="正变更" value="2" />
+                    <el-option label="负变更" value="3" />
+                </el-select>
+            </div>
         </template>
         <template #extra>
             <el-button hc-btn type="primary">
@@ -16,7 +23,21 @@
                 <span>导出</span>
             </el-button>
         </template>
-        1111
+        <div class="hc-table-ref-box">
+            <el-table class="w-full" :data="tableData" row-key="id" height="100%" hc>
+                <el-table-column type="expand" label="-">
+                    <template #default="props">
+                        <!-- props.row.key1 -->
+                        <hc-table :is-index="false" :column="tableColumn" :datas="tableData1" />
+                    </template>
+                </el-table-column>
+                <el-table-column type="index" label="序号" width="80" />
+                <el-table-column prop="key1" label="变更令编号" />
+                <el-table-column prop="key2" label="名称" />
+                <el-table-column prop="key3" label="变更批复日期" />
+                <el-table-column prop="key4" label="增减金额" />
+            </el-table>
+        </div>
     </hc-card>
 </template>
 
@@ -44,5 +65,27 @@ const tabChange = (item) => {
     console.log(item)
 }
 
-const searchForm = ref({})
+const searchForm = ref({
+    key2: '1',
+})
+
+const tableData = ref([
+    { key1: '1111' },
+])
+const tableColumn = ref([
+    { 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: '金额增减' },
+])
+const tableData1 = ref([
+    { key1: '1111' },
+])
 </script>

+ 4 - 4
yarn.lock

@@ -1572,10 +1572,10 @@ has-flag@^4.0.0:
   resolved "http://47.110.251.215:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^2.0.9:
-  version "2.0.9"
-  resolved "http://47.110.251.215:9000/hc-vue3-ui/-/hc-vue3-ui-2.0.9.tgz#033e5741c5207fcbf4ec6647cbb43eb9fd5de3ee"
-  integrity sha512-zefjcoUk/eWVMoWtjpCRKJXeK/DiHZjan7hT86EiZUDHzINk7IOGcGcpEIrZoFLzqIwlmAbwNU6OTVEW17Cwyw==
+hc-vue3-ui@^2.1.0:
+  version "2.1.0"
+  resolved "http://47.110.251.215:9000/hc-vue3-ui/-/hc-vue3-ui-2.1.0.tgz#07097dde3317201f9ea6f20e148a43397f7cd4a0"
+  integrity sha512-fP2Zi/+GFRCaMYH95CbAMn9i0Hz+gNdvpp7FFMd1xN6am/SxxN7A9MxkZL12OurYafajVMzHR+dOLlMN3WMeXQ==
   dependencies:
     axios "^1.5.0"
     dayjs "^1.11.10"