|
@@ -1,9 +1,31 @@
|
|
<template>
|
|
<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>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -11,10 +33,11 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import ImageUpload from '@/components/file-upload'
|
|
import ImageUpload from '@/components/file-upload'
|
|
import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
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 {
|
|
export default {
|
|
components: { TemplatePage, ImageUpload },
|
|
components: { TemplatePage, ImageUpload },
|
|
- mixins: [import_mixin],
|
|
|
|
|
|
+ mixins: [import_mixin, operation_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 事件组合
|
|
// 事件组合
|
|
@@ -30,11 +53,17 @@ export default {
|
|
},
|
|
},
|
|
// 勾选选中行
|
|
// 勾选选中行
|
|
recordSelected: [],
|
|
recordSelected: [],
|
|
- /** 表单变量 */
|
|
|
|
- formDialogType: 0,
|
|
|
|
- formDialogTitles: ["新增","编辑", "详情"],
|
|
|
|
- formDialog: false,
|
|
|
|
- appraise_status: ''
|
|
|
|
|
|
+ // 表单弹窗
|
|
|
|
+ formBool: false,
|
|
|
|
+ formData: {
|
|
|
|
+ dictCode: '',
|
|
|
|
+ dictType: '',
|
|
|
|
+ dictValue: '',
|
|
|
|
+ items: [],
|
|
|
|
+ price: 0,
|
|
|
|
+ remark: '',
|
|
|
|
+ status: true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -43,31 +72,49 @@ export default {
|
|
return []
|
|
return []
|
|
},
|
|
},
|
|
formItems() {
|
|
formItems() {
|
|
- return []
|
|
|
|
|
|
+ return []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
methods: {
|
|
methods: {
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
- getList: listPageV2,
|
|
|
|
|
|
+ getList: listPageV2,
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
exportList: pageExport,
|
|
exportList: pageExport,
|
|
// 表格列解析渲染数据更改
|
|
// 表格列解析渲染数据更改
|
|
columnParsing(item, defaultData) {
|
|
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>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<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>
|
|
</style>
|