linwenxin 4 meses atrás
pai
commit
7cffd9a220

+ 61 - 0
src/api/appraisalStatement.js

@@ -0,0 +1,61 @@
+import request, { postBlob, getBlob, handleImport } from '@/utils/request'
+
+export function appraiseApplyApplyList(data) {
+  return request({
+    url: `/appraise/apply/apply/list?moduleId=${data.moduleId}`,
+    method: 'post',
+    data
+  })
+}
+
+export function appraiseApplyApplyListExport(data, name) {
+  return postBlob({
+    url: '/appraise/apply/apply/list/export',
+    data,
+    name
+  })
+}
+
+export function appraiseApplyApplyDetail(params) {
+  return request({
+    url: `/appraise/apply/apply/detail`,
+    method: 'post',
+    params
+  })
+}
+
+// 评价申诉-提交
+export function appraiseApplyApplySubmit(data) {
+  return request({
+    url: `/appraise/apply/apply/submit`,
+    method: 'post',
+    data
+  })
+}
+
+// 评价申诉-审核
+export function appraiseApplyApplyConfirm(data) {
+  return request({
+    url: `/appraise/apply/apply/confirm`,
+    method: 'post',
+    data
+  })
+}
+
+// 评价申诉-驳回不可再申诉
+export function appraiseApplyBatchUpdateEnd(params) {
+  return request({
+    url: `/appraise/apply/batch/update/end`,
+    method: 'post',
+    params
+  })
+}
+
+// 评价申诉-驳回可重申诉
+export function appraiseApplyBatchUpdateReset(params) {
+  return request({
+    url: `/appraise/apply/batch/update/reset`,
+    method: 'post',
+    params
+  })
+}

+ 153 - 0
src/views/workOrder/appraiseAppeal/appraisalStatement/index.vue

@@ -0,0 +1,153 @@
+<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>
+            <zj-form-container
+              ref="formRef"
+              :form-data="formData"
+              :form-rules="formRules"
+              :form-attributes="{ size: 'mini' }"
+            >
+              <zj-form-module title="评价信息" :form-data="formData" :form-items="items" />
+              <zj-form-module title="申诉信息" :form-data="formData" :form-items="items2" />
+              <zj-form-module title="中心审核信息" :form-data="formData" :form-items="items3" />
+            </zj-form-container>
+          </zj-page-fill>
+          <!-- 操作按钮 -->
+          <div style="box-sizing: border-box; padding: 10px; text-align: right">
+            <el-button size="mini" @click="handleClose">取 消</el-button>
+            <el-button v-if="~[0, 1].indexOf(formType)" size="mini" @click="formConfirm" type="primary"
+              >确 定</el-button
+            >
+          </div>
+        </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 {
+  appraiseApplyApplyList,
+  appraiseApplyApplyListExport,
+  appraiseApplyApplyDetail,
+  appraiseApplyApplySubmit,
+  appraiseApplyApplyConfirm,
+  appraiseApplyBatchUpdateEnd,
+  appraiseApplyBatchUpdateReset
+} from '@/api/appraisalStatement'
+import { commonTemplateDownload } from '@/api/common.js'
+import operation_mixin from '@/components/template/operation_mixin.js'
+import { required, requiredValueMin } from '@/components/template/rules_verify.js'
+import { getWebsit } from '@/api/customerManagement.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 [
+        [
+          [
+            this.optionsEvensAuth('add', {
+              click: () => {
+                this.formType = 0
+                this.formBool = true
+              }
+            })
+          ]
+        ]
+      ]
+    },
+
+    items() {
+      return []
+    },
+    items2() {
+      return []
+    },
+    items3() {
+      return []
+    }
+  },
+  methods: {
+    // 列表请求函数
+    getList: appraiseApplyApplyList,
+    // 导出
+    exportList: appraiseApplyApplyListExport,
+    // 表格列解析渲染数据更改
+    columnParsing(item, defaultData) {
+      return defaultData
+    },
+    // 获取勾选框数据
+    selectionChange(data) {
+      this.recordSelected = data
+    },
+    handleClose() {
+      this.$refs?.pageRef?.refreshList()
+      this.$data.formData = this.$options.data().formData
+      this.formType = 0
+      this.formBool = false
+    },
+    formConfirm() {
+      this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
+        if (valid) {
+          appraiseApplyApplySubmit(this.formData).then(res => {
+            this.$message({ type: 'success', message: '成功!' })
+            this.$refs.pageRef.refreshList()
+            this.handleClose()
+          })
+        }
+      })
+    },
+    operation() {
+      return this.operationBtn({
+        edit: {
+          click: ({ row, index, column }) => {
+            appraiseApplyApplyDetail({
+              id: row.id
+            }).then(res => {
+              this.formData = { ...res.data }
+              this.$nextTick(() => {
+                this.formType = 1
+                this.formBool = true
+              })
+            })
+          }
+        }
+      })
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped></style>