瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
d58f903f5e
共有 1 個文件被更改,包括 70 次插入23 次删除
  1. 70 23
      src/views/setting/payRecords/index.vue

+ 70 - 23
src/views/setting/payRecords/index.vue

@@ -1,9 +1,31 @@
 <template>
-	<template-page ref="pageRef" :get-list="getList" :table-attributes="tableAttributes" :table-events="tableEvents"
-	  :options-evens-group="optionsEvensGroup" :moreParameters="moreParameters" :column-parsing="columnParsing"
-	  >
-	  <!-- :exportList="exportList" -->
-	</template-page>
+  <template-page
+    ref="pageRef"
+    :get-list="getList"
+    :table-attributes="tableAttributes"
+    :table-events="tableEvents"
+    :options-evens-group="optionsEvensGroup"
+    :moreParameters="moreParameters"
+    :column-parsing="columnParsing"
+    :operation="operation()"
+  >
+    <div class="cartographer_big">
+      <el-dialog title="购买详情" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
+        <zj-page-container v-if="formBool">
+          <zj-page-fill class="neibuview">
+            <zj-form-container ref="formRef" :form-data="formData" :form-attributes="{ size: 'mini' }">
+              <zj-form-module title="基本信息" label-width="120px" :form-data="formData" :form-items="formItems" />
+            </zj-form-container>
+          </zj-page-fill>
+          <div>
+            <div style="box-sizing: border-box; padding: 10px; text-align: right">
+              <el-button size="mini" @click="handleClose">取 消</el-button>
+            </div>
+          </div>
+        </zj-page-container>
+      </el-dialog>
+    </div>
+  </template-page>
 </template>
 
 <script>
@@ -11,10 +33,11 @@ import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import ImageUpload from '@/components/file-upload'
 import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
-import { listPageV2,pageExport } from "@/api/payRecords";
+import { listPageV2, pageExport } from '@/api/payRecords'
+import operation_mixin from '@/components/template/operation_mixin.js'
 export default {
   components: { TemplatePage, ImageUpload },
-  mixins: [import_mixin],
+  mixins: [import_mixin, operation_mixin],
   data() {
     return {
       // 事件组合
@@ -30,11 +53,17 @@ export default {
       },
       // 勾选选中行
       recordSelected: [],
-      /** 表单变量 */
-      formDialogType: 0,
-      formDialogTitles: ["新增","编辑", "详情"],
-      formDialog: false,
-	  appraise_status: ''
+      // 表单弹窗
+      formBool: false,
+      formData: {
+        dictCode: '',
+        dictType: '',
+        dictValue: '',
+        items: [],
+        price: 0,
+        remark: '',
+        status: true
+      }
     }
   },
   computed: {
@@ -43,31 +72,49 @@ export default {
       return []
     },
     formItems() {
-		return []
+      return []
     }
   },
-  created() {
-
-  },
+  created() {},
   methods: {
     // 列表请求函数
-	getList: listPageV2,
+    getList: listPageV2,
     // 列表导出函数
     exportList: pageExport,
     // 表格列解析渲染数据更改
     columnParsing(item, defaultData) {
-		return defaultData
+      return defaultData
     },
     // 表格操作列
-    operation(h, { row, index, column }) {
-      
+    operation() {
+      return this.operationBtn({
+        view: {
+          click: ({ row, index, column }) => {
+            this.formBool = true
+          }
+        }
+      })
+    },
+    handleClose(cb) {
+      this.formBool = false
+      this.$data.formData = this.$options.data().formData
     }
   }
 }
 </script>
 
 <style lang="scss" scoped>
-	.tab{
-		padding: 20px 20px 0 20px;
-	}
+.neibuview {
+  box-sizing: border-box;
+  padding-left: 16px;
+
+  ::v-deep & > .zj-page-fill-scroll {
+    box-sizing: border-box;
+    padding-right: 16px;
+
+    & > div:nth-child(1) {
+      margin-top: 20px;
+    }
+  }
+}
 </style>