徐总多门店
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
8.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-04e895ad"],{"3ce4":function(t,e,a){"use strict";a("7c84")},"7c84":function(t,e,a){},"8f86":function(t,e,a){"use strict";a.r(e);var s=a("2f62"),i=a("47c5"),o={name:"live_detail",data:function(){return{option:{form:{labelWidth:"150px"}},FormData:{},loading:!1}},methods:{getData:function(t){var e=this;this.loading=!0,Object(i.h)(t).then((function(t){e.FormData=t.data,e.loading=!1})).catch((function(t){e.$Message.error(t.msg),e.loading=!1}))}}},r=(a("3ce4"),a("2877")),n=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"divBox"},[e("div",[e("div",{staticClass:"box-container"},[e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("商品名称:")]),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播价:")]),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.price))])]),t.FormData.product?e("div",{staticClass:"list sp100",staticStyle:{display:"flex"}},[e("label",{staticClass:"name"},[t._v("商品图:")]),e("viewer",[e("img",{attrs:{src:t.FormData.product.image,alt:""}})])],1):t._e(),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("审核结果:")]),e("span",{staticClass:"info"},[t._v(t._s(t._f("liveStatusFilter")(t.FormData.audit_status)))])])])])])}),[],!1,null,"9d5b9f9a",null).exports,l=a("d708");function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function d(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(Object(a),!0).forEach((function(e){m(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function m(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var s=a.call(t,e||"default");if("object"!=c(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var f={name:"live",components:{goodsFrom:n},data:function(){return{roterPre:l.a.roterPre,grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{status:"",kerword:"",page:1,limit:20},treeData:{withdrawal:[{title:"全部",value:""},{title:"待审核",value:0},{title:"已通过",value:1},{title:"未通过",value:-1}]},columns1:[{key:"product_id",title:"商品ID",width:80},{slot:"name",minWidth:240,title:"商品名称"},{key:"price",minWidth:90,title:"直播价"},{slot:"cost_price",minWidth:90,title:"原价"},{slot:"stock",minWidth:90,title:"库存"},{slot:"status",minWidth:90,title:"审核状态"},{slot:"is_mer_show",title:"是否显示",minWidth:90},{slot:"action",title:"操作",minWidth:120}],tabList:[],loading:!1,modals:!1,total:0}},computed:d(d({},Object(s.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this,a=t.id,s=t.is_show;Object(i.i)(a,s).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(i.e)(this.formValidate).then((function(e){t.total=e.data.count,t.tabList=e.data.list,t.loading=!1})).catch((function(e){t.$Message.error(e.msg),t.loading=!1}))},selChange:function(){this.formValidate.page=1,this.getList()},menusAdd:function(){this.$router.push({path:"".concat(this.roterPre,"/marketing/live/add_live_goods")})},syncGoods:function(){var t=this;Object(i.m)().then((function(e){t.$Message.success(e.msg),t.getList()})).catch((function(e){t.$Message.error(res.msg)}))},edit:function(t){this.modals=!0,this.$refs.goodsDetail.getData(t.id)},del:function(t,e,a){var s=this,i={title:e,num:a,url:"live/goods/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){s.$Message.success(t.msg),s.tabList.splice(a,1),s.tabList.length||(s.formValidate.page=1==s.formValidate.page?1:s.formValidate.page-1),s.getList()})).catch((function(t){s.$Message.error(t.msg)}))}}},v=(a("e64e"),Object(r.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"formValidate",staticClass:"tabform",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"审核状态:"}},[e("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.selChange},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.treeData.withdrawal,(function(a,s){return e("Option",{key:s,attrs:{value:a.value}},[t._v(t._s(a.title))])})),1)],1),e("FormItem",{attrs:{label:"搜索:"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入商品名称/ID","element-id":"name"},model:{value:t.formValidate.kerword,callback:function(e){t.$set(t.formValidate,"kerword",e)},expression:"formValidate.kerword"}}),e("Button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:function(e){return t.selChange()}}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-system_menus-add"],expression:"['setting-system_menus-add']"}],attrs:{type:"primary"},on:{click:function(e){return t.menusAdd("添加直播间")}}},[t._v("添加商品\n ")]),e("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tabList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"name",fn:function(a){var s=a.row;return a.index,[e("div",{staticClass:"product_box"},[e("viewer",[e("img",{attrs:{src:s.product.image,alt:""}})]),e("div",{staticClass:"txt"},[t._v(t._s(s.name))])],1)]}},{key:"status",fn:function(a){var s=a.row;return a.index,[e("Tag",{directives:[{name:"show",rawName:"v-show",value:0===s.audit_status,expression:"row.audit_status === 0"}],attrs:{color:"default",size:"large"}},[t._v(t._s(t._f("liveStatusFilter")(s.audit_status)))]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:1===s.audit_status,expression:"row.audit_status === 1"}],attrs:{color:"orange",size:"large"}},[t._v(t._s(t._f("liveStatusFilter")(s.audit_status)))]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:2===s.audit_status,expression:"row.audit_status === 2"}],attrs:{color:"green",size:"large"}},[t._v(t._s(t._f("liveStatusFilter")(s.audit_status)))]),e("Tag",{directives:[{name:"show",rawName:"v-show",value:3===s.audit_status,expression:"row.audit_status === 3"}],attrs:{color:"default",size:"large"}},[t._v(t._s(t._f("liveStatusFilter")(s.audit_status)))])]}},{key:"cost_price",fn:function(a){var s=a.row;return a.index,[e("div",[t._v(t._s(s.cost_price))])]}},{key:"stock",fn:function(a){var s=a.row;return a.index,[e("div",[t._v(t._s(s.product.stock))])]}},{key:"is_mer_show",fn:function(a){var s=a.row;return a.index,[e("i-switch",{attrs:{value:s.is_show,"true-value":1,"false-value":0,size:"large",disabled:2!=s.audit_status},on:{"on-change":function(e){return t.onchangeIsShow(s)}},model:{value:s.is_show,callback:function(e){t.$set(s,"is_show",e)},expression:"row.is_show"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(a){var s=a.row,i=a.index;return[e("a",{on:{click:function(e){return t.edit(s,"编辑")}}},[t._v("详情")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(s,"删除这条信息",i)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),e("Modal",{staticClass:"paymentFooter",attrs:{title:"商品详情",scrollable:"",width:"700","footer-hide":!0},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("goodsFrom",{ref:"goodsDetail"})],1)],1)}),[],!1,null,"20af7c02",null));e.default=v.exports},9256:function(t,e,a){},e64e:function(t,e,a){"use strict";a("9256")}}]);