management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/f7455524d0ba4cf21041367dec2...

1 line
8.8 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\\registerManage\\staff-bind.vue?vue&type=style&index=0&id=269efddf&lang=scss&scoped=true&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\registerManage\\staff-bind.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.el-dialog {\n .el-form {\n .el-form-item {\n .el-date-editor--date,\n .el-select {\n width: 100%;\n }\n .avatar {\n height: 150px;\n width: 106px;\n margin-left: 20px;\n display: block;\n }\n .student-img {\n width: 106px;\n height: 150px;\n }\n p {\n margin: 0;\n padding: 0 10px;\n }\n }\n }\n}\n",{"version":3,"sources":["staff-bind.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"staff-bind.vue","sourceRoot":"src/views/modules/registerManage","sourcesContent":["<template>\n <el-dialog title=\"绑卡\" :visible.sync=\"dialogVisible\" :close-on-click-modal=\"false\">\n <div>\n <el-form ref=\"dataForm\" :model=\"dataForm\" :rules=\"rules\" label-width=\"100px\">\n <el-row>\n <el-col>\n <el-form-item class=\"block-item\" label=\"照片\" prop=\"scPhotoimg\">\n <el-image :src=\"$ImgServerUrl+dataForm.scPhotoimg\" class=\"avatar\">\n <div slot=\"error\" class=\"image-slot\">\n <img class=\"student-img\" src=\"../../../assets/img/person.jpg\" />\n </div>\n </el-image>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row>\n <el-col :span=\"12\">\n <el-form-item label=\"姓名\" prop=\"scWaname\">\n <p>{{dataForm.scWaname}}</p>\n </el-form-item>\n </el-col>\n <el-col :span=\"11\" :offset=\"1\">\n <el-form-item label=\"身份证号\" prop=\"scIdno\">\n <p>{{dataForm.scIdno}}</p>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row>\n <el-col :span=\"12\">\n <el-form-item label=\"职工编号\" prop=\"scEmpno\">\n <p>{{dataForm.scEmpno}}</p>\n </el-form-item>\n </el-col>\n <el-col :span=\"11\" :offset=\"1\">\n <el-form-item label=\"联系电话\" prop=\"scPhonenum\">\n <p>{{dataForm.scPhonenum}}</p>\n </el-form-item>\n </el-col>\n </el-row>\n <el-row>\n <el-col :span=\"12\">\n <el-form-item label=\"UWB标签\" prop=\"scUwbid\">\n <el-input v-model=\"dataForm.scUwbid\" placeholder=\"请输入\"></el-input>\n </el-form-item>\n </el-col>\n <el-col :span=\"11\" :offset=\"1\">\n <el-form-item label=\"RFID\" prop=\"scRfcardid\">\n <el-input v-model=\"dataForm.scRfcardid\" placeholder=\"请输入\"></el-input>\n </el-form-item>\n </el-col>\n </el-row>\n </el-form>\n </div>\n <div slot=\"footer\">\n <el-button @click=\"dialogVisible = false\">取 消</el-button>\n <el-button type=\"primary\" v-loading=\"loading\" @click=\"submitInfo\">确 定</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport {getDictLabel} from '@/utils'\nimport debounce from 'lodash/debounce'\nexport default {\n filters:{\n filterLabel(val,type){\n return getDictLabel(type,val)\n },\n },\n data(){\n const asyncValidate=(rule, value, callback) => {\n this.$http({\n url: \"/system/globalValidation/checkUwb\",\n method: \"get\",\n params: {\n id: this.dataForm.scWaid,\n uwb: value\n }\n }).then(({ data: res }) => {\n if (res) {\n callback()\n } else {\n callback(new Error('UWB标签重复'))\n }\n }).catch(err => {\n callback(new Error(err.msg))\n })\n };\n const asyncValidateRf=(rule, value, callback) => {\n this.$http({\n url: \"/system/globalValidation/checkRfid\",\n method: \"get\",\n params: {\n id: this.dataForm.scWaid,\n uwb: value\n }\n }).then(({ data: res }) => {\n if (res) {\n callback()\n } else {\n callback(new Error('RFID重复'))\n }\n }).catch(err => {\n callback(new Error(err.msg))\n })\n };\n return {\n dialogVisible:false,\n loading:false,\n type:'post',\n dataForm:{},\n rules:{\n scRfcardid:[\n {required: true, message:'请输入', trigger: ['blur','change']},\n {\n required: true,\n validator: asyncValidateRf,\n trigger: ['change']\n }\n ],\n scUwbid:[\n {\n required: true,\n validator: (rule, value, callback)=>{\n if (!/^[0-9]+$/.test(value)) {\n return callback(new Error(\"UWB标签只能是数字\"));\n }\n callback()\n },\n trigger: ['change']\n },\n {\n required: true,\n validator: asyncValidate,\n trigger: ['change']\n }\n ]\n },\n }\n },\n methods:{\n init(data){\n this.dialogVisible=true;\n this.dataForm={\n ...data,\n scSex:String(data.scSex),\n scStatus:String(data.scStatus),\n scEducation:String(data.scEducation),\n }\n this.$nextTick(()=>{\n this.$refs['dataForm'].clearValidate();\n })\n },\n submitInfo:debounce(function(){\n this.$refs['dataForm'].validate((valid)=>{\n if(!valid){\n return false\n }\n this.loading=true;\n this.$http({\n url:\"/system/scworkersarchives\",\n method:'put',\n data:this.dataForm\n }).then(({data})=>{\n if(data.code!=0){\n return this.$message.error(data.msg)\n }\n this.dialogVisible=false;\n this.$parent.$parent.search();\n this.$message.success(data.msg)\n }).finally(()=>{\n this.loading=false\n })\n })\n \n },1000)\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.el-dialog {\n .el-form {\n .el-form-item {\n .el-date-editor--date,\n .el-select {\n width: 100%;\n }\n .avatar {\n height: 150px;\n width: 106px;\n margin-left: 20px;\n display: block;\n }\n .student-img {\n width: 106px;\n height: 150px;\n }\n p {\n margin: 0;\n padding: 0 10px;\n }\n }\n }\n}\n</style>"]}]}