UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 5.6 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9486686","chunk-7b46a39c","chunk-03981299"],{"1b6c":function(t,e,o){"use strict";o.d(e,"a",(function(){return r})),o.d(e,"b",(function(){return d}));var n=o("5530"),i=o("bf0f");function r(t,e){return function(){return Object(i["b"])(t,Object(n["a"])({},e))}}function d(t,e){return Object(i["b"])(t,Object(n["a"])({},e))}},"2a5b":function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o("b775"),i={reviewList:"/review/list"};function r(t){return Object(n["b"])({url:i.reviewList,method:"post",data:t})}},"36a6":function(t,e,o){"use strict";o.r(e);var n=o("2dd7"),i=o("ff41"),r=o.n(i),d=(o("2f2f"),o("2a5b")),a=o("1b6c"),s=o("5d9e"),c=o("acd6");e["default"]={name:"ReviewForm",props:{},components:{AntModal:n["a"],Vditor:r.a,AdvanceTable:s["a"],goodsInfo:c["default"]},data:function(){return{open:!1,formId:"",labelCol:{span:4},wrapperCol:{span:14},loading:!1,total:0,id:void 0,formTitle:"",contentEditorEdit:"",form:{id:void 0,title:void 0,type:void 0,content:"",status:"0",sort:1},rules:{},queryParam1:{page:1,limit:10},list1:[],total_count1:0,columns1:[],expandedRowKeys:[]}},filters:{},created:function(){this.initColunmns()},computed:{},watch:{},mounted:function(){},methods:{initColunmns:function(){this.columns1=[{title:Object(a["a"])("view.order.list.review.list.nick"),dataIndex:"nick",ellipsis:!0,width:"10%"},{title:Object(a["a"])("view.order.list.review.list.itemno"),dataIndex:"goods_id",ellipsis:!0,scopedSlots:{customRender:"goods_id"},width:"20%"},{title:Object(a["a"])("view.order.list.review.list.grade"),dataIndex:"grade",ellipsis:!0,scopedSlots:{customRender:"grade"},width:"25%"},{title:Object(a["a"])("view.order.list.review.list.content"),dataIndex:"review_content",ellipsis:!0,width:"30%"},{title:Object(a["a"])("view.order.list.review.list.create_time"),dataIndex:"create_time",scopedSlots:{customRender:"create_time"}}]},cancel:function(){this.open=!1,this.$emit("close")},handleReview:function(t){var e=this,o=t.order_id;Object(d["a"])({order_id:o}).then((function(t){e.open=!0,e.formTitle="评论列表",e.list1=t.list,e.total_count1=t.total_count}))}}}},"38f5":function(t,e,o){},a88f:function(t,e,o){"use strict";o("38f5")},aabf:function(t,e,o){"use strict";o.d(e,"d",(function(){return r})),o.d(e,"a",(function(){return d})),o.d(e,"c",(function(){return a})),o.d(e,"b",(function(){return s})),o.d(e,"e",(function(){return c})),o.d(e,"h",(function(){return u})),o.d(e,"g",(function(){return l})),o.d(e,"f",(function(){return f}));var n=o("b775"),i={goodlist:"/good/list",goodadd:"/good/add",goodsInfo:"/good/info",goodsDelete:"/good/delete",goodsSubAdd:"/good/sub/add",itemFilingAdd:"/good/filing/add",searchSkuInfo:"/good/sku/search",searchHsCodeInfo:"/good/hscode/search",searchCustomsItem:"/good/customs_item/search"};function r(t){return Object(n["b"])({url:i.goodlist,method:"post",data:t})}function d(t){var e=t.view_id?i.goodsSubAdd:i.goodadd;return Object(n["b"])({url:e,method:"post",data:t})}function a(t){return Object(n["b"])({url:i.goodsInfo,method:"post",data:t})}function s(t){return Object(n["b"])({url:i.goodsDelete,method:"post",data:t})}function c(t){return Object(n["b"])({url:i.itemFilingAdd,method:"post",data:t})}function u(t){return Object(n["b"])({url:i.searchSkuInfo,method:"post",data:t})}function l(t){return Object(n["b"])({url:i.searchHsCodeInfo,method:"post",data:t})}function f(t){return Object(n["b"])({url:i.searchCustomsItem,method:"post",data:t})}},acd6:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[t._v(" "+t._s(t.title)+" ")])},i=[],r=(o("a9e3"),o("aabf")),d={name:"GoodsInfo1",props:{goodId:{type:Number,required:!0}},components:{},data:function(){return{title:""}},filters:{},created:function(){this.getList()},computed:{},watch:{},methods:{getList:function(){var t=this;Object(r["c"])({good_id:this.goodId}).then((function(e){t.title=e.title}))}}},a=d,s=o("2877"),c=Object(s["a"])(a,n,i,!1,null,null,null);e["default"]=c.exports},e5f4:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t._self._c;return e("ant-modal",{attrs:{visible:t.open,"modal-title":t.$t("view.order.list.review.list"),"adjust-size":!0,modalWidth:"800",modalHeight:"550"},on:{cancel:t.cancel}},[e("template",{slot:"content"},[e("advance-table",{attrs:{loading:t.loading,size:"middle","format-conditions":!1,columns:t.columns1,"data-source":t.list1,rowKey:"review_id",tableKey:"test-cat-catlist-table",expandedRowKeys:t.expandedRowKeys,pagination:{current:t.queryParam1.page,pageSize:t.queryParam1.limit,total:t.total_count1,showSizeChanger:!0,showLessItems:!1,showQuickJumper:!1,showTotal:function(e,o){return t.$t("view.order.list.table.total",{num:o[0]+"-"+o[1],total:e})}},title:t.$t("view.order.list.review.list.order_review")},scopedSlots:t._u([{key:"goods_id",fn:function(t){var o=t.record;return e("span",{},[e("goods-info",{attrs:{goodId:o.goods_id}})],1)}},{key:"grade",fn:function(o){var n=o.text;return e("span",{},t._l(5,(function(t){return e("span",{key:t},[e("a-icon",t<n?{staticClass:"depIcon",attrs:{type:"heart"}}:{attrs:{type:"heart"}})],1)})),0)}},{key:"create_time",fn:function(o){var n=o.record;return e("span",{},[t._v(" "+t._s(t.parseTime(n.create_time,"{y}-{m}-{d}"))+" ")])}}])})],1),e("template",{slot:"footer"},[e("a-button",{on:{click:t.cancel}},[t._v(" "+t._s(t.$t("view.order.list.review.list.cancle.btn"))+" ")])],1)],2)},i=[],r=o("5530"),d=o("36a6"),a=Object(r["a"])({},d["default"]),s=a,c=(o("a88f"),o("2877")),u=Object(c["a"])(s,n,i,!1,null,null,null);e["default"]=u.exports}}]);