123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354 |
- <template>
- <template-page
- ref="pageRef"
- :getList="getList"
- :exportList="exportList"
- :columnParsing="columnParsing"
- :optionsEvensGroup="optionsEvensGroup"
- :tableAttributes="tableAttributes"
- :tableEvents="tableEvents"
- :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-rules="formRules"
- :form-attributes="{ size: 'mini' }"
- >
- <zj-form-module title="基础信息" label-width="110px" :form-data="formData" :form-items="items" />
- <zj-form-module title="附件信息" label-width="110px" :form-data="formData" :form-items="items2" />
- </zj-form-container>
- </zj-page-fill>
- </zj-page-container>
- </el-dialog>
- </div>
- </template-page>
- </template>
- <script>
- import TemplatePage from '@/components/template/template-page-1.vue'
- import import_mixin from '@/components/template/import_mixin.js'
- import {
- websitContractSignList,
- websitContractSignListExport,
- websitContractSignCancel,
- websitContractSignSign,
- websitContractSignDetail
- } from '@/api/networkContractSigning'
- import { commonTemplateDownload } from '@/api/common.js'
- import { required, requiredValueMin } from '@/components/template/rules_verify.js'
- import operation_mixin from '@/components/template/operation_mixin.js'
- export default {
- components: { TemplatePage },
- mixins: [import_mixin, operation_mixin],
- data() {
- return {
- // 表格属性
- tableAttributes: {
- selectColumn: false
- },
- // 表格事件
- tableEvents: {
- 'selection-change': this.selectionChange
- },
- recordSelected: [],
- formBool: false,
- formType: 0,
- formData: {},
- formRules: {}
- }
- },
- computed: {
- optionsEvensGroup() {
- return []
- },
- items() {
- return [
- {
- name: 'el-input',
- md: 12,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '上级网点编号',
- prop: 'parentId'
- }
- },
- {
- name: 'el-input',
- md: 12,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '上级网点名称',
- prop: 'parentName'
- }
- },
- {
- name: 'el-input',
- md: 12,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '网点编号',
- prop: 'websitId'
- }
- },
- {
- name: 'el-input',
- md: 12,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '网点名称',
- prop: 'websitName'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '法大大法人id',
- prop: 'fadadaCustomerId'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '法人实名流水号',
- prop: 'fadadaWebsitNo'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '个人实名状态',
- prop: 'authStatus'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '法大大网点id',
- prop: 'fadadaWebsitNo'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '网点实名流水号',
- prop: 'fadadaWebsitNo'
- }
- },
- {
- name: 'el-input',
- md: 6,
- attributes: {
- disabled: true,
- placeholder: '请输入'
- },
- formItemAttributes: {
- label: '创建时间',
- prop: 'createTime'
- }
- }
- ]
- },
- items2() {
- return [
- {
- name: 'slot-component',
- md: 24,
- formItemAttributes: {
- label: '已选工程师',
- prop: 'items'
- },
- render: (h, { props }) => {
- var { formData } = props
- return (
- <div>
- <zj-table
- columns={[
- {
- columnAttributes: {
- label: '序号',
- prop: ''
- },
- render: (h, { row, column, index }) => {
- return <div style="padding-left:10px">{index + 1}</div>
- }
- },
- {
- columnAttributes: {
- label: '附件名称',
- prop: 'contractName'
- }
- },
- {
- columnAttributes: {
- label: '附件状态',
- prop: 'contractStatus'
- },
- render: (h, { row, column, index }) => {
- return (
- <div style="padding-left:10px">
- {{ WAIT_SIGN: '待签约', WAIT: '待审核', OK: '审核通过' }[row.contractStatus]}
- </div>
- )
- }
- },
- {
- columnAttributes: {
- label: '签约成功时间',
- prop: 'validDate'
- }
- },
- {
- columnAttributes: {
- label: '签约过期时间',
- prop: 'expireDate'
- }
- },
- {
- columnAttributes: {
- label: '审核人',
- prop: 'confirmBy'
- }
- },
- {
- columnAttributes: {
- label: '操作'
- },
- render: (h, { row, column, index }) => {
- return (
- <div style="padding-left:10px">
- <el-button type="text" onClick={() => {}}>
- 查看合同
- </el-button>
- </div>
- )
- }
- }
- ]}
- tableData={this.formData.items}
- ></zj-table>
- </div>
- )
- }
- }
- ]
- }
- },
- methods: {
- // 列表请求函数
- getList: websitContractSignList,
- // 导出
- exportList: websitContractSignListExport,
- // 表格列解析渲染数据更改
- columnParsing(item, defaultData) {
- return defaultData
- },
- // 获取勾选框数据
- selectionChange(data) {
- this.recordSelected = data
- },
- openWindow(cb) {
- this.$nextTick(() => {
- cb?.()
- })
- },
- handleClose() {
- this.$refs?.pageRef?.refreshList()
- this.$data.formData = this.$options.data().formData
- this.formType = 0
- this.formBool = false
- },
- operation() {
- return this.operationBtn({
- viewContract: {
- click: ({ row, index, column }) => {
- this.openWindow(() => {
- websitContractSignDetail({
- id: row.id
- }).then(res => {
- this.formData = {
- ...res.data
- }
- this.$nextTick(() => {
- this.formType = 1
- this.formBool = true
- })
- })
- })
- }
- },
- loseEfficacy: {
- prompt: '是否确定设为失效?',
- conditions: ({ row, index, column }) => {
- return true
- },
- click: ({ row, index, column }) => {
- websitContractSignCancel({
- id: row.id
- }).then(res => {
- this.$message({ type: 'success', message: '设置成功!' })
- this.$refs?.pageRef?.refreshList()
- })
- }
- }
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .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>
|