Explorar el Código

工区合同中期支付证书

ZaiZai hace 1 año
padre
commit
29108d86c6
Se han modificado 1 ficheros con 90 adiciones y 6 borrados
  1. 90 6
      src/views/periods/contract-admin/certificate.vue

+ 90 - 6
src/views/periods/contract-admin/certificate.vue

@@ -1,15 +1,51 @@
 <template>
-    <hc-card>
-        <template #header>
-            1
-        </template>
+    <hc-card title="合同中期支付证书">
         <template #extra>
-            <el-button hc-btn type="primary">
+            <el-button hc-btn type="primary" @click="addModalClick">
                 <HcIcon name="add" />
                 <span>新增</span>
             </el-button>
         </template>
-        1111
+        <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading">
+            <template #action="{ row }">
+                <el-link type="primary">查看报表</el-link>
+                <el-link type="success">修改</el-link>
+                <el-link type="danger">删除</el-link>
+                <el-link>重新计算</el-link>
+                <el-link type="warning">锁定</el-link>
+            </template>
+        </hc-table>
+        <template #action>
+            <hc-pages :pages="searchForm" @change="pageChange" />
+        </template>
+        <!-- 新增中期支付证书 -->
+        <hc-dialog is-to-body is-footer-center widths="30rem" :show="addModalShow" title="新增中期支付证书" @save="addModalSave" @close="addModalClose">
+            <el-form ref="formRef" class="p-2" label-position="top" :model="formModel" :rules="formRules" size="large">
+                <el-form-item label="计量期:" prop="key1">
+                    <el-select v-model="formModel.key1" block>
+                        <el-option label="第一期" :value="1" />
+                    </el-select>
+                </el-form-item>
+                <el-form-item label="证书编号:" prop="key2">
+                    <el-input v-model="formModel.key2" />
+                </el-form-item>
+                <el-form-item label="材料计量期:" prop="key3">
+                    <div class="form-item-div">
+                        <el-radio-group v-model="formModel.key3">
+                            <el-radio :label="3">第一期</el-radio>
+                            <el-radio :label="6">第二期</el-radio>
+                            <el-radio :label="9">第三期</el-radio>
+                        </el-radio-group>
+                    </div>
+                </el-form-item>
+                <el-form-item label="开工预付计量期:" prop="key4">
+                    <div class="form-item-div text-orange">无开工计量期可进行关联</div>
+                </el-form-item>
+                <el-form-item label="打印日期:">
+                    <div class="form-item-div" />
+                </el-form-item>
+            </el-form>
+        </hc-dialog>
     </hc-card>
 </template>
 
@@ -24,6 +60,54 @@ defineOptions({
 onMounted(() => {
 
 })
+
+//搜索表单
+const searchForm = ref({
+    key1: null, current: 1, size: 10, total: 0,
+})
+
+//分页
+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: 'key5', name: '打印日期' },
+    { key: 'key6', name: '重新计算时间' },
+    { key: 'key7', name: '支付金额' },
+    { key: 'action', name: '操作', width: 260 },
+])
+const tableData = ref([
+    { key1: '1111' },
+])
+
+//新增
+const addModalShow = ref(false)
+const addModalClick = () => {
+    addModalShow.value = true
+}
+
+//表单数据
+const formRef = ref(null)
+const formModel = ref({})
+const formRules = {}
+
+
+const addModalSave = () => {
+    addModalClose()
+}
+
+//关闭弹窗
+const addModalClose = () => {
+    addModalShow.value = false
+}
 </script>
 
 <style scoped lang="scss">