| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-67f97ff8"],{"4b1f":function(e,t,a){a("d4a9")},"9cb2":function(e,t,a){a.r(t),a("caad"),a("2532");var s=a("5530"),l=(a("ac1f"),a("5319"),a("2f62")),i=a("90e7"),o=a("7af3"),r=a("d044"),n=a.n(r),c=a("d708");r={name:"content",components:{linkaddress:o.a},data:function(){return{formItem:{header:1,delivery:1,buyer_remarks:1,goods:[0],freight:1,preferential:1,pay:[0,1],order:[0,1],code:0,code_url:"",show_notice:0,notice_content:""},code:"",BaseURL:c.a.apiBaseURL.replace(/\/adminapi/,""),id:this.$route.query.id}},computed:Object(s.a)(Object(s.a)({},Object(l.d)("admin/layout",["isMobile","menuCollapse"])),{},{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"},labelBottom:function(){return this.isMobile?void 0:15}}),created:function(){this.id&&this.getPrintContent()},methods:{getPrintContent:function(){var e=this;Object(i.gb)(this.id).then((function(t){Array.isArray(t.data)||(e.formItem=t.data),t.data.code&&t.data.code_url&&(e.code=e.BaseURL+t.data.code_url,e.$nextTick((function(t){e.drawCode(e.code)})))}))},save:function(){var e=this;Object(i.jb)(this.id,this.formItem).then((function(t){e.$message.success("保存成功")})).catch((function(t){e.$message.error("保存失败")}))},getLink:function(e){this.$refs.linkaddres.modals=!0},linkUrl:function(e){this.formItem.code_url=e,e=this.BaseURL+e,this.drawCode(e)},drawCode:function(e){var t=document.getElementById("qrcode");t.innerHTML="",new n.a(t,{text:e,width:128,height:128,colorDark:"#000000",colorLight:"#ffffff",correctLevel:n.a.CorrectLevel.H})}}},a("4b1f"),o=a("2877"),s=Object(o.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("pages-header",{ref:"pageHeader",attrs:{title:"小票配置",backUrl:e.$routeProStr+"/setting/ticket"}}),t("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never"}},[t("div",{staticClass:"flex justify-between warpper"},[t("el-form",{attrs:{model:e.formItem,"label-width":"120px"}},[t("el-form-item",{attrs:{label:"小票头部:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.header,callback:function(t){e.$set(e.formItem,"header",t)},expression:"formItem.header"}},[e._v("商家名称")])],1),t("el-form-item",{attrs:{label:"配送信息:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.delivery,callback:function(t){e.$set(e.formItem,"delivery",t)},expression:"formItem.delivery"}},[e._v("配送信息")])],1),t("el-form-item",{attrs:{label:"买家备注:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.buyer_remarks,callback:function(t){e.$set(e.formItem,"buyer_remarks",t)},expression:"formItem.buyer_remarks"}},[e._v("买家备注")])],1),t("el-form-item",{attrs:{label:"商品信息:"}},[t("el-checkbox-group",{model:{value:e.formItem.goods,callback:function(t){e.$set(e.formItem,"goods",t)},expression:"formItem.goods"}},[t("el-checkbox",{attrs:{label:0}},[e._v("商品基础信息")]),t("el-checkbox",{attrs:{label:1}},[e._v("规格编码")])],1)],1),t("el-form-item",{attrs:{label:"运费信息:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.freight,callback:function(t){e.$set(e.formItem,"freight",t)},expression:"formItem.freight"}},[e._v("运费")])],1),t("el-form-item",{attrs:{label:"优惠信息:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.preferential,callback:function(t){e.$set(e.formItem,"preferential",t)},expression:"formItem.preferential"}},[e._v("优惠总计")])],1),t("el-form-item",{attrs:{label:"支付信息:"}},[t("el-checkbox-group",{model:{value:e.formItem.pay,callback:function(t){e.$set(e.formItem,"pay",t)},expression:"formItem.pay"}},[t("el-checkbox",{attrs:{label:0}},[e._v("支付方式")]),t("el-checkbox",{attrs:{label:1}},[e._v("实收金额")])],1)],1),t("el-form-item",{attrs:{label:"其他订单信息:"}},[t("el-checkbox-group",{model:{value:e.formItem.order,callback:function(t){e.$set(e.formItem,"order",t)},expression:"formItem.order"}},[t("el-checkbox",{attrs:{label:0}},[e._v("订单编号")]),t("el-checkbox",{attrs:{label:1}},[e._v("下单时间")]),t("el-checkbox",{attrs:{label:2}},[e._v("支付时间")]),t("el-checkbox",{attrs:{label:3}},[e._v("打印时间")])],1)],1),t("el-form-item",{attrs:{label:"推广二维码:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.code,callback:function(t){e.$set(e.formItem,"code",t)},expression:"formItem.code"}},[e._v("选择系统链接")]),e.formItem.code?t("div",{staticClass:"link"},[t("div",{staticClass:"select-link"},[e._v("\n 链接:"+e._s(e.formItem.code_url)+"\n "),t("span",{staticClass:"change",on:{click:function(t){return e.getLink(e.index)}}},[e._v(e._s(e.formItem.code_url?"修改":"选择"))])])]):e._e()],1),t("el-form-item",{attrs:{label:"底部公告:"}},[t("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.formItem.show_notice,callback:function(t){e.$set(e.formItem,"show_notice",t)},expression:"formItem.show_notice"}},[e._v("底部公告")]),e.formItem.show_notice?t("div",[t("el-input",{staticStyle:{width:"500px"},attrs:{maxlength:"80","show-word-limit":"",type:"textarea",placeholder:"请输入公告内容"},model:{value:e.formItem.notice_content,callback:function(t){e.$set(e.formItem,"notice_content",t)},expression:"formItem.notice_content"}})],1):e._e()],1)],1),t("div",{staticClass:"ticket-preview"},[t("div",{staticClass:"out-line"}),t("div",{staticClass:"ticket-content"},[1===e.formItem.header?t("div",{staticClass:"ticket-header"},[e._v("商家名称")]):e._e(),1===e.formItem.delivery?t("div",{staticClass:"delivery btn-line"},[t("div",{staticClass:"form-box"},[t("div",{staticClass:"label"},[e._v("配送方式:")]),t("div",{staticClass:"content"},[e._v("商家配送")])]),t("div",{staticClass:"form-box"},[t("div",{staticClass:"label"},[e._v("客户姓名:")]),t("div",{staticClass:"content"},[e._v("收货人姓名")])]),t("div",{staticClass:"form-box"},[t("div",{staticClass:"label"},[e._v("客户电话:")]),t("div",{staticClass:"content"},[e._v("13023354455")])]),t("div",{staticClass:"form-box"},[t("div",{staticClass:"label"},[e._v("收货地址:")]),t("div",{staticClass:"content"},[e._v("上海市浦东新区世界大道25号B座309室")])])]):e._e(),1===e.formItem.buyer_remarks?t("div",{staticClass:"buyer-remarks btn-line"},[t("div",{staticClass:"form-box"},[t("div",{staticClass:"label"},[e._v("买家备注:")]),t("div",{staticClass:"content"},[e._v("请在收货时向商家留言,谢谢!")])])]):e._e(),e.formItem.goods.includes(0)?t("div",[t("div",{staticClass:"goods btn-line"},[t("div",{staticClass:"xing"},[e._v("*************************商品***********************")]),t("div",{staticClass:"flex justify-between"},[t("span",[e._v("商品")]),t("span",[e._v("单价")]),t("span",[e._v("数量")]),t("span",[e._v("金额")])])]),t("div",{staticClass:"goods-msg btn-line"},[t("div",{staticClass:"flex justify-between"},[t("span",[e._v("商品1")]),t("span",[e._v("100.0")]),t("span",[e._v("2")]),t("span",[e._v("200.0")])]),t("div",{staticClass:"flex justify-between"},[t("span",[e._v("(规格1)")]),t("span"),t("span"),t("span")]),e.formItem.goods.includes(1)?t("div",{staticClass:"flex py-10"},[t("span",[e._v("规格编码:")]),t("span",[e._v("FKXQW4567vw59")])]):e._e()]),t("div",{staticClass:"goods-msg pb-10 pt-10"},[t("div",{staticClass:"flex justify-between"},[t("span",[e._v("商品2")]),t("span",[e._v("100.0")]),t("span",[e._v("2")]),t("span",[e._v("200.0")])]),t("div",{staticClass:"flex justify-between"},[t("span",[e._v("(规格2)")]),t("span"),t("span"),t("span")]),e.formItem.goods.includes(1)?t("div",{staticClass:"flex py-10"},[t("span",[e._v("规格编码:")]),t("span",[e._v("FKXQW4567vw50")])]):e._e()]),t("div",{staticClass:"xing"},[e._v("**************************************************")]),t("div",{staticClass:"pay flex flex-col align-end btn-line"},[[t("div",{staticClass:"fw-500"},[e._v("合计:400.00元")])]],2)]):e._e(),1===e.formItem.freight||1===e.formItem.preferential?t("div",{staticClass:"pay flex flex-col align-end btn-line"},[[1===e.formItem.freight?t("div",[e._v("运费:+30.00元")]):e._e(),1===e.formItem.preferential?t("div",[e._v("优惠:-80.00元")]):e._e(),1===e.formItem.preferential?t("div",[e._v("抵扣:-20.00元")]):e._e()]],2):e._e(),0<e.formItem.pay.length?t("div",{staticClass:"pay flex flex-col align-end btn-line"},[e.formItem.pay.includes(0)?t("div",[e._v("支付方式:微信支付")]):e._e(),e.formItem.pay.includes(1)?t("div",{staticClass:"fw-500"},[e._v("实际支付:330.00元")]):e._e()]):e._e(),0<e.formItem.order.length?t("div",{staticClass:"order pt-10 btn-line"},[e.formItem.order.includes(0)?t("div",[e._v("订单编号:wx1234567890")]):e._e(),e.formItem.order.includes(1)?t("div",[e._v("下单时间:2022/06/18 12:00:00")]):e._e(),e.formItem.order.includes(2)?t("div",[e._v("支付时间:2022/06/18 12:00:00")]):e._e(),e.formItem.order.includes(3)?t("div",[e._v("打印时间:2022/06/18 14:20:00")]):e._e()]):e._e(),t("div",{staticClass:"code"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.formItem.code,expression:"formItem.code"}],attrs:{id:"qrcode"}}),e.formItem.show_notice?t("div",{staticClass:"mt-20"},[e._v("\n "+e._s(e.formItem.notice_content)+"\n ")]):e._e()])]),t("div",{staticClass:"bottom-notice"},[t("img",{staticClass:"image",attrs:{src:a("e9ed"),alt:""}})])])],1)]),t("el-card",{staticClass:"fixed-card",attrs:{bordered:!1,"dis-hover":""}},[t("el-button",{staticClass:"submission",attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1),t("linkaddress",{ref:"linkaddres",on:{linkUrl:e.linkUrl}})],1)}),[],!1,null,"629a176b",null);t.default=s.exports},d4a9:function(e,t,a){},e9ed:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgoAAAAaBAMAAAAkpmnUAAAAAXNSR0IArs4c6QAAAA9QTFRFAAAA////////////////j0LeaAAAAAR0Uk5TAECAv6NU3QwAAAB9SURBVFjD7dSxDYAwDETRAzEAUhZAiAFYgeD9Z6JAxESipLvv7l/5CmsLrgqDiEABBRRQQAEFFFBAAQUUUEABhR8UVg3FtFJhkaTiWU2hSpK0OVYqLPc+OlZTOKUXj1elwvHsk1+lwv7so1+lwtztXvWhIL+KaP+h270q6gUS+pJSUmHA9AAAAABJRU5ErkJggg=="}}]);
|