1 |
- {"version":3,"sources":["webpack:///./src/api/skuStock.js","webpack:///src/views/pms/product/index.vue","webpack:///./src/views/pms/product/index.vue?3e07","webpack:///./src/views/pms/product/index.vue"],"names":["pid","params","Object","__WEBPACK_IMPORTED_MODULE_0__utils_request__","url","method","data","defaultListQuery","keyword","pageNum","pageSize","publishStatus","verifyStatus","productSn","productCategoryId","brandId","stock","pms_product","name","editSkuInfo","dialogVisible","productId","productAttributeCategoryId","stockList","productAttr","operates","label","value","operateType","listQuery","assign_default","list","total","listLoading","selectProductCateValue","multipleSelection","productCateOptions","brandOptions","publishStatusOptions","verifyStatusOptions","stockOptions","created","this","$route","getList","getBrandList","getProductCateList","watch","newValue","length","filters","verifyStatusFilter","goodsTypeFilter","ProductInfoDetail","forEach","item","methods","getProductSkuSp","row","index","spData","JSON","parse","_this","product","then","response","_this2","brand","brandList","i","push","id","_this3","productCate","children","j","handleShowSkuEditDialog","_this4","skuStock","type","handleSearchEditSku","_this5","handleEditSkuConfirm","_this6","$message","message","duration","$confirm","confirmButtonText","cancelButtonText","handleSearchList","handleAddProduct","$router","path","handleDownloadStock","downLoadFile","fileName","extends_default","handleDownloadProductStock","handleBatchOperate","_this7","ids","join","updatePublishStatus","updateRecommendStatus","updateNewStatus","updateDeleteStatus","handleSizeChange","val","handleCurrentChange","handleSelectionChange","handlePublishStatusChange","handleNewStatusChange","newStatus","handleRecommendStatusChange","recommandStatus","handleResetSearch","handleDelete","_this8","handleUpdateProduct","query","handleShowProduct","handleShowVerifyDetail","console","log","handleShowPurchase","handleShowLog","_this9","obj","_this10","recommendStatus","_this11","deleteStatus","_this12","views_pms_product","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","width","placeholder","callback","$$v","$set","expression","clearable","options","_l","key","directives","rawName","ref","border","selection-change","align","scopedSlots","_u","fn","scope","_s","height","src","pic","brandName","price","active-value","inactive-value","change","$index","sort","icon","circle","sale","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","title","visible","update:visible","margin-left","slot","controls","min","max","precision","internalStock","taxStock","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"8EACO,SAAmBA,EAAIC,GAC5B,OAAOC,OAAAC,EAAA,EAAAD,EACLE,IAAI,QAAQJ,EACZK,OAAO,MACPJ,OAAOA,SAIJ,SAAgBD,EAAIM,GACzB,OAAOJ,OAAAC,EAAA,EAAAD,EACLE,IAAI,eAAeJ,EACnBK,OAAO,OACPC,KAAKA,2OCwWTC,GACAC,QAAA,KACAC,QAAA,EACAC,SAAA,EACAC,cAAA,KACAC,aAAA,KACAC,UAAA,KACAC,kBAAA,KACAC,QAAA,KACAC,MAAA,MAEAC,GACAC,KAAA,cACAZ,KAFA,WAGA,OACAa,aACAC,eAAA,EACAC,UAAA,KACAR,UAAA,GACAS,2BAAA,KACAC,aACAC,eACAhB,QAAA,MAEAiB,WAEAC,MAAA,OACAC,MAAA,cAGAD,MAAA,OACAC,MAAA,eAGAD,MAAA,OACAC,MAAA,gBAGAD,MAAA,OACAC,MAAA,iBAGAD,MAAA,OACAC,MAAA,UAGAD,MAAA,OACAC,MAAA,WAGAD,MAAA,QACAC,MAAA,qBAGAD,MAAA,QACAC,MAAA,YAGAC,YAAA,KACAC,UAAAC,OAAAvB,GACAwB,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,uBAAA,KACAC,qBACAC,sBACAC,gBACAC,uBAEAX,MAAA,EACAD,MAAA,OAGAC,MAAA,EACAD,MAAA,OAGAa,sBAEAZ,MAAA,EACAD,MAAA,SAGAC,MAAA,EACAD,MAAA,QAGAc,eAEAb,MAAA,EACAD,MAAA,MAGAC,MAAA,EACAD,MAAA,QAKAe,QAxFA,WAyFAC,KAAAC,OAAA1C,OAAAe,MAAA,KACA0B,KAAAb,UAAAb,MAAA0B,KAAAC,OAAA1C,OAAAe,OAEA0B,KAAAE,UACAF,KAAAG,eACAH,KAAAI,sBA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AAAC,GAAoDvB,EAAAwB,KAAAe,EAAAtH,IAAA,WAAAsG,IAAqCE,WAAA,gCAAyC,GAAAzB,EAAAQ,GAAA,KAAAL,EAAA,QAA6BE,YAAA,gBAAAC,OAAmC4D,KAAA,UAAgBA,KAAA,WAAe/D,EAAA,aAAkBS,IAAIC,MAAA,SAAAC,GAAyBd,EAAAtH,YAAAC,eAAA,MAAwCqH,EAAAQ,GAAA,SAAAR,EAAAQ,GAAA,KAAAL,EAAA,aAA8CG,OAAO/D,KAAA,WAAiBqE,IAAKC,MAAAb,EAAAtD,wBAAkCsD,EAAAQ,GAAA,sBAE91UiE,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACApM,EACAsH,GATA,EAVA,SAAA+E,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/20.6e736481436ec0301f00.js","sourcesContent":["import request from '@/utils/request'\r\nexport function fetchList(pid,params) {\r\n return request({\r\n url:'/sku/'+pid,\r\n method:'get',\r\n params:params\r\n })\r\n}\r\n\r\nexport function update(pid,data) {\r\n return request({\r\n url:'/sku/update/'+pid,\r\n method:'post',\r\n data:data\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/skuStock.js","<template>\r\n\r\n <div class=\"app-container\">\r\n <el-card class=\"filter-container\" shadow=\"never\">\r\n <div>\r\n <i class=\"el-icon-search\"></i>\r\n <span>筛选搜索</span>\r\n <el-button\r\n style=\"float: right\"\r\n @click=\"handleSearchList()\"\r\n type=\"primary\"\r\n size=\"small\"\r\n >\r\n 查询结果\r\n </el-button>\r\n <el-button\r\n style=\"float: right; margin-right: 15px\"\r\n @click=\"handleResetSearch()\"\r\n size=\"small\"\r\n >\r\n 重置\r\n </el-button>\r\n </div>\r\n <div style=\"margin-top: 15px\">\r\n <el-form\r\n :inline=\"true\"\r\n :model=\"listQuery\"\r\n size=\"small\"\r\n label-width=\"140px\"\r\n >\r\n <el-form-item label=\"输入搜索:\">\r\n <el-input\r\n style=\"width: 203px\"\r\n v-model=\"listQuery.keyword\"\r\n placeholder=\"商品名称\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"商品货号:\">\r\n <el-input\r\n style=\"width: 203px\"\r\n v-model=\"listQuery.productSn\"\r\n placeholder=\"商品货号\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"商品分类:\">\r\n <el-cascader\r\n clearable\r\n v-model=\"selectProductCateValue\"\r\n :options=\"productCateOptions\"\r\n >\r\n </el-cascader>\r\n </el-form-item>\r\n <el-form-item label=\"商品品牌:\">\r\n <el-select\r\n v-model=\"listQuery.brandId\"\r\n placeholder=\"请选择品牌\"\r\n clearable\r\n >\r\n <el-option\r\n v-for=\"item in brandOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"上架状态:\">\r\n <el-select\r\n v-model=\"listQuery.publishStatus\"\r\n placeholder=\"全部\"\r\n clearable\r\n >\r\n <el-option\r\n v-for=\"item in publishStatusOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"是否缺货\">\r\n <el-select\r\n v-model=\"listQuery.stock\"\r\n placeholder=\"是否缺货\"\r\n clearable\r\n style=\"width:203px\"\r\n >\r\n <el-option\r\n v-for=\"item in stockOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n\r\n <div class=\"btn-add\">\r\n <el-button @click=\"handleAddProduct()\" size=\"mini\">\r\n 添加\r\n </el-button>\r\n <el-button type=\"primary\" @click=\"handleDownloadStock()\" size=\"mini\">\r\n 导出库存\r\n </el-button>\r\n <el-button type=\"primary\" @click=\"handleDownloadProductStock()\" size=\"mini\">\r\n 导出进货清单\r\n </el-button>\r\n </div>\r\n\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table\r\n ref=\"productTable\"\r\n :data=\"list\"\r\n style=\"width: 100%\"\r\n @selection-change=\"handleSelectionChange\"\r\n v-loading=\"listLoading\"\r\n border\r\n >\r\n <el-table-column\r\n type=\"selection\"\r\n width=\"60\"\r\n align=\"center\"\r\n ></el-table-column>\r\n <el-table-column label=\"编号\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.id }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"商品图片\" width=\"120\" align=\"center\">\r\n <template slot-scope=\"scope\"\r\n ><img style=\"height: 80px\" :src=\"scope.row.pic\"\r\n /></template>\r\n </el-table-column>\r\n <el-table-column label=\"商品名称\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.name }}</p>\r\n <p>品牌:{{ scope.row.brandName }}</p>\r\n <!-- <p>类型:{{ scope.row.productType | goodsTypeFilter }}</p> -->\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"价格/货号\" width=\"120\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>价格:¥{{ scope.row.price }}</p>\r\n <p>货号:{{ scope.row.productSn }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"标签\" width=\"140\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>\r\n 上架:\r\n <el-switch\r\n @change=\"handlePublishStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.publishStatus\"\r\n >\r\n </el-switch>\r\n </p>\r\n <!-- <p>\r\n 新品:\r\n <el-switch\r\n @change=\"handleNewStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.newStatus\"\r\n >\r\n </el-switch>\r\n </p> -->\r\n <p>\r\n 推荐:\r\n <el-switch\r\n @change=\"handleRecommendStatusChange(scope.$index, scope.row)\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n v-model=\"scope.row.recommandStatus\"\r\n >\r\n </el-switch>\r\n </p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"排序\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.sort }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"SKU库存\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n type=\"primary\"\r\n icon=\"el-icon-edit\"\r\n @click=\"handleShowSkuEditDialog(scope.$index, scope.row)\"\r\n circle\r\n ></el-button>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"销量\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.sale }}</template>\r\n </el-table-column>\r\n <!-- <el-table-column label=\"审核状态\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{scope.row.verifyStatus | verifyStatusFilter}}</p>\r\n <p>\r\n <el-button\r\n type=\"text\"\r\n @click=\"handleShowVerifyDetail(scope.$index, scope.row)\">审核详情\r\n </el-button>\r\n </p>\r\n </template>\r\n </el-table-column> -->\r\n <el-table-column label=\"操作\" width=\"220\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p class=\"table-btn-group\">\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleShowProduct(scope.$index, scope.row)\"\r\n >查看\r\n </el-button>\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleUpdateProduct(scope.$index, scope.row)\"\r\n >编辑\r\n </el-button>\r\n <el-button\r\n size=\"mini\"\r\n type=\"danger\"\r\n @click=\"handleDelete(scope.$index, scope.row)\"\r\n >删除\r\n </el-button>\r\n\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleShowPurchase(scope.row)\">进货清单\r\n </el-button>\r\n </p>\r\n <p>\r\n <!-- <el-button\r\n size=\"mini\"\r\n @click=\"handleShowLog(scope.$index, scope.row)\">日志\r\n </el-button> -->\r\n </p>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n <!-- <div class=\"batch-operate-container\">\r\n <el-select size=\"small\" v-model=\"operateType\" placeholder=\"批量操作\">\r\n <el-option\r\n v-for=\"item in operates\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n <el-button\r\n style=\"margin-left: 20px\"\r\n class=\"search-button\"\r\n @click=\"handleBatchOperate()\"\r\n type=\"primary\"\r\n size=\"small\"\r\n >\r\n 确定\r\n </el-button>\r\n </div> -->\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n layout=\"total, sizes,prev, pager, next,jumper\"\r\n :page-size=\"listQuery.pageSize\"\r\n :page-sizes=\"[5, 10, 15]\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :total=\"total\"\r\n >\r\n </el-pagination>\r\n </div>\r\n <el-dialog\r\n title=\"编辑货品信息\"\r\n :visible.sync=\"editSkuInfo.dialogVisible\"\r\n width=\"60%\"\r\n >\r\n <span>商品货号:</span>\r\n <span>{{ editSkuInfo.productSn }}</span>\r\n <el-input\r\n placeholder=\"按sku编号搜索\"\r\n v-model=\"editSkuInfo.keyword\"\r\n size=\"small\"\r\n style=\"width: 50%; margin-left: 20px\"\r\n >\r\n <el-button\r\n slot=\"append\"\r\n icon=\"el-icon-search\"\r\n @click=\"handleSearchEditSku\"\r\n ></el-button>\r\n </el-input>\r\n <el-table\r\n style=\"width: 100%; margin-top: 20px\"\r\n :data=\"editSkuInfo.stockList\"\r\n border\r\n >\r\n <el-table-column label=\"SKU编号\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-input v-model=\"scope.row.skuCode\"></el-input>\r\n <!-- {{ scope.row.skuCode }} -->\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n v-for=\"(item, index) in editSkuInfo.productAttr\"\r\n :label=\"item.name\"\r\n :key=\"item.id\"\r\n align=\"center\"\r\n >\r\n <template slot-scope=\"scope\">\r\n {{ getProductSkuSp(scope.row, index) }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"销售价格\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <!-- <el-input v-model=\"scope.row.price\"></el-input> -->\r\n <el-input-number :controls=\"false\" class=\"number-input\" v-model=\"scope.row.price\" :min=\"0.01\" :max=\"999999\" :precision=\"2\"\r\n type=\"number\"></el-input-number>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"内部库存\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.internalStock }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"税务库存\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{scope.row.taxStock}}\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"库存预警值\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <!-- <el-input v-model=\"scope.row.lowStock\"></el-input> -->\r\n <el-input-number :controls=\"false\" class=\"number-input\" v-model=\"scope.row.lowStock\" :min=\"0\" :max=\"999999\" :precision=\"0\"\r\n type=\"number\"></el-input-number>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"editSkuInfo.dialogVisible = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"handleEditSkuConfirm\"\r\n >确 定</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\nimport {goodsType} from './components/ProductInfoDetail.vue'\r\nimport {\r\n fetchList,\r\n updateDeleteStatus,\r\n updateNewStatus,\r\n updateRecommendStatus,\r\n updatePublishStatus,\r\n} from \"@/api/product\";\r\nimport {\r\n fetchList as fetchSkuStockList,\r\n update as updateSkuStockList,\r\n} from \"@/api/skuStock\";\r\nimport { fetchList as fetchProductAttrList } from \"@/api/productAttr\";\r\nimport { fetchList as fetchBrandList } from \"@/api/brand\";\r\nimport { fetchListWithChildren } from \"@/api/productCate\";\r\nimport { Export } from \"@/utils/downLoadFile\";\r\nconst defaultListQuery = {\r\n keyword: null,\r\n pageNum: 1,\r\n pageSize: 5,\r\n publishStatus: null,\r\n verifyStatus: null,\r\n productSn: null,\r\n productCategoryId: null,\r\n brandId: null,\r\n stock:null\r\n};\r\nexport default {\r\n name: \"productList\",\r\n data() {\r\n return {\r\n editSkuInfo: {\r\n dialogVisible: false,\r\n productId: null,\r\n productSn: \"\",\r\n productAttributeCategoryId: null,\r\n stockList: [],\r\n productAttr: [],\r\n keyword: null,\r\n },\r\n operates: [\r\n {\r\n label: \"商品上架\",\r\n value: \"publishOn\",\r\n },\r\n {\r\n label: \"商品下架\",\r\n value: \"publishOff\",\r\n },\r\n {\r\n label: \"设为推荐\",\r\n value: \"recommendOn\",\r\n },\r\n {\r\n label: \"取消推荐\",\r\n value: \"recommendOff\",\r\n },\r\n {\r\n label: \"设为新品\",\r\n value: \"newOn\",\r\n },\r\n {\r\n label: \"取消新品\",\r\n value: \"newOff\",\r\n },\r\n {\r\n label: \"转移到分类\",\r\n value: \"transferCategory\",\r\n },\r\n {\r\n label: \"移入回收站\",\r\n value: \"recycle\",\r\n },\r\n ],\r\n operateType: null,\r\n listQuery: Object.assign({}, defaultListQuery),\r\n list: null,\r\n total: null,\r\n listLoading: true,\r\n selectProductCateValue: null,\r\n multipleSelection: [],\r\n productCateOptions: [],\r\n brandOptions: [],\r\n publishStatusOptions: [\r\n {\r\n value: 1,\r\n label: \"上架\",\r\n },\r\n {\r\n value: 0,\r\n label: \"下架\",\r\n },\r\n ],\r\n verifyStatusOptions: [\r\n {\r\n value: 1,\r\n label: \"审核通过\",\r\n },\r\n {\r\n value: 0,\r\n label: \"未审核\",\r\n },\r\n ],\r\n stockOptions: [\r\n {\r\n value: 1,\r\n label: \"是\",\r\n },\r\n {\r\n value: 0,\r\n label: \"否\",\r\n },\r\n ],\r\n };\r\n },\r\n created() {\r\n if (this.$route.params.stock + \"\") {\r\n this.listQuery.stock = this.$route.params.stock;\r\n }\r\n this.getList();\r\n this.getBrandList();\r\n this.getProductCateList();\r\n },\r\n watch: {\r\n selectProductCateValue: function (newValue) {\r\n if (newValue != null && newValue.length == 2) {\r\n this.listQuery.productCategoryId = newValue[1];\r\n } else {\r\n this.listQuery.productCategoryId = null;\r\n }\r\n },\r\n },\r\n filters: {\r\n verifyStatusFilter(value) {\r\n if (value === 1) {\r\n return \"审核通过\";\r\n } else {\r\n return \"未审核\";\r\n }\r\n },\r\n goodsTypeFilter(value) {\r\n let name = '--';\r\n (goodsType || []).forEach(item => {\r\n if(item.value === value) {\r\n name = item.label\r\n }\r\n });\r\n return name\r\n }\r\n },\r\n methods: {\r\n getProductSkuSp(row, index) {\r\n let spData = JSON.parse(row.spData);\r\n if (spData != null && index < spData.length) {\r\n return spData[index].value;\r\n } else {\r\n return null;\r\n }\r\n },\r\n getList() {\r\n this.listLoading = true;\r\n fetchList(this.listQuery).then((response) => {\r\n this.listLoading = false;\r\n this.list = response.data.list;\r\n this.total = response.data.total;\r\n });\r\n },\r\n getBrandList() {\r\n fetchBrandList({ pageNum: 1, pageSize: 100 }).then((response) => {\r\n this.brandOptions = [];\r\n let brandList = response.data.list;\r\n for (let i = 0; i < brandList.length; i++) {\r\n this.brandOptions.push({\r\n label: brandList[i].name,\r\n value: brandList[i].id,\r\n });\r\n }\r\n });\r\n },\r\n getProductCateList() {\r\n fetchListWithChildren().then((response) => {\r\n let list = response.data;\r\n this.productCateOptions = [];\r\n for (let i = 0; i < list.length; i++) {\r\n let children = [];\r\n if (list[i].children != null && list[i].children.length > 0) {\r\n for (let j = 0; j < list[i].children.length; j++) {\r\n children.push({\r\n label: list[i].children[j].name,\r\n value: list[i].children[j].id,\r\n });\r\n }\r\n }\r\n this.productCateOptions.push({\r\n label: list[i].name,\r\n value: list[i].id,\r\n children: children,\r\n });\r\n }\r\n });\r\n },\r\n handleShowSkuEditDialog(index, row) {\r\n this.editSkuInfo.dialogVisible = true;\r\n this.editSkuInfo.productId = row.id;\r\n this.editSkuInfo.productSn = row.productSn;\r\n this.editSkuInfo.productAttributeCategoryId =\r\n row.productAttributeCategoryId;\r\n this.editSkuInfo.keyword = null;\r\n fetchSkuStockList(row.id, { keyword: this.editSkuInfo.keyword }).then(\r\n (response) => {\r\n this.editSkuInfo.stockList = response.data;\r\n }\r\n );\r\n if (row.productAttributeCategoryId != null) {\r\n fetchProductAttrList(row.productAttributeCategoryId, { type: 0 }).then(\r\n (response) => {\r\n this.editSkuInfo.productAttr = response.data.list;\r\n }\r\n );\r\n }\r\n },\r\n handleSearchEditSku() {\r\n fetchSkuStockList(this.editSkuInfo.productId, {\r\n keyword: this.editSkuInfo.keyword,\r\n }).then((response) => {\r\n this.editSkuInfo.stockList = response.data;\r\n });\r\n },\r\n handleEditSkuConfirm() {\r\n if (\r\n this.editSkuInfo.stockList == null ||\r\n this.editSkuInfo.stockList.length <= 0\r\n ) {\r\n this.$message({\r\n message: \"暂无sku信息\",\r\n type: \"warning\",\r\n duration: 1000,\r\n });\r\n return;\r\n }\r\n this.$confirm(\"是否要进行修改\", \"提示\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\",\r\n }).then(() => {\r\n updateSkuStockList(\r\n this.editSkuInfo.productId,\r\n this.editSkuInfo.stockList\r\n ).then((response) => {\r\n this.$message({\r\n message: \"修改成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n this.editSkuInfo.dialogVisible = false;\r\n });\r\n });\r\n },\r\n handleSearchList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\r\n },\r\n handleAddProduct() {\r\n this.$router.push({ path: \"/pms/addProduct\" });\r\n },\r\n handleDownloadStock() {\r\n Export(\r\n this,\r\n {\r\n url: \"/api-mall-admin/export/productExport\",\r\n fileName: \"库存列表.xls\",\r\n method: \"get\",\r\n params: { ...this.listQuery },\r\n },\r\n \"您确定导出库存?\"\r\n );\r\n },\r\n handleDownloadProductStock() {\r\n Export(\r\n this,\r\n {\r\n url: \"/api-mall-admin/export/productStockRecordExport\",\r\n fileName: \"进货清单.xls\",\r\n method: \"get\",\r\n params: { ...this.listQuery },\r\n },\r\n \"您确定导出进货清单?\"\r\n );\r\n },\r\n handleBatchOperate() {\r\n if (this.operateType == null) {\r\n this.$message({\r\n message: \"请选择操作类型\",\r\n type: \"warning\",\r\n duration: 1000,\r\n });\r\n return;\r\n }\r\n if (this.multipleSelection == null || this.multipleSelection.length < 1) {\r\n this.$message({\r\n message: \"请选择要操作的商品\",\r\n type: \"warning\",\r\n duration: 1000,\r\n });\r\n return;\r\n }\r\n this.$confirm(\"是否要进行该批量操作?\", \"提示\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\",\r\n }).then(() => {\r\n let ids = [];\r\n for (let i = 0; i < this.multipleSelection.length; i++) {\r\n ids.push(this.multipleSelection[i].id);\r\n }\r\n ids = ids.join(\",\");\r\n switch (this.operateType) {\r\n case this.operates[0].value:\r\n this.updatePublishStatus(1, ids);\r\n break;\r\n case this.operates[1].value:\r\n this.updatePublishStatus(0, ids);\r\n break;\r\n case this.operates[2].value:\r\n this.updateRecommendStatus(1, ids);\r\n break;\r\n case this.operates[3].value:\r\n this.updateRecommendStatus(0, ids);\r\n break;\r\n case this.operates[4].value:\r\n this.updateNewStatus(1, ids);\r\n break;\r\n case this.operates[5].value:\r\n this.updateNewStatus(0, ids);\r\n break;\r\n case this.operates[6].value:\r\n break;\r\n case this.operates[7].value:\r\n this.updateDeleteStatus(1, ids);\r\n break;\r\n default:\r\n break;\r\n }\r\n this.getList();\r\n });\r\n },\r\n handleSizeChange(val) {\r\n this.listQuery.pageNum = 1;\r\n this.listQuery.pageSize = val;\r\n this.getList();\r\n },\r\n handleCurrentChange(val) {\r\n this.listQuery.pageNum = val;\r\n this.getList();\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val;\r\n },\r\n handlePublishStatusChange(index, row) {\r\n let ids = [];\r\n ids.push(row.id);\r\n ids = ids.join(\",\");\r\n this.updatePublishStatus(row.publishStatus, ids);\r\n },\r\n handleNewStatusChange(index, row) {\r\n let ids = [];\r\n ids.push(row.id);\r\n ids = ids.join(\",\");\r\n\r\n this.updateNewStatus(row.newStatus, ids);\r\n },\r\n handleRecommendStatusChange(index, row) {\r\n let ids = [];\r\n ids.push(row.id);\r\n ids = ids.join(\",\");\r\n this.updateRecommendStatus(row.recommandStatus, ids);\r\n },\r\n handleResetSearch() {\r\n this.selectProductCateValue = [];\r\n this.listQuery = Object.assign({}, defaultListQuery);\r\n },\r\n handleDelete(index, row) {\r\n this.$confirm(\"是否要进行删除操作?\", \"提示\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\",\r\n }).then(() => {\r\n let ids = [];\r\n ids.push(row.id);\r\n ids = ids.join(\",\");\r\n this.updateDeleteStatus(1, ids);\r\n });\r\n },\r\n handleUpdateProduct(index, row) {\r\n this.$router.push({ path: \"/pms/updateProduct\", query: { id: row.id } });\r\n },\r\n handleShowProduct(index, row) {\r\n this.$router.push({ path: \"/pms/detailProduct\", query: { id: row.id } });\r\n // console.log(\"handleShowProduct\",row);\r\n },\r\n handleShowVerifyDetail(index, row) {\r\n console.log(\"handleShowVerifyDetail\", row);\r\n },\r\n handleShowPurchase(row) {\r\n this.$router.push({ path: \"/pms/purchaseList\", query: { id: row.id, name: row.name } });\r\n },\r\n handleShowLog(index, row) {\r\n console.log(\"handleShowLog\", row);\r\n },\r\n updatePublishStatus(publishStatus, ids) {\r\n let obj = {\r\n ids,\r\n publishStatus,\r\n };\r\n updatePublishStatus(obj).then((response) => {\r\n this.$message({\r\n message: \"修改成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n });\r\n },\r\n updateNewStatus(newStatus, ids) {\r\n let obj = {\r\n ids,\r\n newStatus,\r\n };\r\n updateNewStatus(obj).then((response) => {\r\n this.$message({\r\n message: \"修改成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n });\r\n },\r\n updateRecommendStatus(recommendStatus, ids) {\r\n let obj = {\r\n ids,\r\n recommendStatus,\r\n };\r\n\r\n updateRecommendStatus(obj).then((response) => {\r\n this.$message({\r\n message: \"修改成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n });\r\n },\r\n updateDeleteStatus(deleteStatus, ids) {\r\n let obj = {\r\n ids,\r\n deleteStatus,\r\n };\r\n\r\n updateDeleteStatus(obj).then((response) => {\r\n this.$message({\r\n message: \"删除成功\",\r\n type: \"success\",\r\n duration: 1000,\r\n });\r\n });\r\n this.getList();\r\n },\r\n },\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n::v-deep.el-select--small {\r\n width: 203px !important;\r\n}\r\n\r\n.number-input {\r\n input {\r\n text-align: left;\r\n }\r\n\r\n width: 100%;\r\n}\r\n.table-btn-group {\r\n .el-button {\r\n margin: 5px 3px;\r\n }\r\n\r\n}\r\n</style>\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/product/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"filter-container\",attrs:{\"shadow\":\"never\"}},[_c('div',[_c('i',{staticClass:\"el-icon-search\"}),_vm._v(\" \"),_c('span',[_vm._v(\"筛选搜索\")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleSearchList()}}},[_vm._v(\"\\n 查询结果\\n \")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\",\"margin-right\":\"15px\"},attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.handleResetSearch()}}},[_vm._v(\"\\n 重置\\n \")])],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.listQuery,\"size\":\"small\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"输入搜索:\"}},[_c('el-input',{staticStyle:{\"width\":\"203px\"},attrs:{\"placeholder\":\"商品名称\"},model:{value:(_vm.listQuery.keyword),callback:function ($$v) {_vm.$set(_vm.listQuery, \"keyword\", $$v)},expression:\"listQuery.keyword\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"商品货号:\"}},[_c('el-input',{staticStyle:{\"width\":\"203px\"},attrs:{\"placeholder\":\"商品货号\"},model:{value:(_vm.listQuery.productSn),callback:function ($$v) {_vm.$set(_vm.listQuery, \"productSn\", $$v)},expression:\"listQuery.productSn\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"商品分类:\"}},[_c('el-cascader',{attrs:{\"clearable\":\"\",\"options\":_vm.productCateOptions},model:{value:(_vm.selectProductCateValue),callback:function ($$v) {_vm.selectProductCateValue=$$v},expression:\"selectProductCateValue\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"商品品牌:\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择品牌\",\"clearable\":\"\"},model:{value:(_vm.listQuery.brandId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"brandId\", $$v)},expression:\"listQuery.brandId\"}},_vm._l((_vm.brandOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"上架状态:\"}},[_c('el-select',{attrs:{\"placeholder\":\"全部\",\"clearable\":\"\"},model:{value:(_vm.listQuery.publishStatus),callback:function ($$v) {_vm.$set(_vm.listQuery, \"publishStatus\", $$v)},expression:\"listQuery.publishStatus\"}},_vm._l((_vm.publishStatusOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"是否缺货\"}},[_c('el-select',{staticStyle:{},attrs:{\"placeholder\":\"是否缺货\",\"clearable\":\"\"},model:{value:(_vm.listQuery.stock),callback:function ($$v) {_vm.$set(_vm.listQuery, \"stock\", $$v)},expression:\"listQuery.stock\"}},_vm._l((_vm.stockOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1)],1)],1)]),_vm._v(\" \"),_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('div',{staticClass:\"btn-add\"},[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleAddProduct()}}},[_vm._v(\"\\n 添加\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleDownloadStock()}}},[_vm._v(\"\\n 导出库存\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleDownloadProductStock()}}},[_vm._v(\"\\n 导出进货清单\\n \")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"productTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"60\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"编号\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"商品图片\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('img',{staticStyle:{\"height\":\"80px\"},attrs:{\"src\":scope.row.pic}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"商品名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.name))]),_vm._v(\" \"),_c('p',[_vm._v(\"品牌:\"+_vm._s(scope.row.brandName))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"价格/货号\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(\"价格:¥\"+_vm._s(scope.row.price))]),_vm._v(\" \"),_c('p',[_vm._v(\"货号:\"+_vm._s(scope.row.productSn))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"标签\",\"width\":\"140\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(\"\\n 上架:\\n \"),_c('el-switch',{attrs:{\"active-value\":1,\"inactive-value\":0},on:{\"change\":function($event){_vm.handlePublishStatusChange(scope.$index, scope.row)}},model:{value:(scope.row.publishStatus),callback:function ($$v) {_vm.$set(scope.row, \"publishStatus\", $$v)},expression:\"scope.row.publishStatus\"}})],1),_vm._v(\" \"),_c('p',[_vm._v(\"\\n 推荐:\\n \"),_c('el-switch',{attrs:{\"active-value\":1,\"inactive-value\":0},on:{\"change\":function($event){_vm.handleRecommendStatusChange(scope.$index, scope.row)}},model:{value:(scope.row.recommandStatus),callback:function ($$v) {_vm.$set(scope.row, \"recommandStatus\", $$v)},expression:\"scope.row.recommandStatus\"}})],1)]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"排序\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.sort))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"SKU库存\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-edit\",\"circle\":\"\"},on:{\"click\":function($event){_vm.handleShowSkuEditDialog(scope.$index, scope.row)}}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"销量\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.sale))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"220\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',{staticClass:\"table-btn-group\"},[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleShowProduct(scope.$index, scope.row)}}},[_vm._v(\"查看\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleUpdateProduct(scope.$index, scope.row)}}},[_vm._v(\"编辑\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){_vm.handleDelete(scope.$index, scope.row)}}},[_vm._v(\"删除\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleShowPurchase(scope.row)}}},[_vm._v(\"进货清单\\n \")])],1),_vm._v(\" \"),_c('p')]}}])})],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"total, sizes,prev, pager, next,jumper\",\"page-size\":_vm.listQuery.pageSize,\"page-sizes\":[5, 10, 15],\"current-page\":_vm.listQuery.pageNum,\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){_vm.$set(_vm.listQuery, \"pageNum\", $event)}}})],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"编辑货品信息\",\"visible\":_vm.editSkuInfo.dialogVisible,\"width\":\"60%\"},on:{\"update:visible\":function($event){_vm.$set(_vm.editSkuInfo, \"dialogVisible\", $event)}}},[_c('span',[_vm._v(\"商品货号:\")]),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(_vm.editSkuInfo.productSn))]),_vm._v(\" \"),_c('el-input',{staticStyle:{\"width\":\"50%\",\"margin-left\":\"20px\"},attrs:{\"placeholder\":\"按sku编号搜索\",\"size\":\"small\"},model:{value:(_vm.editSkuInfo.keyword),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"keyword\", $$v)},expression:\"editSkuInfo.keyword\"}},[_c('el-button',{attrs:{\"slot\":\"append\",\"icon\":\"el-icon-search\"},on:{\"click\":_vm.handleSearchEditSku},slot:\"append\"})],1),_vm._v(\" \"),_c('el-table',{staticStyle:{\"width\":\"100%\",\"margin-top\":\"20px\"},attrs:{\"data\":_vm.editSkuInfo.stockList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"SKU编号\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{model:{value:(scope.row.skuCode),callback:function ($$v) {_vm.$set(scope.row, \"skuCode\", $$v)},expression:\"scope.row.skuCode\"}})]}}])}),_vm._v(\" \"),_vm._l((_vm.editSkuInfo.productAttr),function(item,index){return _c('el-table-column',{key:item.id,attrs:{\"label\":item.name,\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.getProductSkuSp(scope.row, index))+\"\\n \")]}}])})}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"销售价格\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input-number',{staticClass:\"number-input\",attrs:{\"controls\":false,\"min\":0.01,\"max\":999999,\"precision\":2,\"type\":\"number\"},model:{value:(scope.row.price),callback:function ($$v) {_vm.$set(scope.row, \"price\", $$v)},expression:\"scope.row.price\"}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"内部库存\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.internalStock)+\"\\n \")]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"税务库存\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.taxStock)+\"\\n \")]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"库存预警值\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input-number',{staticClass:\"number-input\",attrs:{\"controls\":false,\"min\":0,\"max\":999999,\"precision\":0,\"type\":\"number\"},model:{value:(scope.row.lowStock),callback:function ($$v) {_vm.$set(scope.row, \"lowStock\", $$v)},expression:\"scope.row.lowStock\"}})]}}])})],2),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.editSkuInfo.dialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.handleEditSkuConfirm}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-df44d578\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/pms/product/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-df44d578\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-df44d578\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-df44d578\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/pms/product/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|