diff --git a/.env.production b/.env.production index 80bba44..ab0119b 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = https://starter.ali251.langye.net -VUE_APP_UPLOAD_API =https://starter.ali251.langye.net/api/admin/upload-file \ No newline at end of file +VUE_APP_BASE_API = https://bd-fangke.ali251.langye.net +VUE_APP_UPLOAD_API = https://bd-fangke.ali251.langye.net/api/admin/upload-file \ No newline at end of file diff --git a/src/views/gate/visitlist copy.vue b/src/views/gate/visitlist copy.vue new file mode 100644 index 0000000..5aaccdc --- /dev/null +++ b/src/views/gate/visitlist copy.vue @@ -0,0 +1,309 @@ + + + + + + + 关键词 + + + 状态 + + + + + 起始时间 + + + 查询 + + + + + + {select.rows = e;select.page = 1;getList()}" + @pageIndexChange="e => {select.page = e;getList()}"> + + + + + 进入核验扫码 + + + 离开核验扫码 + + + + + + + + + + + {{item.name}} + + + 确 定 + + + + + + + + diff --git a/src/views/gate/visitlist.vue b/src/views/gate/visitlist.vue index 5aaccdc..6b9260f 100644 --- a/src/views/gate/visitlist.vue +++ b/src/views/gate/visitlist.vue @@ -1,47 +1,14 @@ - - - - - - 关键词 - - - 状态 - - - - - 起始时间 - - - 查询 - - - - - - {select.rows = e;select.page = 1;getList()}" - @pageIndexChange="e => {select.page = e;getList()}"> - - - - - 进入核验扫码 - - - 离开核验扫码 - - - - - - + + + + 核销码: + 查询 + + + + { - return value ? '是' : '否' - } - }, - { - label: '预约时间', - sortable: false, - prop: 'date', - width: 120 - }, - { - label: '证件类型', - sortable: false, - prop: 'credent', - width: 120, - formatter: (cell, data, value) => { - return value == 1 ? '身份证' : '护照' - }, - }, - { - label: '证件号', - sortable: false, - prop: 'idcard', - width: 180 - }, - { - label: '手机号', - sortable: false, - prop: 'mobile', - width: 120 - }, - { - label: '单位名称', - sortable: false, - prop: 'company_name', - width: 180 - }, - { - label: '开始时间', - sortable: false, - prop: 'start_date', - width: 180 - }, - { - label: '结束时间', - sortable: false, - prop: 'end_date', - width: 180 - }, - { - label: '创建时间', - sortable: false, - prop: 'created_at', - width: 180 - - }, - { - label: '创建人', - sortable: false, - prop: 'admin_id', - width: 120 - } - ] } }, computed: {}, @@ -215,27 +62,40 @@ }, created() { - this.getUserList() - this.getToday() - this.getList() - + this.init() + this.getUserList() + // this.getList() }, - methods: { - getToday() { - let now = new Date() - let nowDay = this.$moment(now).format("YYYY-MM-DD") - this.select.start_date = nowDay - this.select.end_date = nowDay - this.selectRange = [nowDay, nowDay] + methods: { + init(){ + let clientHeight = document.documentElement.clientHeight; + this.clientHeight = clientHeight + this.$nextTick(() => { + this.$refs.codeInput.focus() + }) + }, + clearCode(){ + this.select.code = '' + this.$nextTick(() => { + this.$refs.codeInput.focus() + }) }, async getList() { let res = await getList(this.select) - this.data = res.data - this.total = res.total + this.data = res.data + if(this.data.length>0){ + this.$refs['showVisit'].form = this.data[0] + this.$refs['showVisit'].formDataType = 'coderecord' + this.$refs['showVisit'].gateAdminId=this.gateAdminId + this.$refs['showVisit'].isShow = true + }else{ + this.$successMessage("未查询到记录",'','warning') + } }, async getUserList() { let res = await getUserList() this.gateData = res + this.gateShow = true }, confirmGate(){ if(!this.gateAdminId){ @@ -243,21 +103,6 @@ return } this.gateShow = false - }, - selectRangeM(val) { - console.log(val) - if (val) { - this.select.start_date = val[0] - this.select.end_date = val[1] - } else { - this.select.start_date = "" - this.select.end_date = "" - } - }, - tableHeight(val) { - this.$nextTick(function() { - this.tableHeights = val + 25 + 50 - }) }, showVisitForm(row,type) { this.$refs['showVisit'].form = row @@ -272,38 +117,32 @@ } - diff --git a/src/views/system/role.vue b/src/views/system/role.vue index cc44457..60b2696 100644 --- a/src/views/system/role.vue +++ b/src/views/system/role.vue @@ -21,6 +21,13 @@ + + + 所有 + 部门 + 私有 + + @@ -37,8 +44,15 @@ + + + + + 所有 + 部门 + 私有 + - @@ -103,7 +117,8 @@ form: { name: "", id: "", - sortnumber: "0" + sortnumber: "0", + allow_level:0 }, userdata: [], filterMethod(query, item) { @@ -125,7 +140,7 @@ setForm: { name: "", ids: [], - role_id:"" + role_id: "" } } }, @@ -160,7 +175,7 @@ this.setForm.role_id = ""; this.setForm.ids = []; this.setForm.name = obj.name; - this.setForm.role_id=obj.id; + this.setForm.role_id = obj.id; if (obj.admin) { for (var m of obj.admin) { this.setForm.ids.push(m.id); diff --git a/src/views/visit/component/addCommon.vue b/src/views/visit/component/addCommon.vue index 205926c..df60908 100644 --- a/src/views/visit/component/addCommon.vue +++ b/src/views/visit/component/addCommon.vue @@ -152,34 +152,35 @@ - + - + 到访车辆: - + 新增车辆 + + 删除 - + + @@ -242,14 +243,14 @@ --> - + 人员: - - + + @@ -261,7 +262,7 @@ 收货人: - + @@ -300,7 +301,7 @@ isShow: false, type: 'add', id: '', - visitType: 1, + visitType: "", typeName: '', form: { // type: 1, @@ -351,7 +352,18 @@ }, ], departmentList: [], - adminList: [], + adminList: [], + carTable:[{ + label: "车牌号", + prop: "car", + // width: 200, + customFn: (row, scope) => { + return ( + + ) + } + }], followTable: [{ label: "姓名", prop: "name", @@ -549,9 +561,37 @@ changeworkrange(val){ this.form.work_start_time = val[0] this.form.work_end_time = val[1] + }, + changeAdmin(item){ + if(item){ + this.adminList.map(e=>{ + if(e.id==item){ + console.log(e) + this.form.accept_admin_id = e.id + this.form.accpet_department_id = e.department_id + } + }) + + } + }, + changeGoods(item){ + if(item){ + this.adminList.map(e=>{ + if(e.id==item){ + console.log(e) + this.form.accept_admin_id = e.id + this.form.accept_goods_admin_id = e.id + this.form.accpet_department_id = e.department_id + } + }) + + } }, submit() { - let that = this + let that = this + if(this.visitType==3){ + this.form.accept_admin_id = this.form.accept_goods_admin_id + } if (this.type === 'editor') { this.form.id = this.id }else{ diff --git a/src/views/visit/component/showVisit.vue b/src/views/visit/component/showVisit.vue index 35e2ae3..3207e08 100644 --- a/src/views/visit/component/showVisit.vue +++ b/src/views/visit/component/showVisit.vue @@ -1,26 +1,63 @@ - - - - - {{item.remark}} - - + + + + + {{item.remark}} + + + + + + + + 核销码: + + + + {{form.code}} + + + + + + + + 核销类型: + + + + + {{item.value}} + + + + + + + + + 入场牌: + + + + + + + + + + + 停车牌: + + + + + + - - - - 核销码: - - - - - - 拜访信息 @@ -250,14 +287,14 @@ - - - - - {{checkText}} - - + + + + {{checkText}} + + + @@ -277,17 +314,17 @@ - diff --git a/vue.config.js b/vue.config.js index 6dafcce..8084348 100644 --- a/vue.config.js +++ b/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: '/admin/', - outputDir: '/Users/liuxiangyu/Work/s-szbd/code/szbd-visitor-service/public/admin', + outputDir: '/Users/mac/Documents/朗业/2023/b-bd智能访客系统/szbd', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项