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.
8 lines
237 KiB
8 lines
237 KiB
7 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bargain~client~collector~content~dealer~eorder~goods~groupon~live~manage~market~order~page~server~se~a0a5d3c7"],{"0669":function(e,t,n){"use strict";n("0b78")},"0b78":function(e,t,n){},"11e1":function(e,t,n){"use strict";n("e4dd")},"125d":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n("5530"),r=n("b775"),a={list:"/bargain.active/list",detail:"/bargain.active/detail",add:"/bargain.active/add",edit:"/bargain.active/edit",delete:"/bargain.active/delete"};function o(e){return Object(r["b"])({url:a.list,method:"get",params:e})}function s(e){return Object(r["b"])({url:a.detail,method:"get",params:e})}function l(e){return Object(r["b"])({url:a.add,method:"post",data:e})}function c(e,t){return Object(r["b"])({url:a.edit,method:"post",data:Object(i["a"])({activeId:e},t)})}function u(e,t){return Object(r["b"])({url:a.delete,method:"post",data:Object(i["a"])({activeId:e},t)})}},"162c":function(e,t,n){"use strict";n("18c0")},"18c0":function(e,t,n){},"192b":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{on:{click:e.handleSelectGoods}},[e._v("选择商品")]),t("a-table",{directives:[{name:"show",rawName:"v-show",value:e.selectedItems.length,expression:"selectedItems.length"}],staticClass:"table-goodsList",attrs:{rowKey:"goods_id",columns:e.columns,dataSource:e.selectedItems,pagination:!1},scopedSlots:e._u([{key:"item",fn:function(e){return[t("GoodsItem",{attrs:{data:{image:e.goods_image,imageAlt:"商品图片",title:e.goods_name,subtitle:"¥".concat(e.goods_price_min)},subTitleColor:!0}})]}},{key:"action",fn:function(n,i,r){return t("span",{},[t("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(t){return e.handleDeleteItem(r)}}},[e._v("删除")])])}}])}),t("GoodsModal",{ref:"GoodsModal",attrs:{multiple:e.multiple,maxNum:e.maxNum,defaultList:e.selectedItems},on:{handleSubmit:e.handleSelectGoodsSubmit}})],1)},r=[],a=(n("d81d"),n("a434"),n("4d91")),o=n("cd3f"),s=n.n(o),l=n("fd0d"),c=n("ab09"),u=[{title:"商品ID",dataIndex:"goods_id"},{title:"商品信息",scopedSlots:{customRender:"item"}},{title:"库存总量",dataIndex:"stock_total"},{title:"操作",width:"180px",dataIndex:"action",scopedSlots:{customRender:"action"}}],d={name:"SelectGoods",components:{GoodsModal:l["f"],GoodsItem:c["a"]},model:{prop:"value",event:"change"},props:{multiple:a["a"].bool.def(!0),maxNum:a["a"].integer.def(100),defaultList:a["a"].array.def([])},data:function(){return{columns:u,selectedItems:[],selectedGoodsIds:[]}},watch:{defaultList:{immediate:!0,handler:function(e){var t=this.selectedItems;e.length&&!t.length&&this.onUpdate(s()(e))}}},created:function(){},methods:{onUpdate:function(e){if(this.multiple||!e.length)this.selectedItems=e,this.selectedGoodsIds=e.map((function(e){return e.goods_id}));else{var t=e[e.length-1];this.selectedItems=[t],this.selectedGoodsIds=[t.goods_id]}this.onChange()},handleSelectGoods:function(){this.$refs.GoodsModal.handle()},handleSelectGoodsSubmit:function(e){var t=e.selectedItems;this.onUpdate(s()(t))},handleDeleteItem:function(e){var t=this.selectedItems;t.splice(e,1),this.onUpdate(t)},onChange:function(){var e=this.multiple,t=this.selectedGoodsIds,n=e?t:t.length?t[0]:void 0;return this.$emit("change",n)}}},f=d,h=(n("25de"),n("2877")),p=Object(h["a"])(f,i,r,!1,null,"91fe51f4",null);t["a"]=p.exports},"1ca2":function(e,t,n){},"1cbd":function(e,t,n){"use strict";n("9f4e")},"23a0":function(e,t,n){"use strict";n("feb0")},"23a3":function(e,t,n){"use strict";n("824b")},2518:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l}));var i=n("b775"),r={list:"/files/list",edit:"/files/edit",delete:"/files/delete",moveGroup:"/files/moveGroup"};function a(e){return Object(i["b"])({url:r.list,method:"get",params:e})}functio
|
||
|
/**!
|
||
|
* Sortable 1.10.2
|
||
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
* @author owenm <owen23355@gmail.com>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function l(e,t){if(null==e)return{};var n,i,r=s(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e){return u(e)||d(e)||f()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Ft})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return Ot}));var h="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=p(/Edge/i),g=p(/firefox/i),b=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),y=p(/iP(ad|od|hone)/i),_=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function S(e,t,n){e.addEventListener(t,n,!m&&w)}function x(e,t,n){e.removeEventListener(t,n,!m&&w)}function C(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function I(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function O(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&C(e,t):C(e,t))||i&&e===n)return e;if(e===n)break}while(e=I(e))}return null}var k,j=/\s+/g;function E(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(j," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(j," ")}}function D(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"===typeof n?"":"px")}}function L(e,t){var n="";if("string"===typeof e)n=e;else do{var i=D(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function T(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,a=i.length;if(n)for(;r<a;r++)n(i[r],r);return i}return[]}function P(){var e=document.scrollingElement;return e||document.documentElement}function R(e,t,n,i,r){if(e.getBoundingClientRect||e===window){var a,o,s,l,c,u,d;if(e!==window&&e!==P()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,c=a.right,u=a.height,d=a.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!m))do{if(r&&r.getBoundingClientRect&&("none"!==D(r,"transform")||n&&"static"!==D(r,"position"))){var f=r.getBoundingClientRect();o-=f.top+parseInt(D(r,"border-top-
|