| 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-fdb481bc\"],{\"0a73\":function(t,o,e){\"use strict\";e.r(o);var d=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e(\"Container\",[e(\"div\",{staticClass:\"page-tip-div\",staticStyle:{\"margin-top\":\"0\"},attrs:{slot:\"tip\"},slot:\"tip\"},[e(\"i\",{staticClass:\"el-icon-info\"}),e(\"span\",[t._v(\" 温馨提示:单位选择使用后,若编辑或者删除单位名称,会造成商品单位有误,请谨慎操作!! \")])]),e(\"div\",{attrs:{slot:\"left\"},slot:\"left\"},[t.$accessCheck(t.$Access.UnitSetAdd)?e(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:function(o){return t.openModel(!1)}}},[t._v(\" 新增单位 \")]):t._e()],1),e(\"el-table\",{attrs:{data:t.type_data}},[e(\"el-table-column\",{attrs:{label:\"ID\",prop:\"id\"}}),e(\"el-table-column\",{attrs:{prop:\"unitName\",label:\"名称\"}}),e(\"el-table-column\",{attrs:{prop:\"enableStatus\",label:\"状态\"},scopedSlots:t._u([{key:\"default\",fn:function(o){return[t.$accessCheck(t.$Access.UnitSetUpdateEnablesStatus)?e(\"el-switch\",{staticClass:\"switchStyle\",attrs:{\"active-color\":\"#36B365\",\"active-value\":5,\"inactive-value\":4,\"active-text\":\"启用\",\"inactive-text\":\"禁用\"},on:{change:function(e){return t.statusSet(e,o.row)}},model:{value:o.row.enableStatus,callback:function(e){t.$set(o.row,\"enableStatus\",e)},expression:\"scope.row.enableStatus\"}}):e(\"div\",[5===o.row.enableStatus?e(\"span\",{staticClass:\"success-status\"},[t._v(\" 启用 \")]):e(\"span\",{staticClass:\"danger-status\"},[t._v(\"禁用\")])])]}}])}),e(\"el-table-column\",{attrs:{prop:\"address\",label:\"操作\",fixed:\"right\"},scopedSlots:t._u([{key:\"default\",fn:function(o){return[t.$accessCheck(t.$Access.UnitSetEdit)?e(\"el-button\",{attrs:{type:\"text\"},on:{click:function(e){return t.openModel(!0,o.row)}}},[t._v(\" 编辑 \")]):t._e(),t.$accessCheck(t.$Access.UnitSetDel)?e(\"el-button\",{attrs:{type:\"text\"},on:{click:function(e){return t.delData(o.row.id)}}},[t._v(\" 删除 \")]):t._e()]}}])})],1),e(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(o){t.total=o},\"update:total-page\":function(o){t.total=o},\"update:currentPage\":function(o){t.page=o},\"update:current-page\":function(o){t.page=o},pageChange:t.pageChange,sizeChange:t.sizeChange}}),e(\"el-dialog\",{attrs:{title:(t.is_edit?\"编辑\":\"新增\")+\"计量单位\",visible:t.show_model,width:\"40%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{\"update:visible\":function(o){t.show_model=o},close:function(o){t.show_model=!1}}},[e(\"el-form\",{ref:\"form\",attrs:{model:t.add_form,rules:t.rules,size:\"small\",\"label-width\":\"100px\"}},[e(\"el-form-item\",{attrs:{label:\"名称:\",prop:\"unitName\"}},[e(\"el-input\",{attrs:{placeholder:\"请输入单位名称\"},model:{value:t.add_form.unitName,callback:function(o){t.$set(t.add_form,\"unitName\",o)},expression:\"add_form.unitName\"}})],1),e(\"el-form-item\",{attrs:{label:\"是否禁用:\",prop:\"enableStatus\"}},[e(\"el-radio-group\",{model:{value:t.add_form.enableStatus,callback:function(o){t.$set(t.add_form,\"enableStatus\",o)},expression:\"add_form.enableStatus\"}},[e(\"el-radio\",{attrs:{label:4}},[t._v(\"是\")]),e(\"el-radio\",{attrs:{label:5}},[t._v(\"否\")])],1)],1)],1),e(\"span\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[e(\"el-button\",{on:{click:function(o){t.show_model=!1}}},[t._v(\"取 消\")]),e(\"el-button\",{attrs:{type:\"primary\"},on:{click:t.addData}},[t._v(\"确 定\")])],1)],1)],1)},n=[],a=e(\"c40e\"),u={name:\"UnitMeasurement\",data(){return{pageSize:10,page:1,total:0,show_model:!1,is_edit:!1,unit_id:0,add_form:{unitName:\"\",enableStatus:5},rules:{unitName:[{required:!0,message:\"请输入计量单位名称\"}]},type_data:[]}},created(){this.getAllUnit()},activated(){this.$_isInit()||this.getAllUnit()},methods:{async getAllUnit(){const{data:t,pageTotal:o}=await Object(a[\"getAllUnit\"])({page:this.page,pageSize:this.pageSize});this.type_data=t,this.total=o},async addData(){this.add_form.unitName.trim()?this.$refs[\"form\"].validate(async t=>{if(t){let t={};t=this.is_edit?await Object(a[\"editUnit\"])(this.unit_id,{...this.add_form}):await Object(a[\"addUnit\"])({...this.add_form}),this.show_model=!1,this.pageChange(1)}}):this.$message.warning(\"名称不能为空\")},sizeChange(t){this.pageSize=t,this.pageChange(1)},pageChange(t){this.page=t,this.getAllUnit()},openModel(t,o){this.add_form={unitName:\"\",enableStatus:5},this.show_model=!0,this.is_edit=t,o&&(this.unit_id=o.id,this.add_form={unitName:o.unitName,enableStatus:o.enableStatus})},delData(t){this.$confirm(\"确定要删除该计量单位吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(a[\"delUnit\"])(t);this.getAllUnit(),this.$message({type:\"success\",message:\"删除成功!\"})})},async statusSet(t,o){try{await Object(a[\"updateEnablesStatus\"])({id:o.id,enableStatus:t});this.$message({type:\"success\",message:\"操作成功!\"})}catch(e){this.getAllUnit()}}}},r=u,s=e(\"2877\"),i=Object(s[\"a\"])(r,d,n,!1,null,\"b4716520\",null);o[\"default\"]=i.exports},c40e:function(t,o,e){\"use strict\";e.r(o),e.d(o,\"getAllGoodsBasicBySku\",(function(){return n})),e.d(o,\"goodsImport\",(function(){return a})),e.d(o,\"goodsQuickImport\",(function(){return u})),e.d(o,\"searchBasic\",(function(){return r})),e.d(o,\"exportSearchBasic\",(function(){return s})),e.d(o,\"defineSpec\",(function(){return i})),e.d(o,\"addBasicAndPublishGoods\",(function(){return c})),e.d(o,\"editQuickGoods\",(function(){return l})),e.d(o,\"getQuickGoodsInfo\",(function(){return f})),e.d(o,\"addGoodsBasic\",(function(){return p})),e.d(o,\"getAllGoodsBasic\",(function(){return G})),e.d(o,\"exportGetAllGoodsBasic\",(function(){return g})),e.d(o,\"getGoodsBasicInfoById\",(function(){return h})),e.d(o,\"getGoodsByCategory\",(function(){return b})),e.d(o,\"updateEnableStatus\",(function(){return m})),e.d(o,\"delGoodsBasic\",(function(){return S})),e.d(o,\"editGoodsBasic\",(function(){return O})),e.d(o,\"getGoodsBasicOfShopId\",(function(){return j})),e.d(o,\"updateCategory\",(function(){return B})),e.d(o,\"BatchUnloading\",(function(){return y})),e.d(o,\"setTop\",(function(){return C})),e.d(o,\"setSalesNumBatch\",(function(){return M})),e.d(o,\"setSalesNum\",(function(){return _})),e.d(o,\"getAllUnit\",(function(){return A})),e.d(o,\"addUnit\",(function(){return k})),e.d(o,\"editUnit\",(function(){return v})),e.d(o,\"updateEnablesStatus\",(function(){return w})),e.d(o,\"delUnit\",(function(){return I})),e.d(o,\"SpecManageAdd\",(function(){return U})),e.d(o,\"SpecManageedit\",(function(){return x})),e.d(o,\"SpecManagedel\",(function(){return $})),e.d(o,\"SpecManageinfo\",(function(){return N})),e.d(o,\"SpecManagegetAll\",(function(){return T})),e.d(o,\"getAllGoodsBySku\",(function(){return E})),e.d(o,\"searchGood\",(function(){return z})),e.d(o,\"exportSearchGood\",(function(){return P})),e.d(o,\"addGoods\",(function(){return Q})),e.d(o,\"getGoodsInfo\",(function(){return D})),e.d(o,\"delGoods\",(function(){return L})),e.d(o,\"editGoods\",(function(){return R})),e.d(o,\"getAllGoods\",(function(){return J})),e.d(o,\"getAllGoodsList\",(function(){return q})),e.d(o,\"exportGetAllGoodsList\",(function(){return F})),e.d(o,\"exportGetAllGoods\",(function(){return H})),e.d(o,\"auditGoods\",(function(){return K})),e.d(o,\"getGoodsByCondition\",(function(){return V})),e.d(o,\"GoodsUpdateEnableStatus\",(function(){return W})),e.d(o,\"batchGoodsExpress\",(function(){return X})),e.d(o,\"addBrand\",(function(){return Y})),e.d(o,\"editBrand\",(function(){return Z})),e.d(o,\"getBrandInfoById\",(function(){return tt})),e.d(o,\"updateBrandStatus\",(function(){return ot})),e.d(o,\"delBrand\",(function(){return et})),e.d(o,\"getAllBrand\",(function(){return dt})),e.d(o,\"setBrand\",(function(){return nt})),e.d(o,\"setSku\",(function(){return at})),e.d(o,\"setNoSalesShop\",(function(){return ut})),e.d(o,\"addCategory\",(function(){return rt})),e.d(o,\"updateCategoryStatus\",(function(){return st})),e.d(o,\"getCategoryInfoById\",(function(){return it})),e.d(o,\"getAllCategory\",(function(){return ct})),e.d(o,\"delCategory\",(function(){return lt})),e.d(o,\"editCategory\",(function(){return ft})),e.d(o,\"getAllCategoryPost\",(function(){return pt})),e.d(o,\"getGoodsByBarCode\",(function(){return Gt})),e.d(o,\"getRelMap\",(function(){return gt})),e.d(o,\"getPriceTrend\",(function(){return ht})),e.d(o,\"batchSetDistribution\",(function(){return bt})),e.d(o,\"addGoodsSupport\",(function(){return mt})),e.d(o,\"editGoodsSupport\",(function(){return St})),e.d(o,\"delGoodsSupport\",(function(){return Ot})),e.d(o,\"getAllGoodsSupport\",(function(){return jt})),e.d(o,\"getGoodsSupportInfo\",(function(){return Bt})),e.d(o,\"getAllGoodsGroups\",(function(){return yt})),e.d(o,\"addGoodsGroups\",(function(){return Ct})),e.d(o,\"enableGoodsGroups\",(function(){return Mt})),e.d(o,\"updateGoodsGroups\",(function(){return _t})),e.d(o,\"getReservoirInfo\",(function(){return At})),e.d(o,\"deleteGoodsGroups\",(function(){return kt})),e.d(o,\"setSort\",(function(){return vt}));var d=e(\"b775\");function n(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasicBySku\",method:\"post\",data:t})}function a(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/goodsImport\",method:\"post\",data:t})}function u(t){return Object(d[\"default\"])({url:\"/Goods/QuickGoods/goodsQuickImport\",method:\"post\",data:t})}function r(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",data:t})}function s(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",responseType:\"blob\",data:t})}function i(t){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/defineSpec\",method:\"post\",data:t})}function c(t){return Object(d[\"default\"])({url:\"/Goods/QuickGoods/addBasicAndPublishGoods\",method:\"post\",data:t})}function l(t){return Object(d[\"default\"])({url:\"/Goods/QuickGoods/editQuickGoods\",method:\"post\",data:t})}function f(t,o){return Object(d[\"default\"])({url:\"/Goods/QuickGoods/getQuickGoodsInfo/\"+t,method:\"post\",data:o})}function p(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/addGoodsBasic\",method:\"post\",data:t})}function G(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",method:\"post\",data:t})}function g(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",responseType:\"blob\",method:\"post\",data:t})}function h(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicInfoById/\"+t,method:\"post\",data:o})}function b(t){return Object(d[\"default\"])({url:\"/Goods/ApiGoods/getGoodsByCategory\",method:\"post\",data:t})}function m(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateEnableStatus\",method:\"put\",data:t})}function S(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/delGoodsBasic/\"+t,method:\"delete\",data:o})}function O(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/editGoodsBasic/\"+t,method:\"put\",data:o})}function j(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicOfShopId\",method:\"post\",data:t})}function B(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateCategory\",method:\"post\",data:t})}function y(t){return Object(d[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function C(t,o){return Object(d[\"default\"])({url:\"/Goods/Goods/setTop/\"+t,method:\"get\",data:o})}function M(t){return Object(d[\"default\"])({url:\"/Goods/Goods/setSalesNumBatch\",method:\"post\",data:t})}function _(t){return Object(d[\"default\"])({url:\"/Goods/Goods/setSalesNum\",method:\"post\",data:t})}function A(t){return Object(d[\"default\"])({url:\"/GoodsManage/Units/getAll\",method:\"post\",data:t})}function k(t){return Object(d[\"default\"])({url:\"/GoodsManage/Units/add\",method:\"post\",data:t})}function v(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/Units/edit/\"+t,method:\"put\",data:o})}function w(t){return Object(d[\"default\"])({url:\"/GoodsManage/Units/updateEnablesStatus\",method:\"put\",data:t})}function I(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/Units/del/\"+t,method:\"delete\",data:o})}function U(t){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/add\",method:\"post\",data:t})}function x(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/edit/\"+t,method:\"post\",data:o})}function $(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/del/\"+t,method:\"delete\",data:o})}function N(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/info/\"+t,method:\"get\",data:o})}function T(t){return Object(d[\"default\"])({url:\"/GoodsManage/SpecManage/getAll\",method:\"post\",data:t})}function E(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getAllGoodsBySku\",method:\"post\",data:t})}function z(t){return Object(d[\"default\"])({url:\"/Goods/Goods/search\",method:\"post\",data:t})}function P(t){return Object(d[\"default\"])({url:\"/Goods/Goods/search\",responseType:\"blob\",method:\"post\",data:t})}function Q(t){return Object(d[\"default\"])({url:\"/Goods/Goods/addGoods\",method:\"post\",data:t})}function D(t,o){return Object(d[\"default\"])({url:\"/Goods/Goods/getGoodsInfo/\"+t,method:\"post\",data:o})}function L(t,o){return Object(d[\"default\"])({url:\"/Goods/Goods/delGoods/\"+t,method:\"get\",data:o})}function R(t,o){return Object(d[\"default\"])({url:\"/Goods/Goods/editGoods/\"+t,method:\"put\",data:o})}function J(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",data:t})}function q(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",data:t})}function F(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",responseType:\"blob\",data:t})}function H(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",responseType:\"blob\",data:t})}function K(t,o){return Object(d[\"default\"])({url:\"/Goods/Goods/audit/\"+t,method:\"put\",data:o})}function V(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getGoodsByCondition\",method:\"post\",data:t})}function W(t){return Object(d[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function X(t){return Object(d[\"default\"])({url:\"/Goods/Goods/batchGoodsExpress\",method:\"post\",data:t})}function Y(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/addBrand\",method:\"post\",data:t})}function Z(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/editBrand/\"+t,method:\"put\",data:o})}function tt(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/getBrandInfoById/\"+t,method:\"put\",data:o})}function ot(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/updateBrandStatus/\"+t,method:\"put\",data:o})}function et(t,o){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/delBrand/\"+t,method:\"delete\",data:o})}function dt(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBrand/getAllBrand\",method:\"post\",data:t})}function nt(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/setBrand\",method:\"put\",data:t})}function at(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/setSku\",method:\"put\",data:t})}function ut(t){return Object(d[\"default\"])({url:\"/GoodsManage/GoodsBasic/setNoSalesShop\",method:\"put\",data:t})}function rt(t){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/addCategory\",method:\"post\",data:t})}function st(t,o){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/updateCategoryStatus/\"+t,method:\"put\",data:o})}function it(t,o){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getCategoryInfoById/\"+t,method:\"get\",data:o})}function ct(t){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"get\",data:t})}function lt(t,o){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/delCategory/\"+t,method:\"delete\",data:o})}function ft(t,o){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/editCategory/\"+t,method:\"put\",data:o})}function pt(t){return Object(d[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"post\",data:t})}function Gt(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getGoodsByBarCode\",method:\"post\",data:t})}function gt(t){return Object(d[\"default\"])({url:\"/Goods/Goods/getRelMap\",method:\"post\",data:t})}function ht(t,o){return Object(d[\"default\"])({url:\"Goods/Goods/getPriceTrend/\"+t,method:\"POST\",data:o})}function bt(t){return Object(d[\"default\"])({url:\"Goods/Goods/batchSetDistribution\",method:\"POST\",data:t})}function mt(t){return Object(d[\"default\"])({url:\"Goods/GoodsSupport/addGoodsSupport\",method:\"post\",data:t})}function St(t){return Object(d[\"default\"])({url:\"/Goods/GoodsSupport/editGoodsSupport\",method:\"post\",data:t})}function Ot(t,o){return Object(d[\"default\"])({url:\"Goods/GoodsSupport/delGoodsSupport/\"+t,method:\"post\",data:o})}function jt(t){return Object(d[\"default\"])({url:\"Goods/GoodsSupport/getAllGoodsSupport\",method:\"post\",data:t})}function Bt(t,o){return Object(d[\"default\"])({url:\"/Goods/GoodsSupport/getGoodsSupportInfo/\"+t,method:\"post\",data:o})}function yt(t){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/getAllGoodsGroups\",method:\"post\",data:t})}function Ct(t){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/addGoodsGroups\",method:\"post\",data:t})}function Mt(t,o){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/enableGoodsGroups/\"+t,method:\"post\",data:o})}function _t(t,o){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/updateGoodsGroups/\"+t,method:\"post\",data:o})}function At(t,o){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/getReservoirInfo/\"+t,method:\"post\",data:o})}function kt(t,o){return Object(d[\"default\"])({url:\"Goods/GoodsGroups/deleteGoodsGroups/\"+t,method:\"post\",data:o})}function vt(t){return Object(d[\"default\"])({url:\"Goods/Goods/setSort\",method:\"post\",data:t})}}}]);","extractedComments":[]}
|