You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-commons"],{"0b03":function(e,t,a){"use strict";a("fa61")},"0f56":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"ivu-mt",attrs:{gutter:10,align:"middle"}},[e._l(e.cardLists,(function(t,i){return a("el-col",{key:i,staticClass:"ivu-mb mb10",attrs:{xl:6,lg:6,md:12,sm:24,xs:24}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:i%5==0,two:i%5==1,three:i%5==2,four:i%5==3,five:i%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:i%5==0,two1:i%5==1,three1:i%5==2,four1:i%5==3,five1:i%5==4}},[a("i",{class:t.className,staticStyle:{"font-size":"24px"}})])]),e._v(" "),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:e._s(t.count||0)}}),e._v(" "),a("span",{staticClass:"sp2",domProps:{textContent:e._s(t.name)}})])])])})),e._v(" "),a("div",{staticClass:"ivu-mb mb10"})],2)},n=[],s={name:"Index",props:{cardLists:Array}},l=s,r=(a("0b03"),a("2877")),o=Object(r["a"])(l,i,n,!1,null,"058ef87a",null);t["a"]=o.exports},"15f5":function(e,t,a){},"183d":function(e,t,a){},"30dc":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.fileVisible?a("el-dialog",{attrs:{title:"导出订单列表",visible:e.fileVisible,width:"900px"},on:{"update:visible":function(t){e.fileVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.type))])]}}],null,!1,1406222782)}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("exportOrderStatusFilter")(t.row.status)))])]}}],null,!1,359322133)}),e._v(" "),a("el-table-column",{key:"8",attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.downLoad(t.row.path)}}},[e._v("下载")]):e._e()]}}],null,!1,921379384)})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e()],1)},n=[],s=a("f8b7"),l=(a("bbcc"),a("5f87"),{name:"FileList",data:function(){return{fileVisible:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{exportFileList:function(){var e=this;this.loading=!0,Object(s["k"])(this.tableFrom).then((function(t){e.fileVisible=!0,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},downLoad:function(e){window.open(e)},pageChange:function(e){this.tableFrom.page=e,this.exportFileList()},pageChangeLog:function(e){this.tableFromLog.page=e,this.exportFileList()},handleSizeChange:function(e){this.tableFrom.limit=e,this.exportFileList()}}}),r=l,o=(a("e562"),a("2877")),c=Object(o["a"])(r,i,n,!1,null,"e85deb2a",null);t["a"]=c.exports},"8c98":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goods_detail"},[a("div",{staticClass:"goods_detail_wrapper",class:e.previewKey||e.goodsId?"on":""},[e.previewKey?a("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?preview_key="+e.previewKey+"&product_type="+e.productType+"&inner_frame=1",frameborder:"0"}}):e._e(),e._v(" "),e.goodsId?a("iframe",{staticStyle:{width:"100%",height:"600px"},attrs:{src:"/pages/admin/goods_details/index?product_id="+e.goodsId+"&product_type="+e.productType+"&inner_frame=1",frameborder:"0"}}):e._e()])])},n=[],s=(a("c5f6"),{name:"PreviewBox",props:{goodsId:{type:String|Number,default:""},productType:{type:String|Number,default:""},previewKey:{type:String|Number,default:""}},data:function(){return{}},mounted:function(){},methods:{getProListUrl:function(){}}}),l=s,r=(a("dba9"),a("2877")),o=Object(r["a"])(l,i,n,!1,null,"4b4440b0",null);t["a"]=o.exports},"94a2":function(e,t,a){"use strict";a("183d")},"9c09":function(e,t,a){},ae43:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:e.isEdit?"编辑服务说明模板":"添加服务说明模板",visible:e.dialogVisible,width:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:e.formValidate,rules:e.ruleInline,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"模板名称:",prop:"template_name"}},[a("el-input",{attrs:{placeholder:"请输入模板名称",size:"small"},model:{value:e.formValidate.template_name,callback:function(t){e.$set(e.formValidate,"template_name",t)},expression:"formValidate.template_name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"服务条款:",prop:"template_value"}},[a("div",{staticClass:"acea-row"},e._l(e.termsService,(function(t,i){return a("el-tag",{key:i,staticClass:"mr10",attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return e.handleCloseItems(t)}}},[e._v(e._s(t.guarantee_name))])})),1)]),e._v(" "),a("el-form-item",[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入服务条款名称搜索",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getServiceTerms(t)}},model:{value:e.guarantee_name,callback:function(t){e.guarantee_name=t},expression:"guarantee_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:e.getServiceTerms},slot:"append"})],1)],1),e._v(" "),a("el-form-item",[a("el-checkbox-group",{on:{change:e.handleCheckedTermsChange},model:{value:e.formValidate.template_value,callback:function(t){e.$set(e.formValidate,"template_value",t)},expression:"formValidate.template_value"}},e._l(e.termsList,(function(t){return a("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"item.isShow"}],key:t.guarantee_id,staticClass:"guarantee_checkbox",attrs:{label:t.guarantee_id}},[a("span",{staticClass:"guarantee_name"},[e._v(e._s(t.guarantee_name))]),e._v(" "),a("span",{staticClass:"guarantee_info"},[e._v(e._s(t.guarantee_info))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"排序:"}},[a("el-input-number",{attrs:{placeholder:"请输入排序"},model:{value:e.formValidate.sort,callback:function(t){e.$set(e.formValidate,"sort",t)},expression:"formValidate.sort"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isEdit?a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.updateGuarantee("formValidate")}}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.createGuarantee("formValidate")}}},[e._v("确 定")])],1)],1)],1)},n=[],s=(a("7f7f"),a("55dd"),a("ac6a"),a("c4c8")),l={name:"CreatGuarantee",data:function(){return{isEdit:!1,dialogVisible:!1,loading:!1,guarantee_id:"",guarantee_name:"",termsService:[],termsList:[],formValidate:{template_name:"",template_value:[],sort:""},ruleInline:{template_name:[{required:!0,message:"请输入模板名称",trigger:"blur"}],template_value:[{required:!0,message:"请选择服务条款",trigger:"change"}]}}},watch:{},mounted:function(){this.getServiceTerms()},methods:{getServiceTerms:function(){var e=this;Object(s["D"])({keyword:this.guarantee_name}).then((function(t){e.guarantee_name?e.getSearchItem(t.data):(e.termsList=t.data,e.termsList.forEach((function(e,t){e.isShow=!0})))})).catch((function(t){var a=t.message;e.$message.error(a)}))},getSearchItem:function(e){var t=this;this.termsList.forEach((function(a,i){e.length>0?e.forEach((function(e,t){e.guarantee_id==a.guarantee_id?a.isShow=!0:a.isShow=!1})):a.isShow=!1,t.$set(t.termsList,i,a),console.log(t.termsList)}))},handleCheckedTermsChange:function(e){this.getSelectedItems(e)},handleCloseItems:function(e){var t=this;this.termsService.splice(this.termsService.indexOf(e),1),this.formValidate.template_value=[],this.termsService.map((function(e){t.formValidate.template_value.push(e.guarantee_id)}))},getSelectedItems:function(e){var t=this;this.termsService=[],this.termsList.forEach((function(a,i){e.forEach((function(e,i){e==a.guarantee_id&&t.termsService.push(a)}))}))},handleEdit:function(e){var t=this;this.isEdit=!0,this.dialogVisible=!0,this.loading=!1,this.guarantee_id=e,this.$refs["formValidate"].clearValidate(),Object(s["A"])(e).then((function(e){var a=e.data;t.formValidate={template_name:a.template_name,template_value:a.template_value,sort:a.sort},t.getSelectedItems(a.template_value)})).catch((function(e){var a=e.message;t.$message.error(a)}))},add:function(){this.isEdit=!1,this.dialogVisible=!0,this.loading=!1,this.formValidate={template_name:"",template_value:[],sort:""},this.termsService=[]},createGuarantee:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.loading=!0,Object(s["y"])(t.formValidate).then((function(e){var a=e.message;t.$message.success(a),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)})))}))},updateGuarantee:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.loading=!0,Object(s["G"])(t.guarantee_id,t.formValidate).then((function(e){var a=e.message;t.$message.success(a),t.dialogVisible=!1,t.loading=!1,t.$emit("get-list","")})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)})))}))}}},r=l,o=(a("94a2"),a("2877")),c=Object(o["a"])(r,i,n,!1,null,"2f8b624e",null);t["a"]=c.exports},dba9:function(e,t,a){"use strict";a("9c09")},e562:function(e,t,a){"use strict";a("15f5")},ef0d:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("vue-ueditor-wrap",{staticStyle:{width:"90%"},attrs:{config:e.myConfig},on:{beforeInit:e.addCustomDialog},model:{value:e.contents,callback:function(t){e.contents=t},expression:"contents"}})],1)},n=[],s=a("6625"),l=a.n(s),r=a("83d6"),o=a("bbcc"),c=a("5f87"),u={name:"Index",components:{VueUeditorWrap:l.a},scrollerHeight:{content:String,default:""},props:{content:{type:String,default:""}},data:function(){var e=o["a"].https+"/upload/image/0/file?ueditor=1&token="+Object(c["a"])();return{contents:this.content,myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:e,imageUrl:e,imageFieldName:"file",imageUrlPrefix:"",imageActionName:"upfile",imageMaxSize:2048e3,imageAllowFiles:[".png",".jpg",".jpeg",".gif",".bmp"]}}},watch:{content:function(e){this.contents=this.content},contents:function(e){this.$emit("input",e)}},created:function(){},methods:{addCustomDialog:function(e){window.UE.registerUI("test-dialog",(function(e,t){var a=new window.UE.ui.Dialog({iframeUrl:r["roterPre"]+"/setting/uploadPicture?field=dialog",editor:e,name:t,title:"上传图片",cssRules:"width:1000px;height:620px;padding:20px;"});this.dialog=a;var i=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(@/assets/images/icons.png);background-position: -726px -77px;",onclick:function(){a.render(),a.open()}});return i}),37)}}},d=u,m=a("2877"),f=Object(m["a"])(d,i,n,!1,null,"e4f92bfa",null);t["a"]=f.exports},fa61:function(e,t,a){}}]); |