1 line
9.0 KiB
JSON
1 line
9.0 KiB
JSON
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\approve\\construction\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\approve\\construction\\index.vue","mtime":1737610069403},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport { conApply, GetBmList } from \"@/api/getdata\";\nimport Paging from \"@/views/Public/paging.vue\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n iscontinue: false,\n btn: '3',\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n options: [] /**拜访部门 */,\n row: {},\n validation: false,\n completeTitle: \"接受\",\n nav: \"是否接受?\",\n formInline: {\n state: \"\",\n applyDeptName: \"\",\n applyTime: \"\",\n businessName: \"\",\n constructCompany: \"\",\n contactTel: \"\",\n principal: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n value1: \"\",\n value2: \"\",\n tableData: [],\n tableCols: [_defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"80\",\n prop: \"code\",\n label: \"序号\",\n align: \"center\"\n }, \"minWidth\", \"140\"), _defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"apply_dept_name\",\n label: \"申请部门\"\n }, \"minWidth\", \"110\"), {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"principal\",\n label: \"项目负责人\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"contact_tel\",\n label: \"联系方式\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"IDCard_no\",\n label: \"身份证号\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"business_name\",\n label: \"业务名称\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"business_detail\",\n label: \"业务内容\",\n align: \"left\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"construct_company\",\n label: \"施工单位\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"110\",\n prop: \"start_time\",\n label: \"开始时间\",\n align: \"left\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"end_time\",\n label: \"结束时间\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"apply_time\",\n label: \"申请日期\",\n align: \"left\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"ststus_value\",\n label: \"审批状态\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"Operate\",\n label: \"操作\"\n }]\n };\n },\n mounted: function mounted() {\n this.createLoad();\n this.getlist();\n this.getbmlist();\n },\n methods: {\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = '加载中...';\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = '';\n },\n getbmlist: function getbmlist() {\n var _this = this;\n GetBmList().then(function (res) {\n if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n _this.options = res.returnData;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n handleClick: function handleClick(index, row) {\n this.row = row;\n var id = index + 1;\n this.$router.push({\n path: \"detaill\",\n query: {\n id: id\n }\n });\n window.localStorage.setItem(\"condetail\", row.id);\n },\n /**接受 */closeDialog: function closeDialog(val) {\n var _this2 = this;\n var Content = {\n _status: \"11\",\n id: this.row.id,\n applyType: \"05\"\n };\n if (val == 1) {\n GzAcceptList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.createLoad();\n _this2.getlist();\n }\n }).catch(function (err) {\n console.log(\"error!\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n this.validation = false;\n } else {\n this.validation = false;\n }\n },\n onSubmit: function onSubmit() {\n var chinese = /^[\\u4e00-\\u9fa5]+$/;\n var englist = /^[a-zA-Z]+$/;\n this.iscontinue = false;\n if (chinese.test(this.formInline.principal) || englist.test(this.formInline.principal) || this.formInline.principal == \"\") {\n this.iscontinue = true;\n }\n if (!this.iscontinue) {\n this.validation = true;\n this.completeTitle = \"警告\";\n this.btn = 2;\n this.nav = \"姓名格式只支持输入全中或全英文!\";\n } else {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n }\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist(val);\n },\n getlist: function getlist() {\n var _this3 = this;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n _status: this.formInline.state,\n applyDeptName: this.formInline.applyDeptName,\n applyTime: this.formInline.applyTime ? this.formInline.applyTime : \"\",\n businessName: this.formInline.businessName,\n constructCompany: this.formInline.constructCompany,\n contactTel: this.formInline.contactTel,\n principal: this.formInline.principal,\n userId: \"40\"\n }\n };\n conApply(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.clearLoad();\n _this3.tableData = res.returnData.data;\n _this3.page.total = res.returnData.total;\n _this3.page.limit = res.returnData.currentPage;\n if (_this3.page.total == 0) {\n _this3.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n }\n};",null]} |