4 lines
22 KiB
JavaScript
4 lines
22 KiB
JavaScript
|
|
(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[862],{4862:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return p}});var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"10px"}},[o("el-form",{ref:"group",attrs:{rules:t.rules,model:t.group,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"活动标题",prop:"title"}},[o("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea"},model:{value:t.group.title,callback:function(e){t.$set(t.group,"title",e)},expression:"group.title"}})],1),o("el-form-item",{attrs:{label:"团购商品"}},[o("el-button",{on:{click:function(e){return t.importGoods()}}},[t._v("从商品列表导入")]),o("el-input",{staticStyle:{"margin-left":"20px",width:"400px"},attrs:{placeholder:"搜索商品名称、编码"},model:{value:t.groupGoodsSearch.external_sku_id,callback:function(e){t.$set(t.groupGoodsSearch,"external_sku_id",e)},expression:"groupGoodsSearch.external_sku_id"}},[o("el-button",{attrs:{slot:"append"},on:{click:function(e){return t.getGroupGoodsList()}},slot:"append"},[t._v("查询")])],1),o("div",{staticStyle:{display:"flex","align-items":"center"}},[o("span",{staticStyle:{"margin-right":"20px"}},[t._v("商品状态")]),o("el-radio-group",{on:{change:function(e){return t.getGroupGoodsList()}},model:{value:t.groupGoodsSearch.has_stock,callback:function(e){t.$set(t.groupGoodsSearch,"has_stock",e)},expression:"groupGoodsSearch.has_stock"}},[o("el-radio",{attrs:{label:2}},[t._v("全部")]),o("el-radio",{attrs:{label:1}},[t._v("在售中")]),o("el-radio",{attrs:{label:0}},[t._v("已售罄")])],1)],1),o("div",{staticStyle:{display:"flex","align-items":"center"}},[o("span",{staticStyle:{"margin-right":"20px"}},[t._v("商品分类")]),o("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.getGroupGoodsList()}},model:{value:t.groupGoodsSearch.type_id,callback:function(e){t.$set(t.groupGoodsSearch,"type_id",e)},expression:"groupGoodsSearch.type_id"}},[o("el-radio-button",{attrs:{label:"0"}},[t._v("全部")]),t._l(t.types,(function(e){return o("el-radio-button",{key:e.id,attrs:{label:e.id}},[t._v(" "+t._s(e.name))])}))],2)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.groupLoading,expression:"groupLoading"}],ref:"multipleTableGroup",staticStyle:{width:"100%"},attrs:{data:t.groupGoods.data,border:"",height:"800","row-key":t.getRowKeys}},[o("el-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"55"}}),o("el-table-column",{attrs:{prop:"goods_name",label:" 商品名称"}}),o("el-table-column",{attrs:{prop:"external_sku_id",label:"编码"}}),o("el-table-column",{attrs:{prop:"category_name",label:"分类"}}),o("el-table-column",{attrs:{prop:"stock",label:"库存"}}),o("el-table-column",{attrs:{label:"限购数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-input",{attrs:{placeholder:"限购数量"},on:{change:function(o){return t.handleCellChange(e.row)}},model:{value:e.row.limit_buy,callback:function(o){t.$set(e.row,"limit_buy",o)},expression:"scope.row.limit_buy"}})]}}])}),o("el-table-column",{attrs:{label:"成本"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-input",{attrs:{placeholder:"成本"},on:{change:function(o){return t.handleCellChange(e.row)}},model:{value:e.row.price_in_fen,callback:function(o){t.$set(e.row,"price_in_fen",o)},expression:"scope.row.price_in_fen"}})]}}])}),o("el-table-column",{attrs:{prop:"options",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){return t.remove(e.row)}}},[t._v("删除")])]}}])})],1),o("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","line-height":"32px","margin-top":"20px"}},[o("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.batchRemove()}}},[t._v("批量删除")]),o("el-pagination",{attrs:{"current-page":t.groupGoods.meta.current_page,"page-sizes":[20,30,50,100],"page-si
|
||
|
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
|
|
* @license MIT */(function(n,i){r=i,s="function"===typeof r?r.call(e,o,e,t):r,void 0===s||(t.exports=s)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(t,e,o){return t<e?e:t>o?o:t}function r(t){return 100*(-1+t)}function s(t,o,s){var n;return n="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},n.transition="all "+o+"ms "+s,n}t.configure=function(t){var o,r;for(o in t)r=t[o],void 0!==r&&t.hasOwnProperty(o)&&(e[o]=r);return this},t.status=null,t.set=function(r){var a=t.isStarted();r=o(r,e.minimum,1),t.status=1===r?null:r;var l=t.render(!a),u=l.querySelector(e.barSelector),d=e.speed,c=e.easing;return l.offsetWidth,n((function(o){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),i(u,s(r,d,c)),1===r?(i(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){i(l,{transition:"all "+d+"ms linear",opacity:0}),setTimeout((function(){t.remove(),o()}),d)}),d)):setTimeout(o,d)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var o=function(){setTimeout((function(){t.status&&(t.trickle(),o())}),e.trickleSpeed)};return e.trickle&&o(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*o(Math.random()*r,.1,.95)),r=o(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,o=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===o&&t.start(),e++,o++,r.always((function(){o--,0===o?(e=0,t.done()):t.set((e-o)/e)})),this):this}}(),t.render=function(o){if(t.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var s=document.createElement("div");s.id="nprogress",s.innerHTML=e.template;var n,a=s.querySelector(e.barSelector),u=o?"-100":r(t.status||0),d=document.querySelector(e.parent);return i(a,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(n=s.querySelector(e.spinnerSelector),n&&c(n)),d!=document.body&&l(d,"nprogress-custom-parent"),d.appendChild(s),s},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&c(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var n=function(){var t=[];function e(){var o=t.shift();o&&o(e)}return function(o){t.push(o),1==t.length&&e()}}(),i=function(){var t=["Webkit","O","Moz","ms"],e={};function o(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var o=document.body.style;if(e in o)return e;var r,s=t.length,n=e.charAt(0).toUpperCase()+e.slice(1);while(s--)if(r=t[s]+n,r in o)return r;return e}function s(t){return t=o(t),e[t]||(e[t]=r(t))}function n(t,e,o){e=s(e),t.style[e]=o}return function(t,e){var o,r,s=arguments;if(2==s.length)for(o in e)r=e[o],void 0!==r&&e.hasOwnProperty(o)&&n(t,o,r);else n(t,s[1],s[2])}}();function a(t,e){var o="string"==typeof t?t:d(t);return o.indexOf(" "+e+" ")>=0}function l(t,e){var o=d(t),r=o+e;a(o,e)||(t.className=r.substring(1))}function u(t,e){var o,r=d(t);a(t,e)&&(o=r.replace(" "+e+" "," "),t.className=o.substring(1,o.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function c(t){t&&t.parentNode&&t.parentNode.removeChild(t)}ret
|
||
|
|
//# sourceMappingURL=862.462049e7.js.map
|