forked from zhurui/management
1 line
24 KiB
JSON
1 line
24 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\visitor\\visitor-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\visitor\\visitor-add-or-update.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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\nimport {\n\tgetDictDataList\n} from '@/utils'\nimport {\n\tisMobile,\n\tidCardValidate\n} from '@/utils/validate'\nimport {\n\ttreeDataTranslate\n} from '@/utils'\nimport debounce from 'lodash/debounce'\nimport Cookies from 'js-cookie'\nimport {\n\tmapGetters\n} from 'vuex'\nexport default {\n\tcomputed: {\n\t\t...mapGetters(['uwbId']),\n\t},\n\twatch: {\n\t\t'dataForm.vrIdno': {\n\t\t\timmediate: true,\n\t\t\thandler(val) {\n\t\t\t\tlet gender = '0';\n\t\t\t\tif (val && val.length == 18) {\n\t\t\t\t\tgender = val[16] % 2 == 0 ? '0' : '1';\n\t\t\t\t}\n\t\t\t\tthis.dataForm.vrSex = gender\n\t\t\t}\n\t\t},\n\t\tuwbId(val) {\n\t\t\t// 覆盖到当前id绑定\n\t\t\tif (val) {\n\t\t\t\tthis.dataForm.vrUwbid = val;\n\t\t\t\tthis.$store.commit(\"visitor/UPDATE_VISITOR\", '')\n\t\t\t}\n\t\t}\n\t},\n\tdata() {\n\t\tconst asyncValidate = (rule, value, callback) => {\n\t\t\tthis.$http({\n\t\t\t\turl: \"/system/globalValidation/checkUwb\",\n\t\t\t\tmethod: \"get\",\n\t\t\t\tparams: {\n\t\t\t\t\tid: null,\n\t\t\t\t\tuwb: value\n\t\t\t\t}\n\t\t\t}).then(({\n\t\t\t\tdata: res\n\t\t\t}) => {\n\t\t\t\tif (res) {\n\t\t\t\t\tcallback()\n\t\t\t\t} else {\n\t\t\t\t\tcallback(new Error('UWB标签重复'))\n\t\t\t\t}\n\t\t\t}).catch(err => {\n\t\t\t\tcallback(new Error(err.msg))\n\t\t\t})\n\t\t};\n\t\treturn {\n\t\t\tdialogVisible: false,\n\t\t\tloading: false,\n\t\t\ttype: 'post',\n\t\t\tFloorList: [], // 楼栋、楼层级联\n\t\t\tstaffList: [], // 教职工列表 \n\t\t\tdataForm: {\n\t\t\t\tvrPhoneimg: '',\n\t\t\t\tvrName: '',\n\t\t\t\tvrIdno: '',\n\t\t\t\tvrSex: '0',\n\t\t\t\tvrUwbid: '',\n\t\t\t\tscWaid: '',\n\t\t\t\tvrTemperature: undefined,\n\t\t\t\tvrAddress: '',\n\t\t\t\tdfFloorid: [],\n\t\t\t\tvrReasons: '',\n\t\t\t\tvrInterviewed: \"\", // 被访人员ID\n\t\t\t\tvrInterviewedPhone: \"\", // 被访问人员电话\n\t\t\t\tvrPhone: \"\", // 访客电话\n\t\t\t},\n\t\t\tgenderList: getDictDataList('gender').filter(item => item.dictValue < 2),\n\t\t\trules: {\n\t\t\t\tvrName: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t}],\n\t\t\t\tvrInterviewed: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t}],\n\t\t\t\tvrSex: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t}],\n\t\t\t\tvrIdno: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t}],\n\t\t\t\tscWaid: [{\n\t\t\t\t\trequired: true,\n\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t}, ],\n\t\t\t\tvrUwbid: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tvalidator
|