409 lines
38 KiB
JavaScript
409 lines
38 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-4be6f897"], { 5130: function(e, t, n) {
|
||
"use strict";
|
||
n("6138");
|
||
}, 6138: function(e, t, n) {
|
||
}, 6724: function(e, t, n) {
|
||
"use strict";
|
||
n.r(t);
|
||
var a = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", { staticClass: "companyMain" }, [n2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [n2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [n2("span", [e2._v("企业基本信息")])]), e2._v(" "), n2("el-row", [n2("el-col", { attrs: { span: 3 } }, [n2("div", { staticClass: "companyInfo" }, [n2("el-upload", { staticClass: "avatar-uploader", attrs: { action: "", data: { type: "logo" }, "http-request": e2.uploadImg, "show-file-list": false, "on-success": e2.handleAvatarSuccess, "before-upload": e2.beforeAvatarUpload, disabled: e2.disabledDisp } }, [e2.companyInfo.logo ? n2("img", { staticClass: "img", attrs: { src: e2.companyInfo.logo } }) : n2("i", { staticClass: "el-icon-plus avatar-uploader-icon" })])], 1)]), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form", { attrs: { "label-width": "140px", "label-position": "left" } }, [n2("el-form-item", { attrs: { label: "企业全称" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp }, model: { value: e2.companyInfo.fullName, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "fullName", t3);
|
||
}, expression: "companyInfo.fullName" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业简称" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp }, model: { value: e2.companyInfo.abbreviation, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "abbreviation", t3);
|
||
}, expression: "companyInfo.abbreviation" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业ID" } }, [n2("el-input", { attrs: { disabled: "", value: e2.companyInfo.id } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "法人代表联系方式" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "11", clearable: "" }, model: { value: e2.companyInfo.mobile, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "mobile", t3);
|
||
}, expression: "companyInfo.mobile" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业付款人" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "64", clearable: "" }, model: { value: e2.companyInfo.payer, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "payer", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.payer" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "开户行" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "25", clearable: "" }, model: { value: e2.companyInfo.publicBank, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "publicBank", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.publicBank" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业地址" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "64", clearable: "" }, model: { value: e2.companyInfo.address, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "address", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.address" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业微信密钥" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, placeholder: "企业微信密钥(Secret)" }, model: { value: e2.companyInfo.weixinSecret, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "weixinSecret", t3);
|
||
}, expression: "companyInfo.weixinSecret" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "收据印章" } }, [n2("div", { staticClass: "companyInfo" }, [n2("el-upload", { staticClass: "avatar-uploader", attrs: { action: "", "http-request": e2.uploadImg, "show-file-list": false, data: { type: "seal" }, "on-success": e2.handleAvatarSuccess, "before-upload": e2.beforeAvatarUpload, disabled: e2.disabledDisp } }, [e2.companyInfo.sealImages ? n2("img", { staticClass: "img", attrs: { src: e2.companyInfo.sealImages } }) : n2("i", { staticClass: "el-icon-plus avatar-uploader-icon" })])], 1)])], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form", { attrs: { "label-width": "160px", "label-position": "left" } }, [n2("el-form-item", { attrs: { label: "企业统一社会信用代码" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp }, model: { value: e2.companyInfo.creditCode, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "creditCode", t3);
|
||
}, expression: "companyInfo.creditCode" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业法人代表" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp }, model: { value: e2.companyInfo.legalPerson, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "legalPerson", t3);
|
||
}, expression: "companyInfo.legalPerson" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业创建人账号" } }, [n2("el-input", { attrs: { disabled: "" }, model: { value: e2.companyInfo.phoneNumber, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "phoneNumber", t3);
|
||
}, expression: "companyInfo.phoneNumber" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业邮编" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "6", clearable: "" }, model: { value: e2.companyInfo.postalCode, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "postalCode", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.postalCode" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "付款人联系电话" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "11", clearable: "" }, model: { value: e2.companyInfo.payerMobile, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "payerMobile", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.payerMobile" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "银行账号" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, maxlength: "25", clearable: "" }, model: { value: e2.companyInfo.publicBankNo, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "publicBankNo", "string" === typeof t3 ? t3.trim() : t3);
|
||
}, expression: "companyInfo.publicBankNo" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "企业微信ID(CorpID)" } }, [n2("el-input", { attrs: { disabled: e2.disabledDisp, placeholder: "企业微信ID(CorpID)" }, model: { value: e2.companyInfo.weixinCorpId, callback: function(t3) {
|
||
e2.$set(e2.companyInfo, "weixinCorpId", t3);
|
||
}, expression: "companyInfo.weixinCorpId" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "客户端-小程序码" } }, [n2("div", { staticClass: "companyInfo" }, [n2("el-upload", { staticClass: "avatar-uploader", attrs: { action: "", "http-request": e2.uploadImg, "show-file-list": false, data: { type: "mini" }, "on-success": e2.handleAvatarSuccess, "before-upload": e2.beforeAvatarUpload, disabled: e2.disabledDisp } }, [e2.companyInfo.miniCode ? n2("img", { staticClass: "img", attrs: { src: e2.companyInfo.miniCode } }) : n2("i", { staticClass: "el-icon-plus avatar-uploader-icon" })])], 1)])], 1)], 1), e2._v(" "), n2("el-col", { attrs: { span: 6 } }, [n2("el-form", { attrs: { "label-width": "100px", "label-position": "left" } }, [e2.is_show ? e2._e() : n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.buttDisplay } }, [e2._v("修改")]), e2._v(" "), e2.is_show ? n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.updateCompanyInfo } }, [e2._v("保存")]) : e2._e()], 1)], 1)], 1)], 1), e2._v(" "), n2("el-card", { staticClass: "box-card", staticStyle: { margin: "15px 0px" }, attrs: { shadow: "never" } }, [n2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [n2("span", [e2._v("分账银行账户信息")])]), e2._v(" "), n2("div", { staticClass: "addStys" }, [n2("el-button", { attrs: { type: "primary" }, on: { click: e2.addAccountClick } }, [e2._v("新增银行账户")])], 1), e2._v(" "), n2("el-table", { staticStyle: { width: "100%" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [n2("el-table-column", { attrs: { label: "#", type: "index", align: "center", width: "50" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "openAnAccountBank", label: "开户银行" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "openAnAccountPerson", label: "开户人全称" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "bankAccount", label: "银行账号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.row.bankAccount.replace(/\s/g, "").replace(/[^\d]/g, "").replace(/(\d{4})(?=\d)/g, "$1 ")))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { label: "操作", width: "120", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { attrs: { type: "text" }, nativeOn: { click: function(n3) {
|
||
return n3.preventDefault(), e2.editClick(t3.row);
|
||
} } }, [e2._v("编辑")]), e2._v(" "), n2("el-button", { attrs: { type: "text" }, nativeOn: { click: function(n3) {
|
||
return n3.preventDefault(), e2.deleteClick(t3.row);
|
||
} } }, [e2._v("删除")])];
|
||
} }]) })], 1), e2._v(" "), n2("el-pagination", { attrs: { background: "", "current-page": e2.queryAccount.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.queryAccount.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.queryAccount, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.queryAccount, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange1, "current-change": e2.handleCurrentChange1 } })], 1), e2._v(" "), n2("el-card", { staticClass: "box-card", staticStyle: { margin: "15px 0px" }, attrs: { shadow: "never" } }, [n2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [n2("span", [e2._v("纸电/全电发票资质信息")]), e2._v(" "), n2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "请联系运营师,进行申请批配置", placement: "top-start" } }, [n2("i", { staticClass: "el-icon-question" })])], 1), e2._v(" "), n2("div", { staticClass: "addStys" }, [n2("el-button", { attrs: { type: "primary" }, on: { click: e2.addInvoiceClick } }, [e2._v("新增开票资质")])], 1), e2._v(" "), n2("el-table", { staticStyle: { width: "100%" }, attrs: { border: "", data: e2.invocieTableData, "header-cell-style": e2.headClass } }, [n2("el-table-column", { attrs: { label: "#", type: "index", align: "center", width: "50" } }), e2._v(" "), n2("el-table-column", { attrs: { "render-header": e2.handleHelp, align: "center", prop: "invoiceSecret", label: "资质Secret" } }), e2._v(" "), n2("el-table-column", { attrs: { "render-header": e2.handleHelp, align: "center", prop: "invoiceKey", label: "资质Key" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "invoiceStatus", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(0 === t3.row.invoiceStatus ? "禁用" : "启用"))])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { label: "操作", width: "120", align: "center" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("el-button", { attrs: { type: "text" }, nativeOn: { click: function(n3) {
|
||
return n3.preventDefault(), e2.editInvoiceInfor(t3.row);
|
||
} } }, [e2._v(e2._s(0 === t3.row.invoiceStatus ? "启用" : "禁用"))])];
|
||
} }]) })], 1)], 1), e2._v(" "), n2("el-card", { staticClass: "box-card", staticStyle: { margin: "15px 0px" }, attrs: { shadow: "never" } }, [n2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [n2("span", [e2._v("云豆配置")]), e2._v(" "), n2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "此配置用于计算作业工单所得云豆积分,请联系运营师配置使用", placement: "top-start" } }, [n2("i", { staticClass: "el-icon-question" })])], 1), e2._v(" "), n2("div", { staticClass: "addStys" }, [n2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", disabled: 2 == e2.resultList.length }, on: { click: function(t3) {
|
||
e2.addPointsAccount = true;
|
||
} } }, [e2._v("引用积分")])], 1), e2._v(" "), n2("el-table", { staticStyle: { width: "100%" }, attrs: { border: "", data: e2.dataList, "header-cell-style": e2.headClass } }, [n2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [n2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
||
} }]) }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "code", label: "积分代码" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "integralTypeName", label: "积分类型" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "accountName", label: "账户名" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "accountNo", label: "账号" } }), e2._v(" "), n2("el-table-column", { attrs: { align: "center", prop: "describes", label: "用途说明" } })], 1), e2._v(" "), n2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "update:current-page": function(t3) {
|
||
return e2.$set(e2.query, "pageNumber", t3);
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1), e2._v(" "), n2("el-dialog", { attrs: { "show-close": true, visible: e2.addAccount, "close-on-press-escape": false, "close-on-click-modal": false, title: "工分入账明细" }, on: { "update:visible": function(t3) {
|
||
e2.addAccount = t3;
|
||
} } }, [n2("el-form", { ref: "ruleForm", staticClass: "demo-ruleForm", attrs: { model: e2.ruleForm, rules: e2.rules, "label-width": "100px" } }, [n2("el-form-item", { attrs: { label: "开户银行", prop: "openAnAccountBank" } }, [n2("el-input", { attrs: { clearable: "" }, model: { value: e2.ruleForm.openAnAccountBank, callback: function(t3) {
|
||
e2.$set(e2.ruleForm, "openAnAccountBank", t3);
|
||
}, expression: "ruleForm.openAnAccountBank" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "开户人全称", prop: "openAnAccountPerson" } }, [n2("el-input", { attrs: { clearable: "" }, model: { value: e2.ruleForm.openAnAccountPerson, callback: function(t3) {
|
||
e2.$set(e2.ruleForm, "openAnAccountPerson", t3);
|
||
}, expression: "ruleForm.openAnAccountPerson" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "银行账号", prop: "bankAccount" } }, [n2("el-input", { attrs: { maxlength: "19", clearable: "" }, on: { change: function(t3) {
|
||
return e2.validateNum(e2.ruleForm.bankAccount);
|
||
} }, model: { value: e2.ruleForm.bankAccount, callback: function(t3) {
|
||
e2.$set(e2.ruleForm, "bankAccount", t3);
|
||
}, expression: "ruleForm.bankAccount" } })], 1), e2._v(" "), n2("el-form-item", { staticStyle: { "text-align": "center" } }, [n2("el-button", { attrs: { type: "primary", disabled: e2.accountBtun }, on: { click: function(t3) {
|
||
return e2.submitForm("ruleForm");
|
||
} } }, [e2._v("保存")]), e2._v(" "), n2("el-button", { on: { click: function(t3) {
|
||
return e2.resetForm("ruleForm");
|
||
} } }, [e2._v("取消")])], 1)], 1)], 1), e2._v(" "), n2("el-dialog", { attrs: { "show-close": true, visible: e2.addPointsAccount, "close-on-press-escape": false, "close-on-click-modal": false, title: "新增积分账户" }, on: { "update:visible": function(t3) {
|
||
e2.addPointsAccount = t3;
|
||
} } }, [n2("el-form", { ref: "rulePoints", staticClass: "demo-ruleForm", attrs: { model: e2.rulePoints, "label-width": "100px" } }, [n2("el-form-item", { attrs: { label: "积分代码", prop: "code" } }, [n2("el-radio-group", { model: { value: e2.rulePoints.version, callback: function(t3) {
|
||
e2.$set(e2.rulePoints, "version", t3);
|
||
}, expression: "rulePoints.version" } }, [n2("el-radio", { attrs: { label: 1, disabled: e2.isAllowAddOtherVersion } }, [e2._v("云豆绩效1.0")]), e2._v(" "), n2("el-radio", { attrs: { label: 2, disabled: !e2.isAllowAddOtherVersion } }, [e2._v("云豆绩效2.0")])], 1)], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "积分代码", prop: "code" } }, [n2("span", { staticClass: "rulePoints" }, [n2("el-input", { attrs: { clearable: "" }, model: { value: e2.rulePoints.code, callback: function(t3) {
|
||
e2.$set(e2.rulePoints, "code", t3);
|
||
}, expression: "rulePoints.code" } })], 1), e2._v(" "), n2("span", { staticClass: "rulePoints" }, [n2("el-button", { attrs: { type: "text" }, on: { click: e2.queryByCode } }, [e2._v("查询")])], 1)]), e2._v(" "), n2("el-form-item", { attrs: { label: "积分类型", prop: "name" } }, [n2("el-input", { staticClass: "rulePoints", attrs: { disabled: "" }, model: { value: e2.rulePoints.name, callback: function(t3) {
|
||
e2.$set(e2.rulePoints, "name", t3);
|
||
}, expression: "rulePoints.name" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "用途说明", prop: "describes" } }, [n2("el-input", { staticClass: "rulePoints", attrs: { type: "textarea" }, model: { value: e2.rulePoints.describ, callback: function(t3) {
|
||
e2.$set(e2.rulePoints, "describ", t3);
|
||
}, expression: "rulePoints.describ" } })], 1), e2._v(" "), n2("el-form-item", { staticStyle: { "text-align": "center" } }, [n2("el-button", { attrs: { type: "primary" }, on: { click: function(t3) {
|
||
return e2.submitPoints("rulePoints");
|
||
} } }, [e2._v("保存")]), e2._v(" "), n2("el-button", { on: { click: function(t3) {
|
||
return e2.resetPoints("rulePoints");
|
||
} } }, [e2._v("取消")])], 1)], 1)], 1), e2._v(" "), n2("el-dialog", { attrs: { "show-close": true, visible: e2.pointsManage, "close-on-press-escape": false, "close-on-click-modal": false, title: "查看/编辑积分账户" }, on: { "update:visible": function(t3) {
|
||
e2.pointsManage = t3;
|
||
} } }, [n2("el-row", [n2("el-col", { attrs: { span: 12 } }, [e2._v("企业全称:深圳市社区云科技服务有限公司")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("企业统一社会信用代码:1651651651651465")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("企业法人代表:小哦哦")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("法人代表联系方式:12589789564")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("账户名:企业回收账户")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("账号:6005416541651165")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("积分代码:DF")]), e2._v(" "), n2("el-col", { attrs: { span: 12 } }, [e2._v("积分类型:工分积分")]), e2._v(" "), n2("el-col", { staticClass: "placeholder", attrs: { span: 12 } }, [e2._v("用途说明:"), n2("el-input", { attrs: { type: "textarea", placeholder: "请填写积分用途" }, model: { value: e2.description, callback: function(t3) {
|
||
e2.description = t3;
|
||
}, expression: "description" } })], 1)], 1), e2._v(" "), n2("el-row"), e2._v(" "), n2("div", { staticClass: "buttSts" }, [n2("el-button", { attrs: { type: "primary" } }, [e2._v("保存")]), e2._v(" "), n2("el-button", { on: { click: function(t3) {
|
||
e2.pointsManage = false;
|
||
} } }, [e2._v("取消")])], 1)], 1), e2._v(" "), n2("el-dialog", { attrs: { "show-close": true, width: "30%", visible: e2.addInvoice, "close-on-press-escape": false, "close-on-click-modal": false, title: "新增开票资质" }, on: { "update:visible": function(t3) {
|
||
e2.addInvoice = t3;
|
||
} } }, [n2("el-form", { ref: "invoiceForm", staticClass: "demo-ruleForm", attrs: { model: e2.invoiceForm, rules: e2.invoiceRules, "label-width": "100px" } }, [n2("el-form-item", { attrs: { label: "资质Secret", prop: "invoiceSecret" } }, [n2("el-input", { attrs: { clearable: "" }, model: { value: e2.invoiceForm.invoiceSecret, callback: function(t3) {
|
||
e2.$set(e2.invoiceForm, "invoiceSecret", t3);
|
||
}, expression: "invoiceForm.invoiceSecret" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "资质Key", prop: "invoiceKey" } }, [n2("el-input", { attrs: { clearable: "" }, model: { value: e2.invoiceForm.invoiceKey, callback: function(t3) {
|
||
e2.$set(e2.invoiceForm, "invoiceKey", t3);
|
||
}, expression: "invoiceForm.invoiceKey" } })], 1), e2._v(" "), n2("el-form-item", { attrs: { label: "操作", prop: "invoiceKey" } }, [n2("el-switch", { attrs: { "active-color": "#13ce66", "inactive-color": "#ff4949" }, model: { value: e2.value, callback: function(t3) {
|
||
e2.value = t3;
|
||
}, expression: "value" } })], 1), e2._v(" "), n2("el-form-item", { staticStyle: { "text-align": "center" } }, [n2("el-button", { attrs: { type: "primary", disabled: e2.accountInvoiceBtun }, on: { click: function(t3) {
|
||
return e2.submitInvoiceForm("invoiceForm");
|
||
} } }, [e2._v("保存")]), e2._v(" "), n2("el-button", { on: { click: function(t3) {
|
||
return e2.resetInvoiceForm("invoiceForm");
|
||
} } }, [e2._v("取消")])], 1)], 1)], 1)], 1);
|
||
}, o = [], i = (n("ac67"), n("32ea"), n("1bc7"), n("a450"), n("fc02"), n("aa18"), n("982e"), n("d31c"), n("b5aa"), n("3ef1")), r = n("5821"), s = (n("e5b4"), n("8dee"), n("90e7")), c = n("c24f");
|
||
function l(e2, t2) {
|
||
var n2 = Object.keys(e2);
|
||
if (Object.getOwnPropertySymbols) {
|
||
var a2 = Object.getOwnPropertySymbols(e2);
|
||
t2 && (a2 = a2.filter((function(t3) {
|
||
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
||
}))), n2.push.apply(n2, a2);
|
||
}
|
||
return n2;
|
||
}
|
||
function u(e2) {
|
||
for (var t2 = 1; t2 < arguments.length; t2++) {
|
||
var n2 = null != arguments[t2] ? arguments[t2] : {};
|
||
t2 % 2 ? l(Object(n2), true).forEach((function(t3) {
|
||
Object(r["a"])(e2, t3, n2[t3]);
|
||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : l(Object(n2)).forEach((function(t3) {
|
||
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3));
|
||
}));
|
||
}
|
||
return e2;
|
||
}
|
||
var p = { data: function() {
|
||
return { companyInfo: {}, imageUrl: "", description: "", pageTotal: 0, total: 0, tableData: [], dataList: [], is_show: false, iF_show: false, disabledDisp: true, addAccount: false, addPointsAccount: false, pointsManage: false, rulePoints: { id: "", code: "", name: "", describ: "", version: 1 }, accountBtun: false, queryAccount: { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, pageNumber: 1, pageSize: 10 }, query: { pageNumber: 1, pageSize: 10 }, ruleForm: { companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, bankAccount: "", openAnAccountBank: "", openAnAccountPerson: "" }, rules: { openAnAccountBank: [{ required: true, message: "请输入开户银行", trigger: "blur" }], openAnAccountPerson: [{ required: true, message: "请输入开户人全称", trigger: "blur" }], bankAccount: [{ required: true, message: "请输入银行账号", trigger: "blur" }] }, uploadImgType: "", isAllowAddOtherVersion: true, resultList: [], invocieTableData: [], addInvoice: false, accountInvoiceBtun: false, invoiceForm: { invoiceSecret: "", invoiceKey: "", invoiceStatus: 0 }, invoiceRules: { invoiceKey: [{ required: true, message: "请输入开票资质账户", trigger: "blur" }], invoiceSecret: [{ required: true, message: "请输入开票资质账户密码", trigger: "blur" }] }, value: "" };
|
||
}, mounted: function() {
|
||
if (this.headClass(), this.companyInfo = JSON.parse(window.localStorage.getItem("companyInfo")), this.companyInfo && this.companyInfo.id && this.companyInfo.invoiceKey) {
|
||
var e2 = [{ invoiceSecret: this.companyInfo.invoiceSecret, invoiceKey: this.companyInfo.invoiceKey, invoiceStatus: this.companyInfo.invoiceStatus }];
|
||
this.invocieTableData = e2;
|
||
} else this.invocieTableData = [];
|
||
this.pointPageList(), this.getAccountInfo();
|
||
}, methods: { validateNum: function(e2) {
|
||
this.ruleForm.bankAccount = e2.replace(/\s/g, "").replace(/[^\d]/g, "").replace(/(\d{4})(?=\d)/g, "$1 ");
|
||
}, pointPageList: function() {
|
||
var e2 = this, t2 = { pageSize: this.query.pageSize, pageNumber: this.query.pageNumber, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId };
|
||
Object(c["g"])(t2).then((function(t3) {
|
||
if (0 == t3.code) {
|
||
var n2 = t3.data.records;
|
||
if (e2.dataList = n2, n2.length > 0) {
|
||
var a2 = n2.find((function(e3) {
|
||
return 1 === e3.version;
|
||
}));
|
||
console.log("result", a2), a2 && a2.version ? (e2.isAllowAddOtherVersion = true, e2.rulePoints.version = 2) : (e2.isAllowAddOtherVersion = false, e2.rulePoints.version = 1);
|
||
var o2 = e2.groupArr(n2, (function(e3) {
|
||
return [e3.version];
|
||
}));
|
||
e2.resultList = o2;
|
||
}
|
||
e2.pageTotal = t3.data.rowsCount;
|
||
}
|
||
}));
|
||
}, queryByCode: function() {
|
||
var e2 = this;
|
||
Object(c["h"])({ code: this.rulePoints.code }).then((function(t2) {
|
||
0 == t2.code && (e2.rulePoints = Object.assign(t2.data, { version: e2.rulePoints.version }));
|
||
})).catch((function() {
|
||
e2.rulePoints.id = "";
|
||
}));
|
||
}, seeClick: function(e2) {
|
||
this.pointsManage = true;
|
||
}, addAccountClick: function() {
|
||
this.ruleForm.id = "", this.ruleForm.bankAccount = "", this.ruleForm.openAnAccountBank = "", this.ruleForm.openAnAccountPerson = "", this.addAccount = true;
|
||
}, editClick: function(e2) {
|
||
this.addAccount = true, this.ruleForm = u({}, e2), this.validateNum(e2.bankAccount);
|
||
}, deleteClick: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(c["b"])({ id: e2.id }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ message: "删除成功", type: "success" }), t2.getAccountInfo());
|
||
}));
|
||
}));
|
||
}, getAccountInfo: function() {
|
||
var e2 = this;
|
||
Object(c["f"])(this.queryAccount).then((function(t2) {
|
||
0 == t2.code && (e2.tableData = t2.data.records, e2.total = t2.data.rowsCount);
|
||
}));
|
||
}, submitForm: function(e2) {
|
||
var t2 = this;
|
||
this.accountBtun = true, this.$refs[e2].validate((function(e3) {
|
||
e3 ? (t2.ruleForm.bankAccount = t2.ruleForm.bankAccount.replace(/\s+/g, ""), t2.ruleForm.id ? t2.updateAccount() : (delete t2.ruleForm.id, t2.createAccount())) : t2.accountBtun = false;
|
||
}));
|
||
}, submitPoints: function() {
|
||
var e2 = this, t2 = { integralTypeId: this.rulePoints.id, describes: this.rulePoints.describ, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, version: this.rulePoints.version };
|
||
this.rulePoints.id ? Object(c["i"])(t2).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ message: "新增成功", type: "success" }), e2.rulePoints.id = "", e2.addPointsAccount = false, e2.pointPageList());
|
||
})) : this.$message({ message: "请输入有效积分代码", type: "error" });
|
||
}, resetForm: function(e2) {
|
||
this.$refs[e2].resetFields(), this.addAccount = false;
|
||
}, resetPoints: function(e2) {
|
||
this.$refs[e2].resetFields(), this.rulePoints.id = "", this.rulePoints.describ = "", this.addPointsAccount = false;
|
||
}, uploadImg: (function() {
|
||
var e2 = Object(i["a"])(regeneratorRuntime.mark((function e3(t3) {
|
||
var n2, a2, o2, i2, r2;
|
||
return regeneratorRuntime.wrap((function(e4) {
|
||
while (1) switch (e4.prev = e4.next) {
|
||
case 0:
|
||
return e4.prev = 0, this.uploadImgType = t3.data.type, n2 = t3.file, a2 = new FormData(), a2.append("file", n2), a2.append("type", this.uploadImgType), e4.next = 1, Object(s["o"])(a2);
|
||
case 1:
|
||
if (o2 = e4.sent, !o2 || !o2.data || 0 !== o2.data.code) {
|
||
e4.next = 2;
|
||
break;
|
||
}
|
||
i2 = o2.data.data.fullUrl || o2.data.data.url, t3.onSuccess({ url: i2 }), this.$message.success("图片上传成功"), e4.next = 3;
|
||
break;
|
||
case 2:
|
||
throw new Error(o2.data.message || "上传失败");
|
||
case 3:
|
||
e4.next = 5;
|
||
break;
|
||
case 4:
|
||
e4.prev = 4, r2 = e4["catch"](0), console.error("上传失败:", r2), this.$message.error("图片上传失败: ".concat(r2.message || "未知错误")), t3.onError("上传失败");
|
||
case 5:
|
||
case "end":
|
||
return e4.stop();
|
||
}
|
||
}), e3, this, [[0, 4]]);
|
||
})));
|
||
function t2(t3) {
|
||
return e2.apply(this, arguments);
|
||
}
|
||
return t2;
|
||
})(), buttDisplay: function() {
|
||
this.is_show = !this.is_show, this.disabledDisp = !this.disabledDisp;
|
||
}, handleAvatarSuccess: function(e2) {
|
||
e2 && e2.url && (console.log("mini" == this.uploadImgType), "mini" == this.uploadImgType ? this.companyInfo.miniCode = e2.url : "seal" == this.uploadImgType ? this.companyInfo.sealImages = e2.url : this.companyInfo.logo = e2.url);
|
||
}, beforeAvatarUpload: function(e2) {
|
||
var t2 = e2.size / 1024 / 1024 < 1;
|
||
t2 || this.$message.error("上传图片大小不能超过 1MB!");
|
||
var n2 = e2.type.startsWith("image/");
|
||
return n2 ? t2 && n2 : (this.$message.error("只能上传图片文件!"), false);
|
||
}, filterUpdate: function() {
|
||
if (this.companyInfo.pointCopartnerIds) {
|
||
if ("string" === typeof this.companyInfo.pointCopartnerIds) if (this.companyInfo.pointCopartnerIds.includes(",")) this.companyInfo.pointCopartnerIds = this.companyInfo.pointCopartnerIds.split(",").map((function(e2) {
|
||
return e2.trim();
|
||
}));
|
||
else try {
|
||
this.companyInfo.pointCopartnerIds = JSON.parse(this.companyInfo.pointCopartnerIds), Array.isArray(this.companyInfo.pointCopartnerIds) || (this.companyInfo.pointCopartnerIds = [this.companyInfo.pointCopartnerIds]);
|
||
} catch (e2) {
|
||
console.error("Error parsing JSON:", e2), this.companyInfo.pointCopartnerIds = [];
|
||
}
|
||
} else this.companyInfo.pointCopartnerIds = [];
|
||
}, updateCompanyInfo: function() {
|
||
var e2 = this;
|
||
this.buttDisplay(), this.filterUpdate();
|
||
var t2 = JSON.parse(window.localStorage.getItem("memberInfor"));
|
||
this.companyInfo.updateBy = t2.id, this.companyInfo.updateName = t2.name, this.companyInfo.updateSource = 2, console.log(this.companyInfo, "updateSource"), Object(c["l"])(this.companyInfo).then((function(t3) {
|
||
if (0 == t3.code) {
|
||
e2.$message({ message: "修改成功", type: "success" }), t3.data.osId = JSON.parse(localStorage.getItem("companyInfo")).osId, t3.data.osUuid = JSON.parse(localStorage.getItem("companyInfo")).osUuid, window.localStorage.setItem("companyInfo", JSON.stringify(t3.data));
|
||
var n2 = document.querySelector("link[rel*='icon']") || document.createElement("link");
|
||
n2.rel = "icon", n2.href = t3.data.logo, document.getElementsByTagName("head")[0].appendChild(n2), e2.$store.dispatch("user/setLogo", t3.data.logo);
|
||
}
|
||
}));
|
||
}, updateAccount: function() {
|
||
var e2 = this;
|
||
Object(c["k"])(this.ruleForm).then((function(t2) {
|
||
0 == t2.code && (e2.$message({ message: "更新成功", type: "success" }), e2.accountBtun = false, e2.addAccount = false, e2.getAccountInfo());
|
||
})).catch((function() {
|
||
e2.accountBtun = false;
|
||
}));
|
||
}, createAccount: function() {
|
||
var e2 = this;
|
||
Object(c["a"])(this.ruleForm).then((function(t2) {
|
||
0 == t2.code && (e2.$message({ message: "新增成功", type: "success" }), e2.accountBtun = false, e2.addAccount = false, e2.getAccountInfo());
|
||
})).catch((function() {
|
||
e2.accountBtun = false;
|
||
}));
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.query.pageNumber = 1, this.pointPageList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.pointPageList();
|
||
}, handleSizeChange1: function(e2) {
|
||
this.queryAccount.pageSize = e2, this.queryAccount.pageNumber = 1, this.getAccountInfo();
|
||
}, handleCurrentChange1: function(e2) {
|
||
this.queryAccount.pageNumber = e2, this.getAccountInfo();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, groupArr: function(e2, t2) {
|
||
var n2 = {};
|
||
return e2.forEach((function(e3) {
|
||
var a2 = JSON.stringify(t2(e3));
|
||
n2[a2] = n2[a2] || [], n2[a2].push(e3);
|
||
})), Object.keys(n2).map((function(e3) {
|
||
return n2[e3];
|
||
}));
|
||
}, addInvoiceClick: function() {
|
||
this.addInvoice = true;
|
||
}, submitInvoiceForm: function(e2) {
|
||
var t2 = this;
|
||
this.accountInvoiceBtun = true, this.$refs[e2].validate((function(n2) {
|
||
if (n2) {
|
||
var a2 = Object.assign(t2.companyInfo, t2.invoiceForm);
|
||
t2.filterUpdate(), Object(c["l"])(a2).then((function(n3) {
|
||
if (t2.$message({ message: "更新企业开票资质成功", type: "success" }), t2.companyInfo = n3.data, 0 == t2.invocieTableData.length) {
|
||
var a3 = [{ invoiceSecret: t2.companyInfo.invoiceSecret, invoiceKey: t2.companyInfo.invoiceKey, invoiceStatus: t2.companyInfo.invoiceStatus }];
|
||
t2.invocieTableData = a3;
|
||
} else t2.$nextTick((function() {
|
||
t2.$set(t2.invocieTableData[0], "invoiceStatus", 0);
|
||
})), t2.$forceUpdate();
|
||
localStorage.setItem("companyInfo", JSON.stringify(n3.data)), t2.accountInvoiceBtun = false, t2.resetInvoiceForm(e2);
|
||
}));
|
||
} else t2.accountInvoiceBtun = false;
|
||
}));
|
||
}, resetInvoiceForm: function(e2) {
|
||
this.$refs[e2].resetFields(), this.addInvoice = false;
|
||
}, editInvoiceInfor: function(e2) {
|
||
var t2 = this;
|
||
this.$confirm("确定变更该数据状态?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
var n2 = 0 == e2.invoiceStatus ? 1 : 0, a2 = Object.assign(t2.companyInfo, { invoiceStatus: n2 });
|
||
t2.filterUpdate(), Object(c["l"])(a2).then((function(e3) {
|
||
t2.$message({ message: "更新企业开票资质成功", type: "success" }), t2.$nextTick((function() {
|
||
t2.$set(t2.invocieTableData[0], "invoiceStatus", n2);
|
||
})), t2.$forceUpdate(), t2.companyInfo = e3.data, localStorage.setItem("companyInfo", JSON.stringify(e3.data));
|
||
}));
|
||
}));
|
||
}, handleHelp: function(e2, t2) {
|
||
var n2 = t2.column;
|
||
return e2("span", [e2("el-tooltip", { props: { effect: "dark", content: "资质Secret、资质Key “请咨询运营师,提供第三方平台相关数据。”", placement: "top" } }, [e2("span", n2.label + " ", {})])]);
|
||
} } }, d = p, m = (n("5130"), n("829d")), f = Object(m["a"])(d, a, o, false, null, null, null);
|
||
t["default"] = f.exports;
|
||
}, "90e7": function(e, t, n) {
|
||
"use strict";
|
||
n.d(t, "g", (function() {
|
||
return o;
|
||
})), n.d(t, "m", (function() {
|
||
return i;
|
||
})), n.d(t, "f", (function() {
|
||
return r;
|
||
})), n.d(t, "l", (function() {
|
||
return s;
|
||
})), n.d(t, "h", (function() {
|
||
return c;
|
||
})), n.d(t, "n", (function() {
|
||
return l;
|
||
})), n.d(t, "a", (function() {
|
||
return u;
|
||
})), n.d(t, "b", (function() {
|
||
return p;
|
||
})), n.d(t, "c", (function() {
|
||
return d;
|
||
})), n.d(t, "e", (function() {
|
||
return m;
|
||
})), n.d(t, "d", (function() {
|
||
return f;
|
||
})), n.d(t, "i", (function() {
|
||
return b;
|
||
})), n.d(t, "j", (function() {
|
||
return v;
|
||
})), n.d(t, "o", (function() {
|
||
return h;
|
||
})), n.d(t, "k", (function() {
|
||
return y;
|
||
}));
|
||
var a = n("b775");
|
||
function o(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/DeductionInfo/findById", method: "post", data: e2 });
|
||
}
|
||
function i(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/DeductionInfo/update", method: "post", data: e2 });
|
||
}
|
||
function r(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/CollectionInfoApi/findById", method: "post", data: e2 });
|
||
}
|
||
function s(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/CollectionInfoApi/update", method: "post", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/ChargePushConfigApi/findById", method: "post", data: e2 });
|
||
}
|
||
function l(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/ChargePushConfigApi/update", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(a["a"])({ url: "/company/ProjectSatisfactionConfig/pageList", method: "post", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(a["a"])({ url: "/company/ProjectSatisfactionConfig/update", method: "post", data: e2 });
|
||
}
|
||
function d(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/create", method: "post", data: e2 });
|
||
}
|
||
function m(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/findByCompanyIdAndType", method: "post", data: e2 });
|
||
}
|
||
function f(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/sceneMenuList", method: "post", data: e2 });
|
||
}
|
||
function b(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/pageList", method: "post", data: e2 });
|
||
}
|
||
function v(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/updateExponentByProjectUuid", method: "post", data: e2 });
|
||
}
|
||
function h(e2, t2) {
|
||
return Object(a["a"])({ url: "/oss/upload", isFile: true, isReturnResponse: true, headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, method: "post", data: e2, onUploadProgress: t2 && t2.onUploadProgress });
|
||
}
|
||
function y(e2) {
|
||
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid", method: "post", data: e2 });
|
||
}
|
||
} }]);
|