{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\temporarySupplier\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\SupplierManagement\\temporarySupplier\\index.vue","mtime":1719520828393},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport supplierManger from '@/api/supplierManger.js'\nimport {mapState} from 'vuex'\nimport pagination from '@/components/pagination'\nimport {TableMixin} from '@/mixins/tableMixin'\nimport routerManagement from '@/api/BasicDataManagement/routerManagement.js'\nimport req from '@/request.js'\nimport utils from '@/utils.js'\nimport {file} from 'jszip'\nexport default {\n name: 'DemandEntry',\n components: {\n pagination,\n },\n mixins: [TableMixin],\n data() {\n return {\n currentPage: 1,\n tableMaxHeight: 400,\n dialogVisible: false,\n loading: false,\n tableLoading: false,\n loadingBtn:false,\n tableData: [],\n fullscreenLoading:false,\n multipleSelection: [],\n form:{},\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0,\n },\n },\n searchForm: {\n type: 2,\n }, // 顶部搜索对象\n deleteIds: '', // 是否选中列表解锁删除按钮\n fileList: [], // 文件上传\n edit: false, // 是否是修改功能\n currentDataDel: [], // 删除时排查是否有在审核的数据\n }\n },\n created() {\n this.handleSearch()\n },\n methods: {\n getDictName(code, value) {\n return utils.getDictName(code, value)\n },\n // 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用,function(file, fileList)\n handleSuccess(res, file, fileList) {\n console.log(res, 'resss',file)\n if(this.fileList.length==0){\n this.fileList=[]\n this.fileList.push(res.value)\n }else{\n this.fileList.push(res.value)\n }\n },\n handleOpen(row){\n this.form =row\n this.dialogVisible = true\n },\n submitImport(){\n let data = {\n id:this.form.id,\n qualificationsList:this.fileList\n }\n this.loadingBtn = true\n this.fullscreenLoading = true\n this.$http.post('${portal}/supplier/bizSupplierEnterprise/v1/uploadAccessory',data).then(res=>{\n this.loadingBtn = false\n this.fullscreenLoading = false\n if(res.data.state){\n this.fileList = []\n this.$message.success(res.data.message)\n }\n this.handleSearch()\n })\n },\n //获取数据\n loadData() {\n this.tableLoading = true\n this.$http\n .post(\n '${portal}/supplier/bizSupplierEnterprise/v1/queryBySupplier',\n this.queryParam\n )\n .then((res) => {\n this.tableLoading = false\n const data = (res && res.data) || {}\n this.tableData = data.rows || []\n this.queryParam.pageBean = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total,\n }\n })\n },\n //添加\n handleAdd() {\n this.$router.push({\n path: '/addTemporaryEnterprise',\n })\n },\n // 编辑\n handleEdit(rows) {\n this.$refs.form.clearValidate()\n this.$router.push({\n path: `/onboardingAddDialog/${rows.id}`,\n query: {pageBean: this.params},\n })\n },\n // 详情\n handleDetail(rows) {\n this.$router.push({\n path: `/onboardingDetail/${rows.id}`,\n query: {pageBean: this.params},\n })\n },\n cancelConfirm(){\n this.fileList = []\n this.dialogVisible = false\n },\n // 删除\n handleDelete() {\n let selection = this.$refs.multipleSelection.selection\n if (selection.length === 0) {\n this.$alert('请选择要删除的数据!', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n type: 'warning',\n })\n } else {\n let ids = []\n selection.forEach((item) => {\n let str = 'ids=' + item.id\n ids.push(str)\n })\n ids = ids.join('&')\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning',\n }).then(() => {\n this.tableLoading = true\n supplierManger.delManage(ids).then((res) => {\n this.tableLoading = false\n if (res.data.state) {\n this.$message.success('删除成功!')\n this.handleSearch()\n } else {\n this.$message.error('删除失败!')\n }\n })\n })\n }\n },\n //重置\n clearSearchForm() {\n this.searchForm = {\n type: 2,\n }\n this.handleSearch()\n },\n // 顶部搜索\n handleSearch() {\n let obj = this.searchForm\n let querys = []\n for (let i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation:\n i == 'supplier_code_' || i == 'enterprise_name_'\n ? 'LIKE'\n : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i],\n })\n }\n }\n\n this.queryParam.querys = querys\n this.loadData(this.queryParam)\n },\n // 审核\n handleAppro(){\n \n },\n handleCurrentChange(page) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, page}\n this.loadData(this.queryParam)\n },\n handleSizeChange(pageSize) {\n this.queryParam.pageBean = {...this.queryParam.pageBean, pageSize}\n this.loadData(this.queryParam)\n },\n handleAppro(){\n \n },\n },\n computed: {\n ...mapState({\n headers: (state) => {\n return {Authorization: `Bearer ${state.login.currentUser.token}`}\n },\n action: function () {\n return (\n window.context.portal +\n '/biz/universal/v1/minioUpload'\n )\n },\n }),\n SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px',\n }\n },\n },\n}\n",null]}