426 lines
49 KiB
JavaScript
426 lines
49 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-0b2c2680"], { "06fa": function(e, a, t) {
|
||
"use strict";
|
||
t.d(a, "a", (function() {
|
||
return n;
|
||
}));
|
||
var s = t("b775");
|
||
function n(e2) {
|
||
return Object(s["a"])({ url: "/hakocompany/menu/selectMenuAll", method: "post", data: e2 });
|
||
}
|
||
}, "389c": function(e, a, t) {
|
||
"use strict";
|
||
t("efbf");
|
||
}, "790c": function(e, a, t) {
|
||
}, e631: function(e, a, t) {
|
||
"use strict";
|
||
t("790c");
|
||
}, efbf: function(e, a, t) {
|
||
}, f907: function(e, a, t) {
|
||
"use strict";
|
||
t.r(a);
|
||
var s = function() {
|
||
var e2 = this, a2 = e2.$createElement, t2 = e2._self._c || a2;
|
||
return t2("div", { staticClass: "app-container bgHeight" }, [e2.list ? t2("div", [t2("el-card", { staticClass: "box-card" }, [t2("div", { staticClass: "clearfix list-header", attrs: { slot: "header" }, slot: "header" }, [t2("span", [e2._v("产品列表")]), e2._v(" "), t2("div", [t2("el-button", { attrs: { type: "text" }, on: { click: e2.myLike } }, [e2._v("收藏夹")])], 1)]), e2._v(" "), t2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e2.handleTabClick }, model: { value: e2.activeTab, callback: function(a3) {
|
||
e2.activeTab = a3;
|
||
}, expression: "activeTab" } }, [t2("el-tab-pane", { attrs: { label: "解决方案", name: "解决方案", value: 99 } }), e2._v(" "), t2("div", { staticClass: "applicationList" }, e2._l(e2.datalist, (function(a3, s2) {
|
||
return t2("div", { key: s2, on: { click: function(t3) {
|
||
return e2.applicationBuy(a3);
|
||
} } }, [t2("div", { staticClass: "applicationItem" }, [t2("div", { staticClass: "item-start" }, [2 == a3.like ? t2("i", { staticClass: "el-icon-star-off", on: { click: function(t3) {
|
||
return t3.stopPropagation(), e2.clickStar(a3);
|
||
} } }) : e2._e(), e2._v(" "), 1 == a3.like ? t2("i", { staticClass: "el-icon-star-on", on: { click: function(t3) {
|
||
return t3.stopPropagation(), e2.clickStar(a3);
|
||
} } }) : e2._e()]), e2._v(" "), t2("div", { staticClass: "item-card" }, [t2("div", { staticClass: "applicationImgBox" }, [t2("el-image", { staticClass: "applicationImg", attrs: { src: a3.icon || a3.imgUrl } })], 1), e2._v(" "), t2("div", { staticClass: "applicationInfor" }, [t2("div", { staticClass: "applicationTitle" }, [e2._v(e2._s(a3.name))]), e2._v(" "), t2("div", { staticClass: "applicationType" }, [e2._v(e2._s(e2._f("getItemType")(a3.type, e2.productType)))]), e2._v(" "), t2("div", { staticClass: "applicationDes" }, [e2._v("\n " + e2._s(a3.describes || a3.description) + "\n ")])])]), e2._v(" "), t2("div", { staticClass: "item-addCar" })])]);
|
||
})), 0), e2._v(" "), 0 == e2.datalist.length ? t2("div", { staticClass: "applicationList nodata" }, [e2._v("暂无商品")]) : e2._e()], 1)], 1), e2._v(" "), t2("scanPay", { attrs: { show: e2.scanVisible, info: e2.scanInfo }, on: { back: e2.getBack } }), e2._v(" "), e2.dialogVisible ? t2("el-dialog", { attrs: { title: "购买产品", visible: e2.dialogVisible, top: "10vh", width: "45%", "custom-class": "paymentDialog", "append-to-body": true, "close-on-press-escape": false, "destroy-on-close": true, "before-close": e2.handleClose } }, [t2("div", { staticClass: "paymentInfor" }, [t2("div", { staticClass: "paymentHeader" }, [t2("el-divider", { staticClass: "paymentdivider" }, [e2._v(e2._s(e2.detailes.name))]), e2._v(" "), t2("el-tabs", { staticClass: "paymentDes", attrs: { type: "border-card" } }, [t2("el-tab-pane", { attrs: { label: "产品介绍" } }, [t2("div", { staticStyle: { "line-height": "1.8" } }, [e2._v(e2._s(e2.detailes.describes))])]), e2._v(" "), t2("el-tab-pane", { attrs: { label: "功能菜单" } }, [e2.detailes.menuList.length > 0 ? t2("div", { staticClass: "menuTreeBox" }, [t2("div", { staticClass: "itemMenuTree" }, [t2("span", [e2._v("企业服务平台")]), e2._v(" "), t2("el-scrollbar", { staticClass: "itemMenuScroll", staticStyle: { height: "100%" }, attrs: { "wrap-style": "overflow-x:hidden;" } }, [t2("el-tree", { ref: "companyMenu", attrs: { data: e2.companyMenu, "show-checkbox": "", "node-key": "id", props: e2.defaultProps }, on: { "node-click": function(a3) {
|
||
return e2.nodeClick(a3, "company");
|
||
} } })], 1)], 1), e2._v(" "), t2("div", { staticClass: "itemMenuTree" }, [t2("span", [e2._v("项目运营平台")]), e2._v(" "), t2("el-scrollbar", { staticClass: "itemMenuScroll", staticStyle: { height: "100%" }, attrs: { "wrap-style": "overflow-x:hidden;" } }, [t2("el-tree", { ref: "projectMenu", attrs: { data: e2.projectMenu, "show-checkbox": "", "node-key": "id", props: e2.defaultProps }, on: { "node-click": function(a3) {
|
||
return e2.nodeClick(a3, "project");
|
||
} } })], 1)], 1)]) : t2("div", [e2._v("该产品不包含任何功能菜单!")])])], 1)], 1), e2._v(" "), t2("div", { staticClass: "paymentBox" }, [t2("div", { staticClass: "paymentContent" }, [t2("div", { staticClass: "paymentBase" }, [t2("el-form", { ref: "paymentBase", staticClass: "paymentBaseFrom", attrs: { "label-width": "100px", model: e2.paymentBase, rules: e2.paymentBaseRules } }, [t2("el-form-item", { attrs: { label: "产品价格:" } }, [t2("div", [t2("span", { staticClass: "marketPrice" }, [e2._v(e2._s(e2._f("toThousandFilter")(e2.paymentBase.marketPrice)))]), e2._v("元/月\n ")])]), e2._v(" "), t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { attrs: { label: "使用时长:", prop: "useMonth" } }, [t2("el-select", { attrs: { disabled: "" }, on: { change: e2.changeToCulPrice }, model: { value: e2.paymentBase.useMonth, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "useMonth", a3);
|
||
}, expression: "paymentBase.useMonth" } }, [t2("el-option", { attrs: { label: "1个月", value: 1 } }), e2._v(" "), t2("el-option", { attrs: { label: "6个月", value: 6 } }), e2._v(" "), t2("el-option", { attrs: { label: "12个月", value: 12 } })], 1)], 1)], 1), e2._v(" "), t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { attrs: { label: "购买数量:", prop: "pnum" } }, [t2("el-input-number", { attrs: { "controls-position": "right", min: 1, max: 9999 }, on: { change: e2.changeToCulPrice }, model: { value: e2.paymentBase.pnum, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "pnum", a3);
|
||
}, expression: "paymentBase.pnum" } })], 1)], 1)], 1), e2._v(" "), "注册合伙人" != e2.paymentBase.name ? t2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(a3) {
|
||
e2.activeName = a3;
|
||
}, expression: "activeName" } }, [t2("el-tab-pane", { attrs: { label: "优惠码", name: "discountCode" } }, [t2("el-form-item", { attrs: { label: "优惠码:", prop: "discountCode" } }, [t2("el-input", { attrs: { placeholder: "请填写优惠码" }, on: { blur: function(a3) {
|
||
return e2.checkDiscount(0);
|
||
} }, model: { value: e2.paymentBase.discountCode, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "discountCode", a3);
|
||
}, expression: "paymentBase.discountCode" } })], 1)], 1), e2._v(" "), t2("el-tab-pane", { attrs: { label: "推荐人", name: "recommMobile" } }, [t2("el-form-item", { attrs: { label: "姓名:", prop: "recommName" } }, [t2("el-input", { attrs: { placeholder: "请填写推荐人姓名" }, model: { value: e2.paymentBase.recommName, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "recommName", a3);
|
||
}, expression: "paymentBase.recommName" } })], 1), e2._v(" "), t2("el-form-item", { attrs: { label: "手机号码:", prop: "recommMobile" } }, [t2("el-input", { attrs: { placeholder: "请填写推荐人手机号码" }, on: { blur: function(a3) {
|
||
return e2.checkDiscount(1);
|
||
} }, model: { value: e2.paymentBase.recommMobile, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "recommMobile", a3);
|
||
}, expression: "paymentBase.recommMobile" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), t2("el-form-item", { attrs: { label: "支付方式:", prop: "payType" } }, [t2("el-radio-group", { model: { value: e2.paymentBase.payType, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payType", a3);
|
||
}, expression: "paymentBase.payType" } }, [t2("el-radio", { attrs: { label: 1 } }, [e2._v("线上支付")]), e2._v(" "), t2("el-radio", { attrs: { label: 2 } }, [e2._v("公对公转账")])], 1)], 1), e2._v(" "), t2("el-form-item", { attrs: { label: "消费项目:" } }, [t2("el-select", { staticClass: "select-dom", staticStyle: { width: "400px" }, attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "请选择项目" }, model: { value: e2.paymentBase.availableRange, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "availableRange", a3);
|
||
}, expression: "paymentBase.availableRange" } }, e2._l(e2.projectList, (function(e3) {
|
||
return t2("el-option", { key: e3.uuid, attrs: { label: e3.name, value: e3.uuid } });
|
||
})), 1)], 1), e2._v(" "), t2("div", { staticStyle: { color: "red" } }, [e2._v(e2._s(e2.preferentialCodeMessage))]), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款账户:", prop: "payBankNo" } }, [t2("el-input", { attrs: { placeholder: "请输入付款账号", maxlength: "25", clearable: "" }, model: { value: e2.paymentBase.payBankNo, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payBankNo", a3);
|
||
}, expression: "paymentBase.payBankNo" } })], 1)], 1), e2._v(" "), t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款银行:", prop: "payBank" } }, [t2("el-input", { attrs: { placeholder: "请输入付款银行名称", maxlength: "25", clearable: "" }, model: { value: e2.paymentBase.payBank, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payBank", a3);
|
||
}, expression: "paymentBase.payBank" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款人:", prop: "payer" } }, [t2("el-input", { attrs: { placeholder: "请输入付款人姓名", maxlength: "16", clearable: "" }, model: { value: e2.paymentBase.payer, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payer", a3);
|
||
}, expression: "paymentBase.payer" } })], 1)], 1), e2._v(" "), t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "联系电话:", prop: "payerMobile" } }, [t2("el-input", { attrs: { placeholder: "请输入联系电话", maxlength: "11", clearable: "" }, model: { value: e2.paymentBase.payerMobile, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payerMobile", a3);
|
||
}, expression: "paymentBase.payerMobile" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款时间:", prop: "payTime" } }, [t2("el-date-picker", { attrs: { type: "datetime", format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", placeholder: "付款时间" }, model: { value: e2.paymentBase.payTime, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payTime", a3);
|
||
}, expression: "paymentBase.payTime" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", [t2("el-form-item", { staticClass: "is-required", attrs: { label: "上传附件:", prop: "appendixUrl" } }, [t2("AliOSSUpload", { attrs: { limit: 3, imgStore: e2.imgStore, accept: e2.accept, allowFileType: e2.allowFileType2, fileList: e2.fileListInfo, isChangeFileName: false, showFileList: true, listType: "text" }, on: { getUploadData: e2.getUploadData2 }, scopedSlots: e2._u([{ key: "uploadButton", fn: function() {
|
||
return [t2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload", attrs: { type: "primary", plain: "", size: "small" } }, [e2._v("选择付款凭证附件")])];
|
||
}, proxy: true }], null, false, 4144669781) })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("div", { staticClass: "uploadFileNotes" }, [t2("span", { staticClass: "el-icon-info" }), e2._v(" 支持附件扩展名: .jpg, .JPG,\n .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG等图片,最多可上传 3\n 个附件。\n ")]) : e2._e()], 1)], 1), e2._v(" "), t2("div", { staticClass: "paymentPrice" }, [t2("div", { staticClass: "paymentAgreement" }, [t2("el-checkbox", { model: { value: e2.paymentAgreement, callback: function(a3) {
|
||
e2.paymentAgreement = a3;
|
||
}, expression: "paymentAgreement" } }), e2._v("我已知悉"), t2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
||
e2.dialogFileVisible = true;
|
||
} } }, [e2._v("《深圳市社区云科技服务有限公司SaaS合作合同书》")])], 1), e2._v(" "), t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 应付金额:"), t2("span", { staticClass: "paymentPrice" }, [e2._v(e2._s(e2._f("toThousandFilter")(e2.payable)))]), e2._v("元\n ")]), e2._v(" "), "注册合伙人" != e2.paymentBase.name ? t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 优惠金额:"), t2("span", { staticClass: "paymentPrice priceGray" }, [e2.discount > 0 ? t2("span", {}, [e2._v("-")]) : e2._e(), e2._v("\n " + e2._s(e2._f("toThousandFilter")(e2.discount)))]), e2._v("元\n ")]) : e2._e(), e2._v(" "), t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 实付金额:"), t2("span", { staticClass: "paymentPrice priceRed" }, [e2._v(e2._s(e2._f("toThousandFilter")(e2.payAmount)))]), e2._v("元\n ")])]), e2._v(" "), t2("div", { staticClass: "paymentbtn" }, [t2("el-button", { attrs: { type: "danger" }, on: { click: e2.createOrder } }, [e2._v("支付")])], 1)])])])]) : e2._e(), e2._v(" "), t2("el-dialog", { attrs: { title: "合同模板预览", visible: e2.dialogFileVisible }, on: { "update:visible": function(a3) {
|
||
e2.dialogFileVisible = a3;
|
||
} } }, [t2("iframe", { attrs: { src: "https://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/static/template/SaasContract.pdf", frameborder: "0", scrolling: "no", height: "550px", width: "100%" } }), e2._v(" "), t2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [t2("el-button", { on: { click: function(a3) {
|
||
e2.dialogFileVisible = false;
|
||
} } }, [e2._v("关闭")])], 1)]), e2._v(" "), t2("el-dialog", { attrs: { title: "收藏夹", visible: e2.likeVisible, width: "50%" }, on: { "update:visible": function(a3) {
|
||
e2.likeVisible = a3;
|
||
}, closed: e2.getList } }, [t2("el-row", { staticStyle: { height: "500px", overflow: "auto" } }, [e2._l(e2.likeList, (function(a3, s2) {
|
||
return t2("el-col", { key: s2, attrs: { span: 8 } }, [t2("div", { staticClass: "applicationList" }, [t2("div", { staticClass: "applicationItem" }, [t2("div", { staticClass: "item-start" }, [t2("i", { staticClass: "el-icon-star-on", on: { click: function(t3) {
|
||
return t3.stopPropagation(), e2.clickLikeStar(a3);
|
||
} } })]), e2._v(" "), t2("div", { staticClass: "item-card" }, [t2("div", { staticClass: "applicationImgBox" }, [t2("el-image", { staticClass: "applicationImg", attrs: { src: a3.imgUrl } })], 1), e2._v(" "), t2("div", { staticClass: "applicationInfor" }, [t2("div", { staticClass: "applicationTitle" }, [e2._v(e2._s(a3.targetName))]), e2._v(" "), t2("div", { staticClass: "applicationDes" }, [e2._v("\n " + e2._s(a3.description) + "\n ")])])]), e2._v(" "), t2("div", { staticClass: "item-addCar" })])])]);
|
||
})), e2._v(" "), 0 == e2.likeList.length ? t2("div", { staticClass: "applicationList nodata" }, [e2._v("暂无收藏内容!~")]) : e2._e()], 2)], 1)], 1) : e2._e(), e2._v(" "), e2.car ? t2("SaaScar", { attrs: { projectList: e2.projectList, companyInfo: e2.companyInfo }, on: { back: e2.carback } }) : e2._e(), e2._v(" "), t2("payPlan", { ref: "planPay", attrs: { projectList: e2.projectList, companyInfo: e2.companyInfo, planShow: e2.planShow }, on: { planBack: e2.planClose, schemeScan: e2.schemeScan } })], 1);
|
||
}, n = [], i = (t("4057"), t("e680"), t("a450"), t("0c84"), t("87a0")), o = (t("b5aa"), t("3ef1")), l = (t("32ea"), t("1bc7"), t("aa18"), t("982e"), t("c4c8")), c = t("c24f"), r = t("f8b7"), p = t("4513"), m = t("4059"), d = t("67d5"), u = t("e749"), y = t("0b37"), h = t("dce5"), b = t("8988"), f = t("06fa"), g = function() {
|
||
var e2 = this, a2 = e2.$createElement, t2 = e2._self._c || a2;
|
||
return t2("div", [t2("el-card", { staticClass: "box-card", staticStyle: { "margin-bottom": "20px" } }, [t2("el-page-header", { staticClass: "smspageheader", attrs: { content: "购物车列表" }, on: { back: e2.goBack } })], 1), e2._v(" "), t2("el-card", { staticClass: "box-card" }, [t2("el-table", { attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headerCellStyle }, on: { "selection-change": e2.selectionChange } }, [t2("el-table-column", { attrs: { align: "center", type: "selection", width: "50", selectable: e2.selectable } }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", prop: "name1", label: "应用信息" }, scopedSlots: e2._u([{ key: "default", fn: function(e3) {
|
||
return [t2("div", { staticClass: "carImg-box" }, [t2("el-image", { staticClass: "car-img", attrs: { src: e3.row.icon || e3.row.imgUrl } })], 1)];
|
||
} }]) }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", label: "应用名称" }, scopedSlots: e2._u([{ key: "default", fn: function(a3) {
|
||
return [e2._v("\n " + e2._s(a3.row.targetName || "-") + "\n ")];
|
||
} }]) }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", prop: "targetType", label: "应用类型" }, scopedSlots: e2._u([{ key: "default", fn: function(a3) {
|
||
return [e2._v("\n " + e2._s(1 == a3.row.targetType ? "产品" : 2 == a3.row.targetType ? "方案" : "-") + "\n ")];
|
||
} }]) }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", label: "应用单价" }, scopedSlots: e2._u([{ key: "default", fn: function(a3) {
|
||
return [e2._v("\n " + e2._s(e2._f("formatMoney")(a3.row.price)) + "\n ")];
|
||
} }]) }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", label: "数量" }, scopedSlots: e2._u([{ key: "default", fn: function(a3) {
|
||
return [1 != a3.row.status ? t2("div", [t2("el-input-number", { attrs: { min: 1, max: 9999 }, on: { change: function(t3) {
|
||
return e2.numChange(a3.row);
|
||
} }, model: { value: a3.row.num, callback: function(t3) {
|
||
e2.$set(a3.row, "num", t3);
|
||
}, expression: "scope.row.num" } })], 1) : e2._e(), e2._v(" "), 1 == a3.row.status && 1 == a3.row.targetType ? t2("div", { staticStyle: { "font-size": "12px", color: "#F25F5C" } }, [e2._v("\n 商品已下架,无法购买!\n ")]) : e2._e(), e2._v(" "), 1 == a3.row.status && 2 == a3.row.targetType ? t2("div", { staticStyle: { "font-size": "12px", color: "#F25F5C" } }, [e2._v("\n 方案内有商品已下架,无法购买!\n ")]) : e2._e()];
|
||
} }]) }), e2._v(" "), t2("el-table-column", { attrs: { align: "center", label: "操作", width: "90" }, scopedSlots: e2._u([{ key: "default", fn: function(a3) {
|
||
return [t2("el-button", { attrs: { type: "danger", icon: "el-icon-delete" }, on: { click: function(t3) {
|
||
return e2.delItem(a3.row);
|
||
} } })];
|
||
} }]) })], 1), e2._v(" "), t2("div", { staticStyle: { "margin-top": "15px" } }, [e2.listLength > 0 ? t2("div", { staticClass: "bottom-buy" }, [t2("span", { staticClass: "buy-price" }, [e2._v(e2._s(e2._f("formatMoney")(e2.sumPrice)))]), e2._v(" "), t2("span", { staticClass: "buy-tips" }, [e2._v("共选择" + e2._s(e2.listLength) + "个应用,数量" + e2._s(e2.num) + "个")])]) : e2._e(), e2._v(" "), t2("el-button", { attrs: { type: "primary", disabled: e2.listLength <= 0 }, on: { click: e2.buyClick } }, [e2._v("购买")])], 1)], 1), e2._v(" "), t2("scanPay", { attrs: { show: e2.scanVisible, info: e2.scanInfo }, on: { back: e2.getBack } }), e2._v(" "), e2.dialogVisible ? t2("el-dialog", { attrs: { title: "提交订单", visible: e2.dialogVisible, top: "10vh", width: "45%", "custom-class": "paymentDialog", "append-to-body": true, "close-on-press-escape": false, "destroy-on-close": true, "before-close": e2.handleClose } }, [t2("div", { staticClass: "paymentInfor" }, [t2("div", { staticClass: "paymentBox" }, [t2("div", { staticClass: "paymentContent" }, [t2("div", { staticClass: "paymentBase" }, [t2("el-form", { ref: "paymentBase", staticClass: "paymentBaseFrom", attrs: { "label-width": "100px", model: e2.paymentBase, rules: e2.paymentBaseRules } }, ["注册合伙人" != e2.paymentBase.name ? t2("el-tabs", { staticStyle: { "margin-bottom": "10px" }, attrs: { type: "border-card" }, on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(a3) {
|
||
e2.activeName = a3;
|
||
}, expression: "activeName" } }, [t2("el-tab-pane", { attrs: { label: "优惠码", name: "discountCode" } }, [t2("el-form-item", { attrs: { label: "优惠码:", prop: "discountCode" } }, [t2("el-input", { attrs: { clearable: "", placeholder: "请填写优惠码" }, on: { blur: function(a3) {
|
||
return e2.checkDiscount(0);
|
||
} }, model: { value: e2.paymentBase.discountCode, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "discountCode", a3);
|
||
}, expression: "paymentBase.discountCode" } })], 1)], 1), e2._v(" "), t2("el-tab-pane", { attrs: { label: "推荐人", name: "recommMobile" } }, [t2("el-form-item", { attrs: { label: "姓名:", prop: "recommName" } }, [t2("el-input", { attrs: { clearable: "", placeholder: "请填写推荐人姓名" }, on: { blur: function(a3) {
|
||
return e2.checkDiscount(2);
|
||
} }, model: { value: e2.paymentBase.recommName, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "recommName", a3);
|
||
}, expression: "paymentBase.recommName" } })], 1), e2._v(" "), t2("el-form-item", { attrs: { label: "手机号码:", prop: "recommMobile" } }, [t2("el-input", { attrs: { clearable: "", placeholder: "请填写推荐人手机号码" }, on: { blur: function(a3) {
|
||
return e2.checkDiscount(1);
|
||
} }, model: { value: e2.paymentBase.recommMobile, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "recommMobile", a3);
|
||
}, expression: "paymentBase.recommMobile" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), t2("el-form-item", { attrs: { label: "支付方式:", prop: "payType" } }, [t2("el-radio-group", { model: { value: e2.paymentBase.payType, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payType", a3);
|
||
}, expression: "paymentBase.payType" } }, [t2("el-radio", { attrs: { label: 1 } }, [e2._v("线上支付")]), e2._v(" "), t2("el-radio", { attrs: { label: 2 } }, [e2._v("公对公转账")])], 1)], 1), e2._v(" "), t2("el-form-item", { attrs: { label: "消费项目:" } }, [t2("el-select", { staticClass: "select-dom", staticStyle: { width: "400px" }, attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "请选择项目" }, model: { value: e2.paymentBase.availableRange, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "availableRange", a3);
|
||
}, expression: "paymentBase.availableRange" } }, e2._l(e2.projectList, (function(e3) {
|
||
return t2("el-option", { key: e3.uuid, attrs: { label: e3.name, value: e3.uuid } });
|
||
})), 1)], 1), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款账户:", prop: "payBankNo" } }, [t2("el-input", { attrs: { placeholder: "请输入付款账号", maxlength: "25", clearable: "" }, model: { value: e2.paymentBase.payBankNo, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payBankNo", a3);
|
||
}, expression: "paymentBase.payBankNo" } })], 1)], 1), e2._v(" "), t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款银行:", prop: "payBank" } }, [t2("el-input", { attrs: { placeholder: "请输入付款银行名称", maxlength: "25", clearable: "" }, model: { value: e2.paymentBase.payBank, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payBank", a3);
|
||
}, expression: "paymentBase.payBank" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款人:", prop: "payer" } }, [t2("el-input", { attrs: { placeholder: "请输入付款人姓名", maxlength: "16", clearable: "" }, model: { value: e2.paymentBase.payer, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payer", a3);
|
||
}, expression: "paymentBase.payer" } })], 1)], 1), e2._v(" "), t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "联系电话:", prop: "payerMobile" } }, [t2("el-input", { attrs: { placeholder: "请输入联系电话", maxlength: "11", clearable: "" }, model: { value: e2.paymentBase.payerMobile, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payerMobile", a3);
|
||
}, expression: "paymentBase.payerMobile" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", { attrs: { span: 12 } }, [t2("el-form-item", { staticClass: "is-required", attrs: { label: "付款时间:", prop: "payTime" } }, [t2("el-date-picker", { attrs: { type: "datetime", format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", placeholder: "付款时间" }, model: { value: e2.paymentBase.payTime, callback: function(a3) {
|
||
e2.$set(e2.paymentBase, "payTime", a3);
|
||
}, expression: "paymentBase.payTime" } })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("el-row", [t2("el-col", [t2("el-form-item", { staticClass: "is-required", attrs: { label: "上传附件:", prop: "appendixUrl" } }, [t2("AliOSSUpload", { attrs: { limit: 3, imgStore: e2.imgStore, accept: e2.accept, allowFileType: e2.allowFileType2, fileList: e2.fileListInfo, isChangeFileName: false, showFileList: true, listType: "text" }, on: { getUploadData: e2.getUploadData2 }, scopedSlots: e2._u([{ key: "uploadButton", fn: function() {
|
||
return [t2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload", attrs: { type: "primary", plain: "", size: "small" } }, [e2._v("选择付款凭证附件")])];
|
||
}, proxy: true }], null, false, 4144669781) })], 1)], 1)], 1) : e2._e(), e2._v(" "), 2 === e2.paymentBase.payType ? t2("div", { staticClass: "uploadFileNotes" }, [t2("span", { staticClass: "el-icon-info" }), e2._v(" 支持附件扩展名: .jpg, .JPG,\n .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG等图片,最多可上传 3\n 个附件。\n ")]) : e2._e()], 1)], 1), e2._v(" "), t2("div", { staticClass: "paymentPrice" }, [t2("div", { staticClass: "paymentAgreement" }, [t2("el-checkbox", { model: { value: e2.paymentAgreement, callback: function(a3) {
|
||
e2.paymentAgreement = a3;
|
||
}, expression: "paymentAgreement" } }), e2._v("\n 我已知悉"), t2("el-link", { attrs: { type: "primary" }, on: { click: function(a3) {
|
||
e2.dialogFileVisible = true;
|
||
} } }, [e2._v("《深圳市社区云科技服务有限公司SaaS合作合同书》")])], 1), e2._v(" "), t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 应付金额:"), t2("span", { staticClass: "paymentPrice" }, [e2._v(e2._s(e2._f("toThousandFilter")(e2.payInfo.totalAmount)))]), e2._v("元\n ")]), e2._v(" "), t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 优惠金额:"), t2("span", { staticClass: "paymentPrice priceGray" }, [e2._v("\n " + e2._s(e2._f("toThousandFilter")(e2.payInfo.discount)))]), e2._v("元\n ")]), e2._v(" "), t2("div", { staticClass: "paymentTitle" }, [e2._v("\n 实付金额:"), t2("span", { staticClass: "paymentPrice priceRed" }, [e2._v(e2._s(e2._f("toThousandFilter")(e2.payInfo.payAmount)))]), e2._v("元\n ")])]), e2._v(" "), t2("div", { staticClass: "paymentbtn" }, [t2("el-button", { attrs: { type: "danger" }, on: { click: e2.createOrder } }, [e2._v("支付")])], 1)])])])]) : e2._e(), e2._v(" "), t2("el-dialog", { attrs: { title: "合同模板预览", visible: e2.dialogFileVisible }, on: { "update:visible": function(a3) {
|
||
e2.dialogFileVisible = a3;
|
||
} } }, [t2("iframe", { attrs: { src: "https://sqy-oss-test.oss-cn-guangzhou.aliyuncs.com/static/template/SaasContract.pdf", frameborder: "0", scrolling: "no", height: "550px", width: "100%" } }), e2._v(" "), t2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [t2("el-button", { on: { click: function(a3) {
|
||
e2.dialogFileVisible = false;
|
||
} } }, [e2._v("关闭")])], 1)])], 1);
|
||
}, v = [], B = { components: { AliOSSUpload: b["a"], scanPay: m["a"] }, props: { companyInfo: { type: Object, default: function() {
|
||
} }, projectList: { type: Array, default: function() {
|
||
return [];
|
||
} } }, data: function() {
|
||
return { tableData: [], selectList: [], num: 0, listLength: 0, sumPrice: 0, dialogFileVisible: false, dialogVisible: false, scanVisible: false, scanInfo: "", accept: ".jpg, .JPG, .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG", allowFileType2: ["image"], fileListInfo: [], imgStore: "saasFile/", activeName: "discountCode", payInfo: {}, paymentBase: { discountCode: "", recommName: "", recommMobile: "", payType: 1, payBankNo: this.companyInfo.publicBankNo, payBank: this.companyInfo.publicBank, payer: this.companyInfo.payer, payerMobile: this.companyInfo.payerMobile, payTime: "", appendixUrl: "", availableRange: [] }, paymentBaseRules: { payBankNo: [{ required: true, message: "请输入付款账号", trigger: "blur" }], payBank: [{ required: true, message: "请输入付款银行名称", trigger: "blur" }], payer: [{ required: true, message: "请输入付款人姓名", trigger: "blur" }], payerMobile: [{ required: true, message: "请输入联系电话", trigger: "blur" }], payTime: [{ required: true, message: "请选择付款时间", trigger: "change" }], appendixUrl: [{ required: true, message: "请上传付款凭证附件", trigger: "change" }] }, paymentAgreement: false };
|
||
}, mounted: function() {
|
||
this.getList();
|
||
}, methods: { getList: function() {
|
||
var e2 = this, a2 = JSON.parse(window.localStorage.getItem("companyInfo")), t2 = JSON.parse(window.localStorage.getItem("memberInfor")), s2 = { companyId: a2.osId, mobile: t2.phoneNumber, source: 1, pageNumber: -1, pageSize: -1 };
|
||
Object(l["c"])(s2).then((function(a3) {
|
||
0 == a3.code && (e2.tableData = a3.data.records);
|
||
}));
|
||
}, selectable: function(e2, a2) {
|
||
return 1 != e2.status;
|
||
}, selectionChange: function(e2) {
|
||
this.selectList = e2, this.countData();
|
||
}, countData: function() {
|
||
var e2 = this, a2 = 0, t2 = 0, s2 = 0;
|
||
this.selectList.length && this.selectList.map((function(n2) {
|
||
a2 += n2.num, t2 = e2.selectList.length, s2 += Object(y["c"])(n2.num, n2.price);
|
||
})), this.num = a2, this.listLength = t2, this.sumPrice = s2;
|
||
}, numChange: function(e2) {
|
||
var a2 = this;
|
||
console.log(e2);
|
||
var t2 = { id: e2.id, num: e2.num };
|
||
console.log(t2), Object(l["d"])(t2).then((function(e3) {
|
||
0 == e3.code && a2.countData();
|
||
}));
|
||
}, delItem: function(e2) {
|
||
var a2 = this;
|
||
this.$confirm("确定将此应用移出购物车吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
|
||
Object(l["d"])({ num: 0, id: e2.id }).then((function(e3) {
|
||
0 == e3.code && (a2.$message({ type: "success", message: "移除成功!" }), a2.getList());
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, goBack: function() {
|
||
this.$emit("back");
|
||
}, headerCellStyle: function(e2) {
|
||
e2.row;
|
||
var a2 = e2.column, t2 = e2.rowIndex, s2 = e2.columnIndex;
|
||
return 2 == s2 | 3 == s2 ? { display: "none" } : (0 == t2 & 1 == s2 && this.$nextTick((function() {
|
||
document.querySelector(".".concat(a2.id)).setAttribute("colspan", "3");
|
||
})), 0 == t2 ? "text-align:center;background:#FAFAFA;" : void 0);
|
||
}, buyClick: function() {
|
||
this.dialogVisible = true, this.$nextTick((function() {
|
||
this.getCarPayData();
|
||
}));
|
||
}, findCode: function() {
|
||
var e2 = this, a2 = JSON.parse(window.localStorage.getItem("companyInfo"));
|
||
Object(l["h"])({ companyId: a2.osId, pidList: this.selectList.map((function(e3) {
|
||
return e3.targetId;
|
||
})) }).then((function(a3) {
|
||
0 == a3.code && a3.data && a3.data.discountCode && (e2.paymentBase.discountCode = a3.data.discountCode, e2.checkDiscount(0));
|
||
}));
|
||
}, handleClick: function(e2) {
|
||
var a2 = e2.paneName;
|
||
"discountCode" === a2 ? (this.paymentBase.recommName = "", this.paymentBase.recommMobile = "") : this.paymentBase.discountCode = "", this.getCarPayData();
|
||
}, checkDiscount: function(e2) {
|
||
var a2 = {};
|
||
0 == e2 ? (a2.discountCode = this.paymentBase.discountCode, this.getCarPayData(a2)) : this.paymentBase.recommName && this.paymentBase.recommMobile && (a2.name = this.paymentBase.recommName, a2.mobile = this.paymentBase.recommMobile, this.getCarPayData(a2));
|
||
}, getCarPayData: function(e2) {
|
||
var a2 = this, t2 = {}, s2 = [];
|
||
this.selectList.map((function(e3) {
|
||
s2.push(e3.id);
|
||
})), e2 && (t2 = e2), t2.shoppingCartIds = s2, Object(l["j"])(t2).then((function(e3) {
|
||
0 == e3.code && (a2.payInfo = e3.data);
|
||
}));
|
||
}, getUploadData2: function(e2) {
|
||
var a2 = [];
|
||
e2 && e2.length > 0 && e2.forEach((function(e3) {
|
||
a2.push(e3.filePath);
|
||
})), this.paymentBase.appendixUrl = a2.join(";");
|
||
}, createOrder: function() {
|
||
var e2 = this;
|
||
if (!this.paymentAgreement) return this.$message({ type: "error", message: "请先阅读并同意协议内容" }), false;
|
||
2 === this.paymentBase.payType ? this.$refs["paymentBase"].validate((function(a2) {
|
||
if (!a2) return false;
|
||
e2.submitCreateOrder();
|
||
})) : this.submitCreateOrder();
|
||
}, submitCreateOrder: function() {
|
||
var e2 = this, a2 = (JSON.parse(window.localStorage.getItem("userInfo")), JSON.parse(window.localStorage.getItem("memberInfor"))), t2 = JSON.parse(window.localStorage.getItem("companyInfo")), s2 = { title: "SaaS产品购买", content: "SaaS产品购买", chargeType: 2, payType: 1, companyId: t2.osId, companyName: t2.fullName, source: 1, type: 9, memberName: a2.name, memberUuid: a2.uuid, mobile: a2.phoneNumber, availableRange: this.paymentBase.availableRange.length > 0 ? this.paymentBase.availableRange.toString() : "" };
|
||
2 === this.paymentBase.payType && (s2 = Object.assign(s2, { payBank: this.paymentBase.payBank, payBankNo: this.paymentBase.payBankNo, payTime: this.paymentBase.payTime, payType: this.paymentBase.payType, payer: this.paymentBase.payer, payerMobile: this.paymentBase.payerMobile, appendixUrl: this.paymentBase.appendixUrl, type: 13 })), this.paymentBase.discountCode && (s2.discountCode = this.paymentBase.discountCode), this.paymentBase.recommMobile && this.paymentBase.recommName && (s2.recommName = this.paymentBase.recommName, s2.recommMobile = this.paymentBase.recommMobile);
|
||
var n2 = [];
|
||
this.selectList.map((function(e3) {
|
||
n2.push(e3.id);
|
||
})), s2.shoppingCartIds = n2, Object(l["e"])(s2).then((function(a3) {
|
||
if (0 === a3.code) if (2 === e2.paymentBase.payType) e2.$message({ type: "success", message: "SaaS产品权限购买成功,对公转账审核中..." }), e2.dialogVisible = false, e2.getList();
|
||
else {
|
||
var t3 = a3.data;
|
||
e2.openScan(t3);
|
||
}
|
||
}));
|
||
}, openScan: function(e2) {
|
||
this.dialogVisible = false, this.scanVisible = true, this.scanInfo = e2;
|
||
}, getBack: function() {
|
||
this.dialogVisible = false, this.scanVisible = false, this.getList();
|
||
}, handleClose: function() {
|
||
this.paymentAgreement = false, this.activeName = "discountCode", this.dialogVisible = false;
|
||
} } }, _ = B, C = (t("e631"), t("829d")), k = Object(C["a"])(_, g, v, false, null, "2c4e1eda", null), I = k.exports, S = { name: "applicationList", components: { scanPay: m["a"], payPlan: u["a"], AliOSSUpload: b["a"], SaaScar: I }, data: function() {
|
||
return { productType: h["pb"], SaaS_DomainList: h["c"], SaaS_StageList: h["d"], companyInfo: {}, query: { pageNumber: -1, pageSize: -1, status: 2, companyId: "", sector: "", stage: "", source: 1, mobile: "" }, memberInfo: "", datalist: [], scanVisible: false, dialogVisible: false, paymentBase: { useMonth: 1, pnum: 1, type: 2, discountCode: "", recommId: null, recommName: "", recommMobile: "", payType: 1, payBankNo: "", payBank: "", payer: "", payerMobile: "", payDate: "", appendixUrl: "", availableRange: [] }, projectList: [], paymentBaseRules: {}, scanInfo: {}, payable: 0, payAmount: 0, discount: 0, activeName: "discountCode", memberId: "", accept: ".jpg, .JPG, .jpeg, .gif, .GIF, .MPEG, .MPG, .png, .PNG", allowFileType2: ["image"], fileListInfo: [], imgStore: "saasFile/", paymentAgreement: false, dialogFileVisible: false, preferentialCodeMessage: "", activeTab: "解决方案", activeSub: "全部", defaultProps: { children: "menuChildren", label: "menuName" }, projectMenu: [], companyMenu: [], detailes: { menuList: [] }, likeList: [], likeVisible: false, carList: [], carNum: 0, list: true, car: false, planShow: false };
|
||
}, watch: { paymentBase: { handler: function(e2, a2) {
|
||
this.initPaymentPrice();
|
||
}, deep: true } }, mounted: function() {
|
||
var e2 = this;
|
||
this.memberId = window.localStorage.getItem("memberId");
|
||
var a2 = window.localStorage.getItem("companyInfo");
|
||
a2 = JSON.parse(a2), this.query.companyId = a2.osId, this.getCompanyInfor(), this.getMemberInfor(), this.getInitTreeData().then((function(a3) {
|
||
e2.companyMenu = a3.companyMenu, e2.projectMenu = a3.projectMenu, e2.companyMenuShow = a3.companyMenu, e2.projectMenuShow = a3.projectMenu;
|
||
}));
|
||
}, methods: { nodeClick: function(e2, a2) {
|
||
var t2 = "";
|
||
t2 = "company" == a2 ? "".concat("https://hc-etms.sqygj.cn/", "#/help?toCompanyMenuIds=").concat(e2.id) : "".concat("https://hc-etms.sqygj.cn/", "#/help?toProjectMenuIds=").concat(e2.id), window.open("".concat(t2));
|
||
}, getProjectInfo: function() {
|
||
var e2 = this, a2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
||
Object(d["j"])({ id: a2, attribute: 1 }).then((function(a3) {
|
||
0 === a3.code && a3.data ? e2.projectList = a3.data : e2.projectList = [];
|
||
}));
|
||
}, treeGroup: function(e2, a2) {
|
||
var t2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [];
|
||
return void 0 === e2.disabled ? e2 = t2.includes(e2.id) ? Object.assign(e2, { disabled: true }) : Object.assign(e2, { disabled: a2 }) : t2.includes(e2.id) ? e2.disabled = true : e2.disabled = a2, e2.menuChildren && void 0 != e2.menuChildren && this.handelTreeDisable(e2.menuChildren, a2, t2), e2;
|
||
}, handelTreeDisable: function(e2, a2) {
|
||
var t2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [], s2 = this;
|
||
return e2.map((function(e3) {
|
||
return s2.treeGroup(e3, a2, t2);
|
||
}));
|
||
}, reviewMenuTree: function() {
|
||
var e2 = this, a2 = this.detailes.menuList, t2 = this.groupArr(a2, (function(e3) {
|
||
return [e3.adClientId];
|
||
})), s2 = t2[0] || [], n2 = t2[1] || [], i2 = [], o2 = [];
|
||
s2.length > 0 && (i2 = s2.map((function(e3) {
|
||
return e3.menuId;
|
||
}))), n2.length > 0 && (o2 = n2.map((function(e3) {
|
||
return e3.menuId;
|
||
}))), this.$nextTick((function() {
|
||
e2.$refs.companyMenu.setCheckedKeys(i2), e2.$refs.projectMenu.setCheckedKeys(o2);
|
||
})), this.$forceUpdate();
|
||
}, groupArr: function(e2, a2) {
|
||
var t2 = {};
|
||
return e2.forEach((function(e3) {
|
||
var s2 = JSON.stringify(a2(e3));
|
||
t2[s2] = t2[s2] || [], t2[s2].push(e3);
|
||
})), Object.keys(t2).map((function(e3) {
|
||
return t2[e3];
|
||
}));
|
||
}, getInitTreeData: (function() {
|
||
var e2 = Object(o["a"])(regeneratorRuntime.mark((function e3() {
|
||
var a3, t2, s2, n2;
|
||
return regeneratorRuntime.wrap((function(e4) {
|
||
while (1) switch (e4.prev = e4.next) {
|
||
case 0:
|
||
return e4.next = 1, Promise.all([Object(f["a"])({ appIdType: 1 }), Object(f["a"])({ appIdType: 2 })]);
|
||
case 1:
|
||
return a3 = e4.sent, t2 = Object(i["a"])(a3, 2), s2 = t2[0], n2 = t2[1], e4.abrupt("return", { companyMenu: s2.data, projectMenu: n2.data });
|
||
case 2:
|
||
case "end":
|
||
return e4.stop();
|
||
}
|
||
}), e3);
|
||
})));
|
||
function a2() {
|
||
return e2.apply(this, arguments);
|
||
}
|
||
return a2;
|
||
})(), handleTabClick: function(e2, a2) {
|
||
this.activeSub = "全部", this.getSchemeList();
|
||
}, handleSubClick: function(e2, a2) {
|
||
}, getCompanyInfor: function() {
|
||
var e2 = this, a2 = parseInt(JSON.parse(window.localStorage.getItem("roleId"))), t2 = JSON.parse(window.localStorage.getItem("userInfo"));
|
||
Object(c["d"])({ accountName: t2.accountName, roleId: a2, memberId: this.memberId }).then((function(a3) {
|
||
if (0 === a3.code && a3.data) {
|
||
var t3 = a3.data.companyAuthApplyOrderRespDTOS;
|
||
t3.length > 0 ? e2.companyInfo = t3[0] : e2.companyInfo = {};
|
||
} else e2.companyInfo = {};
|
||
})), this.getProjectInfo();
|
||
}, myLike: function() {
|
||
var e2 = this;
|
||
this.likeVisible = true;
|
||
var a2 = JSON.parse(window.localStorage.getItem("companyInfo")), t2 = JSON.parse(window.localStorage.getItem("memberInfor")), s2 = { companyId: a2.osId, mobile: t2.phoneNumber, source: 1, pageNumber: -1, pageSize: -1 };
|
||
Object(l["m"])(s2).then((function(a3) {
|
||
0 == a3.code && (e2.likeList = a3.data.records);
|
||
}));
|
||
}, getSchemeList: function() {
|
||
var e2 = this;
|
||
this.query.mobile = this.memberInfo.phoneNumber, Object(l["p"])(this.query).then((function(a2) {
|
||
0 === a2.code && (e2.datalist = a2.data.records);
|
||
}));
|
||
}, getMemberInfor: function() {
|
||
var e2 = this;
|
||
Object(p["p"])({ id: this.memberId }).then((function(a2) {
|
||
if (0 === a2.code && null != a2.data) {
|
||
var t2 = a2.data.memberAddReqDTO;
|
||
localStorage.setItem("memberInfor", JSON.stringify(t2)), e2.memberInfo = t2, e2.getSchemeList(), e2.getCarList();
|
||
}
|
||
}));
|
||
}, applicationBuy: function(e2) {
|
||
"解决方案" == this.activeTab && (this.planShow = true, this.$nextTick((function() {
|
||
this.$refs.planPay.init(e2);
|
||
})));
|
||
}, clickStar: function(e2) {
|
||
var a2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")), s2 = JSON.parse(window.localStorage.getItem("memberInfor")), n2 = { companyId: t2.osId, companyName: t2.fullName, mobile: s2.phoneNumber, name: s2.name, source: 1, targetId: e2.id, targetType: "解决方案" == this.activeTab ? 2 : 1 };
|
||
2 == e2.like ? Object(l["l"])(n2).then((function(e3) {
|
||
0 == e3.code && a2.$message({ type: "success", message: "收藏成功!" });
|
||
})) : 1 == e2.like && Object(l["b"])(n2).then((function(e3) {
|
||
0 == e3.code && a2.$message({ type: "success", message: "取消成功!" });
|
||
})), e2.like = 1 == e2.like ? 2 : 1;
|
||
}, clickLikeStar: function(e2) {
|
||
var a2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")), s2 = JSON.parse(window.localStorage.getItem("memberInfor")), n2 = { companyId: t2.osId, companyName: t2.fullName, mobile: s2.phoneNumber, name: s2.name, source: 1, targetId: e2.targetId, targetType: e2.targetType };
|
||
Object(l["b"])(n2).then((function(e3) {
|
||
0 == e3.code && (a2.$message({ type: "success", message: "取消成功!" }), a2.myLike());
|
||
}));
|
||
}, carAdd: function(e2) {
|
||
var a2 = this, t2 = JSON.parse(window.localStorage.getItem("companyInfo")), s2 = JSON.parse(window.localStorage.getItem("memberInfor")), n2 = { companyId: t2.osId, companyName: t2.fullName, mobile: s2.phoneNumber, name: s2.name, source: 1, num: 1 };
|
||
e2.targetId && e2.targetType ? (n2.targetId = e2.targetId, n2.targetType = e2.targetType) : (n2.targetId = e2.id, n2.targetType = "解决方案" == this.activeTab ? 2 : 1), Object(l["a"])(n2).then((function(e3) {
|
||
0 == e3.code && (a2.$message({ type: "success", message: "加入购物车成功!" }), a2.getCarList());
|
||
}));
|
||
}, getCarList: function() {
|
||
var e2 = this, a2 = JSON.parse(window.localStorage.getItem("companyInfo")), t2 = JSON.parse(window.localStorage.getItem("memberInfor")), s2 = { companyId: a2.osId, mobile: t2.phoneNumber, source: 1, pageNumber: -1, pageSize: -1 };
|
||
Object(l["c"])(s2).then((function(a3) {
|
||
if (0 == a3.code && a3.data) if (a3.data.records.length) {
|
||
var t3 = 0;
|
||
a3.data.records.map((function(e3) {
|
||
t3 += e3.num;
|
||
})), e2.carNum = t3;
|
||
} else e2.carNum = 0;
|
||
}));
|
||
}, initPaymentPrice: function() {
|
||
this.payable = Number(Object(y["c"])(Object(y["c"])(this.paymentBase.marketPrice, this.paymentBase.useMonth), this.paymentBase.pnum)), this.payAmount = Number(Object(y["d"])(Object(y["c"])(Object(y["c"])(this.paymentBase.marketPrice, this.paymentBase.useMonth), this.paymentBase.pnum), this.discount));
|
||
}, handleClose: function() {
|
||
this.preferentialCodeMessage = "", this.paymentBaseRules = {}, this.dialogVisible = false, this.paymentAgreement = false, this.activeName = "discountCode";
|
||
}, createOrder: function() {
|
||
var e2 = this;
|
||
if (!this.paymentAgreement) return this.$message({ type: "error", message: "请先阅读并同意协议内容" }), false;
|
||
2 === this.paymentBase.payType ? this.$refs["paymentBase"].validate((function(a2) {
|
||
if (!a2) return false;
|
||
e2.submitCreateOrder();
|
||
})) : this.submitCreateOrder();
|
||
}, submitCreateOrder: function() {
|
||
var e2 = this, a2 = (JSON.parse(window.localStorage.getItem("userInfo")), JSON.parse(window.localStorage.getItem("memberInfor"))), t2 = JSON.parse(window.localStorage.getItem("companyInfo")), s2 = { companyId: t2.osId, companyName: t2.fullName, payAmount: this.payAmount, payable: this.payable, pid: this.paymentBase.id, pn: this.paymentBase.pn, pname: this.paymentBase.name, pnum: this.paymentBase.pnum, type: 2, useMonth: this.paymentBase.useMonth };
|
||
"" != this.paymentBase.discountCode && (s2 = Object.assign(s2, { discount: this.discount, discountCode: this.paymentBase.discountCode, recommId: this.paymentBase.recommId })), "" != this.paymentBase.recommMobile && "" != this.paymentBase.recommName && (s2 = Object.assign(s2, { discount: this.discount, recommId: this.paymentBase.recommId, recommName: this.paymentBase.recommName, recommMobile: this.paymentBase.recommMobile }));
|
||
var n2 = { title: "SaaS产品购买", content: "SaaS产品购买", chargeType: 2, payType: 1, orderMallDetails: s2, type: 9, totalAmount: this.payAmount, memberName: a2.name, memberUuid: a2.uuid, operatorName: a2.name, operatorUuid: a2.uuid, availableRange: this.paymentBase.availableRange.length > 0 ? this.paymentBase.availableRange.toString() : "", payerMobile: a2.phoneNumber };
|
||
2 === this.paymentBase.payType && (n2 = Object.assign(n2, { payBank: this.paymentBase.payBank, payBankNo: this.paymentBase.payBankNo, payTime: this.paymentBase.payTime, payType: this.paymentBase.payType, payer: this.paymentBase.payer, payerMobile: this.paymentBase.payerMobile, appendixUrl: this.paymentBase.appendixUrl, type: 13 })), Object(r["a"])(n2).then((function(a3) {
|
||
if (0 === a3.code) if (2 === e2.paymentBase.payType) e2.$message({ type: "success", message: "SaaS产品权限购买成功,对公转账审核中..." }), e2.dialogVisible = false;
|
||
else {
|
||
var t3 = a3.data;
|
||
e2.openScan(t3);
|
||
}
|
||
}));
|
||
}, changeToCulPrice: function() {
|
||
"" === this.paymentBase.discountCode ? this.checkDiscount(1) : this.checkDiscount(0);
|
||
}, checkDiscount: function(e2) {
|
||
var a2 = this, t2 = {};
|
||
t2 = 0 === e2 ? { code: this.paymentBase.discountCode, pid: this.paymentBase.id, pnum: this.paymentBase.pnum, pmonth: this.paymentBase.useMonth, companyId: this.query.companyId } : { name: this.paymentBase.recommName, mobile: this.paymentBase.recommMobile, pid: this.paymentBase.id, pnum: this.paymentBase.pnum, pmonth: this.paymentBase.useMonth, companyId: this.query.companyId }, console.log(this.paymentBase), "" != this.paymentBase.discountCode || "" != this.paymentBase.recommName && "" != this.paymentBase.recommMobile ? Object(r["c"])(t2).then((function(e3) {
|
||
0 === e3.code && (a2.preferentialCodeMessage = "", e3.data.discountMsg && (a2.preferentialCodeMessage = e3.data.discountMsg), a2.discount = e3.data.discountAmount, a2.paymentBase.recommId = e3.data.recommId ? e3.data.recommId : null, a2.initPaymentPrice());
|
||
})) : (this.discount = 0, this.initPaymentPrice());
|
||
}, openScan: function(e2) {
|
||
this.dialogVisible = false, this.scanVisible = true, this.scanInfo = e2;
|
||
}, getBack: function() {
|
||
this.dialogVisible = false, this.scanVisible = false;
|
||
}, handleClick: function(e2) {
|
||
this.preferentialCodeMessage = "";
|
||
var a2 = e2.paneName;
|
||
this.paymentBase.recommId = null, "discountCode" === a2 ? (this.paymentBase.recommName = "", this.paymentBase.recommMobile = "") : this.paymentBase.discountCode = "", this.discount = 0;
|
||
}, getUploadData2: function(e2) {
|
||
var a2 = [];
|
||
e2 && e2.length > 0 && e2.forEach((function(e3) {
|
||
a2.push(e3.filePath);
|
||
})), this.paymentBase.appendixUrl = a2.join(";");
|
||
}, toCar: function() {
|
||
this.list = false, this.car = true;
|
||
}, carback: function() {
|
||
this.list = true, this.car = false, this.getCarList();
|
||
}, planClose: function() {
|
||
this.planShow = false;
|
||
}, schemeScan: function(e2) {
|
||
this.planShow = false, this.scanVisible = true, this.scanInfo = e2;
|
||
} } }, w = S, N = (t("389c"), Object(C["a"])(w, s, n, false, null, "405f37a4", null));
|
||
a["default"] = N.exports;
|
||
} }]);
|