{"remainingRequest":"/Users/admin/projects/dms/src/dealer_admin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/admin/projects/dms/src/dealer_admin/src/views/system/approval_flow/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/admin/projects/dms/src/dealer_admin/src/views/system/approval_flow/index.vue","mtime":1713161556000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport * as API from \"@/api/approval_flow.js\";\nimport waves from \"@/directive/waves\"; // waves directive\nimport {parseTime} from \"@/utils\";\nimport Form from \"./components/form\";\nimport Pagination from \"@/components/Pagination\";\nimport ApprovalStepModal from \"./components/ApprovalStepModal.vue\";\n\nexport default {\n  name: \"ApprovalFlow\",\n  components: {\n    Form,\n    Pagination,\n    ApprovalStepModal,\n  },\n  directives: {waves},\n  data() {\n    return {\n      list: [],\n      total: 0,\n      listLoading: true,\n      listQuery: {\n        page: 1,\n        limit: 10,\n        belong:'',\n      },\n      approvalFlowBelongList:[],\n      approvalFlowBelongMap:{},\n      effectiveMap:{\n        1: \"生效\",\n        2: \"失效\"\n      },\n      assignOrganMap:{\n        1: \"是\",\n        2: \"否\"\n      }\n    };\n  },\n  created() {\n    this.$forceUpdate();\n    this.getApprovalFlowBelongList();\n    this.getApprovalFlowBelongMap();\n    this.getList();\n  },\n  methods: {\n    async getApprovalFlowBelongList(){\n      const res = await API.getApprovalFlowBelongList();\n      this.approvalFlowBelongList = res.result.list;\n    },\n    async getApprovalFlowBelongMap(){\n      const res = await API.getApprovalFlowBelongMap();\n      this.approvalFlowBelongMap = res.result.map;\n    },\n    async getList() {\n      this.listLoading = true;\n      const res = await API.list(this.listQuery);\n      this.total = res.result.total;\n      let list = res.result.list;\n      this.list = [];\n      this.list = list;\n      this.listLoading = false;\n    },\n    async delHandle(id) {\n      this.$confirm(\"确认删除???\", \"提示\")\n        .then(async _ => {\n          console.log(\"确认\");\n          const res = await API.del(id);\n          if (res.__error === 0) {\n            this.$message({\n              message: \"成功\",\n              type: \"success\"\n            });\n            this.getList();\n          }\n        })\n        .catch(_ => {\n          console.log(\"取消\");\n        });\n    },\n    fromHandle(id) {\n      this.$nextTick(() => {\n        this.$refs.fromType.init(id);\n      });\n    },\n    handleFilter() {\n      this.listQuery.page = 1;\n      this.getList();\n    },\n    showStepModal(id){\n      this.$nextTick(() => {\n        this.$refs.approvalStepModal.init(id);\n      })\n    }\n  }\n};\n",null]}