1 line
33 KiB
JavaScript
1 line
33 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"10a8":function(e,t,a){},"1f23":function(e,t,a){},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[],o=(a("e680"),{name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("handleSizeChange",{pageSize:this.pageSize,limit:e})},handleCurrentChange:function(e){this.$emit("handleCurrentChange",{currentPage:e,limit:this.currentPage})}}}),i=o,l=(a("720d"),a("829d")),s=Object(l["a"])(i,n,r,!1,null,"27f1f397",null);t["a"]=s.exports},3701:function(e,t,a){"use strict";a("10a8")},"3a3b":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"markdown-renderer",style:{color:e.textColor},domProps:{innerHTML:e._s(e.renderedHtml)}})},r=[],o=(a("d31c"),a("e8b2")),i=(a("aa18"),a("982e"),a("d0f2"),a("3269"),a("1bc7"),a("8dee"),a("11c2")),l={name:"MarkdownRenderer",props:{mdContent:{type:String,required:!0},textColor:{type:String,default:"#333"},tableTheme:{type:Object,default:function(){return{headerBg:"#f5f5f5",headerText:"#333",borderColor:"#ccc",rowHover:"#f0f0f0",evenRow:"#f9f9f9",tableBorder:"#333",cellBg:"#ffffff",cellText:"#333"}}}},data:function(){return{renderedHtml:"",mermaidCharts:[]}},watch:{mdContent:function(e){this.renderMarkdown(e)},textColor:function(){this.updateTextColor()}},mounted:function(){this.renderMarkdown(this.mdContent),this.updateTextColor(),this.loadMermaid()},methods:{loadMermaid:function(){var e=this;if(window.mermaid)this.initializeMermaid();else if(document.querySelector('script[src*="mermaid"]'))this.waitForMermaid();else{console.log("Loading Mermaid from CDN...");var t=document.createElement("script");t.src="https://unpkg.com/mermaid@9.4.3/dist/mermaid.min.js",t.onload=function(){console.log("Mermaid loaded successfully"),e.initializeMermaid(),e.$nextTick((function(){e.renderMermaidDiagrams()}))},t.onerror=function(){console.error("Failed to load Mermaid from unpkg, trying jsdelivr...");var t=document.createElement("script");t.src="https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js",t.onload=function(){console.log("Mermaid loaded from backup CDN"),e.initializeMermaid(),e.$nextTick((function(){e.renderMermaidDiagrams()}))},t.onerror=function(){console.error("Failed to load Mermaid from both CDNs")},document.head.appendChild(t)},document.head.appendChild(t)}},waitForMermaid:function(){var e=this,t=function(){window.mermaid?(e.initializeMermaid(),e.$nextTick((function(){e.renderMermaidDiagrams()}))):setTimeout(t,100)};t()},initializeMermaid:function(){window.mermaid?(console.log("Initializing Mermaid..."),window.mermaid.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose"}),console.log("Mermaid initialized successfully")):console.error("Mermaid not available on window object")},renderMarkdown:function(e){var t=this,a=e;"string"===typeof a&&(a=a.replace(/\\r\\n/g,"\n").replace(/\\n/g,"\n")),this.mermaidCharts=[];var n=[];a=this.extractMermaidChartsWithPlaceholders(a,n),a=this.preprocessImageLinks(a),i["marked"].use({pedantic:!1,gfm:!0,tables:!0,breaks:!1,smartLists:!0,smartypants:!1}),this.renderedHtml=Object(i["marked"])(a),console.log("[Mermaid替换] 开始替换 ".concat(n.length," 个占位符")),console.log("[Mermaid替换] 渲染后的 HTML 预览: ".concat(this.renderedHtml.substring(0,500),"...")),n.forEach((function(e,a){var n=e.placeholder,r=e.mermaidDiv;console.log("[Mermaid替换] 处理第 ".concat(a+1," 个占位符: ").concat(n));var o=t.escapeRegExp(n),i=t.renderedHtml.length,l=!1,s=new RegExp("<p>\\s*".concat(o,"\\s*</p>"),"g"),c=t.renderedHtml;if(t.renderedHtml=t.renderedHtml.replace(s,r),t.renderedHtml!==c)l=!0,console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符:匹配为段落标签"));else{var d=new RegExp("<code>\\s*".concat(o,"\\s*</code>"),"g"),u=t.renderedHtml;if(t.renderedHtml=t.renderedHtml.replace(d,r),t.renderedHtml!==u)l=!0,console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符:匹配为代码标签"));else{var p=new RegExp("<pre>\\s*".concat(o,"\\s*</pre>"),"g"),m=t.renderedHtml;if(t.renderedHtml=t.renderedHtml.replace(p,r),t.renderedHtml!==m)l=!0,console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符:匹配为预格式化标签"));else{var f=new RegExp(o,"g"),h=t.renderedHtml;t.renderedHtml=t.renderedHtml.replace(f,r),t.renderedHtml!==h&&(l=!0,console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符:直接文本匹配")))}}}var g=t.renderedHtml.length;if(l)console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符替换成功,HTML长度变化: ").concat(i," -> ").concat(g));else{console.warn("[Mermaid替换] 第 ".concat(a+1," 个占位符未能找到匹配,占位符: ").concat(n));var v=n.replace(/_/g,"\\_"),b=t.escapeRegExp(v);new RegExp(b,"g").test(t.renderedHtml)&&(t.renderedHtml=t.renderedHtml.replace(new RegExp(b,"g"),r),console.log("[Mermaid替换] 第 ".concat(a+1," 个占位符:使用转义模式匹配成功")))}})),console.log("[Mermaid替换] 占位符替换完成,最终HTML中有 ".concat((this.renderedHtml.match(/class="mermaid"/g)||[]).length," 个 mermaid div")),(this.renderedHtml.includes("<")||this.renderedHtml.includes(">"))&&(this.renderedHtml=this.renderedHtml.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")),this.renderedHtml=this.renderedHtml.replace(/alt="图表" style="[^"]*" \/>/g,"").replace(/alt="图表" style="[^"]*"/g,"").replace(/style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba\(0,0,0,0\.1\);"/g,"").replace(/alt="图表"/g,""),this.renderedHtml=this.renderedHtml.replace(/(\d+%)(红)/g,'<span style="color: red;">$1</span>').replace(/(\d+%)(绿)/g,'<span style="color: green;">$1</span>').replace(/(\d+%)(黄)/g,'<span style="color: orange;">$1</span>').replace(/(\d+%)(蓝)/g,'<span style="color: blue;">$1</span>'),this.$nextTick((function(){t.updateTextColor(),t.processImagesInDOM(),t.applyTableTheme(),setTimeout((function(){t.renderMermaidDiagrams()}),100)}))},extractMermaidChartsWithPlaceholders:function(e,t){var a=this,n=(e.match(/```mermaid/g)||[]).length;console.log("[Mermaid提取] 原始内容中发现 ".concat(n," 个 mermaid 代码块开始标记"));var r,o=0,i=0,l=/```mermaid\s*[\r\n]+([\s\S]*?)```[\r\n]*/g,s=[];while(null!==(r=l.exec(e)))s.push({fullMatch:r[0],code:r[1],index:r.index});if(console.log("[Mermaid提取] 正则表达式找到 ".concat(s.length," 个匹配项")),s.length<n){console.warn("[Mermaid提取] 匹配数量不匹配!尝试使用更宽松的正则表达式...");var c,d=/```mermaid([\s\S]*?)```/g,u=[];while(null!==(c=d.exec(e)))u.push({fullMatch:c[0],code:c[1],index:c.index});console.log("[Mermaid提取] 宽松模式找到 ".concat(u.length," 个匹配项")),i=0,o=0;var p=e.replace(d,(function(e,n){i++;var r=a.processMermaidMatch(e,n,t,o,i-1);return r}));return console.log("[Mermaid提取] 总共处理了 ".concat(i," 个 mermaid 代码块")),p}var m=e.replace(/```mermaid\s*[\r\n]+([\s\S]*?)```[\r\n]*/g,(function(e,n){i++,console.log("[Mermaid提取] 找到第 ".concat(i," 个 mermaid 代码块,长度: ").concat(e.length));var r=a.processMermaidMatch(e,n,t,o,i-1);return r}));return console.log("[Mermaid提取] 总共处理了 ".concat(i," 个 mermaid 代码块")),m},processMermaidMatch:function(e,t,a,n,r){console.log("[Mermaid提取] 处理第 ".concat(r+1," 个 mermaid 代码块,长度: ").concat(e.length,", placeholderIndex: ").concat(n));var o=t.trim();if(o=o.replace(/\\"/g,'"'),o=o.replace(/\\r\\n/g,"\n").replace(/\\n/g,"\n"),o=o.trim(),!o)return console.warn("[Mermaid提取] 第 ".concat(r+1," 个代码块为空,跳过")),e;console.log("[Mermaid提取] 清理后的代码: ".concat(o.substring(0,50),"..."));var i="mermaid-".concat(Date.now(),"-").concat(Math.floor(1e4*Math.random()),"-").concat(n);this.mermaidCharts.push({id:i,code:o,rendered:!1,svg:""});var l='<div class="mermaid" id="'.concat(i,'" data-mermaid-code="').concat(encodeURIComponent(o),'"></div>');return l},escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},preprocessMermaidCode:function(e){return e.replace(/```mermaid\s*\n([\s\S]*?)\n```/g,(function(e,t){var a=t.trim(),n="mermaid-".concat(Date.now(),"-").concat(Math.floor(1e4*Math.random()));return'<div class="mermaid" id="'.concat(n,'" data-mermaid-code="').concat(encodeURIComponent(a),'" style="text-align: center; margin: 1em 0; display: block;">\n <div style="color: #666; font-style: italic;">正在渲染图表...</div>\n </div>')}))},preprocessImageLinks:function(e){var t=e.replace(/<details>[\s\S]*?```json\s*\n(https:\/\/quickchart\.io\/chart\?c=[A-Za-z0-9%]+)\s*\n```[\s\S]*?<\/details>/g,(function(e,t){var a=e.match(/<summary>([\s\S]*?)<\/summary>/),n=a?a[1]:"Called MCP Tool: generate_chart";return"<details>\n <summary>".concat(n,'</summary>\n <div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="').concat(t,'" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>\n </details>')}));return t=t.replace(/```json\s*\n(https:\/\/quickchart\.io\/chart\?c=[A-Za-z0-9%]+)\s*\n```/g,(function(e,t){return'<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(t,'" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>')})),t=t.replace(/https:\/\/quickchart\.io\/chart\?c=([A-Za-z0-9%]+)/g,(function(e,t){return'<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(e,'" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>')})),console.log("处理后的内容:",t),t},processImagesInDOM:function(){if(this.$el){var e,t=document.createTreeWalker(this.$el,NodeFilter.SHOW_TEXT,null,!1),a=[];while(e=t.nextNode())if(e.textContent.includes("quickchart.io/chart?c=")){var n=e.parentNode,r=!1;while(n&&n!==this.$el){if("DETAILS"===n.tagName){r=!0;break}n=n.parentNode}r||a.push(e)}a.forEach((function(e){var t=e.parentNode,a=e.textContent,n=/https:\/\/quickchart\.io\/chart\?c=([A-Za-z0-9%]+)/g,r=Object(o["a"])(a.matchAll(n));if(r.length>0){var i=a;r.forEach((function(e){var t=e[0],a='<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(t,'" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>');i=i.replace(t,a)}));var l=document.createElement("div");l.innerHTML=i;while(l.firstChild)t.insertBefore(l.firstChild,e);t.removeChild(e)}}))}},applyTableTheme:function(){var e=this;if(this.$el){var t=this.$el.querySelectorAll("table");t.forEach((function(t){t.style.cssText="\n width: 100% !important;\n border-collapse: collapse !important;\n margin: 1em 0 !important;\n background-color: ".concat(e.tableTheme.cellBg," !important;\n border: 1px solid ").concat(e.tableTheme.tableBorder," !important;\n border-radius: ").concat(e.tableTheme.borderRadius||"4px"," !important;\n overflow: hidden !important;\n box-shadow: ").concat(e.tableTheme.boxShadow||"none"," !important;\n ");var a=t.querySelectorAll("th");a.forEach((function(t){t.style.cssText="\n background-color: ".concat(e.tableTheme.headerBg," !important;\n color: ").concat(e.tableTheme.headerText," !important;\n border: 1px solid ").concat(e.tableTheme.borderColor," !important;\n padding: ").concat(e.tableTheme.headerPadding||"8px 12px"," !important;\n font-size: ").concat(e.tableTheme.headerFontSize||"13px"," !important;\n font-weight: 600 !important;\n text-align: left !important;\n border-bottom: 1px solid ").concat(e.tableTheme.borderColor," !important;\n ")}));var n=t.querySelectorAll("td");n.forEach((function(t){t.style.cssText="\n background-color: ".concat(e.tableTheme.cellBg," !important;\n color: ").concat(e.tableTheme.cellText," !important;\n border: 1px solid ").concat(e.tableTheme.borderColor," !important;\n padding: ").concat(e.tableTheme.cellPadding||"6px 12px"," !important;\n font-size: ").concat(e.tableTheme.cellFontSize||"12px"," !important;\n text-align: left !important;\n border-bottom: 1px solid ").concat(e.tableTheme.borderColor," !important;\n ")}));var r=t.querySelectorAll("tr");r.forEach((function(t,a){if(a%2===1){t.style.backgroundColor=e.tableTheme.evenRow;var n=t.querySelectorAll("td");n.forEach((function(t){t.style.backgroundColor=e.tableTheme.evenRow}))}else{var r=t.querySelectorAll("td");r.forEach((function(t){t.style.backgroundColor=e.tableTheme.cellBg}))}t.addEventListener("mouseenter",(function(){t.style.backgroundColor=e.tableTheme.rowHover;var a=t.querySelectorAll("td");a.forEach((function(t){t.style.backgroundColor=e.tableTheme.rowHover}))})),t.addEventListener("mouseleave",(function(){var n=a%2===1;t.style.backgroundColor=n?e.tableTheme.evenRow:e.tableTheme.cellBg;var r=t.querySelectorAll("td");r.forEach((function(t){t.style.backgroundColor=n?e.tableTheme.evenRow:e.tableTheme.cellBg}))}))}))}))}},renderMermaidDiagrams:function(){if(console.log("Starting Mermaid diagram rendering..."),window.mermaid){console.log("Using Mermaid built-in rendering...");var e=this.$el.querySelectorAll(".mermaid");console.log("Found mermaid elements:",e.length),e.length>0&&(e.forEach((function(e){var t=e.getAttribute("data-mermaid-code");if(t){var a=decodeURIComponent(t);e.textContent=a}})),window.mermaid.init(void 0,e))}else console.log("Mermaid not available")},replacePlaceholder:function(e){var t=this.$el.querySelector('[data-chart-id="'.concat(e.id,'"]'));if(t){console.log("Found placeholder, replacing with SVG"),t.innerHTML=e.svg,t.style.height="auto",t.style.lineHeight="normal",t.style.minHeight="300px",t.style.display="block";var a=t.querySelector("svg");a&&(a.style.width="100%",a.style.height="auto",a.style.display="block",a.style.maxWidth="100%")}else console.log("Placeholder not found for chart:",e.id)},renderMermaidChart:function(e){var t=this;if(console.log("renderMermaidChart called, window.mermaid:",!!window.mermaid),console.log("Chart data:",e),!window.mermaid)return e.svg='<div style="color: orange; padding: 10px; border: 1px solid orange; border-radius: 4px; text-align: left;">Mermaid库正在加载中...</div>',void setTimeout((function(){t.renderMermaidChart(e)}),1e3);var a=e.code.trim();if(a.startsWith("mermaid")&&(a=a.replace(/^mermaid\s*/,"")),a.includes("pie")){var n=a.match(/pie\s+(.*)/);if(n){var r=n[1],o=r.match(/title\s+([^"]+)/),i="pie\n";o&&(i+=" title "+o[1].trim()+"\n");var l=r.match(/"([^"]+)"\s*:\s*(\d+)/g);l&&l.forEach((function(e){var t=e.match(/"([^"]+)"\s*:\s*(\d+)/);t&&(i+=' "'+t[1]+'" : '+t[2]+"\n")})),a=i.trim()}}console.log("Cleaned Mermaid code:",a);try{console.log("Attempting to render Mermaid chart...");var s=window.mermaid.render(e.id,a);console.log("Mermaid render result:",s),s&&"string"===typeof s&&s.includes("<svg")?(console.log("Mermaid chart rendered successfully"),console.log("SVG content length:",s.length),console.log("SVG preview:",s.substring(0,200)+"..."),e.svg=s,e.rendered=!0):s&&s.svg?(console.log("Mermaid chart rendered successfully (object format)"),console.log("SVG content length:",s.svg.length),console.log("SVG preview:",s.svg.substring(0,200)+"..."),e.svg=s.svg,e.rendered=!0):(console.error("Mermaid render returned no valid SVG"),e.svg='<div style="color: red; padding: 10px; border: 1px solid red; border-radius: 4px; text-align: left;">Mermaid渲染返回空结果</div>',e.rendered=!0)}catch(c){console.error("Mermaid渲染失败:",c),e.svg='<div style="color: red; padding: 10px; border: 1px solid red; border-radius: 4px; text-align: left;">Mermaid图表渲染失败: '.concat(c.message,"</div>"),e.rendered=!0}},updateTextColor:function(){var e=this;if(this.$el){var t=this.$el.querySelectorAll("h1, h2, h3, h4, h5, h6, p, ul, ol, li, th, td");t.forEach((function(t){t.hasAttribute("style")&&t.getAttribute("style").includes("color")||(t.style.color=e.textColor)}))}}}},s=l,c=(a("c5bb"),a("829d")),d=Object(c["a"])(s,n,r,!1,null,null,null);t["a"]=d.exports},"3ebe":function(e,t,a){},4059:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"scanModel"},[n("el-dialog",{attrs:{title:"扫码支付",visible:e.show,"close-on-click-modal":!1,"close-on-press-escape":!1,width:"35%","before-close":e.handleClose},on:{"update:visible":function(t){e.show=t},opened:e.qrCodeCreate}},[n("div",{staticClass:"scanBody"},[n("div",{staticClass:"payBg_default"}),e._v(" "),n("div",{staticClass:"scanInfo"},[n("div",{staticClass:"orderNo"},[e._v("订单号:"+e._s(e.info.orderNo))])]),e._v(" "),n("div",{staticClass:"scanContent"},[e.pay_status?n("div",[n("div",{staticClass:"moneyTitle"},[e._v("付款金额:"),n("span",{staticClass:"weixin_default"},[e._v("¥"+e._s(e.toMoney(e.info.totalAmount)))]),e._v(" 元")]),e._v(" "),n("div",{staticClass:"cardContent"},[n("img",{attrs:{src:a("f4f1"),alt:""}}),e._v(" "),n("div",{staticClass:"payQRCode"},[e.show?n("div",{ref:"qrCode",attrs:{id:"qrCode"}}):e._e()]),e._v(" "),n("div",{staticClass:"payTip"},[e._v("有效期30分钟,请及时付款")])]),e._v(" "),n("div",{staticClass:"orderTip"},[e._v("请使用微信、支付宝扫一扫完成支付")])]):e._e(),e._v(" "),e.pay_status?e._e():n("div",{staticStyle:{margin:"60px 0"}},[e.pay_success?n("el-result",{attrs:{icon:"success",title:"支付成功",subTitle:"到账后系统会自动处理缴费账单,请耐心等待!"}},[n("template",{slot:"extra"},[n("el-button",{staticClass:"btn_weixin",attrs:{type:"success",size:"medium"},on:{click:e.back}},[e._v("返回")])],1)],2):e._e(),e._v(" "),e.pay_error?n("el-result",{attrs:{icon:"error",title:"支付失败",subTitle:"请点击下方按钮再次支付或重新下单,谢谢!"}},[n("template",{slot:"extra"},[n("el-button",{staticClass:"btn_weixin",attrs:{type:"success",size:"medium"},on:{click:e.toPay}},[e._v("继续支付")])],1)],2):e._e()],1)])]),e._v(" "),e.pay_status?n("div",{staticClass:"payBtn"},[n("el-button",{staticClass:"btn_default",attrs:{type:"success",loading:e.btnLoading},on:{click:e.searchPay}},[e._v("完成支付")]),e._v(" "),n("el-button",{on:{click:e.closeItem}},[e._v("暂不支付")])],1):e._e()])],1)},r=[],o=a("f8b7"),i=a("dedc"),l={props:["show","info"],data:function(){return{btnLoading:!1,pay_success:!1,pay_error:!1,pay_status:!0,count:0}},methods:{qrCodeCreate:function(){var e=this;this.pay_success=!1,this.pay_error=!1,this.pay_status=!0,this.count=0,console.log(this.info),this.$nextTick((function(){var t=Object(i["a"])({size:165,data:"".concat("https://hc-offiaccount.sqygj.cn","/cashier?type=3&no=").concat(e.info.orderNo)});document.getElementById("qrCode").appendChild(t)}))},toMoney:function(e){return e?e.toFixed(2):""},handleClose:function(){this.back()},closeItem:function(){var e=this;this.$confirm("当前订单已生成,后续需缴费请前往销单页面进行支付!","温馨提示",{confirmButtonText:"确定",showCancelButton:!1,type:"warning"}).then((function(){e.back()})).catch((function(){}))},back:function(){this.$emit("back")},toPay:function(){this.$emit("back")},searchPay:function(){this.btnLoading=!0,this.payCallback()},payCallback:function(){var e=this,t=this;Object(o["h"])({orderNo:this.info.orderNo}).then((function(a){2==a.data.status?(e.btnLoading=!1,e.pay_status=!1,e.pay_success=!0,e.pay_error=!1,e.count=0):1==a.data.status&&(e.count<5?setTimeout((function(){t.payCallback(),t.count++}),1e3):(e.pay_status=!1,e.pay_success=!1,e.pay_error=!0,e.btnLoading=!1))}))}}},s=l,c=(a("d8ae"),a("829d")),d=Object(c["a"])(s,n,r,!1,null,null,null);t["a"]=d.exports},"720d":function(e,t,a){"use strict";a("7c0b")},"7c0b":function(e,t,a){},8988:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"uploadWrap"},[e._t("default",[e.showFileList?e._e():a("ul",{staticClass:"uploadContent"},e._l(e.uploadResult,(function(t){return a("li",{key:t.filePath},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.filePath,"preview-src-list":[t.filePath]}}),e._v(" "),"video"===t.fileType?a("video",{attrs:{src:t.filePath,controls:"controls"}},[e._v("\n 您的浏览器不支持视频播放\n ")]):e._e(),e._v(" "),"file"===t.fileType?a("span",[e._v(e._s(t.fileName))]):e._e(),e._v(" "),e.isShowClose?a("span",{staticClass:"closeIcon",on:{click:function(a){return e.handleRemove(t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e()],1)})),0)]),e._v(" "),a("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoad,expression:"isLoad"}],ref:"upload",staticClass:"upload",class:{hide:e.uploadResult.length>=e.limit},attrs:{action:"","http-request":e.uploadRequest,"before-upload":e.beforeUpload,"on-success":e.handleSuccess,"auto-upload":e.autoUpload,"file-list":e.computedFileList,"show-file-list":e.showFileList,"on-remove":e.handleRemove,limit:e.limit,"list-type":e.listType,"on-preview":e.handlePreview,accept:e.accept,disabled:!!e.disabled||!(e.limit>0)}},[e.uploadResult.length<e.limit?e._t("uploadButton",[a("i",{staticClass:"el-icon-plus upload-plus",attrs:{slot:"default"},slot:"default"})]):e._e()],2),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible,"show-close":!0,"close-on-press-escape":!1,"close-on-click-modal":!1,"destroy-on-close":"",width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.allowFileType.includes("image")&&e.dialogImageUrl&&e.dialogImageUrl.length>0?a("div",e._l(e.dialogImageUrl,(function(t,n){return a("el-image",{key:n,staticClass:"fileIframe",attrs:{width:"100%",src:t,alt:"","preview-src-list":e.dialogImageUrl}})})),1):"file"===e.allowFileType[0]||"video"===e.allowFileType[0]?a("iframe",{staticClass:"fileIframe",attrs:{src:e.dialogImageUrl,frameborder:"0"}}):e._e(),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.closeFileDialog}},[e._v("关闭")])],1)])],2)},r=[],o=(a("ac67"),a("1bc7"),a("32ea"),a("a7e5"),a("b5aa"),a("3ef1")),i=(a("aa18"),a("982e"),a("a450"),a("5821")),l=(a("e680"),a("127f")),s=a("90e7");function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u={props:{autoUpload:{default:!0,type:Boolean},showFileList:{default:!1,type:Boolean},fileList:{default:function(){return[]},type:Array},listType:{default:"picture-card",type:String},allowFileType:{default:function(){return["file","image","video"]},type:Array},accept:{type:String,default:"image/jpeg,image/png,image/JPG,image/jpg,image/PNG"},limit:{type:Number,default:99},isShowClose:{type:Boolean,default:!0},imgStore:{type:String,default:""},isChangeFileName:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data:function(){var e=[];return{isLoad:!1,isUploading:!1,uploadList:[],uploadMap:{},uploadResult:e,dialogVisible:!1,dialogImageUrl:""}},computed:{computedFileList:function(){return this.fileList.map((function(e){return d(d({},e),{},{fileId:l["a"]})}))}},watch:{computedFileList:{deep:!0,handler:function(e,t){e&&e.length&&(this.uploadResult=e.map((function(e){return d(d({},e),{},{filePath:e.url})})))}}},mounted:function(){var e=this;void 0!=this.fileList&&this.fileList.length>0&&this.fileList.map((function(t){e.uploadResult.push({filePath:t.url,fileId:Object(l["a"])()})}))},methods:{isImage:function(e){var t=["image/jpeg","image/png","image/gif"];return-1!=t.indexOf(e.type)},isVideo:function(e){return-1!=["video/mp4","video/ogg","video/flv","video/avi","video/wmv","video/rmvb"].indexOf(e.type)},isFile:function(e){var t=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf"],a=[".doc",".docx",".pdf",".xls",".xlsx"],n=e.name.slice(e.name.lastIndexOf("."));return e.type?-1!=t.indexOf(e.type):-1!=a.indexOf(n)},handlePreview:function(e){console.log("file",e);var t=[];this.allowFileType.includes("image")&&this.uploadResult.length>0?(this.uploadResult.map((function(e){t.push(e.filePath)})),this.dialogImageUrl=t,this.dialogVisible=!0):this.$message.error("非图片类型暂不支持预览!")},closeFileDialog:function(){this.dialogVisible=!1},beforeUpload:function(e){var t=e.size/1024/1024<10,a=this.allowFileType;if(!(-1!==a.indexOf("image")&&this.isImage(e)||(-1!==a.indexOf("file")&&this.isFile(e)||-1!==a.indexOf("video")&&this.isVideo(e))&&t))return this.$message.error("请上传正确的文件类型且上传的文件大小不能超过10MB哦!"),!1;this.isLoad=!0},uploadInfo:function(){if(6==this.uploadResult.length){var e="",t=this.allowFileType;if(-1!==t.indexOf("image"))return e="图片最多上传6张",void this.message(e);if(-1!==t.indexOf("video"))e="视频最多上传6个",this.message(e);else if(-1!==t.indexOf("file"))return e="文件最多上传6份",void this.message(e)}},add0:function(e){return e<10?"0"+e:e},getYearMonthDay:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate();return""+t+this.add0(a)+this.add0(n)},message:function(e){this.$message({message:e,type:"error"})},uploadRequest:function(e){var t=this;t.isLoad=!0;var a=e.file;console.log("file",a);var n=a.name.lastIndexOf("."),r=a.name.length,i=a.name.substring(n+1,r),c="";c=this.isChangeFileName?Object(l["a"])()+"."+i:a.name;var d=this.isImage(a)?"image":this.isVideo(a)?"video":this.isFile(a)?"file":a.type,u=new FormData;u.append("file",a);var p=function(){var n=Object(o["a"])(regeneratorRuntime.mark((function n(){var r,o,i,p,m,f;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,Object(s["o"])(u);case 1:if(r=n.sent,!r||!r.data||0!==r.data.code){n.next=2;break}o=r.data.data.fullUrl,i={fileType:d,fileName:c,filePath:o,fileOrName:a.name,uid:a.uid,fileId:Object(l["a"])()},t.uploadResult.push(i),t.uploadList.splice(t.uploadList.indexOf(c),1),delete t.uploadMap[c],0===t.uploadList.length?(t.isLoad=!1,t.$message.success("上传成功!"),e.onSuccess()):(p=t.uploadList[0],t.uploadMap[p]&&t.uploadMap[p]()),n.next=3;break;case 2:throw new Error(r.message||"上传失败");case 3:n.next=5;break;case 4:n.prev=4,f=n["catch"](0),t.$message.error("上传失败: ".concat(f.message||"未知错误")),t.uploadList.splice(t.uploadList.indexOf(c),1),delete t.uploadMap[c],0===t.uploadList.length?t.isLoad=!1:(m=t.uploadList[0],t.uploadMap[m]&&t.uploadMap[m]());case 5:case"end":return n.stop()}}),n,null,[[0,4]])})));return function(){return n.apply(this,arguments)}}();0===this.uploadList.length&&p(),this.uploadList.push(c),this.uploadMap[c]=p},upload:function(){this.$refs.upload.submit()},handleSuccess:function(){this.uploadResult.length>6||(this.uploadInfo(),this.$emit("getUploadData",this.uploadResult))},handleRemove:function(e,t){var a=this.uploadResult.findIndex((function(t){return e.uid==t.uid||e.url===t.filePath}));this.uploadResult.splice(a,1),this.$emit("getUploadData",this.uploadResult)}}},p=u,m=(a("3701"),a("c838"),a("829d")),f=Object(m["a"])(p,n,r,!1,null,"8ef0850a",null);t["a"]=f.exports},c5bb:function(e,t,a){"use strict";a("ccc8")},c838:function(e,t,a){"use strict";a("3ebe")},ccc8:function(e,t,a){},d322:function(e,t,a){},d68f:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"qualityStimate"},[a("div",{staticClass:"workOrderTitle"},[e._v("质量评估\n "),a("el-tooltip",{attrs:{placement:"top"}},[2===e.dataInfo.planType?a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 评估规则:\n "),a("br"),e._v("正常:4-5星 且 无超时\n "),a("br"),e._v("警告:3星 或 受理超时\n "),a("br"),e._v("黄牌:2星 或 处理超时\n "),a("br"),e._v(" 红牌:1星 或 (受理超时+处理超时)\n ")]):e._e(),e._v(" "),1===e.dataInfo.planType?a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 评估规则:\n "),a("br"),e._v("警告:3星 或 受理超时\n "),a("br"),e._v("黄牌:2星 或 处理超时\n "),a("br"),e._v("红牌:1星 或 (受理超时+处理超时)\n "),a("br"),e._v("超时转单: 工单存在超时后进行转单,红黄牌结算计入转单人名下\n "),a("br"),e._v("未超时转单:如转单对象接受,工单红黄牌与转单人无关\n ")]):e._e(),e._v(" "),a("span",{staticClass:"el-icon-info"})])],1),e._v(" "),a("div",{staticClass:"tab-title"}),e._v(" "),a("div",{staticClass:"orderInfos data"},[a("el-row",{staticStyle:{margin:"25px 0px"}},[a("el-col",{staticClass:"fontLin",attrs:{span:4}},[e._v(e._s(e.dataInfo.memberName))]),e._v(" "),a("el-col",{staticClass:"lfteStes",attrs:{span:4}},[3!==e.dataInfo.accept?a("span",{staticClass:"circular2"},[e._v("受理")]):e._e(),e._v(" "),3==e.dataInfo.accept?a("span",{staticClass:"circular6"},[e._v("受理")]):e._e(),e._v(" "),a("br"),3!==e.dataInfo.accept?a("span",{staticClass:"alignment"},[e._v("未超时")]):e._e(),e._v(" "),a("br"),3==e.dataInfo.accept?a("span",{staticClass:"alignment2"},[e._v("超时")]):e._e()]),e._v(" "),a("el-col",{staticClass:"sytsFont el-icon-plus",attrs:{span:4}}),e._v(" "),a("el-col",{attrs:{span:4}},[3!==e.dataInfo.handle?a("span",{staticClass:"circular2"},[e._v("处理")]):e._e(),e._v(" "),3==e.dataInfo.handle?a("span",{staticClass:"circular6"},[e._v("处理")]):e._e(),e._v(" "),a("br"),3!==e.dataInfo.handle?a("span",{staticClass:"alignment"},[e._v("未超时")]):e._e(),e._v(" "),a("br"),3==e.dataInfo.handle?a("span",{staticClass:"alignment2"},[e._v("超时")]):e._e()]),e._v(" "),a("el-col",{staticClass:"sytsFont el-icon-plus",attrs:{span:4}}),e._v(" "),a("el-col",{attrs:{span:4}},[a("span",{staticClass:"circular2"},[e._v("评价")]),e._v(" "),a("br"),a("span",{staticClass:"alignment",staticStyle:{"padding-left":"3px"}},[e._v(e._s(e.dataInfo.evaluationStar)+"星")])]),e._v(" "),a("el-col",{staticClass:"sytsFont",attrs:{span:4}},[e._v("=")]),e._v(" "),a("el-col",{attrs:{span:4}},[e.dataInfo.warnType?e._e():a("span",{staticClass:"greenCircle"},[e._v("绿牌")]),e._v(" "),1==e.dataInfo.warnType?a("span",{staticClass:"yellowCir"},[e._v("警告")]):e._e(),e._v(" "),2==e.dataInfo.warnType?a("span",{staticClass:"yellowCir"},[e._v("黄牌")]):e._e(),e._v(" "),3==e.dataInfo.warnType?a("span",{staticClass:"redCircle"},[e._v("红牌")]):e._e()])],1)],1)])},r=[],o={props:{dataInfo:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{}},i=o,l=(a("f10c"),a("829d")),s=Object(l["a"])(i,n,r,!1,null,"7a9cbc75",null);t["a"]=s.exports},d8ae:function(e,t,a){"use strict";a("1f23")},e058:function(e,t,a){"use strict";a("a450");var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flowm-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?a("div",{staticClass:"flowm-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),e._v(" "),a("div",{staticClass:"flowm-card__body",style:e.bodyStyle},[e._t("default")],2),e._v(" "),e.$slots.footer||e.footer?a("div",{staticClass:"flowm-card__footer",style:e.footerStyle},[e._t("footer",[e._v(e._s(e.footer))])],2):e._e()])},r=[],o={name:"ElCard",props:{header:{},bodyStyle:{},footerStyle:{},footer:{},shadow:{type:String}}},i=o,l=a("829d"),s=Object(l["a"])(i,n,r,!1,null,null,null),c=s.exports;c.install=function(e){e.component(c.name,c)};t["a"]=c},f10c:function(e,t,a){"use strict";a("d322")}}]); |