{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\personData\\staff\\staff-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\personData\\staff\\staff-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":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.search\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getDictDataList } from '@/utils';\nimport { isMobile, idCardValidate } from '@/utils/validate';\nimport debounce from 'lodash/debounce';\nimport Cookies from 'js-cookie';\nimport imgClip from '@/components/public/img-clip';\nexport default {\n components: {\n imgClip: imgClip\n },\n watch: {\n 'dataForm.scIdno': {\n immediate: true,\n handler: function handler(val) {\n var gender = '0';\n\n if (val && val.length == 18) {\n gender = val[16] % 2 == 0 ? '0' : '1';\n }\n\n this.dataForm.scWasex = gender;\n }\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n loading: false,\n imgLoading: false,\n type: 'post',\n dataForm: {\n scPhotoimg: '',\n scWaname: '',\n scIdno: '',\n scWasex: '0',\n scPhonenum: '',\n scEmpno: '',\n scStatus: '',\n scEmptype: '',\n scHiredate: '',\n scGraduationdate: ''\n },\n genderList: getDictDataList('gender').filter(function (item) {\n return item.dictValue < 2;\n }),\n staffStatusList: getDictDataList('staffStatus'),\n employTypeList: getDictDataList('employType').filter(function (item) {\n return item.dictLabel != '学生' && item.dictLabel != '访客';\n }),\n rules: {\n scPhotoimg: [{\n required: true,\n message: '请上传图片',\n trigger: ['blur', 'change']\n }],\n scWaname: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n max: 50,\n message: '最多50个字符',\n trigger: ['blur', 'change']\n }],\n scIdno: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n validator: idCardValidate,\n trigger: ['blur', 'change']\n }],\n scWasex: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n scPhonenum: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n validator: isMobile,\n trigger: ['blur', 'change']\n }],\n scEmpno: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n max: 15,\n message: '最多15个字符',\n trigger: ['blur', 'change']\n }],\n scEmptype: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n scHiredate: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n scStatus: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }]\n },\n uploadHeaders: {},\n uploadUrl: window.SITE_CONFIG['apiURL'] + '/system/upload'\n };\n },\n created: function created() {\n this.uploadHeaders = {\n Authorization: 'Bearer ' + Cookies.get('access_token') || ''\n };\n },\n methods: {\n init: function init(data) {\n var _this = this;\n\n this.dialogVisible = true; // 编辑\n\n if (data) {\n this.type = \"put\";\n this.dataForm = _objectSpread({}, data, {\n scWasex: String(data.scWasex),\n scStatus: String(data.scStatus),\n scEmptype: String(data.scEmptype)\n });\n } else {\n this.type = \"post\";\n this.dataForm = {\n scPhotoimg: '',\n scWaname: '',\n scIdno: '',\n scWasex: '0',\n scPhonenum: '',\n scEmpno: '',\n scStatus: '',\n scEmptype: '',\n scHiredate: '',\n scGraduationdate: ''\n };\n this.$nextTick(function () {\n _this.$refs['dataForm'].clearValidate();\n });\n }\n },\n submitInfo: debounce(function () {\n var _this2 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.loading = true;\n\n _this2.$http({\n url: \"/system/scworkersarchives\",\n method: _this2.type,\n data: _this2.dataForm\n }).then(function (_ref) {\n var data = _ref.data;\n\n if (data.code != 0) {\n return _this2.$message.error(data.msg);\n }\n\n _this2.dialogVisible = false;\n\n if (_this2.type == 'post') {\n _this2.$parent.$parent.resetQuery();\n } else {\n _this2.$parent.$parent.search();\n }\n\n _this2.$message.success(data.msg);\n }).finally(function () {\n _this2.loading = false;\n });\n });\n }, 1000),\n handleUploadSuccess: function handleUploadSuccess(res) {\n this.imgLoading = false;\n\n if (res.code != 0) {\n return this.$message.error(res.msg);\n }\n\n this.dataForm.scPhotoimg = res.data.path;\n },\n beforeUpload: function beforeUpload(file) {\n var isJPG = file.type == 'image/jpeg' || file.type == 'image/png';\n var isLess2M = file.size / 1024 / 1024 < 2;\n\n if (!isJPG) {\n this.$message.error('上传头像图片只能是 JPG 或 PNG 格式!');\n }\n\n if (!isLess2M) {\n this.$message.error('上传头像图片大小不能超过 2MB!');\n }\n\n this.imgLoading = isJPG && isLess2M;\n return isJPG && isLess2M;\n }\n }\n};",{"version":3,"sources":["staff-add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GA,SAAA,eAAA,QAAA,SAAA;AACA,SAAA,QAAA,EAAA,cAAA,QAAA,kBAAA;AACA,OAAA,QAAA,MAAA,iBAAA;AACA,OAAA,OAAA,MAAA,WAAA;AACA,OAAA,OAAA,MAAA,8BAAA;AACA,eAAA;AACA,EAAA,UAAA,EAAA;AAAA,IAAA,OAAA,EAAA;AAAA,GADA;AAEA,EAAA,KAAA,EAAA;AACA,uBAAA;AACA,MAAA,SAAA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CAAA,IAAA,CAAA,GAAA;AACA,SAhBA,EAgBA,OAhBA,CAgBA,YAAA;AACA,UAAA,MAAA,CAAA,OAAA,GAAA,KAAA;AACA,SAlBA;AAmBA,OAxBA;AA0BA,KA3BA,EA2BA,IA3BA,CAhCA;AA4DA,IAAA,mBA5DA,+BA4DA,GA5DA,EA4DA;AACA,WAAA,UAAA,GAAA,KAAA;;AACA,UAAA,GAAA,CAAA,IAAA,IAAA,CAAA,EAAA;AACA,eAAA,KAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,WAAA,QAAA,CAAA,UAAA,GAAA,GAAA,CAAA,IAAA,CAAA,IAAA;AACA,KAlEA;AAmEA,IAAA,YAnEA,wBAmEA,IAnEA,EAmEA;AACA,UAAA,KAAA,GAAA,IAAA,CAAA,IAAA,IAAA,YAAA,IAAA,IAAA,CAAA,IAAA,IAAA,WAAA;AACA,UAAA,QAAA,GAAA,IAAA,CAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,CAAA;;AACA,UAAA,CAAA,KAAA,EAAA;AACA,aAAA,QAAA,CAAA,KAAA,CAAA,yBAAA;AACA;;AACA,UAAA,CAAA,QAAA,EAAA;AACA,aAAA,QAAA,CAAA,KAAA,CAAA,mBAAA;AACA;;AACA,WAAA,UAAA,GAAA,KAAA,IAAA,QAAA;AACA,aAAA,KAAA,IAAA,QAAA;AACA;AA9EA;AA5EA,CAAA","sourcesContent":["\n \n \n
\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {{item.dictLabel}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n 取 消\n 确 定\n
\n \n\n\n"],"sourceRoot":"src/views/modules/personData/staff"}]}