|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3677de9b"],{"4ee8":function(t,e,n){"use strict";n("9e7c")},8492:function(t,e,n){"use strict";n.d(e,"M",(function(){return a})),n.d(e,"K",(function(){return i})),n.d(e,"N",(function(){return o})),n.d(e,"L",(function(){return c})),n.d(e,"I",(function(){return u})),n.d(e,"G",(function(){return l})),n.d(e,"E",(function(){return s})),n.d(e,"T",(function(){return f})),n.d(e,"F",(function(){return m})),n.d(e,"Q",(function(){return d})),n.d(e,"P",(function(){return h})),n.d(e,"g",(function(){return g})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"C",(function(){return _})),n.d(e,"U",(function(){return v})),n.d(e,"X",(function(){return w})),n.d(e,"W",(function(){return S})),n.d(e,"V",(function(){return k})),n.d(e,"J",(function(){return C})),n.d(e,"q",(function(){return x})),n.d(e,"d",(function(){return D})),n.d(e,"p",(function(){return A})),n.d(e,"r",(function(){return L})),n.d(e,"i",(function(){return R})),n.d(e,"n",(function(){return $})),n.d(e,"o",(function(){return O})),n.d(e,"l",(function(){return F})),n.d(e,"fb",(function(){return z})),n.d(e,"H",(function(){return E})),n.d(e,"D",(function(){return P})),n.d(e,"bb",(function(){return q})),n.d(e,"db",(function(){return T})),n.d(e,"ab",(function(){return I})),n.d(e,"eb",(function(){return j})),n.d(e,"cb",(function(){return K})),n.d(e,"S",(function(){return H})),n.d(e,"R",(function(){return J})),n.d(e,"m",(function(){return B})),n.d(e,"k",(function(){return G})),n.d(e,"j",(function(){return N})),n.d(e,"c",(function(){return W})),n.d(e,"a",(function(){return M})),n.d(e,"b",(function(){return Q})),n.d(e,"Y",(function(){return U})),n.d(e,"Z",(function(){return V})),n.d(e,"s",(function(){return X})),n.d(e,"w",(function(){return Y})),n.d(e,"v",(function(){return Z})),n.d(e,"x",(function(){return tt})),n.d(e,"z",(function(){return et})),n.d(e,"B",(function(){return nt})),n.d(e,"A",(function(){return rt})),n.d(e,"y",(function(){return at})),n.d(e,"u",(function(){return it})),n.d(e,"t",(function(){return ot})),n.d(e,"O",(function(){return ct}));var r=n("0c6d");function a(t){return r["a"].get("merchant/menu/lst",t)}function i(){return r["a"].get("merchant/menu/create/form")}function o(t){return r["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return r["a"].delete("merchant/menu/delete/".concat(t))}function u(t){return r["a"].get("system/merchant/lst",t)}function l(t){return r["a"].get("system/merchant/detail/".concat(t))}function s(t){return r["a"].post("system/merchant/create",t)}function f(t,e){return r["a"].post("system/merchant/update/".concat(t),e)}function m(t){return r["a"].get("system/merchant/delete/".concat(t,"/form"))}function d(t,e){return r["a"].post("system/merchant/status/".concat(t),{status:e})}function h(t){return r["a"].get("system/merchant/password/form/".concat(t))}function g(t){return r["a"].get("system/merchant/category/lst",t)}function p(){return r["a"].get("system/merchant/category/form")}function y(t){return r["a"].get("system/merchant/category/form/".concat(t))}function b(t){return r["a"].delete("system/merchant/category/".concat(t))}function _(t,e){return r["a"].get("merchant/order/lst/".concat(t),e)}function v(t){return r["a"].get("merchant/order/mark/".concat(t,"/form"))}function w(t,e){return r["a"].get("merchant/order/refund/lst/".concat(t),e)}function S(t){return r["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function k(t,e){return r["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function C(t){return r["a"].post("system/merchant/login/".concat(t))}function x(t){return r["a"].get("merchant/intention/lst",t)}function D(t){return r["a"].get("merchant/intention/mark/".concat(t,"/form"))}function A(t){return r["a"].delete("merchant/intention/delete/".concat(t))}function L(t){return r["a"].get("merchant/intention/status/".concat(t,"/form"))}function R(t){return r["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function $(){return r["a"].get("agreement/sys_intention_agree")}function O(t){return r["a"].post("agreement/sys_intention_agree",t)}function F(t){return r["a"].get("agreement/".concat(t))}function z(t,e){return r["a"].post("agreement/".concat(t),e)}function E(t,e){return r["a"].post("system/merchant/close/".concat(t),{status:e})}function P(){return r["a"].get("system/merchant/count")}function q(t){return r["a"].post("merchant/type/create",t)}function T(t){return r["a"].get("merchant/type/lst",t)}function I(){return r["a"].get("merchant/mer_auth")}function j(t,e){return r["a"].post("merchant/type/update/".concat(t),e)}function K(t){return r["a"].delete("merchant/type/delete/".concat(t))}function H(t){return r["a"].get("merchant/type/mark/".concat(t))}function J(t){return r["a"].get("/merchant/type/detail/".concat(t))}function B(){return r["a"].get("merchant/type/options")}function G(){return r["a"].get("system/merchant/category/options")}function N(t){return r["a"].get("system/applyments/lst",t)}function W(t,e){return r["a"].post("system/applyments/status/".concat(t),e)}function M(t){return r["a"].get("system/applyments/detail/".concat(t))}function Q(t){return r["a"].get("profitsharing/lst",t)}function U(t){return r["a"].post("profitsharing/again/".concat(t))}function V(t){return r["a"].get("system/applyments/mark/".concat(t,"/form"))}function X(t){return r["a"].get("profitsharing/export",t)}function Y(t){return r["a"].get("margin/lst",t)}function Z(t){return r["a"].get("margin/make_up",t)}function tt(t){return r["a"].get("margin/local/".concat(t,"/form"))}function et(t){return r["a"].get("margin/refund/lst",t)}function nt(t){return r["a"].get("margin/refund/status/".concat(t,"/form"))}function rt(t){return r["a"].get("margin/refund/mark/".concat(t,"/form"))}function at(t){return r["a"].get("margin/refund/show/".concat(t))}function it(t,e){return r["a"].get("margin/list/".concat(t),e)}function ot(t){return r["a"].get("margin/set/".concat(t,"/form"))}function ct(t,e){return r["a"].get("system/merchant/get_operate_list/".concat(t),e)}},"9e7c":function(t,e,n){},f91d:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"filter-container"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small",inline:"","label-width":"80px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"关键字:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入店铺关键字/店铺名/联系电话",clearable:"",size:"small"},on:{change:t.getList},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(e)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.getList}},[t._v("查询")])],1)],1)],1)])]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"samll","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},["1"==t.singleChoice?n("el-table-column",{attrs:{width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-radio",{attrs:{label:e.row.mer_id},nativeOn:{change:function(n){return t.getTemplateRow(e.row)}},model:{value:t.templateRadio,callback:function(e){t.templateRadio=e},expression:"templateRadio"}},[t._v(" ")])]}}],null,!1,1419767029)}):n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{label:"店铺logo","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.mer_avatar,"preview-src-list":[t.row.mer_avatar]}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_name",label:"商户名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"is_trader ",label:"商户类别","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_trader?n("div",[t._v("自营")]):t._e(),t._v(" "),0==e.row.is_trader?n("div",[t._v("非自营")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"merchantCategory.category_name",label:"商户分类","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"merchantType.type_name",label:"店铺类型","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_phone",label:"联系方式","min-width":"110"}})],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)},a=[],i=(n("ac6a"),n("83d6")),o=n("8492"),c={name:"GoodList",data:function(){return{templateRadio:0,idKey:"mer_id",roterPre:i["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,keyword:"",status:1},checked:[],multipleSelection:[],multipleSelectionAll:window.form_create_helper.get(this.$route.query.field)||[],nextPageFlag:!1,singleChoice:0,singleSelection:{}}},mounted:function(){var t=this;if(this.singleChoice=sessionStorage.getItem("singleChoice"),this.getList(),1!=this.singleChoice){var e=window.form_create_helper.get(this.$route.query.field).map((function(t){return{mer_id:t.id,mer_avatar:t.src}}))||[];this.multipleSelectionAll=e}form_create_helper.onOk((function(){t.unloadHandler()}))},destroyed:function(){sessionStorage.setItem("singleChoice",0)},methods:{getTemplateRow:function(t){this.singleSelection={src:t.mer_avatar,id:t.mer_id}},unloadHandler:function(){1!=this.singleChoice?this.multipleSelectionAll.length>0?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.multipleSelectionAll.map((function(t){return{id:t.mer_id,src:t.mer_avatar}}))):this.$message.warning("请先选择商品"):this.singleSelection&&this.singleSelection.src&&this.singleSelection.id?this.$route.query.field&&form_create_helper.set(this.$route.query.field,this.singleSelection):this.$message.warning("请先选择商品")},handleSelectionChange:function(t){var e=this;this.multipleSelection=t,setTimeout((function(){e.changePageCoreRecordData()}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var t=this.idKey,e=[];this.multipleSelectionAll.forEach((function(n){e.push(n[t])})),this.$refs.table.clearSelection();for(var n=0;n<this.tableData.data.length;n++)e.indexOf(this.tableData.data[n][t])>=0&&this.$refs.table.toggleRowSelection(this.tableData.data[n],!0)}},changePageCoreRecordData:function(){var t=this.idKey,e=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var n=[];this.multipleSelectionAll.forEach((function(e){n.push(e[t])}));var r=[];this.multipleSelection.forEach((function(a){r.push(a[t]),n.indexOf(a[t])<0&&e.multipleSelectionAll.push(a)}));var a=[];this.tableData.data.forEach((function(e){r.indexOf(e[t])<0&&a.push(e[t])})),a.forEach((function(r){if(n.indexOf(r)>=0)for(var a=0;a<e.multipleSelectionAll.length;a++)if(e.multipleSelectionAll[a][t]==r){e.multipleSelectionAll.splice(a,1);break}}))}},getList:function(){var t=this;this.listLoading=!0,Object(o["I"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.$nextTick((function(){this.setSelectRow()})),t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.changePageCoreRecordData(),this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.changePageCoreRecordData(),this.tableFrom.limit=t,this.getList()}}},u=c,l=(n("4ee8"),n("2877")),s=Object(l["a"])(u,r,a,!1,null,"d94ce234",null);e["default"]=s.exports}}]); |