chunk-7eac2fbc.a5de9e99.js 6.8 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7eac2fbc"],{"06c7":function(e,t,a){"use strict";a("495d")},2768:function(e,t,a){"use strict";a.r(t);var s=a("9ab4"),r=a("1b40"),l=a("f175");let i=class extends r.e{constructor(){super(...arguments),this.form={cancel_unpaid_orders:0,cancel_unpaid_orders_times:0,cancel_unshipped_orders:0,cancel_unshipped_orders_times:0,automatically_confirm_receipt:0,automatically_confirm_receipt_days:0,after_sales:0,after_sales_days:0,inventory_occupancy:1,return_inventory:0,return_coupon:0}}getSettingOrder(){l.a.get("/settings.order.transaction_settings/getConfig").then(e=>{this.form=e}).catch(()=>{this.$message.error("数据请求失败!")})}setSettingOrder(){var e;(e=this.form,l.a.post("/settings.order.transaction_settings/setConfig",e)).then(e=>{this.getSettingOrder(),this.$message.success("保存成功!")}).catch(()=>{this.$message.error("保存失败!")})}created(){this.getSettingOrder()}};i=Object(s.a)([Object(r.a)({components:{}})],i);var o=i,c=(a("06c7"),a("2877")),n=Object(c.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"setting-order"},[a("el-form",{ref:"formRef",attrs:{model:e.form,"label-width":"130px",size:"small"}},[a("div",{staticClass:"ls-card"},[a("div",{staticClass:"card-title"},[e._v("订单设置")]),a("div",{staticClass:"card-content m-t-24 order-setting"},[a("el-form-item",{attrs:{label:"系统取消待付款订单"}},[a("div",[a("el-radio",{attrs:{label:0},model:{value:e.form.cancel_unpaid_orders,callback:function(t){e.$set(e.form,"cancel_unpaid_orders",t)},expression:"form.cancel_unpaid_orders"}},[e._v("关闭系统自动取消待付款订单")])],1),a("div",[a("el-radio",{attrs:{label:1},model:{value:e.form.cancel_unpaid_orders,callback:function(t){e.$set(e.form,"cancel_unpaid_orders",t)},expression:"form.cancel_unpaid_orders"}},[a("span",{staticClass:"m-r-5"},[e._v("订单提交后")]),a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:e.form.cancel_unpaid_orders_times,callback:function(t){e.$set(e.form,"cancel_unpaid_orders_times",t)},expression:"form.cancel_unpaid_orders_times"}}),a("span",{staticClass:"m-l-5"},[e._v("分钟内未付款/未确认付款,系统自动取消")])],1)],1)]),a("el-form-item",{attrs:{label:"买家取消待发货订单"}},[a("div",[a("el-radio",{attrs:{label:0},model:{value:e.form.cancel_unshipped_orders,callback:function(t){e.$set(e.form,"cancel_unshipped_orders",t)},expression:"form.cancel_unshipped_orders"}},[e._v("关闭买家取消待发货订单")])],1),a("div",[a("el-radio",{attrs:{label:1},model:{value:e.form.cancel_unshipped_orders,callback:function(t){e.$set(e.form,"cancel_unshipped_orders",t)},expression:"form.cancel_unshipped_orders"}},[a("span",{staticClass:"m-r-5"},[e._v("待发货订单")]),a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:e.form.cancel_unshipped_orders_times,callback:function(t){e.$set(e.form,"cancel_unshipped_orders_times",t)},expression:"form.cancel_unshipped_orders_times"}}),a("span",{staticClass:"m-l-5"},[e._v("分钟内允许买家取消")])],1)],1)]),a("el-form-item",{attrs:{label:"系统确认收货"}},[a("div",[a("el-radio",{attrs:{label:0},model:{value:e.form.automatically_confirm_receipt,callback:function(t){e.$set(e.form,"automatically_confirm_receipt",t)},expression:"form.automatically_confirm_receipt"}},[e._v("关闭系统自动确认收货")])],1),a("div",[a("el-radio",{attrs:{label:1},model:{value:e.form.automatically_confirm_receipt,callback:function(t){e.$set(e.form,"automatically_confirm_receipt",t)},expression:"form.automatically_confirm_receipt"}},[a("span",{staticClass:"m-r-5"},[e._v("订单发货后")]),a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:e.form.automatically_confirm_receipt_days,callback:function(t){e.$set(e.form,"automatically_confirm_receipt_days",t)},expression:"form.automatically_confirm_receipt_days"}}),a("span",{staticClass:"m-l-5"},[e._v("天内,系统自动确认收货")])],1)],1)]),a("el-form-item",{attrs:{label:"完成可售后时效"}},[a("div",[a("el-radio",{attrs:{label:0},model:{value:e.form.after_sales,callback:function(t){e.$set(e.form,"after_sales",t)},expression:"form.after_sales"}},[e._v("关闭售后维权")])],1),a("div",[a("el-radio",{attrs:{label:1},model:{value:e.form.after_sales,callback:function(t){e.$set(e.form,"after_sales",t)},expression:"form.after_sales"}},[a("span",{staticClass:"m-r-5"},[e._v("订单确认收货后")]),a("el-input",{staticClass:"ls-input",attrs:{size:"small"},model:{value:e.form.after_sales_days,callback:function(t){e.$set(e.form,"after_sales_days",t)},expression:"form.after_sales_days"}}),a("span",{staticClass:"m-l-5"},[e._v("天内,可申请售后维权")])],1),a("div",{staticClass:"muted xs"},[e._v("订单完成后,多长时间内可申请维权,关闭则订单完成后不可维权")])],1)])],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[e._v("库存设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"库存占用时机"}},[a("el-radio",{staticClass:"m-r-16",attrs:{label:1},model:{value:e.form.inventory_occupancy,callback:function(t){e.$set(e.form,"inventory_occupancy",t)},expression:"form.inventory_occupancy"}},[e._v("订单提交占用库存")]),a("div",{staticClass:"muted xs"},[e._v("订单提交占用库存,库存不足则无法提交订单")])],1),a("el-form-item",{attrs:{label:"取消订单退回库存"}},[a("el-radio-group",{staticClass:"m-r-16",model:{value:e.form.return_inventory,callback:function(t){e.$set(e.form,"return_inventory",t)},expression:"form.return_inventory"}},[a("el-radio",{attrs:{label:1}},[e._v("需要退回库存")]),a("el-radio",{attrs:{label:0}},[e._v("无需退回库存")])],1),a("div",{staticClass:"muted xs"},[e._v("订单提交占用库存,库存不足则无法提交订单")])],1)],1)]),a("div",{staticClass:"ls-card m-t-16"},[a("div",{staticClass:"card-title"},[e._v("其他设置")]),a("div",{staticClass:"card-content m-t-24"},[a("el-form-item",{attrs:{label:"取消订单退回优惠券"}},[a("el-radio-group",{staticClass:"m-r-16",model:{value:e.form.return_coupon,callback:function(t){e.$set(e.form,"return_coupon",t)},expression:"form.return_coupon"}},[a("el-radio",{attrs:{label:1}},[e._v("需要退还优惠券")]),a("el-radio",{attrs:{label:0}},[e._v("无需退还优惠券")])],1),a("div",{staticClass:"muted xs"},[e._v(" 待付款、待发货订单取消时,需要退还优惠券。注意优惠券受发放条件限制可能退还失败。 ")])],1)],1)])]),a("div",{staticClass:"bg-white ls-fixed-footer"},[a("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.setSettingOrder()}}},[e._v("保存")])],1)])],1)}),[],!1,null,"6d2d5af9",null);t.default=n.exports},"495d":function(e,t,a){}}]);