| | |
| | | Vue.config.productionTip = false |
| | | Vue.config.devtools = true |
| | | |
| | | import { stopReClick } from './utils/stopReClick' |
| | | import { stopReClick, longReClick } from './utils/stopReClick' |
| | | Vue.use(stopReClick) |
| | | Vue.use(longReClick) |
| | | |
| | | window.vueInstance = new Vue({ |
| | | el: '#app', |
| | |
| | | }) |
| | | } |
| | | }) |
| | | export { stopReClick } |
| | | |
| | | const longReClick = Vue.directive('longReClick', { |
| | | inserted: function (el, binding) { |
| | | el.addEventListener('click', () => { |
| | | if (!el.disabled) { |
| | | el.disabled = true |
| | | el.style.cursor = 'not-allowed' |
| | | setTimeout(() => { |
| | | el.style.cursor = 'pointer' |
| | | el.disabled = false |
| | | //设置时间 |
| | | }, binding.value || 30000) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | export { stopReClick, longReClick } |
| | |
| | | <el-button v-if="userType === 1" style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="importUnitCode">导入单位代码</el-button> |
| | | <el-button v-if="userType === 1" style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportUnitCode">导出单位代码</el-button> |
| | | <el-button type="primary" icon="el-icon-search" @click="queryHandle" /> |
| | | <el-button type="primary" v-if="isShow" icon="el-icon-delete" @click="openDelete">旧企业清除</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <el-button type="primary" @click="importHandle()">导入</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :visible.sync="deleteVisible" |
| | | append-to-body |
| | | title="清理企业数据" |
| | | :close-on-click-modal="false" |
| | | @close="resetDelete" |
| | | > |
| | | <el-form |
| | | ref="deleteForm" |
| | | label-position="right" |
| | | label-width="120px" |
| | | style="width:500px;" |
| | | element-loading-text="删除中..." |
| | | > |
| | | <el-form-item label="企业名称:"> |
| | | <el-input v-model.trim="deleteForm.enterprisename" class="carrierLicense_select"> |
| | | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="deleteVisible = false">取消</el-button> |
| | | <el-button type="primary" @click="deleteEnter">确认</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <uploadExcel ref="import" @getinfo="getEnterpriseList"></uploadExcel> |
| | | <div style="clear: both;"></div> |
| | | </div> |
| | |
| | | } |
| | | } |
| | | return { |
| | | deleteVisible: false, |
| | | pageSize: 10, |
| | | recordTotal: 0, |
| | | currentPage: 1, |
| | |
| | | }, |
| | | queryForm: { |
| | | name: '' |
| | | }, |
| | | deleteForm: { |
| | | enterprisename: '' |
| | | }, |
| | | dialogFormVisible: false, |
| | | unitCodeVisible:false, |
| | |
| | | }) |
| | | },//删除企业 |
| | | |
| | | async deleteEnter(){ |
| | | if(this.deleteForm.enterprisename !== ''){ |
| | | await this.deleteByName(this.deleteForm) |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | | message: '请输入企业名称' |
| | | }) |
| | | } |
| | | }, |
| | | resetDelete(){ |
| | | this.deleteForm = { |
| | | enterprisename:'' |
| | | } |
| | | }, |
| | | async deleteByName(row){ |
| | | console.log(row,'row') |
| | | this.$confirm('删除此条信息,是否继续','提示',{ |
| | | confirmButtonText:'确定', |
| | | cancelButtonText:'取消', |
| | |
| | | duration:2000, |
| | | }) |
| | | this.getEnterpriseList() |
| | | this.deleteVisible = false |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | |
| | | this.$refs['dataForm'].clearValidate() |
| | | }) |
| | | }, |
| | | |
| | | openDelete(){ |
| | | this.deleteVisible = true |
| | | }, |
| | | updateHandle() { |
| | | this.$refs['dataForm'].validate((valid) => { |
| | | const _this = this |
| | |
| | | |
| | | <el-row > |
| | | <el-col :span="24"> |
| | | <el-form-item label="单位编号:" prop="enterprisenumber" > |
| | | <el-form-item label="终端机用户名:" prop="enterprisenumber" > |
| | | <el-input v-model.trim="dataForm.enterprisenumber" class="enterpriseBasicInformation_input" :disabled="isEdit"/> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | |
| | | <el-row > |
| | | <el-col :span="24"> |
| | | <el-form-item label="单位编号:" prop="enterprisenumber" > |
| | | <el-form-item label="终端机用户名:" prop="enterprisenumber" > |
| | | <el-input v-model.trim="dataForm.enterprisenumber" class="enterpriseBasicInformation_input"/> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | |
| | | <el-row > |
| | | <el-col :span="15"> |
| | | <el-form-item label="单位编号:" prop="enterprisenumber" > |
| | | <el-form-item label="终端机用户名:" prop="enterprisenumber" > |
| | | <el-input v-model.trim="dataForm.enterprisenumber" class="enterpriseBasicInformation_input"/> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-col :span="15"> |
| | | <el-row > |
| | | <el-col :span="24"> |
| | | <el-form-item label="单位编号:" prop="enterprisenumber" > |
| | | <el-form-item label="终端机用户名:" prop="enterprisenumber" > |
| | | <el-input v-model.trim="dataForm.enterprisenumber" class="enterpriseBasicInformation_input"/> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | { required: true, message: '请选择国民经济行业分类', trigger: 'change' }, |
| | | ], |
| | | enterprisenumber:[ |
| | | { required: true, message: '请填写单位编号', trigger: 'blur' }, |
| | | { required: true, message: '请填写终端机用户名', trigger: 'blur' }, |
| | | ], |
| | | enterprisename:[ |
| | | { required: true, message: '请填写企业名称', trigger: 'blur' }, |
| | |
| | | <div class="basic_search" > |
| | | <el-button style="margin-left: 10px;" type="primary" @click="reset()" size="small">重置</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="searchProductSearch('查询','')" size="small">查询</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" size="small">导出</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" v-long-re-click size="small">导出</el-button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | /> |
| | | <br> |
| | | </div> |
| | | <el-dialog |
| | | title="提示" |
| | | center |
| | | :visible.sync="reClickTip" |
| | | width="50%"> |
| | | <span style="color: red">由于导出数据量大,请各监管单位导出数据时不要连续点击,导出按钮已限制30s内只允许点击一次。</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="reClickTip = false">取 消</el-button> |
| | | <el-button type="primary" @click="reClickTip = false">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <personPurchaseDetail ref="person"></personPurchaseDetail> |
| | | <upload-dialog ref="upload" @refresh="refresh"></upload-dialog> |
| | | </div> |
| | |
| | | return{ |
| | | tableKey:'', |
| | | validTime:['',''], |
| | | reClickTip: false, |
| | | listQuery: { |
| | | pageSize:10, |
| | | pageIndex:1, |
| | |
| | | }, |
| | | |
| | | async exportToExcel(){ |
| | | this.reClickTip = true |
| | | let res = await exportPerson(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.reClickTip = false |
| | | if(res.data.result === null ||res.data.result === [] || res.data.result.length === 0){ |
| | | this.$message({ |
| | | type:'warning', |
| | |
| | | <el-table-column label="序号" type="index" align="center" width="60"/> |
| | | <el-table-column label="企业名称" prop="enterprisename" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="企业编号" prop="enterprisenumber" align="center"> |
| | | <el-table-column label="终端机用户名" prop="enterprisenumber" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="地区" align="center"> |
| | | <span slot-scope="scope"> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20"> |
| | | <el-form-item label="企业编号" prop="enterprisenumber"> |
| | | <el-form-item label="终端机用户名" prop="enterprisenumber"> |
| | | <el-input v-model="registerForm.enterprisenumber" disabled></el-input> |
| | | </el-form-item> |
| | | </el-col> |