08eee81ebcaf14f1342c725877314c758a57e0074858a0502851d4dcd0fb9c322cbfb4a1ac6baea5595c0af7cf8c795c8d464637cbcc810acf0890bccba4 28 KB

1
  1. {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-255aa1f4\"],{\"16e3\":function(t,e,o){},2520:function(t,e,o){\"use strict\";o(\"2b53\")},\"2b53\":function(t,e,o){},\"548f\":function(t,e,o){},\"55bb\":function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"div\",{staticClass:\"dis-inline\"},[o(\"el-select\",{style:{width:t.width+\"px\"},attrs:{value:t.value,placeholder:t.placeholder,clearable:t.clearable,filterable:\"\",remote:\"\",size:t.size,multiple:t.multiple,disabled:t.disabled,\"remote-method\":t.remoteMethod,loading:t.loading},on:{change:t.selChange,clear:t.clearChange}},t._l(t.shop_list,(function(t,e){return o(\"el-option\",{key:e,attrs:{label:t.name,value:t.id}})})),1),o(\"span\",{staticClass:\"el-icon-arrow-down sel-icon\",staticStyle:{\"margin-right\":\"15px\"}})],1)},n=[],s=o(\"e1b7\"),d={name:\"SelectShop\",model:{prop:\"value\",event:\"change\"},props:{value:{type:[Number,String,Array],default:\"\"},width:{type:[Number,String],default:200},placeholder:{type:String,default:\"请输入店铺关键词\"},size:{type:String,default:\"\"},isDefault:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},enable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},action:{type:[Number,String],default:\"\"},materielId:{type:[Number,String],default:\"\"}},data(){return{shop_list:[],loading:!1,page:1,pre_page:999}},created(){this.getList()},methods:{remoteMethod(t){\"\"!==t?(this.loading=!0,this.searchList(t)):this.getList()},clearChange(){this.$emit(\"clear\")},selChange(t){if(!t)return;let e=[];e=this.multiple?this.shop_list.filter(e=>t.indexOf(e.id)>-1):this.shop_list.filter(e=>e.id===t),this.$emit(\"change\",t,e)},async getList(){const t={page:this.page,pageSize:this.pre_page,enableStatus:5,materielId:this.materielId,action:this.action},e=await Object(s[\"getAllShop\"])(t);this.loading=!1,this.shop_list=e.data,this.$emit(\"getAllShop\",e.data),this.isDefault&&this.$emit(\"default\",e.data[0].id,e.data[0])},async searchList(t){const e={page:this.page,pageSize:this.pre_page,name:t,shopPartnerId:\"\",shopType:\"\",enableStatus:5},o=await Object(s[\"search\"])(e);this.loading=!1,this.shop_list=o.data}}},r=d,u=(o(\"2520\"),o(\"2877\")),l=Object(u[\"a\"])(r,a,n,!1,null,\"b4ad8046\",null);e[\"default\"]=l.exports},a9fd:function(t,e,o){\"use strict\";o(\"16e3\")},c40e:function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getAllGoodsBasicBySku\",(function(){return n})),o.d(e,\"goodsImport\",(function(){return s})),o.d(e,\"goodsQuickImport\",(function(){return d})),o.d(e,\"searchBasic\",(function(){return r})),o.d(e,\"exportSearchBasic\",(function(){return u})),o.d(e,\"defineSpec\",(function(){return l})),o.d(e,\"addBasicAndPublishGoods\",(function(){return i})),o.d(e,\"editQuickGoods\",(function(){return c})),o.d(e,\"getQuickGoodsInfo\",(function(){return p})),o.d(e,\"addGoodsBasic\",(function(){return f})),o.d(e,\"getAllGoodsBasic\",(function(){return h})),o.d(e,\"exportGetAllGoodsBasic\",(function(){return g})),o.d(e,\"getGoodsBasicInfoById\",(function(){return m})),o.d(e,\"getGoodsByCategory\",(function(){return G})),o.d(e,\"updateEnableStatus\",(function(){return b})),o.d(e,\"delGoodsBasic\",(function(){return _})),o.d(e,\"editGoodsBasic\",(function(){return y})),o.d(e,\"getGoodsBasicOfShopId\",(function(){return S})),o.d(e,\"updateCategory\",(function(){return O})),o.d(e,\"BatchUnloading\",(function(){return j})),o.d(e,\"setTop\",(function(){return v})),o.d(e,\"setSalesNumBatch\",(function(){return k})),o.d(e,\"setSalesNum\",(function(){return B})),o.d(e,\"getAllUnit\",(function(){return w})),o.d(e,\"addUnit\",(function(){return C})),o.d(e,\"editUnit\",(function(){return x})),o.d(e,\"updateEnablesStatus\",(function(){return I})),o.d(e,\"delUnit\",(function(){return M})),o.d(e,\"SpecManageAdd\",(function(){return A})),o.d(e,\"SpecManageedit\",(function(){return N})),o.d(e,\"SpecManagedel\",(function(){return F})),o.d(e,\"SpecManageinfo\",(function(){return L})),o.d(e,\"SpecManagegetAll\",(function(){return T})),o.d(e,\"getAllGoodsBySku\",(function(){return P})),o.d(e,\"searchGood\",(function(){return z})),o.d(e,\"exportSearchGood\",(function(){return $})),o.d(e,\"addGoods\",(function(){return E})),o.d(e,\"getGoodsInfo\",(function(){return U})),o.d(e,\"delGoods\",(function(){return D})),o.d(e,\"editGoods\",(function(){return Q})),o.d(e,\"getAllGoods\",(function(){return V})),o.d(e,\"getAllGoodsList\",(function(){return R})),o.d(e,\"exportGetAllGoodsList\",(function(){return J})),o.d(e,\"exportGetAllGoods\",(function(){return q})),o.d(e,\"auditGoods\",(function(){return H})),o.d(e,\"getGoodsByCondition\",(function(){return K})),o.d(e,\"GoodsUpdateEnableStatus\",(function(){return W})),o.d(e,\"batchGoodsExpress\",(function(){return X})),o.d(e,\"addBrand\",(function(){return Y})),o.d(e,\"editBrand\",(function(){return Z})),o.d(e,\"getBrandInfoById\",(function(){return tt})),o.d(e,\"updateBrandStatus\",(function(){return et})),o.d(e,\"delBrand\",(function(){return ot})),o.d(e,\"getAllBrand\",(function(){return at})),o.d(e,\"setBrand\",(function(){return nt})),o.d(e,\"setSku\",(function(){return st})),o.d(e,\"setNoSalesShop\",(function(){return dt})),o.d(e,\"addCategory\",(function(){return rt})),o.d(e,\"updateCategoryStatus\",(function(){return ut})),o.d(e,\"getCategoryInfoById\",(function(){return lt})),o.d(e,\"getAllCategory\",(function(){return it})),o.d(e,\"delCategory\",(function(){return ct})),o.d(e,\"editCategory\",(function(){return pt})),o.d(e,\"getAllCategoryPost\",(function(){return ft})),o.d(e,\"getGoodsByBarCode\",(function(){return ht})),o.d(e,\"getRelMap\",(function(){return gt})),o.d(e,\"getPriceTrend\",(function(){return mt})),o.d(e,\"batchSetDistribution\",(function(){return Gt})),o.d(e,\"addGoodsSupport\",(function(){return bt})),o.d(e,\"editGoodsSupport\",(function(){return _t})),o.d(e,\"delGoodsSupport\",(function(){return yt})),o.d(e,\"getAllGoodsSupport\",(function(){return St})),o.d(e,\"getGoodsSupportInfo\",(function(){return Ot})),o.d(e,\"getAllGoodsGroups\",(function(){return jt})),o.d(e,\"addGoodsGroups\",(function(){return vt})),o.d(e,\"enableGoodsGroups\",(function(){return kt})),o.d(e,\"updateGoodsGroups\",(function(){return Bt})),o.d(e,\"getReservoirInfo\",(function(){return wt})),o.d(e,\"deleteGoodsGroups\",(function(){return Ct})),o.d(e,\"setSort\",(function(){return xt}));var a=o(\"b775\");function n(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasicBySku\",method:\"post\",data:t})}function s(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/goodsImport\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/goodsQuickImport\",method:\"post\",data:t})}function r(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",responseType:\"blob\",data:t})}function l(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/defineSpec\",method:\"post\",data:t})}function i(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/addBasicAndPublishGoods\",method:\"post\",data:t})}function c(t){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/editQuickGoods\",method:\"post\",data:t})}function p(t,e){return Object(a[\"default\"])({url:\"/Goods/QuickGoods/getQuickGoodsInfo/\"+t,method:\"post\",data:e})}function f(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/addGoodsBasic\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",responseType:\"blob\",method:\"post\",data:t})}function m(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicInfoById/\"+t,method:\"post\",data:e})}function G(t){return Object(a[\"default\"])({url:\"/Goods/ApiGoods/getGoodsByCategory\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateEnableStatus\",method:\"put\",data:t})}function _(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/delGoodsBasic/\"+t,method:\"delete\",data:e})}function y(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/editGoodsBasic/\"+t,method:\"put\",data:e})}function S(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicOfShopId\",method:\"post\",data:t})}function O(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateCategory\",method:\"post\",data:t})}function j(t){return Object(a[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function v(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/setTop/\"+t,method:\"get\",data:e})}function k(t){return Object(a[\"default\"])({url:\"/Goods/Goods/setSalesNumBatch\",method:\"post\",data:t})}function B(t){return Object(a[\"default\"])({url:\"/Goods/Goods/setSalesNum\",method:\"post\",data:t})}function w(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/getAll\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/add\",method:\"post\",data:t})}function x(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/Units/edit/\"+t,method:\"put\",data:e})}function I(t){return Object(a[\"default\"])({url:\"/GoodsManage/Units/updateEnablesStatus\",method:\"put\",data:t})}function M(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/Units/del/\"+t,method:\"delete\",data:e})}function A(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/add\",method:\"post\",data:t})}function N(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/edit/\"+t,method:\"post\",data:e})}function F(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/del/\"+t,method:\"delete\",data:e})}function L(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/info/\"+t,method:\"get\",data:e})}function T(t){return Object(a[\"default\"])({url:\"/GoodsManage/SpecManage/getAll\",method:\"post\",data:t})}function P(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsBySku\",method:\"post\",data:t})}function z(t){return Object(a[\"default\"])({url:\"/Goods/Goods/search\",method:\"post\",data:t})}function $(t){return Object(a[\"default\"])({url:\"/Goods/Goods/search\",responseType:\"blob\",method:\"post\",data:t})}function E(t){return Object(a[\"default\"])({url:\"/Goods/Goods/addGoods\",method:\"post\",data:t})}function U(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsInfo/\"+t,method:\"post\",data:e})}function D(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/delGoods/\"+t,method:\"get\",data:e})}function Q(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/editGoods/\"+t,method:\"put\",data:e})}function V(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",data:t})}function R(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",data:t})}function J(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",responseType:\"blob\",data:t})}function q(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",responseType:\"blob\",data:t})}function H(t,e){return Object(a[\"default\"])({url:\"/Goods/Goods/audit/\"+t,method:\"put\",data:e})}function K(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsByCondition\",method:\"post\",data:t})}function W(t){return Object(a[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function X(t){return Object(a[\"default\"])({url:\"/Goods/Goods/batchGoodsExpress\",method:\"post\",data:t})}function Y(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/addBrand\",method:\"post\",data:t})}function Z(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/editBrand/\"+t,method:\"put\",data:e})}function tt(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/getBrandInfoById/\"+t,method:\"put\",data:e})}function et(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/updateBrandStatus/\"+t,method:\"put\",data:e})}function ot(t,e){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/delBrand/\"+t,method:\"delete\",data:e})}function at(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBrand/getAllBrand\",method:\"post\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setBrand\",method:\"put\",data:t})}function st(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setSku\",method:\"put\",data:t})}function dt(t){return Object(a[\"default\"])({url:\"/GoodsManage/GoodsBasic/setNoSalesShop\",method:\"put\",data:t})}function rt(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/addCategory\",method:\"post\",data:t})}function ut(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/updateCategoryStatus/\"+t,method:\"put\",data:e})}function lt(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getCategoryInfoById/\"+t,method:\"get\",data:e})}function it(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"get\",data:t})}function ct(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/delCategory/\"+t,method:\"delete\",data:e})}function pt(t,e){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/editCategory/\"+t,method:\"put\",data:e})}function ft(t){return Object(a[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"post\",data:t})}function ht(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getGoodsByBarCode\",method:\"post\",data:t})}function gt(t){return Object(a[\"default\"])({url:\"/Goods/Goods/getRelMap\",method:\"post\",data:t})}function mt(t,e){return Object(a[\"default\"])({url:\"Goods/Goods/getPriceTrend/\"+t,method:\"POST\",data:e})}function Gt(t){return Object(a[\"default\"])({url:\"Goods/Goods/batchSetDistribution\",method:\"POST\",data:t})}function bt(t){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/addGoodsSupport\",method:\"post\",data:t})}function _t(t){return Object(a[\"default\"])({url:\"/Goods/GoodsSupport/editGoodsSupport\",method:\"post\",data:t})}function yt(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/delGoodsSupport/\"+t,method:\"post\",data:e})}function St(t){return Object(a[\"default\"])({url:\"Goods/GoodsSupport/getAllGoodsSupport\",method:\"post\",data:t})}function Ot(t,e){return Object(a[\"default\"])({url:\"/Goods/GoodsSupport/getGoodsSupportInfo/\"+t,method:\"post\",data:e})}function jt(t){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/getAllGoodsGroups\",method:\"post\",data:t})}function vt(t){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/addGoodsGroups\",method:\"post\",data:t})}function kt(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/enableGoodsGroups/\"+t,method:\"post\",data:e})}function Bt(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/updateGoodsGroups/\"+t,method:\"post\",data:e})}function wt(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/getReservoirInfo/\"+t,method:\"post\",data:e})}function Ct(t,e){return Object(a[\"default\"])({url:\"Goods/GoodsGroups/deleteGoodsGroups/\"+t,method:\"post\",data:e})}function xt(t){return Object(a[\"default\"])({url:\"Goods/Goods/setSort\",method:\"post\",data:t})}},dfce:function(t,e,o){\"use strict\";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"Container\",[o(\"el-form\",{ref:\"add_form\",attrs:{slot:\"left\",inline:!0,size:\"small\",model:t.add_form},slot:\"left\"},[o(\"el-form-item\",[o(\"el-input\",{staticStyle:{width:\"220px\"},attrs:{placeholder:\"商品名称/编码/条码\",clearable:\"\"},on:{clear:function(e){return t.pageChange(1)}},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.pageChange(1)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:\"keyword\"}},[o(\"el-button\",{attrs:{slot:\"append\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"},[o(\"i\",{staticClass:\"el-icon-search\"})])],1)],1),o(\"el-form-item\",[o(\"SelectShop\",{attrs:{placeholder:\"选择销售店铺\"},on:{change:t.shopConfirm,clear:t.delShop},model:{value:t.shopId,callback:function(e){t.shopId=e},expression:\"shopId\"}})],1)],1),o(\"el-table\",{ref:\"goodsTable\",attrs:{data:t.goods_data}},[o(\"el-table-column\",{attrs:{prop:\"materialName\",label:\"商品\",fixed:\"left\",\"min-width\":\"220\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"div\",{staticClass:\"clearfix\"},[o(\"div\",{staticClass:\"float_left\"},[o(\"el-image\",{attrs:{fit:\"cover\",src:e.row.images[0]}})],1),o(\"div\",{staticClass:\"float_left goods-name-view\",staticStyle:{\"margin-left\":\"10px\"}},[o(\"div\",{staticClass:\"goods-title\"},[t._v(\" \"+t._s(e.row.title)+\" \")]),o(\"div\",{staticClass:\"goods-no\"},[t._v(\" \"+t._s(e.row.code)+\" \")])])])]}}])}),t.classifyFlag?o(\"el-table-column\",{attrs:{prop:\"categoryName\",label:\"商品分类\",align:\"left\",\"min-width\":\"120\"}}):t._e(),t.specificationFlag?o(\"el-table-column\",{attrs:{label:\"规格\",align:\"left\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-popover\",{attrs:{placement:\"right\",width:\"1000\",trigger:\"hover\"},on:{show:function(o){return t.showSpec(e.$index)}}},[o(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:t.spec_loading,expression:\"spec_loading\"}],attrs:{height:500,data:e.row.goods_sku_list,size:\"small\",border:\"\"}},[o(\"el-table-column\",{attrs:{property:\"unitName\",label:\"单位\",\"min-width\":\"60px\"}}),o(\"el-table-column\",{attrs:{property:\"specValueName\",label:\"属性\",\"min-width\":\"120px\"}}),o(\"el-table-column\",{attrs:{property:\"enabledLadder\",label:\"阶梯价\",\"min-width\":\"70px\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[1===e.row.enabledLadder?o(\"el-tag\",{attrs:{type:\"success\"}},[t._v(\" 是 \")]):o(\"el-tag\",{attrs:{type:\"info\"}},[t._v(\"否\")])]}}],null,!0)}),o(\"el-table-column\",{attrs:{property:\"salePrice\",label:\"销售价(元)\",\"min-width\":\"160px\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[0===e.row.enabledLadder?o(\"span\",{staticStyle:{color:\"#ff4040\"}},[t._v(\" ¥\"+t._s(e.row.salePrice)+\" \")]):o(\"div\",t._l(e.row.ladderPrice,(function(a,n){return o(\"p\",{key:n},[o(\"span\",[t._v(\" 数量: \"),o(\"span\",{staticStyle:{color:\"#ff4040\"}},[t._v(\" \"+t._s(a.from)+\"-\"+t._s(n===e.row.ladderPrice.length-1?\"∞\":a.to)+\" \")]),t._v(\" , \")]),o(\"span\",[t._v(\" 价格: \"),o(\"span\",{staticStyle:{color:\"#ff4040\"}},[t._v(\"¥\"+t._s(a.price))]),t._v(\" ; \")])])})),0)]}}],null,!0)}),o(\"el-table-column\",{attrs:{property:\"marketPrice\",label:\"市场价(元)\",\"min-width\":\"100px\"}}),o(\"el-table-column\",{attrs:{property:\"setNum\",label:\"起订数量\",\"min-width\":\"100px\"}}),o(\"el-table-column\",{attrs:{property:\"inventory\",label:\"可用库存\",\"min-width\":\"100px\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(e.row.inventory-0)+\" \")]}}],null,!0)}),o(\"el-table-column\",{attrs:{property:\"salesNum\",label:\"销量\",\"min-width\":\"100px\"}}),o(\"el-table-column\",{attrs:{property:\"barCode\",label:\"条形码\",\"min-width\":\"100px\"}})],1),o(\"el-button\",{attrs:{slot:\"reference\",size:\"mini\",plain:\"\",type:\"primary\"},slot:\"reference\"},[t._v(\" \"+t._s(e.row.specTotal)+\" 种规格 \")])],1)]}}],null,!1,3562184143)}):t._e(),t.unitFlag?o(\"el-table-column\",{attrs:{prop:\"unitNameMaster\",label:\"基本单位\",align:\"left\",\"min-width\":\"80\"}}):t._e(),t.inventoryFlag?o(\"el-table-column\",{attrs:{prop:\"masterInventory\",label:\"总库存\",align:\"left\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.inventorTotal))+\" \")]}}],null,!1,1782249967)}):t._e(),t.virtualFlag?o(\"el-table-column\",{attrs:{prop:\"virtualSalesNum\",label:\"虚拟销量\",align:\"left\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.sale_false_visible?o(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{controls:!1,size:\"small\"},on:{blur:function(o){return t.setSalesNum(e.$index)}},nativeOn:{keyup:function(o){return!o.type.indexOf(\"key\")&&t._k(o.keyCode,\"enter\",13,o.key,\"Enter\")?null:t.setSalesNum(e.$index)}},model:{value:t.virtual_sales_num,callback:function(e){t.virtual_sales_num=e},expression:\"virtual_sales_num\"}}):o(\"div\",{staticClass:\"click-div\",on:{click:function(o){return t.showSetSaleNum(e.$index)}}},[t._v(\" \"+t._s(e.row.virtualSalesNum)+\" \"),t.$accessCheck(t.$Access.PublishGoodssetSalesNum)?o(\"el-button\",{attrs:{type:\"text\",icon:\"el-icon-edit\"}}):t._e()],1)]}}],null,!1,1780374402)}):t._e(),t.trueFlag?o(\"el-table-column\",{attrs:{prop:\"salesNum\",label:\"真实销量\",align:\"left\",\"min-width\":\"100\"}}):t._e(),t.currentStateFlag?o(\"el-table-column\",{attrs:{prop:\"enableStatus\",label:\"当前状态\",align:\"left\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[5===e.row.enableStatus?o(\"span\",{staticClass:\"success-status\"},[t._v(\" 上架 \")]):o(\"span\",{staticClass:\"danger-status\"},[t._v(\"下架\")])]}}],null,!1,1879411672)}):t._e(),t.retailStoresFlag?o(\"el-table-column\",{attrs:{prop:\"shopName\",label:\"销售店铺\",align:\"left\",\"min-width\":\"100\",\"show-overflow-tooltip\":!0}}):t._e(),t.timeFlag?o(\"el-table-column\",{attrs:{prop:\"createTime\",label:\"创建时间\",align:\"left\",width:\"160\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatDate(e.row.createTime))+\" \")]}}],null,!1,754808738)}):t._e(),o(\"el-table-column\",{attrs:{align:\"left\",fixed:\"right\",width:\"140\"},scopedSlots:t._u([{key:\"header\",fn:function(e){return[t._e(),o(\"span\",[t._v(\"操作\")]),o(\"el-popover\",{attrs:{\"popper-class\":\"custom-table-checkbox\",trigger:\"click\"}},[o(\"el-checkbox-group\",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:\"checkList\"}},t._l(t.columns,(function(e,a){return o(\"el-checkbox\",{key:a,attrs:{label:e.label},on:{change:t.change}})})),1),o(\"el-button\",{attrs:{slot:\"reference\",icon:\"el-icon-setting\",type:\"text\"},slot:\"reference\"})],1)]}},{key:\"default\",fn:function(e){return[o(\"el-button-group\",{staticClass:\"table-btn-group\"},[o(\"el-button\",{attrs:{type:\"text\"},on:{click:function(o){return t.auditGoods(e.row.id)}}},[t._v(\" 审核 \")])],1)]}}])})],1),o(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}})],1)},n=[],s=o(\"55bb\"),d=o(\"c40e\"),r={name:\"MerchantsExamine\",components:{SelectShop:s[\"default\"]},data(){return{add_form:{shop_name:\"\",merchants_name:1,shop_type:1,create_time:\"\",merchants_name_options:[{value:1,label:\"全部\"}],shop_type_options:[{value:1,label:\"全部\"},{value:2,label:\"实体商品\"},{value:3,label:\"虚拟商品\"},{value:4,label:\"电子卡密商品\"}]},goods_data:[],virtual_sales_num:0,set_goods_id:0,sale_num_form:{ids:[],minVal:\"\",maxVal:\"\"},checkList:[\"商品分类\",\"规格\",\"基本单位\",\"总库存\",\"虚拟销量\",\"真实销量\",\"当前状态\",\"销售店铺\",\"创建时间\"],columns:[{label:\"商品分类\"},{label:\"规格\"},{label:\"基本单位\"},{label:\"总库存\"},{label:\"虚拟销量\"},{label:\"真实销量\"},{label:\"当前状态\"},{label:\"销售店铺\"},{label:\"创建时间\"}],classifyFlag:!0,specificationFlag:!0,unitFlag:!0,inventoryFlag:!0,virtualFlag:!0,trueFlag:!0,currentStateFlag:!0,retailStoresFlag:!0,timeFlag:!0,multipleSelection:[],total:0,page:1,pageSize:10,goods_sku_list:[],checkedAll:!1,is_price:!1,sku_visible:!1,sku_goods_name:\"\",goods_name:\"\",keyword:\"\",brandId:\"\",categoryId:\"\",enableStatus:\"\",shopId:\"\",sel_brand:!1,choose_data:[],form:{categoryPath:[],search_key:\"\",brand:\"\",shop:\"\",enableStatus:\"\"},price_goods_detail:{},spec_loading:!1,set_form:{masterUnitId:\"\",shopName:\"\",brandName:\"\",category:[],branchUnit:[],deliverySupIds:[\"1\",\"2\"],expressType:1,expressFee:\"\",showExpress:5,ruleId:\"\"},express_list:[],assistForm:{},more_sub_btn:!1,unit_show:!1,is_set:!1,set_tit:\"\"}},created(){this.getAllGoods()},activated(){this.$_isInit()||this.getData()},methods:{handleSelectionChange(t){this.multipleSelection=t},pageChange(t){this.page=t,this.getData()},sizeChange(t){this.pageSize=t,this.pageChange(1)},async setSalesNum(t){if(this.virtual_sales_num<=0)return void this.$message.warning(\"请输入大于0的值\");await Object(d[\"setSalesNum\"])({id:this.goods_data[t].id,val:this.virtual_sales_num});this.goods_data[t].sale_false_visible=!1,this.getData()},showSetSaleNum(t){this.virtual_sales_num=this.goods_data[t].virtualSalesNum,this.goods_data[t].sale_false_visible=!0},async showSpec(t){let e=this.$_common.deepClone(this.goods_data);if(!e[t].goods_sku_list){this.spec_loading=!0;const{data:o}=await Object(d[\"getGoodsInfo\"])(e[t].id);this.spec_loading=!1,2===o.specType?this.goods_data[t].goods_sku_list=o.specMultiple.map(t=>{const e=t.specGroup.map(t=>t.specValueName).join(\"_\");return{...t,specValueName:e}}):1===o.specType&&(this.goods_data[t].goods_sku_list=o.specMultiple.map(t=>({...t,specValueName:\"无\"})))}},async getAllGoods(t){let e={page:this.page,pageSize:this.pageSize,auditStatus:1};if(t){await Object(d[\"exportGetAllGoods\"])({...e,export:1})}else{const t=await Object(d[\"getAllGoods\"])(e);this.goods_data=t.data.map(t=>({...t,sale_false_visible:!1})),this.total=t.pageTotal}},async searchGood(t){let e={keyword:this.keyword,brandId:this.brandId,categoryPath:this.form.categoryPath.join(\",\"),enableStatus:this.enableStatus,shopId:this.shopId,page:this.page,pageSize:this.pageSize};if(t){await Object(d[\"exportSearchGood\"])({...e,export:1})}else{const t=await Object(d[\"searchGood\"])(e);this.goods_data=t.data.map(t=>({...t,sale_false_visible:!1})),this.total=t.pageTotal}},getData(t){const e={keyword:this.keyword,brandId:this.brandId,categoryPath:this.form.categoryPath.join(\",\"),enableStatus:this.enableStatus,shopId:this.shopId},o=this.$_common.isSerch(e);o?this.searchGood(t):this.getAllGoods(t)},shopConfirm(t,e){this.shopId=e[0].id,this.form.shop=e[0].name,this.pageChange(1)},delShop(){this.form.shop=\"\",this.shopId=\"\",this.pageChange(1)},change(){this.classifyFlag=this.checkList.some(t=>\"商品分类\"===t),this.specificationFlag=this.checkList.some(t=>\"规格\"===t),this.unitFlag=this.checkList.some(t=>\"基本单位\"===t),this.inventoryFlag=this.checkList.some(t=>\"总库存\"===t),this.virtualFlag=this.checkList.some(t=>\"虚拟销量\"===t),this.trueFlag=this.checkList.some(t=>\"真实销量\"===t),this.currentStateFlag=this.checkList.some(t=>\"当前状态\"===t),this.retailStoresFlag=this.checkList.some(t=>\"销售店铺\"===t),this.timeFlag=this.checkList.some(t=>\"创建时间\"===t)},async auditGoods(t){this.$confirm(\"确定要审核该条商品吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(d[\"auditGoods\"])(t);this.$message({type:\"success\",message:\"审核成功!\"}),this.getData()})}}},u=r,l=(o(\"fc3f\"),o(\"a9fd\"),o(\"2877\")),i=Object(l[\"a\"])(u,a,n,!1,null,\"3f9a259f\",null);e[\"default\"]=i.exports},fc3f:function(t,e,o){\"use strict\";o(\"548f\")}}]);","extractedComments":[]}