+
- handleChangeCascader(e, item)"
- >
+ handleChangeCascader(e, item)">
-
+ ref="upload"
+ class="avatar-uploader"
+ :class="{ 'z-full': fmData[item.keyName].length >= item.limit }"
+ :action="item.uploadUrl || uploadUrl"
+ :data="{ customerId: customerId }"
+ :show-file-list="true"
+ :list-type="item.listType || 'picture'"
+ :limit="item.limit || 100"
+ :file-list="fmData[item.keyName]"
+ :on-success="(res, file) => handleImgSuccess(res, file, item)"
+ :on-error="(res, file) => handleImgError(res, file, item)"
+ :on-remove="(res) => handleImgRemove(res, item)"
+ :on-exceed="(res) => handleImgExceed(res, item)"
+ :before-upload="(file) => beforeImgUpload(file, item)">
点击上传
-
+
--
-
+
- 查询
-
-
@@ -276,52 +240,44 @@
-
-
{{
+
+ {{
editConfig.cancelBtnName || "取消"
}}
- {{ editConfig.confirmBtnName || "确定" }}
-
+ {{ editConfig.confirmBtnName || "确定" }}
+
-
+
-
-
{{
+
+ {{
editConfig.cancelBtnName || "取消"
}}
- {{ editConfig.confirmBtnName || "确定" }}
-
+ {{ editConfig.confirmBtnName || "确定" }}
+
@@ -397,7 +353,7 @@ export default {
},
},
- data() {
+ data () {
return {
iniLoaded: false,
@@ -415,19 +371,19 @@ export default {
computed: {},
watch: {
editParams: {
- handler() {
+ handler () {
this.computeFmData();
},
deep: true,
},
},
- async mounted() {
+ async mounted () {
this.initForm();
},
methods: {
- async initForm() {
+ async initForm () {
this.iniFmData();
if (this.formId && this.formType != "add") {
@@ -435,11 +391,11 @@ export default {
}
},
- computeFmData() {
+ computeFmData () {
console.log(this.fmData);
},
- iniFmData() {
+ iniFmData () {
const { editParams, fmData, editParamsDiv } = this;
editParams.forEach((item, index) => {
if (typeof item.value == "function") {
@@ -510,7 +466,7 @@ export default {
this.iniLoaded = true;
},
- handleClickHtmlNode(e) {
+ handleClickHtmlNode (e) {
//在判断事件目标节点的时候,考虑到兼容性应该统一转换成大写或小写进行判断
if (e.target.localName.toLowerCase() === "a") {
// 通过判端目标节点以后,就能在这里对其进行操作啦。
@@ -519,7 +475,7 @@ export default {
}
},
- async getFmOptions(index, url, params, cookFn) {
+ async getFmOptions (index, url, params, cookFn) {
const { data, code, msg } = await requestPost(url, {
...params,
});
@@ -532,13 +488,13 @@ export default {
}
},
- handleChangeCascader(vals, item) {
+ handleChangeCascader (vals, item) {
this.fmData[item["keyName"]] = vals;
if (typeof item.handleChangeFn == "function") {
item.handleChangeFn(vals, item, this);
}
},
- handleChangeSelect(vals, item) {
+ handleChangeSelect (vals, item) {
console.log(vals, item);
this.fmData[item["keyName"]] = vals;
if (typeof item.handleChangeFn == "function") {
@@ -546,14 +502,14 @@ export default {
}
},
- beforeImgUpload(file, item) {
+ beforeImgUpload (file, item) {
if (typeof item.beforeImgUpload == "function") {
if (!item.beforeImgUpload(file, item, this)) return false;
}
return true;
},
- handleImgRemove(file, item) {
+ handleImgRemove (file, item) {
console.log("handleImgRemove", file);
let url = file.response ? file.response.data.url : file.url;
if (url) {
@@ -575,7 +531,7 @@ export default {
}
},
- handleImgExceed(res, item) {
+ handleImgExceed (res, item) {
console.log(res);
// this.$message({
// type: "warning",
@@ -583,7 +539,7 @@ export default {
// });
},
- handleImgSuccess(res, file, item) {
+ handleImgSuccess (res, file, item) {
console.log("handleImgSuccess", res);
if (res.code === 0 && res.msg === "success") {
let { fmData } = this;
@@ -619,12 +575,12 @@ export default {
}
},
- handleImgError(res, file, item) {
+ handleImgError (res, file, item) {
console.log(res);
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
- initMap(item) {
+ initMap (item) {
let { latitude, longitude } = this.$store.state.user;
if (!latitude || latitude == "" || latitude == "0") {
latitude = 39.9088810666821;
@@ -657,7 +613,7 @@ export default {
// this.handleMoveCenter(item);
},
- setMarker(lat, lng) {
+ setMarker (lat, lng) {
markers.setGeometries([]);
markers.add([
{
@@ -671,7 +627,7 @@ export default {
]);
},
- handleSearchMap(item) {
+ handleSearchMap (item) {
infoWindowList.forEach((infoWindow) => {
infoWindow.close();
});
@@ -703,7 +659,7 @@ export default {
});
},
- handleMoveCenter(item, e) {
+ handleMoveCenter (item, e) {
console.log(e);
//修改地图中心点
const center = map.getCenter();
@@ -724,7 +680,7 @@ export default {
}
},
- async getInfo() {
+ async getInfo () {
let url = this.infoUrl;
if (!url) return;
const { idName, formId } = this;
@@ -764,12 +720,12 @@ export default {
}
},
- watchImg(src) {
+ watchImg (src) {
window.open(src);
},
// 过滤文本
- dormatHtml(content) {
+ dormatHtml (content) {
if (
content.startsWith(
"\n\n\n\n\n"
@@ -781,7 +737,7 @@ export default {
return content;
},
- cookBeforeSubmit(data) {
+ cookBeforeSubmit (data) {
Object.keys(data).forEach((k) => {
if (typeof data[k] == "string") {
data[k] = this.dormatHtml(data[k]);
@@ -790,7 +746,7 @@ export default {
return data;
},
- async handleComfirm() {
+ async handleComfirm () {
this.btnDisable = true;
setTimeout(() => {
this.btnDisable = false;
@@ -822,7 +778,7 @@ export default {
});
},
- async submit() {
+ async submit () {
const { editConfig, fmData, formType, editFixedParams } = this;
if (
typeof editConfig.beforeSubmit == "function" &&
@@ -862,7 +818,7 @@ export default {
}
},
- handleCancle() {
+ handleCancle () {
this.$emit("close");
},
},
diff --git a/src/views/modules/cpts/base/index.vue b/src/views/modules/cpts/base/index.vue
index 71face8d1..685e21816 100644
--- a/src/views/modules/cpts/base/index.vue
+++ b/src/views/modules/cpts/base/index.vue
@@ -1,315 +1,256 @@
-
-
+
+
-
+
-
+
-
-
+
+
- handleChangeCascader(e, item)"
- >
+ handleChangeCascader(e, item)">
-
+
至
-
+
- 查询
- 重置
+ 查询
+ 重置
-
+
- 新增
-
- 下载模板
-
-
- 导入
+ 新增
+
+ 下载模板
+
+
+ 导入
- 导出
- 批量删除
-
+ 导出
+ 导出员工登记码
+ 批量删除
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
{{ scope.row[item.keyName].join(item.arrayDiv || ",") }}
-
+
-
- 查看
- {{ editBtnName(scope.row) }}
-
- 删除
+
+ 查看
+ {{ editBtnName(scope.row) }}
+
+ 删除
-
+
-
+
-
-
+
+
-
+
-
+
@@ -370,6 +311,10 @@ export default {
type: String,
default: "",
},
+ qrCodeExportUrl: {
+ type: String,
+ default: "",
+ },
importUrl: {
type: String,
default: "",
@@ -438,7 +383,7 @@ export default {
},
},
- data() {
+ data () {
return {
tableData: [],
@@ -458,7 +403,7 @@ export default {
},
computed: {
- maxTableHeight() {
+ maxTableHeight () {
const { ref_search_height } = this;
return this.$store.state.inIframe
? this.clientHeight - ref_search_height - 265 + this.iframeHeight
@@ -469,7 +414,7 @@ export default {
watch: {},
- async mounted() {
+ async mounted () {
console.log(this.$store.state);
this.user = this.$store.state.user;
@@ -483,24 +428,24 @@ export default {
this.computeSearchHeight();
},
- activated() {
+ activated () {
console.log("-------------activated");
this.$refs["ref_table"].doLayout();
},
methods: {
- handleSelectionChange(val) {
+ handleSelectionChange (val) {
console.log(val);
this.multipleSelection = val;
},
- computeSearchHeight() {
+ computeSearchHeight () {
this.ref_search_height = this.$refs["ref_search"].clientHeight;
console.log(this.$refs["ref_search"]);
console.log(this.ref_search_height);
},
- iniSearchData() {
+ iniSearchData () {
const { searchParams } = this;
searchParams.forEach((item, index) => {
if (item.type == "select" || item.type == "cascader") {
@@ -516,7 +461,7 @@ export default {
});
},
- async getFmOptions(index, url, params, cookFn) {
+ async getFmOptions (index, url, params, cookFn) {
const { data, code, msg } = await requestPost(url, {
...params,
});
@@ -529,19 +474,19 @@ export default {
}
},
- handleChangeCascader(vals, item) {
+ handleChangeCascader (vals, item) {
if (typeof item.handleChangeFn == "function") {
item.handleChangeFn(vals, item);
}
},
- handleSearch(val) {
+ handleSearch (val) {
this.pageNo = 1;
this.getTableData();
},
- beforeExcelUpload(file) {
+ beforeExcelUpload (file) {
console.log("file", file);
const isType = file.type === "application/vnd.ms-excel";
const isTypeComputer =
@@ -559,7 +504,7 @@ export default {
return fileType && isLt1M;
},
- async uploadHttpRequest(file) {
+ async uploadHttpRequest (file) {
let { importUrl: url } = this;
if (!url) return;
@@ -588,7 +533,7 @@ export default {
});
},
- async handleExportModule() {
+ async handleExportModule () {
let { mubanUrl: url } = this;
if (!url) return;
@@ -625,7 +570,7 @@ export default {
});
},
- async handleExport() {
+ async handleExport () {
const { exportUrl: url } = this;
if (!url) return;
@@ -662,14 +607,51 @@ export default {
return this.$message.error("网络错误");
});
},
+ async handleExportQrcode () {
+ const { qrCodeExportUrl: url } = this;
+ if (!url) return;
+
+ const { pageSize, pageNo } = this;
+
+ axios({
+ url: window.SITE_CONFIG["apiURL"] + url,
+ method: "post",
+ data: {
+ pageSize,
+ pageNo,
+ ...this.computeFmData(),
+ },
+ responseType: "blob",
+ })
+ .then((res) => {
+ let fileName = window.decodeURI(
+ res.headers["content-disposition"].split(";")[1].split("=")[1]
+ );
+ console.log("filename", fileName);
+ let blob = new Blob([res.data], { type: "application/vnd.ms-excel" });
+ var url = window.URL.createObjectURL(blob);
+ var aLink = document.createElement("a");
+ aLink.style.display = "none";
+ aLink.href = url;
+ aLink.setAttribute("download", fileName);
+ document.body.appendChild(aLink);
+ aLink.click();
+ document.body.removeChild(aLink); //下载完成移除元素
+ window.URL.revokeObjectURL(url); //释放掉blob对象
+ })
+ .catch((err) => {
+ console.log("获取导出情失败", err);
+ return this.$message.error("网络错误");
+ });
+ },
- handleAdd() {
+ handleAdd () {
this.formType = "add";
this.formTitle = "新增";
this.formShow = true;
},
- handleWatch(row) {
+ handleWatch (row) {
const { idName } = this;
this.formType = "watch";
this.formId = row[idName];
@@ -677,7 +659,7 @@ export default {
this.formShow = true;
},
- handleEdit(row) {
+ handleEdit (row) {
const { idName } = this;
this.formType = "edit";
this.formId = row[idName];
@@ -685,17 +667,17 @@ export default {
this.formShow = true;
},
- handleClose() {
+ handleClose () {
this.formShow = false;
this.getTableData();
},
- handleEditSuccess() {
+ handleEditSuccess () {
this.handleClose();
// this.getTableData();
},
- async handleDeleteMultiple() {
+ async handleDeleteMultiple () {
let { delMultipleUrl: url } = this;
if (!url) return;
@@ -713,7 +695,7 @@ export default {
}
},
- async handleDelete(rowData, rowIndex) {
+ async handleDelete (rowData, rowIndex) {
console.log(rowData, rowIndex);
let { delUrl: url } = this;
if (!url) return;
@@ -741,7 +723,7 @@ export default {
}
},
- computeFmData() {
+ computeFmData () {
let fmData = {};
this.searchParams.forEach((item) => {
fmData[item.keyName] = item.value;
@@ -754,11 +736,11 @@ export default {
return fmData;
},
- refresh() {
+ refresh () {
this.getTableData();
},
- async getTableData() {
+ async getTableData () {
const { tableUrl: url } = this;
if (!url) return;
@@ -777,17 +759,17 @@ export default {
}
},
- handleSizeChange(val) {
+ handleSizeChange (val) {
this.pageSize = val;
window.localStorage.setItem("pageSize", val);
this.getTableData();
},
- handleCurrentChange(val) {
+ handleCurrentChange (val) {
this.pageNo = val;
this.getTableData();
},
- resetSearch() {
+ resetSearch () {
console.log("----------------resetSearch", this.searchParams);
this.searchParams.forEach((item) => {
if (typeof item.value == "string") {
diff --git a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
index e67bcc553..31f027dc5 100644
--- a/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
+++ b/src/views/modules/shequzhili/tuceng/anquan/xuncha/index.vue
@@ -1,33 +1,30 @@
-
+
-
+
@@ -41,7 +38,7 @@ export default {
components: { basePage, record },
props: {},
- data() {
+ data () {
return {
searchParams: [
{ field: "场所名称", keyName: "placeOrgName", type: "input" },
@@ -57,6 +54,24 @@ export default {
},
optionList: [],
},
+ {
+ field: "场所类别",
+ keyName: "placeCategory",
+ type: "select",
+ optionUrl: "",
+ optionUrlParams: {},
+ optionList: [
+ {
+ value: '0',
+ label: '九小场所'
+ },
+ {
+ value: '1',
+ label: '企事业单位'
+ }
+
+ ],
+ },
{
field: "场所类型",
keyName: "placeType",
@@ -99,6 +114,7 @@ export default {
{ field: "序号", keyName: "", type: "no" },
{ field: "场所名称", keyName: "placeOrgName", type: "text" },
{ field: "场所地址", keyName: "address", type: "text" },
+ { field: "场所类别", keyName: "placeCategoryName", type: "text" },
{ field: "场所类型", keyName: "placeTypeName", type: "text" },
{ field: "规模", keyName: "scaleName", type: "text" },
{ field: "负责人", keyName: "personInCharge", type: "text" },
@@ -110,19 +126,41 @@ export default {
mubanUrl: "/gov/org/enterprise/download-tem",
importUrl: "/gov/org/enterprise/import",
exportUrl: "/gov/org/enterprise/export",
+ qrCodeExportUrl: "/gov/org/enterprise/qrCodeExport",
addUrl: "/gov/org/enterprise/addOrUpdate",
editUrl: "/gov/org/enterprise/addOrUpdate",
infoUrl: "/gov/org/enterprise/detail/",
delUrl: "/gov/org/enterprise/delete/",
- editAuth(item) {
+ editAuth (item) {
return item.agencyId == this.$store.state.user.agencyId;
},
- delAuth(item) {
+ delAuth (item) {
return item.agencyId == this.$store.state.user.agencyId;
},
editParams: [
+ {
+ field: "场所类别",
+ keyName: "placeCategory",
+ type: "select",
+ optionUrl: "",
+ optionUrlParams: {
+ // dictType: "ic_service_type",
+ },
+ optionList: [{
+ value: '0',
+ label: '九小场所'
+ },
+ {
+ value: '1',
+ label: '企事业单位'
+ }],
+ editDisabled: true,
+ rules: [
+ { required: true, message: "场所类别不能为空", trigger: "blur" },
+ ],
+ },
{
field: "场所类型",
keyName: "placeType",
@@ -166,16 +204,30 @@ export default {
},
],
},
+ // {
+ // field: "规模",
+ // keyName: "scale",
+ // type: "select",
+ // optionUrl: "/sys/dict/data/dictlist",
+ // optionUrlParams: {
+ // dictType: "scale",
+ // },
+ // optionList: [],
+ // editDisabled: false,
+ // rules: [
+ // {
+ // required: true,
+ // message: "规模不能为空",
+ // trigger: "blur",
+ // },
+ // ],
+ // },
{
field: "规模",
- keyName: "scale",
- type: "select",
- optionUrl: "/sys/dict/data/dictlist",
- optionUrlParams: {
- dictType: "scale",
- },
- optionList: [],
- editDisabled: false,
+ keyName: "scaleTotal",
+ type: "input",
+ attach: '人',
+
rules: [
{
required: true,
@@ -241,7 +293,15 @@ export default {
computed: {},
watch: {},
- async mounted() {},
+ async mounted () {
+ //开发环境:45687aa479955f9d06204d415238f7cc
+ // 微笑崂山:3fdd0380deff5b30f45376cdf995d1c1
+ // 烟台:1535072605621841922
+ let customerId = localStorage.getItem("customerId");
+ this.qrCodeExportUrl = ''
+ if (customerId === '45687aa479955f9d06204d415238f7cc' || customerId === '3fdd0380deff5b30f45376cdf995d1c1' || customerId === '1535072605621841922')
+ this.qrCodeExportUrl = '/gov/org/enterprise/qrCodeExport'
+ },
methods: {},
};
diff --git a/src/views/pages/staffRegister.vue b/src/views/pages/staffRegister.vue
new file mode 100644
index 000000000..97db79617
--- /dev/null
+++ b/src/views/pages/staffRegister.vue
@@ -0,0 +1,501 @@
+
+
+
+ 员工登记
+
+
+
+
+
+
+
+
+
+ {{placeOrgName}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{formData.ymjzCountName}}
+ 请选择
+
+
+
+
+
+ {{formData.latestNatTime}}
+ 请选择
+
+
+
+
+
+
+
+
+
+ {{placeOrgName}}
+
+
+
+
+ {{formData2.natTime}}
+ 请选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pages/staffRegisterSuccess.vue b/src/views/pages/staffRegisterSuccess.vue
new file mode 100644
index 000000000..917c5b94f
--- /dev/null
+++ b/src/views/pages/staffRegisterSuccess.vue
@@ -0,0 +1,147 @@
+
+
+
+

+
员工信息登记
+
+
+
+
提交成功
+
请截图保存,方便核验人员查看
+
+
+
+
企业名称:
+
{{placeOrgName}}
+
+
+
姓名:
+
{{formData.name}}
+
+
+
+
手机号:
+
{{formData.mobile}}
+
+
+
证件号:
+
{{formData.idCard}}
+
+
+
疫苗接种次数:
+
{{formData.ymjzCountName}}
+
+
+
核酸检测时间:
+
{{formData.latestNatTime}}
+
+
+
+
+
+
+
企业名称:
+
{{placeOrgName}}
+
+
+
核酸检测时间:
+
{{formData.natTime}}
+
+
+
+
受众人数:
+
{{formData.szTotal}}人
+
+
+
核酸检测人数:
+
{{formData.hsjcTotal}}人
+
+
+
+
+
+
+
+
+
+