此操作会覆盖商品的库存数量,请谨慎使用!
\",\n // onOk: () => {\n // synchStocks(ids).then((res) => {\n // this.datanew = [];\n // this.getList();\n // this.$Message.success(res.msg);\n // });\n // },\n // onCancel: () => {\n // this.$Message.info(\"已取消\");\n // },\n // });\n // }\n // },\n stockChange: function stockChange(stock) {\n var _this4 = this;\n\n this.orderList.forEach(function (item) {\n if (_this4.goodsId == item.id) {\n item.branch_stock = stock;\n }\n });\n },\n // 库存管理\n stockControl: function stockControl(row) {\n this.goodsId = row.id;\n this.$refs.stock.modals = true;\n this.$refs.stock.productAttrs(row);\n },\n //跳转刷新\n getPath: function getPath() {\n this.formValidate.page = 1;\n this.formValidate.type = this.$route.query.type.toString();\n this.getList();\n },\n // 上下架\n changeSwitch: function changeSwitch(row) {\n var _this5 = this;\n\n setShowApi(row.id, row.is_show).then(function (res) {\n _this5.$Message.success(res.msg);\n\n _this5.getHeader();\n\n _this5.allReset();\n }).catch(function (res) {\n _this5.$Message.error(res.msg);\n });\n },\n //获取列表\n getList: function getList() {\n var _this6 = this;\n\n this.loading = true;\n productListInfo(this.formValidate).then(function (res) {\n _this6.orderList = res.data.list;\n _this6.total = res.data.count;\n _this6.loading = false;\n\n _this6.$nextTick(function () {\n if (this.isAll == 1) {\n if (this.isCheckBox) {\n this.$refs.xTable.setAllCheckboxRow(true);\n } else {\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n } else {\n var obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n\n if (!this.checkUidList.length || this.checkUidList.length <= obj.length) {\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }\n });\n }).catch(function (err) {\n _this6.loading = false;\n\n _this6.$Message.error(err.msg);\n });\n },\n //头部列表\n getHeader: function getHeader() {\n var _this7 = this;\n\n this.loading = true;\n productHeaderInfo(this.formValidate).then(function (res) {\n _this7.headerList = res.data.list;\n\n if (_this7.$route.fullPath === \"\".concat(Setting.routePre, \"/product/index?type=5\")) {\n _this7.getPath();\n } else {\n _this7.getList();\n }\n });\n },\n // 商品分类;\n goodsCategory: function goodsCategory() {\n var _this8 = this;\n\n cascaderList(1).then(function (res) {\n _this8.cateData = res.data;\n }).catch(function (res) {\n _this8.$Message.error(res.msg);\n });\n },\n //详情\n detail: function detail(id) {\n // this.goodsId = id;\n // this.isProductBox = true;\n this.detailsVisible = true;\n this.productId = id;\n },\n // 编辑\n edit: function edit(row) {\n this.$router.push({\n path: Setting.routePre + \"/product/edit_product/\" + row.id\n });\n },\n // 编辑\n reply: function reply(id) {\n this.$router.push({\n path: Setting.routePre + '/product/product_reply?id=' + id\n });\n },\n // 删除\n del: function del(row, num) {\n var _this9 = this;\n\n var delfromData = {\n title: row.is_del ? '恢复商品' : '移入回收站',\n num: num,\n url: \"product/product/\".concat(row.id),\n method: \"DELETE\",\n ids: \"\",\n tips: row.is_del ? '确定恢复商品吗' : '确定移入回收站吗'\n };\n this.$modalSure(delfromData).then(function (res) {\n _this9.$Message.success(res.msg);\n\n _this9.orderList.splice(num, 1);\n\n _this9.getHeader();\n }).catch(function (res) {\n _this9.$Message.error(res.msg);\n });\n },\n // 复制\n copy: function copy(row) {\n this.$router.push({\n path: \"\".concat(Setting.routePre, \"/product/edit_product/\"),\n query: {\n copy: row.id\n }\n });\n },\n //搜索\n search: function search() {\n console.log('454545');\n this.allReset();\n this.formValidate.page = 1;\n this.getHeader();\n },\n //重置\n reset: function reset() {\n this.formValidate.page = 1;\n this.formValidate.show_type = '';\n this.formValidate.store_name = \"\";\n this.formValidate.cate_id = \"\";\n this.getHeader();\n },\n //切换头部列表\n onClickTab: function onClickTab(e) {\n this.allReset();\n this.formValidate.type = e;\n this.formValidate.page = 1;\n this.getList();\n this.getHeader();\n },\n //分页\n pageChange: function pageChange(page) {\n this.formValidate.page = page.currentPage;\n this.getList();\n }\n }\n};",null]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1730267592589},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["import _regeneratorRuntime from \"D:\\\\project\\\\admin.jiuhaosh.cn\\\\view\\\\store\\\\node_modules\\\\@babel\\\\runtime/regenerator\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Setting from \"@/setting\";\nimport { mapState } from \"vuex\";\nimport goodsDetail from \"../components/goods_detail.vue\";\nimport stockEdit from \"../components/stockEdit.vue\";\nimport productDetails from '../components/productDetails.vue';\nimport batchSet from '../components/batchSet.vue';\nimport { productListInfo, productHeaderInfo, cascaderList, setShowApi, synchStocks, productShowApi, productUnshowApi } from \"@/api/product.js\";\nimport { erpConfig } from \"@/api/erp\";\nimport { getPrinterList as _getPrinterList } from '@/api/setting';\nexport default {\n name: \"index\",\n components: {\n goodsDetail: goodsDetail,\n stockEdit: stockEdit,\n productDetails: productDetails,\n batchSet: batchSet\n },\n data: function data() {\n return {\n printlist: [],\n routePre: Setting.routePre,\n props: {\n emitPath: false,\n multiple: true,\n checkStrictly: true\n },\n openErp: false,\n goodsId: \"\",\n headerList: [],\n total: 0,\n loading: false,\n orderList: [],\n formValidate: {\n show_type: '',\n store_name: \"\",\n cate_id: \"\",\n type: \"1\",\n page: 1,\n limit: 15\n },\n // datanew: [],\n // dataid: [],\n product_status: 1,\n detailsVisible: false,\n productId: 0,\n isAll: 0,\n isCheckBox: false,\n checkUidList: [],\n isLabel: 0,\n cateData: []\n };\n },\n watch: {\n $route: function $route() {\n if (this.$route.fullPath === \"\".concat(this.routePre, \"/product/index?type=5\")) {\n this.getPath();\n }\n }\n },\n computed: _objectSpread({}, mapState(\"store/layout\", [\"isMobile\"]), {\n labelWidth: function labelWidth() {\n return this.isMobile ? undefined : 120;\n },\n labelPosition: function labelPosition() {\n return this.isMobile ? \"top\" : \"right\";\n }\n }),\n mounted: function mounted() {\n this.goodsCategory();\n this.getHeader();\n this.getErpConfig();\n },\n methods: {\n //批量设置\n openBatch: function openBatch() {\n this.isLabel = 0;\n this.$refs.batch.checkUidList = this.checkUidList;\n this.$refs.batch.isAll = this.isAll;\n this.$refs.batch.formValidate = this.formValidate;\n this.$refs.batch.batchModal = true;\n },\n checkboxItem: function checkboxItem(e) {\n var id = parseInt(e.rowid);\n var index = this.checkUidList.indexOf(id);\n\n if (index !== -1) {\n this.checkUidList = this.checkUidList.filter(function (item) {\n return item !== id;\n });\n } else {\n this.checkUidList.push(id);\n }\n },\n checkboxAll: function checkboxAll() {\n // 获取选中当前值\n var obj2 = this.$refs.xTable.getCheckboxRecords(true); // 获取之前选中值\n\n var obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n\n if (this.isAll == 0 && this.checkUidList.length <= obj.length && !this.isCheckBox) {\n obj = [];\n }\n\n obj = obj.concat(obj2);\n var ids = [];\n obj.forEach(function (item) {\n ids.push(parseInt(item.id));\n });\n this.checkUidList = ids;\n\n if (!obj2.length) {\n this.isCheckBox = false;\n }\n },\n // 列表\n getPrinterList: function getPrinterList() {\n var _this = this;\n\n _getPrinterList(this.formValidate).then(\n /*#__PURE__*/\n function () {\n var _ref = _asyncToGenerator(\n /*#__PURE__*/\n _regeneratorRuntime.mark(function _callee(res) {\n var data;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n data = res.data;\n _this.printlist = data;\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }()).catch(function (res) {});\n },\n allPages: function allPages(e) {\n this.isAll = e;\n\n if (e == 0) {\n this.$refs.xTable.toggleAllCheckboxRow(); // this.checkboxAll();\n } else {\n if (!this.isCheckBox) {\n this.$refs.xTable.setAllCheckboxRow(true);\n this.isCheckBox = true;\n this.isAll = 1;\n } else {\n this.$refs.xTable.setAllCheckboxRow(false);\n this.isCheckBox = false;\n this.isAll = 0;\n }\n\n this.checkUidList = [];\n }\n },\n allReset: function allReset() {\n this.isAll = 0;\n this.isCheckBox = false;\n this.$refs.xTable.setAllCheckboxRow(false);\n this.checkUidList = [];\n },\n // 批量上架\n onShelves: function onShelves() {\n var _this2 = this;\n\n if (this.isAll != 1 && this.checkUidList.length === 0) {\n this.$Message.warning(\"请选择要上架的商品\");\n } else {\n var data = {\n all: this.isAll,\n ids: this.checkUidList\n };\n\n if (this.isAll == 1) {\n data.where = {\n cate_id: this.formValidate.cate_id,\n store_name: this.formValidate.store_name,\n show_type: this.formValidate.show_type,\n type: this.formValidate.type\n };\n }\n\n productShowApi(data).then(function (res) {\n _this2.$Message.success(res.msg);\n\n _this2.getHeader();\n\n _this2.allReset();\n }).catch(function (res) {\n _this2.$Message.error(res.msg);\n });\n }\n },\n // 批量下架\n onDismount: function onDismount() {\n var _this3 = this;\n\n if (this.isAll != 1 && this.checkUidList.length === 0) {\n this.$Message.warning(\"请选择要下架的商品\");\n } else {\n var data = {\n all: this.isAll,\n ids: this.checkUidList\n };\n\n if (this.isAll == 1) {\n data.where = {\n cate_id: this.formValidate.cate_id,\n store_name: this.formValidate.store_name,\n show_type: this.formValidate.show_type,\n type: this.formValidate.type\n };\n }\n\n productUnshowApi(data).then(function (res) {\n _this3.$Message.success(res.msg);\n\n _this3.getHeader();\n\n _this3.allReset();\n }).catch(function (res) {\n _this3.$Message.error(res.msg);\n });\n }\n },\n //erp配置\n getErpConfig: function getErpConfig() {\n var _this4 = this;\n\n erpConfig().then(function (res) {\n _this4.openErp = res.data.open_erp;\n _this4.product_status = res.data.product_status;\n }).catch(function (err) {\n _this4.$Message.error(err.msg);\n });\n },\n // setStock() {\n // if (this.datanew.length == 0) {\n // this.$Message.warning(\"请选择要同步的商品\");\n // } else {\n // console.log(this.dataid);\n // let a = [];\n // a = this.dataid.join(\",\");\n //\n // let ids = { ids: [] };\n // ids.ids = this.dataid;\n // this.$Modal.confirm({\n // title: \"同步库存\",\n // content: \"此操作会覆盖商品的库存数量,请谨慎使用!
\",\n // onOk: () => {\n // synchStocks(ids).then((res) => {\n // this.datanew = [];\n // this.getList();\n // this.$Message.success(res.msg);\n // });\n // },\n // onCancel: () => {\n // this.$Message.info(\"已取消\");\n // },\n // });\n // }\n // },\n stockChange: function stockChange(stock) {\n var _this5 = this;\n\n this.orderList.forEach(function (item) {\n if (_this5.goodsId == item.id) {\n item.branch_stock = stock;\n }\n });\n },\n // 库存管理\n stockControl: function stockControl(row) {\n this.goodsId = row.id;\n this.$refs.stock.modals = true;\n this.$refs.stock.productAttrs(row);\n },\n //跳转刷新\n getPath: function getPath() {\n this.formValidate.page = 1;\n this.formValidate.type = this.$route.query.type.toString();\n this.getList();\n },\n // 上下架\n changeSwitch: function changeSwitch(row) {\n var _this6 = this;\n\n setShowApi(row.id, row.is_show).then(function (res) {\n _this6.$Message.success(res.msg);\n\n _this6.getHeader();\n\n _this6.allReset();\n }).catch(function (res) {\n _this6.$Message.error(res.msg);\n });\n },\n //获取列表\n getList: function getList() {\n var _this7 = this;\n\n this.loading = true;\n productListInfo(this.formValidate).then(function (res) {\n _this7.orderList = res.data.list;\n _this7.total = res.data.count;\n _this7.loading = false;\n\n _this7.$nextTick(function () {\n if (this.isAll == 1) {\n if (this.isCheckBox) {\n this.$refs.xTable.setAllCheckboxRow(true);\n } else {\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n } else {\n var obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n\n if (!this.checkUidList.length || this.checkUidList.length <= obj.length) {\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }\n });\n }).catch(function (err) {\n _this7.loading = false;\n\n _this7.$Message.error(err.msg);\n });\n },\n //头部列表\n getHeader: function getHeader() {\n var _this8 = this;\n\n this.loading = true;\n productHeaderInfo(this.formValidate).then(function (res) {\n _this8.headerList = res.data.list;\n\n if (_this8.$route.fullPath === \"\".concat(Setting.routePre, \"/product/index?type=5\")) {\n _this8.getPath();\n } else {\n _this8.getList();\n }\n });\n },\n // 商品分类;\n goodsCategory: function goodsCategory() {\n var _this9 = this;\n\n cascaderList(1).then(function (res) {\n _this9.cateData = res.data;\n }).catch(function (res) {\n _this9.$Message.error(res.msg);\n });\n },\n //详情\n detail: function detail(id) {\n // this.goodsId = id;\n // this.isProductBox = true;\n this.detailsVisible = true;\n this.productId = id;\n },\n // 编辑\n edit: function edit(row) {\n this.$router.push({\n path: Setting.routePre + \"/product/edit_product/\" + row.id\n });\n },\n // 编辑\n reply: function reply(id) {\n this.$router.push({\n path: Setting.routePre + '/product/product_reply?id=' + id\n });\n },\n // 删除\n del: function del(row, num) {\n var _this10 = this;\n\n var delfromData = {\n title: row.is_del ? '恢复商品' : '移入回收站',\n num: num,\n url: \"product/product/\".concat(row.id),\n method: \"DELETE\",\n ids: \"\",\n tips: row.is_del ? '确定恢复商品吗' : '确定移入回收站吗'\n };\n this.$modalSure(delfromData).then(function (res) {\n _this10.$Message.success(res.msg);\n\n _this10.orderList.splice(num, 1);\n\n _this10.getHeader();\n }).catch(function (res) {\n _this10.$Message.error(res.msg);\n });\n },\n // 复制\n copy: function copy(row) {\n this.$router.push({\n path: \"\".concat(Setting.routePre, \"/product/edit_product/\"),\n query: {\n copy: row.id\n }\n });\n },\n //搜索\n search: function search() {\n console.log('454545');\n this.allReset();\n this.formValidate.page = 1;\n this.getHeader();\n },\n //重置\n reset: function reset() {\n this.formValidate.page = 1;\n this.formValidate.show_type = '';\n this.formValidate.store_name = \"\";\n this.formValidate.cate_id = \"\";\n this.getHeader();\n },\n //切换头部列表\n onClickTab: function onClickTab(e) {\n this.allReset();\n this.formValidate.type = e;\n this.formValidate.page = 1;\n this.getList();\n this.getHeader();\n },\n //分页\n pageChange: function pageChange(page) {\n this.formValidate.page = page.currentPage;\n this.getList();\n }\n }\n};",null]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/babel-loader/f8f2a99cab56c93723737984cadde7fd.json b/view/store/node_modules/.cache/babel-loader/f8f2a99cab56c93723737984cadde7fd.json index 9f3b90462..ca61eb163 100644 --- a/view/store/node_modules/.cache/babel-loader/f8f2a99cab56c93723737984cadde7fd.json +++ b/view/store/node_modules/.cache/babel-loader/f8f2a99cab56c93723737984cadde7fd.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730104101667},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { cascaderList, productGetTemplateApi, allSystemForm, batchProcess } from '@/api/product';\nimport { getPrinterList, systemFormInfo } from '@/api/setting';\nexport default {\n data: function data() {\n return {\n props: {\n emitPath: false,\n multiple: true,\n checkStrictly: true\n },\n batchModal: false,\n menuActive: 1,\n data1: [],\n templateList: [],\n printlist: [],\n customBtn: false,\n formList: [],\n formTypeList: [],\n formColumns: [{\n title: '表单标题',\n key: 'title',\n // align:'center',\n minWidth: 100\n }, {\n title: '表单类型',\n key: 'name',\n // align:'center',\n minWidth: 100\n }, {\n title: '是否必填',\n slot: 'require',\n // align:'center',\n minWidth: 100\n }],\n batchData: {\n show_type: 0,\n system_form_id: 0,\n //自定义表单id\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0\n },\n checkUidList: [],\n isAll: 0,\n formValidate: {}\n };\n },\n created: function created() {\n this.allFormList();\n this.printerList();\n },\n mounted: function mounted() {\n this.goodsCategory();\n this.productGetTemplate();\n },\n methods: {\n cancelBatch: function cancelBatch() {\n this.batchModal = false;\n },\n saveBatch: function saveBatch() {\n var _this = this;\n\n if (this.customBtn && this.batchData.system_form_id == 0) {\n return this.$Message.warning('请选择自定义表单模板');\n }\n\n var data = {\n type: this.menuActive,\n ids: this.checkUidList,\n all: this.isAll,\n where: this.formValidate,\n data: this.batchData\n };\n batchProcess(data).then(function (res) {\n _this.$Message.success(res.msg);\n\n _this.batchModal = false;\n }).catch(function (res) {\n _this.$Message.error(res.msg);\n });\n },\n changeForm: function changeForm(e) {\n this.getSystemFormInfo(e, {\n type: 1\n });\n },\n getSystemFormInfo: function getSystemFormInfo(e, data) {\n var _this2 = this;\n\n systemFormInfo(e, data).then(function (res) {\n _this2.formTypeList = res.data.info;\n }).catch(function (err) {\n _this2.$Message.error(err.msg);\n });\n },\n allFormList: function allFormList() {\n var _this3 = this;\n\n allSystemForm().then(function (res) {\n _this3.formList = res.data;\n }).catch(function (err) {\n _this3.$Message.error(err.msg);\n });\n },\n // 获取运费模板;\n productGetTemplate: function productGetTemplate() {\n var _this4 = this;\n\n productGetTemplateApi().then(function (res) {\n _this4.templateList = res.data;\n });\n },\n printerList: function printerList() {\n var _this5 = this;\n\n this.loading = true;\n getPrinterList({\n page: 1,\n limit: 100\n }).then(function (res) {\n var _res$data = res.data,\n list = _res$data.list,\n count = _res$data.count;\n _this5.printlist = list;\n _this5.total = count;\n _this5.loading = false;\n }).catch(function (err) {\n _this5.$Message.error(err.msg);\n });\n },\n // 商品分类;\n goodsCategory: function goodsCategory() {\n var _this6 = this;\n\n cascaderList(1).then(function (res) {\n _this6.data1 = res.data;\n }).catch(function (res) {\n _this6.$Message.error(res.msg);\n });\n },\n customMessBtn: function customMessBtn(e) {\n if (!e) {\n this.batchData.system_form_id = 0;\n }\n },\n menuSelect: function menuSelect(name) {\n this.menuActive = name;\n },\n batchVisibleChange: function batchVisibleChange() {\n this.batchData = {\n show_type: 0,\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\n system_form_id: 0\n };\n this.storeDataLabel = [];\n this.couponName = [];\n this.dataLabel = [];\n this.menuActive = 9;\n }\n }\n};",null]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730105392137},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { cascaderList, productGetTemplateApi, allSystemForm, batchProcess } from '@/api/product';\nimport { getPrinterList, systemFormInfo } from '@/api/setting';\nexport default {\n data: function data() {\n return {\n props: {\n emitPath: false,\n multiple: true,\n checkStrictly: true\n },\n batchModal: false,\n menuActive: 1,\n data1: [],\n templateList: [],\n printlist: [],\n customBtn: false,\n formList: [],\n formTypeList: [],\n formColumns: [{\n title: '表单标题',\n key: 'title',\n // align:'center',\n minWidth: 100\n }, {\n title: '表单类型',\n key: 'name',\n // align:'center',\n minWidth: 100\n }, {\n title: '是否必填',\n slot: 'require',\n // align:'center',\n minWidth: 100\n }],\n batchData: {\n show_type: 0,\n system_form_id: 0,\n //自定义表单id\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\n printset: []\n },\n checkUidList: [],\n isAll: 0,\n formValidate: {}\n };\n },\n created: function created() {\n this.allFormList();\n this.printerList();\n },\n mounted: function mounted() {\n this.goodsCategory();\n this.productGetTemplate();\n },\n methods: {\n cancelBatch: function cancelBatch() {\n this.batchModal = false;\n },\n saveBatch: function saveBatch() {\n var _this = this;\n\n if (this.customBtn && this.batchData.system_form_id == 0) {\n return this.$Message.warning('请选择自定义表单模板');\n }\n\n var data = {\n type: this.menuActive,\n ids: this.checkUidList,\n all: this.isAll,\n where: this.formValidate,\n data: this.batchData\n };\n batchProcess(data).then(function (res) {\n _this.$Message.success(res.msg);\n\n _this.batchModal = false;\n }).catch(function (res) {\n _this.$Message.error(res.msg);\n });\n },\n changeForm: function changeForm(e) {\n this.getSystemFormInfo(e, {\n type: 1\n });\n },\n getSystemFormInfo: function getSystemFormInfo(e, data) {\n var _this2 = this;\n\n systemFormInfo(e, data).then(function (res) {\n _this2.formTypeList = res.data.info;\n }).catch(function (err) {\n _this2.$Message.error(err.msg);\n });\n },\n allFormList: function allFormList() {\n var _this3 = this;\n\n allSystemForm().then(function (res) {\n _this3.formList = res.data;\n }).catch(function (err) {\n _this3.$Message.error(err.msg);\n });\n },\n // 获取运费模板;\n productGetTemplate: function productGetTemplate() {\n var _this4 = this;\n\n productGetTemplateApi().then(function (res) {\n _this4.templateList = res.data;\n });\n },\n printerList: function printerList() {\n var _this5 = this;\n\n this.loading = true;\n getPrinterList({\n page: 1,\n limit: 100\n }).then(function (res) {\n var _res$data = res.data,\n list = _res$data.list,\n count = _res$data.count;\n _this5.printlist = list;\n _this5.total = count;\n _this5.loading = false;\n }).catch(function (err) {\n _this5.$Message.error(err.msg);\n });\n },\n // 商品分类;\n goodsCategory: function goodsCategory() {\n var _this6 = this;\n\n cascaderList(1).then(function (res) {\n _this6.data1 = res.data;\n }).catch(function (res) {\n _this6.$Message.error(res.msg);\n });\n },\n customMessBtn: function customMessBtn(e) {\n if (!e) {\n this.batchData.system_form_id = 0;\n }\n },\n menuSelect: function menuSelect(name) {\n this.menuActive = name;\n },\n batchVisibleChange: function batchVisibleChange() {\n this.batchData = {\n show_type: 0,\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\n system_form_id: 0\n };\n this.storeDataLabel = [];\n this.couponName = [];\n this.dataLabel = [];\n this.menuActive = 9;\n }\n }\n};",null]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/eslint-loader/0d3dbcbb14fea48b9f5882cca97bb727b99fb521.json.gz b/view/store/node_modules/.cache/eslint-loader/0d3dbcbb14fea48b9f5882cca97bb727b99fb521.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/0d3dbcbb14fea48b9f5882cca97bb727b99fb521.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/2187afa12953cd5b04717f3d8ed6c788789eac6d.json.gz b/view/store/node_modules/.cache/eslint-loader/2187afa12953cd5b04717f3d8ed6c788789eac6d.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/2187afa12953cd5b04717f3d8ed6c788789eac6d.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/24ca2556ae638257389bc5c194ceacc684360b21.json.gz b/view/store/node_modules/.cache/eslint-loader/24ca2556ae638257389bc5c194ceacc684360b21.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/24ca2556ae638257389bc5c194ceacc684360b21.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/5228638a809eb638f28809fc8fdb26c37245ca60.json.gz b/view/store/node_modules/.cache/eslint-loader/5228638a809eb638f28809fc8fdb26c37245ca60.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/5228638a809eb638f28809fc8fdb26c37245ca60.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/54ffb62c140fe29e8ea5d8a5d3388f284fed9f70.json.gz b/view/store/node_modules/.cache/eslint-loader/54ffb62c140fe29e8ea5d8a5d3388f284fed9f70.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/54ffb62c140fe29e8ea5d8a5d3388f284fed9f70.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/5e5876c14621bd619ac77941f5c33c1cc16535c8.json.gz b/view/store/node_modules/.cache/eslint-loader/5e5876c14621bd619ac77941f5c33c1cc16535c8.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/5e5876c14621bd619ac77941f5c33c1cc16535c8.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/a4f796765658f85deb938a968f9bc3446620b8b0.json.gz b/view/store/node_modules/.cache/eslint-loader/a4f796765658f85deb938a968f9bc3446620b8b0.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/a4f796765658f85deb938a968f9bc3446620b8b0.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/a76975a088a71a45bc4e6cff4a32eff520c2b19f.json.gz b/view/store/node_modules/.cache/eslint-loader/a76975a088a71a45bc4e6cff4a32eff520c2b19f.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/a76975a088a71a45bc4e6cff4a32eff520c2b19f.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/b4196a3144e017a6d214f65fb3c7b36dd53a1e1e.json.gz b/view/store/node_modules/.cache/eslint-loader/b4196a3144e017a6d214f65fb3c7b36dd53a1e1e.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/b4196a3144e017a6d214f65fb3c7b36dd53a1e1e.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/bb6d66b3cf7ee930092089d385e6974a0c228bc3.json.gz b/view/store/node_modules/.cache/eslint-loader/bb6d66b3cf7ee930092089d385e6974a0c228bc3.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/bb6d66b3cf7ee930092089d385e6974a0c228bc3.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/dd727e9d3c4dc8ad9b274b5215cbdb7aa8005ec6.json.gz b/view/store/node_modules/.cache/eslint-loader/dd727e9d3c4dc8ad9b274b5215cbdb7aa8005ec6.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/dd727e9d3c4dc8ad9b274b5215cbdb7aa8005ec6.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/e8610317b1065d53f9456ccf16ddbd1af5add868.json.gz b/view/store/node_modules/.cache/eslint-loader/e8610317b1065d53f9456ccf16ddbd1af5add868.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/e8610317b1065d53f9456ccf16ddbd1af5add868.json.gz differ diff --git a/view/store/node_modules/.cache/eslint-loader/f308700c947b7a5ebc861b54bb827725b4b067e8.json.gz b/view/store/node_modules/.cache/eslint-loader/f308700c947b7a5ebc861b54bb827725b4b067e8.json.gz new file mode 100644 index 000000000..bff4b3e45 Binary files /dev/null and b/view/store/node_modules/.cache/eslint-loader/f308700c947b7a5ebc861b54bb827725b4b067e8.json.gz differ diff --git a/view/store/node_modules/.cache/vue-loader/01d4587d55b991f44312ea3549b28e66.json b/view/store/node_modules/.cache/vue-loader/01d4587d55b991f44312ea3549b28e66.json index 3768529eb..be5e834bd 100644 --- a/view/store/node_modules/.cache/vue-loader/01d4587d55b991f44312ea3549b28e66.json +++ b/view/store/node_modules/.cache/vue-loader/01d4587d55b991f44312ea3549b28e66.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730104101667},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&\"\nimport script from \"./batchSet.vue?vue&type=script&lang=js&\"\nexport * from \"./batchSet.vue?vue&type=script&lang=js&\"\nimport style0 from \"./batchSet.vue?vue&type=style&index=0&id=6b03b52d&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6b03b52d\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\project\\\\admin.jiuhaosh.cn\\\\view\\\\store\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6b03b52d')) {\n api.createRecord('6b03b52d', component.options)\n } else {\n api.reload('6b03b52d', component.options)\n }\n module.hot.accept(\"./batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&\", function () {\n api.rerender('6b03b52d', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/pages/product/components/batchSet.vue\"\nexport default component.exports"]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730105392137},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&\"\nimport script from \"./batchSet.vue?vue&type=script&lang=js&\"\nexport * from \"./batchSet.vue?vue&type=script&lang=js&\"\nimport style0 from \"./batchSet.vue?vue&type=style&index=0&id=6b03b52d&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6b03b52d\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\project\\\\admin.jiuhaosh.cn\\\\view\\\\store\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('6b03b52d')) {\n api.createRecord('6b03b52d', component.options)\n } else {\n api.reload('6b03b52d', component.options)\n }\n module.hot.accept(\"./batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&\", function () {\n api.rerender('6b03b52d', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/pages/product/components/batchSet.vue\"\nexport default component.exports"]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/0b4c40b8d893c9af566f5575b1f22cfe.json b/view/store/node_modules/.cache/vue-loader/0b4c40b8d893c9af566f5575b1f22cfe.json index 733af7edf..09c4ffc21 100644 --- a/view/store/node_modules/.cache/vue-loader/0b4c40b8d893c9af566f5575b1f22cfe.json +++ b/view/store/node_modules/.cache/vue-loader/0b4c40b8d893c9af566f5575b1f22cfe.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730104101667},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport {\n cascaderList,\n productGetTemplateApi,\n allSystemForm,\n batchProcess\n} from '@/api/product';\r\nimport { getPrinterList,systemFormInfo } from '@/api/setting'\nexport default {\n data(){\n return {\n props: { emitPath: false, multiple: true, checkStrictly: true },\n batchModal:false,\n menuActive: 1,\n data1: [],\n templateList: [],\r\n\t printlist:[],\n customBtn: false,\n formList:[],\n formTypeList: [],\n formColumns: [\n {\n title: '表单标题',\n key: 'title',\n // align:'center',\n minWidth: 100\n },\n {\n title: '表单类型',\n key: 'name',\n // align:'center',\n minWidth: 100\n },\n {\n title: '是否必填',\n slot: 'require',\n // align:'center',\n minWidth: 100\n }\n ],\n batchData: {\n show_type:0,\n system_form_id:0,//自定义表单id\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0\n },\n\t checkUidList:[],\n\t isAll:0,\n\t formValidate:{}\n }\n },\n created(){\n this.allFormList();\r\n\tthis.printerList();\n },\n mounted(){\n this.goodsCategory();\n this.productGetTemplate();\n },\n methods: {\n\tcancelBatch() {\n\t this.batchModal = false;\n\t},\n\tsaveBatch() {\n\t if(this.customBtn && this.batchData.system_form_id == 0){\n\t return this.$Message.warning('请选择自定义表单模板');\n\t }\n\t let data = {\n\t type: this.menuActive,\n\t ids: this.checkUidList,\n\t all: this.isAll,\n\t where: this.formValidate,\n\t data: this.batchData,\n\t };\n\t batchProcess(data).then(res => {\n\t this.$Message.success(res.msg);\n\t this.batchModal = false;\n\t }).catch(res => {\n\t this.$Message.error(res.msg);\n\t });\n\t},\n changeForm(e){\n this.getSystemFormInfo(e,{type:1});\n },\n getSystemFormInfo(e,data){\n systemFormInfo(e,data).then(res=>{\n this.formTypeList = res.data.info;\n }).catch(err=>{\n this.$Message.error(err.msg);\n })\n },\n allFormList(){\n allSystemForm().then(res=>{\n this.formList = res.data;\n }).catch(err=>{\n this.$Message.error(err.msg);\n })\n },\n // 获取运费模板;\n productGetTemplate() {\n productGetTemplateApi().then((res) => {\n this.templateList = res.data;\n });\n },\r\n\tprinterList() {\r\n\t this.loading = true;\r\n\t getPrinterList({\r\n\t page: 1,\r\n\t limit: 100,\r\n\t }).then((res) => {\r\n\t let { list, count } = res.data;\r\n\t this.printlist = list;\r\n\t this.total = count;\r\n\t this.loading = false;\r\n\t }).catch(err => {\r\n\t this.$Message.error(err.msg);\r\n\t });\r\n\t},\n // 商品分类;\n goodsCategory() {\n cascaderList(1)\n .then((res) => {\n this.data1 = res.data;\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n customMessBtn(e) {\n if (!e) {\n this.batchData.system_form_id = 0;\n }\n },\n menuSelect(name) {\n this.menuActive = name;\n },\n batchVisibleChange() {\n this.batchData = {\n show_type:0,\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\n system_form_id: 0\n };\n this.storeDataLabel = [];\n this.couponName = [];\n this.dataLabel = [];\n this.menuActive = 9;\n }\n }\n}\n",null]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730105392137},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport {\n cascaderList,\n productGetTemplateApi,\n allSystemForm,\n batchProcess\n} from '@/api/product';\r\nimport { getPrinterList,systemFormInfo } from '@/api/setting'\nexport default {\n data(){\n return {\n props: { emitPath: false, multiple: true, checkStrictly: true },\n batchModal:false,\n menuActive: 1,\n data1: [],\n templateList: [],\r\n\t printlist:[],\n customBtn: false,\n formList:[],\n formTypeList: [],\n formColumns: [\n {\n title: '表单标题',\n key: 'title',\n // align:'center',\n minWidth: 100\n },\n {\n title: '表单类型',\n key: 'name',\n // align:'center',\n minWidth: 100\n },\n {\n title: '是否必填',\n slot: 'require',\n // align:'center',\n minWidth: 100\n }\n ],\n batchData: {\n show_type:0,\n system_form_id:0,//自定义表单id\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\r\n\t\tprintset:[],\n },\n\t checkUidList:[],\n\t isAll:0,\n\t formValidate:{}\n }\n },\n created(){\n this.allFormList();\r\n\tthis.printerList();\n },\n mounted(){\n this.goodsCategory();\n this.productGetTemplate();\n },\n methods: {\n\tcancelBatch() {\n\t this.batchModal = false;\n\t},\n\tsaveBatch() {\n\t if(this.customBtn && this.batchData.system_form_id == 0){\n\t return this.$Message.warning('请选择自定义表单模板');\n\t }\n\t let data = {\n\t type: this.menuActive,\n\t ids: this.checkUidList,\n\t all: this.isAll,\n\t where: this.formValidate,\n\t data: this.batchData,\n\t };\n\t batchProcess(data).then(res => {\n\t this.$Message.success(res.msg);\n\t this.batchModal = false;\n\t }).catch(res => {\n\t this.$Message.error(res.msg);\n\t });\n\t},\n changeForm(e){\n this.getSystemFormInfo(e,{type:1});\n },\n getSystemFormInfo(e,data){\n systemFormInfo(e,data).then(res=>{\n this.formTypeList = res.data.info;\n }).catch(err=>{\n this.$Message.error(err.msg);\n })\n },\n allFormList(){\n allSystemForm().then(res=>{\n this.formList = res.data;\n }).catch(err=>{\n this.$Message.error(err.msg);\n })\n },\n // 获取运费模板;\n productGetTemplate() {\n productGetTemplateApi().then((res) => {\n this.templateList = res.data;\n });\n },\r\n\tprinterList() {\r\n\t this.loading = true;\r\n\t getPrinterList({\r\n\t page: 1,\r\n\t limit: 100,\r\n\t }).then((res) => {\r\n\t let { list, count } = res.data;\r\n\t this.printlist = list;\r\n\t this.total = count;\r\n\t this.loading = false;\r\n\t }).catch(err => {\r\n\t this.$Message.error(err.msg);\r\n\t });\r\n\t},\n // 商品分类;\n goodsCategory() {\n cascaderList(1)\n .then((res) => {\n this.data1 = res.data;\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n customMessBtn(e) {\n if (!e) {\n this.batchData.system_form_id = 0;\n }\n },\n menuSelect(name) {\n this.menuActive = name;\n },\n batchVisibleChange() {\n this.batchData = {\n show_type:0,\n cate_id: [],\n delivery_type: [],\n freight: 1,\n postage: 0,\n temp_id: 0,\n system_form_id: 0\n };\n this.storeDataLabel = [];\n this.couponName = [];\n this.dataLabel = [];\n this.menuActive = 9;\n }\n }\n}\n",null]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/374f79850e7d5234df35e809af5e2f94.json b/view/store/node_modules/.cache/vue-loader/374f79850e7d5234df35e809af5e2f94.json index bf97632d6..fc533cd19 100644 --- a/view/store/node_modules/.cache/vue-loader/374f79850e7d5234df35e809af5e2f94.json +++ b/view/store/node_modules/.cache/vue-loader/374f79850e7d5234df35e809af5e2f94.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1717396015000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b77c4908&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=b77c4908&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b77c4908\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\project\\\\admin.jiuhaosh.cn\\\\view\\\\store\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('b77c4908')) {\n api.createRecord('b77c4908', component.options)\n } else {\n api.reload('b77c4908', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=b77c4908&scoped=true&\", function () {\n api.rerender('b77c4908', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/pages/product/productList/index.vue\"\nexport default component.exports"]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1730267592589},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b77c4908&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=b77c4908&scoped=true&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b77c4908\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"D:\\\\project\\\\admin.jiuhaosh.cn\\\\view\\\\store\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('b77c4908')) {\n api.createRecord('b77c4908', component.options)\n } else {\n api.reload('b77c4908', component.options)\n }\n module.hot.accept(\"./index.vue?vue&type=template&id=b77c4908&scoped=true&\", function () {\n api.rerender('b77c4908', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/pages/product/productList/index.vue\"\nexport default component.exports"]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/37e4cfb011057d85a5e35aabb59dbc60.json b/view/store/node_modules/.cache/vue-loader/37e4cfb011057d85a5e35aabb59dbc60.json index 9cb37c7d7..293bde960 100644 --- a/view/store/node_modules/.cache/vue-loader/37e4cfb011057d85a5e35aabb59dbc60.json +++ b/view/store/node_modules/.cache/vue-loader/37e4cfb011057d85a5e35aabb59dbc60.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730104233209},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\n \"Modal\",\n {\n attrs: {\n title: \"批量设置\",\n width: \"750\",\n \"class-name\": \"batch-modal\"\n },\n on: { \"on-visible-change\": _vm.batchVisibleChange },\n model: {\n value: _vm.batchModal,\n callback: function($$v) {\n _vm.batchModal = $$v\n },\n expression: \"batchModal\"\n }\n },\n [\n _c(\"Alert\", { attrs: { \"show-icon\": \"\" } }, [\n _vm._v(\"每次只能修改一项,如需修改多项,请多次操作。\")\n ]),\n _c(\n \"Row\",\n { attrs: { type: \"flex\", align: \"middle\" } },\n [\n _c(\n \"Col\",\n { attrs: { span: \"5\" } },\n [\n _c(\n \"Menu\",\n {\n attrs: { \"active-name\": _vm.menuActive, width: \"auto\" },\n on: { \"on-select\": _vm.menuSelect }\n },\n [\n _c(\"MenuItem\", { attrs: { name: 9 } }, [\n _vm._v(\"商品展示\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 1 } }, [\n _vm._v(\"商品分类\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 3 } }, [\n _vm._v(\"物流设置\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 8 } }, [\n _vm._v(\"运费设置\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 7 } }, [\n _vm._v(\"自定义留言\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 2 } }, [\n _vm._v(\"打印机设置\")\n ])\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n { attrs: { span: \"19\" } },\n [\n _c(\n \"Form\",\n { attrs: { model: _vm.batchData, \"label-width\": 122 } },\n [\n _vm.menuActive === 9\n ? _c(\n \"FormItem\",\n { attrs: { label: \"商品展示:\" } },\n [\n _c(\n \"RadioGroup\",\n {\n model: {\n value: _vm.batchData.show_type,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"show_type\", $$v)\n },\n expression: \"batchData.show_type\"\n }\n },\n [\n _c(\"Radio\", { attrs: { label: 0 } }, [\n _vm._v(\"全部\")\n ]),\n _c(\"Radio\", { attrs: { label: 1 } }, [\n _vm._v(\"移动端\")\n ]),\n _c(\"Radio\", { attrs: { label: 2 } }, [\n _vm._v(\"收银台\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 1\n ? _c(\n \"FormItem\",\n { attrs: { label: \"商品分类:\" } },\n [\n _c(\"el-cascader\", {\n class: {\n single: !_vm.batchData.cate_id.length\n },\n attrs: {\n options: _vm.data1,\n props: _vm.props,\n size: \"small\",\n filterable: \"\",\n clearable: \"\"\n },\n model: {\n value: _vm.batchData.cate_id,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"cate_id\", $$v)\n },\n expression: \"batchData.cate_id\"\n }\n })\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 3\n ? _c(\n \"FormItem\",\n { attrs: { label: \"物流方式:\" } },\n [\n _c(\n \"CheckboxGroup\",\n {\n attrs: { size: \"small\" },\n model: {\n value: _vm.batchData.delivery_type,\n callback: function($$v) {\n _vm.$set(\n _vm.batchData,\n \"delivery_type\",\n $$v\n )\n },\n expression: \"batchData.delivery_type\"\n }\n },\n [\n _c(\"Checkbox\", { attrs: { label: 3 } }, [\n _vm._v(\"门店配送\")\n ]),\n _c(\"Checkbox\", { attrs: { label: 2 } }, [\n _vm._v(\"到店自提\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 8\n ? _c(\n \"FormItem\",\n { attrs: { label: \"运费设置:\" } },\n [\n _c(\n \"RadioGroup\",\n {\n model: {\n value: _vm.batchData.freight,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"freight\", $$v)\n },\n expression: \"batchData.freight\"\n }\n },\n [\n _c(\"Radio\", { attrs: { label: 1 } }, [\n _vm._v(\"包邮\")\n ]),\n _c(\"Radio\", { attrs: { label: 2 } }, [\n _vm._v(\"固定邮费\")\n ]),\n _c(\"Radio\", { attrs: { label: 3 } }, [\n _vm._v(\"运费模板\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 2\n ? _c(\n \"FormItem\",\n { attrs: { label: \"打印机设置:\" } },\n [\n _c(\n \"CheckboxGroup\",\n {\n attrs: { size: \"small\" },\n model: {\n value: _vm.batchData.printset,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"printset\", $$v)\n },\n expression: \"batchData.printset\"\n }\n },\n _vm._l(_vm.printlist, function(item) {\n return _c(\n \"Checkbox\",\n { attrs: { label: item.id } },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 8 && _vm.batchData.freight === 2\n ? _c(\"FormItem\", [\n _c(\n \"div\",\n { staticClass: \"input-number\" },\n [\n _c(\"InputNumber\", {\n attrs: { min: 0 },\n model: {\n value: _vm.batchData.postage,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"postage\", $$v)\n },\n expression: \"batchData.postage\"\n }\n }),\n _c(\"span\", { staticClass: \"suffix\" }, [\n _vm._v(\"元\")\n ])\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm.menuActive === 8 && _vm.batchData.freight === 3\n ? _c(\n \"FormItem\",\n [\n _c(\n \"Select\",\n {\n model: {\n value: _vm.batchData.temp_id,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"temp_id\", $$v)\n },\n expression: \"batchData.temp_id\"\n }\n },\n _vm._l(_vm.templateList, function(item) {\n return _c(\n \"Option\",\n { key: item.id, attrs: { value: item.id } },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 7\n ? _c(\n \"FormItem\",\n { attrs: { label: \"自定义留言:\" } },\n [\n _c(\n \"i-switch\",\n {\n attrs: { size: \"large\" },\n on: { \"on-change\": _vm.customMessBtn },\n model: {\n value: _vm.customBtn,\n callback: function($$v) {\n _vm.customBtn = $$v\n },\n expression: \"customBtn\"\n }\n },\n [\n _c(\n \"span\",\n { attrs: { slot: \"open\" }, slot: \"open\" },\n [_vm._v(\"开启\")]\n ),\n _c(\n \"span\",\n { attrs: { slot: \"close\" }, slot: \"close\" },\n [_vm._v(\"关闭\")]\n )\n ]\n ),\n _vm.customBtn\n ? _c(\n \"div\",\n { staticClass: \"mt10\" },\n [\n _c(\n \"Select\",\n {\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\"\n },\n on: { \"on-change\": _vm.changeForm },\n model: {\n value: _vm.batchData.system_form_id,\n callback: function($$v) {\n _vm.$set(\n _vm.batchData,\n \"system_form_id\",\n $$v\n )\n },\n expression:\n \"batchData.system_form_id\"\n }\n },\n _vm._l(_vm.formList, function(\n item,\n index\n ) {\n return _c(\n \"Option\",\n {\n key: item.id,\n attrs: { value: item.id }\n },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.customBtn && _vm.batchData.system_form_id\n ? _c(\n \"div\",\n [\n _c(\"Table\", {\n ref: \"table\",\n staticClass: \"customTab\",\n attrs: {\n border: \"\",\n columns: _vm.formColumns,\n data: _vm.formTypeList,\n width: \"100%\",\n \"max-height\": \"165\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"require\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n row.require\n ? \"必填\"\n : \"不必填\"\n )\n )\n ])\n ]\n }\n }\n ],\n null,\n false,\n 469424967\n )\n })\n ],\n 1\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e()\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"div\",\n { attrs: { slot: \"footer\" }, slot: \"footer\" },\n [\n _c(\"Button\", { on: { click: _vm.cancelBatch } }, [\n _vm._v(\"取消\")\n ]),\n _c(\n \"Button\",\n { attrs: { type: \"primary\" }, on: { click: _vm.saveBatch } },\n [_vm._v(\"保存\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue?vue&type=template&id=6b03b52d&scoped=true&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\components\\batchSet.vue","mtime":1730105392137},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\n \"Modal\",\n {\n attrs: {\n title: \"批量设置\",\n width: \"750\",\n \"class-name\": \"batch-modal\"\n },\n on: { \"on-visible-change\": _vm.batchVisibleChange },\n model: {\n value: _vm.batchModal,\n callback: function($$v) {\n _vm.batchModal = $$v\n },\n expression: \"batchModal\"\n }\n },\n [\n _c(\"Alert\", { attrs: { \"show-icon\": \"\" } }, [\n _vm._v(\"每次只能修改一项,如需修改多项,请多次操作。\")\n ]),\n _c(\n \"Row\",\n { attrs: { type: \"flex\", align: \"middle\" } },\n [\n _c(\n \"Col\",\n { attrs: { span: \"5\" } },\n [\n _c(\n \"Menu\",\n {\n attrs: { \"active-name\": _vm.menuActive, width: \"auto\" },\n on: { \"on-select\": _vm.menuSelect }\n },\n [\n _c(\"MenuItem\", { attrs: { name: 9 } }, [\n _vm._v(\"商品展示\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 1 } }, [\n _vm._v(\"商品分类\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 3 } }, [\n _vm._v(\"物流设置\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 8 } }, [\n _vm._v(\"运费设置\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 7 } }, [\n _vm._v(\"自定义留言\")\n ]),\n _c(\"MenuItem\", { attrs: { name: 15 } }, [\n _vm._v(\"打印机设置\")\n ])\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n { attrs: { span: \"19\" } },\n [\n _c(\n \"Form\",\n { attrs: { model: _vm.batchData, \"label-width\": 122 } },\n [\n _vm.menuActive === 9\n ? _c(\n \"FormItem\",\n { attrs: { label: \"商品展示:\" } },\n [\n _c(\n \"RadioGroup\",\n {\n model: {\n value: _vm.batchData.show_type,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"show_type\", $$v)\n },\n expression: \"batchData.show_type\"\n }\n },\n [\n _c(\"Radio\", { attrs: { label: 0 } }, [\n _vm._v(\"全部\")\n ]),\n _c(\"Radio\", { attrs: { label: 1 } }, [\n _vm._v(\"移动端\")\n ]),\n _c(\"Radio\", { attrs: { label: 2 } }, [\n _vm._v(\"收银台\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 1\n ? _c(\n \"FormItem\",\n { attrs: { label: \"商品分类:\" } },\n [\n _c(\"el-cascader\", {\n class: {\n single: !_vm.batchData.cate_id.length\n },\n attrs: {\n options: _vm.data1,\n props: _vm.props,\n size: \"small\",\n filterable: \"\",\n clearable: \"\"\n },\n model: {\n value: _vm.batchData.cate_id,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"cate_id\", $$v)\n },\n expression: \"batchData.cate_id\"\n }\n })\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 3\n ? _c(\n \"FormItem\",\n { attrs: { label: \"物流方式:\" } },\n [\n _c(\n \"CheckboxGroup\",\n {\n attrs: { size: \"small\" },\n model: {\n value: _vm.batchData.delivery_type,\n callback: function($$v) {\n _vm.$set(\n _vm.batchData,\n \"delivery_type\",\n $$v\n )\n },\n expression: \"batchData.delivery_type\"\n }\n },\n [\n _c(\"Checkbox\", { attrs: { label: 3 } }, [\n _vm._v(\"门店配送\")\n ]),\n _c(\"Checkbox\", { attrs: { label: 2 } }, [\n _vm._v(\"到店自提\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 8\n ? _c(\n \"FormItem\",\n { attrs: { label: \"运费设置:\" } },\n [\n _c(\n \"RadioGroup\",\n {\n model: {\n value: _vm.batchData.freight,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"freight\", $$v)\n },\n expression: \"batchData.freight\"\n }\n },\n [\n _c(\"Radio\", { attrs: { label: 1 } }, [\n _vm._v(\"包邮\")\n ]),\n _c(\"Radio\", { attrs: { label: 2 } }, [\n _vm._v(\"固定邮费\")\n ]),\n _c(\"Radio\", { attrs: { label: 3 } }, [\n _vm._v(\"运费模板\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 15\n ? _c(\n \"FormItem\",\n { attrs: { label: \"打印机设置:\" } },\n [\n _c(\n \"CheckboxGroup\",\n {\n attrs: { size: \"small\" },\n model: {\n value: _vm.batchData.printset,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"printset\", $$v)\n },\n expression: \"batchData.printset\"\n }\n },\n _vm._l(_vm.printlist, function(item) {\n return _c(\n \"Checkbox\",\n { attrs: { label: item.id } },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 8 && _vm.batchData.freight === 2\n ? _c(\"FormItem\", [\n _c(\n \"div\",\n { staticClass: \"input-number\" },\n [\n _c(\"InputNumber\", {\n attrs: { min: 0 },\n model: {\n value: _vm.batchData.postage,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"postage\", $$v)\n },\n expression: \"batchData.postage\"\n }\n }),\n _c(\"span\", { staticClass: \"suffix\" }, [\n _vm._v(\"元\")\n ])\n ],\n 1\n )\n ])\n : _vm._e(),\n _vm.menuActive === 8 && _vm.batchData.freight === 3\n ? _c(\n \"FormItem\",\n [\n _c(\n \"Select\",\n {\n model: {\n value: _vm.batchData.temp_id,\n callback: function($$v) {\n _vm.$set(_vm.batchData, \"temp_id\", $$v)\n },\n expression: \"batchData.temp_id\"\n }\n },\n _vm._l(_vm.templateList, function(item) {\n return _c(\n \"Option\",\n { key: item.id, attrs: { value: item.id } },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.menuActive === 7\n ? _c(\n \"FormItem\",\n { attrs: { label: \"自定义留言:\" } },\n [\n _c(\n \"i-switch\",\n {\n attrs: { size: \"large\" },\n on: { \"on-change\": _vm.customMessBtn },\n model: {\n value: _vm.customBtn,\n callback: function($$v) {\n _vm.customBtn = $$v\n },\n expression: \"customBtn\"\n }\n },\n [\n _c(\n \"span\",\n { attrs: { slot: \"open\" }, slot: \"open\" },\n [_vm._v(\"开启\")]\n ),\n _c(\n \"span\",\n { attrs: { slot: \"close\" }, slot: \"close\" },\n [_vm._v(\"关闭\")]\n )\n ]\n ),\n _vm.customBtn\n ? _c(\n \"div\",\n { staticClass: \"mt10\" },\n [\n _c(\n \"Select\",\n {\n attrs: {\n filterable: \"\",\n placeholder: \"请选择\"\n },\n on: { \"on-change\": _vm.changeForm },\n model: {\n value: _vm.batchData.system_form_id,\n callback: function($$v) {\n _vm.$set(\n _vm.batchData,\n \"system_form_id\",\n $$v\n )\n },\n expression:\n \"batchData.system_form_id\"\n }\n },\n _vm._l(_vm.formList, function(\n item,\n index\n ) {\n return _c(\n \"Option\",\n {\n key: item.id,\n attrs: { value: item.id }\n },\n [_vm._v(_vm._s(item.name))]\n )\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm.customBtn && _vm.batchData.system_form_id\n ? _c(\n \"div\",\n [\n _c(\"Table\", {\n ref: \"table\",\n staticClass: \"customTab\",\n attrs: {\n border: \"\",\n columns: _vm.formColumns,\n data: _vm.formTypeList,\n width: \"100%\",\n \"max-height\": \"165\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"require\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n row.require\n ? \"必填\"\n : \"不必填\"\n )\n )\n ])\n ]\n }\n }\n ],\n null,\n false,\n 469424967\n )\n })\n ],\n 1\n )\n : _vm._e()\n ],\n 1\n )\n : _vm._e()\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"div\",\n { attrs: { slot: \"footer\" }, slot: \"footer\" },\n [\n _c(\"Button\", { on: { click: _vm.cancelBatch } }, [\n _vm._v(\"取消\")\n ]),\n _c(\n \"Button\",\n { attrs: { type: \"primary\" }, on: { click: _vm.saveBatch } },\n [_vm._v(\"保存\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/40b55c4be96c6cae93ee3b6035c8192e.json b/view/store/node_modules/.cache/vue-loader/40b55c4be96c6cae93ee3b6035c8192e.json index 09f37cbbd..79a5ad4e4 100644 --- a/view/store/node_modules/.cache/vue-loader/40b55c4be96c6cae93ee3b6035c8192e.json +++ b/view/store/node_modules/.cache/vue-loader/40b55c4be96c6cae93ee3b6035c8192e.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=template&id=b77c4908&scoped=true&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1717396015000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["\n此操作会覆盖商品的库存数量,请谨慎使用!
\",\n // onOk: () => {\n // synchStocks(ids).then((res) => {\n // this.datanew = [];\n // this.getList();\n // this.$Message.success(res.msg);\n // });\n // },\n // onCancel: () => {\n // this.$Message.info(\"已取消\");\n // },\n // });\n // }\n // },\n stockChange(stock) {\n this.orderList.forEach((item) => {\n if (this.goodsId == item.id) {\n item.branch_stock = stock;\n }\n });\n },\n // 库存管理\n stockControl(row) {\n this.goodsId = row.id;\n this.$refs.stock.modals = true;\n this.$refs.stock.productAttrs(row);\n },\n //跳转刷新\n getPath() {\n this.formValidate.page = 1;\n this.formValidate.type = this.$route.query.type.toString();\n this.getList();\n },\n // 上下架\n changeSwitch(row) {\n setShowApi(row.id, row.is_show)\n .then((res) => {\n this.$Message.success(res.msg);\n this.getHeader();\n\t\t\tthis.allReset();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n //获取列表\n getList() {\n this.loading = true;\n productListInfo(this.formValidate).then((res) => {\n this.orderList = res.data.list;\n this.total = res.data.count;\n this.loading = false;\n this.$nextTick(function(){\n if (this.isAll == 1) {\n if(this.isCheckBox){\n this.$refs.xTable.setAllCheckboxRow(true);\n }else{\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }else{\n\t\t\tlet obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n if(!this.checkUidList.length || this.checkUidList.length <= obj.length){\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }\n })\n }).catch((err)=>{\n this.loading = false;\n this.$Message.error(err.msg);\n })\n },\n //头部列表\n getHeader() {\n this.loading = true;\n productHeaderInfo(this.formValidate).then((res) => {\n this.headerList = res.data.list;\n if (this.$route.fullPath === `${Setting.routePre}/product/index?type=5`) {\n this.getPath();\n } else {\n this.getList();\n }\n });\n },\n // 商品分类;\n goodsCategory() {\n cascaderList(1)\n .then((res) => {\n this.cateData = res.data;\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n //详情\n detail(id) {\n // this.goodsId = id;\n // this.isProductBox = true;\n this.detailsVisible = true;\n this.productId = id;\n },\n // 编辑\n edit(row) {\n this.$router.push({ path: Setting.routePre+\"/product/edit_product/\" + row.id });\n },\n // 编辑\n reply(id) {\n this.$router.push({ path: Setting.routePre+'/product/product_reply?id=' + id });\n },\n // 删除\n del(row,num) {\n let delfromData = {\n title: row.is_del ? '恢复商品' : '移入回收站',\n num: num,\n url: `product/product/${row.id}`,\n method: \"DELETE\",\n ids: \"\",\n tips: row.is_del ? '确定恢复商品吗' : '确定移入回收站吗',\n };\n this.$modalSure(delfromData)\n .then((res) => {\n this.$Message.success(res.msg);\n this.orderList.splice(num, 1);\n this.getHeader();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n // 复制\n copy(row) {\n this.$router.push({ path: `${Setting.routePre}/product/edit_product/`, query: { copy: row.id } });\n },\n //搜索\n search() {\n\t console.log('454545');\n this.allReset();\n this.formValidate.page = 1;\n this.getHeader();\n },\n //重置\n reset() {\n this.formValidate.page = 1;\n\t this.formValidate.show_type = '';\n this.formValidate.store_name = \"\";\n this.formValidate.cate_id = \"\";\n this.getHeader();\n },\n //切换头部列表\n onClickTab(e) {\n this.allReset();\n this.formValidate.type = e;\n this.formValidate.page = 1;\n this.getList();\n\t this.getHeader();\n },\n //分页\n pageChange(page) {\n this.formValidate.page = page.currentPage;\n this.getList();\n },\n },\n};\n",null]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1730267738315},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\n\nimport Setting from \"@/setting\";\nimport { mapState } from \"vuex\";\nimport goodsDetail from \"../components/goods_detail.vue\";\nimport stockEdit from \"../components/stockEdit.vue\";\nimport productDetails from '../components/productDetails.vue';\nimport batchSet from '../components/batchSet.vue';\r\nimport {\n productListInfo,\n productHeaderInfo,\n cascaderList,\n setShowApi,\n synchStocks,\n productShowApi,\n productUnshowApi\n} from \"@/api/product.js\";\nimport { erpConfig } from \"@/api/erp\";\r\nimport { getPrinterList} from '@/api/setting'\nexport default {\n name: \"index\",\n components: {\n goodsDetail,\n stockEdit,\n productDetails,\n batchSet\n },\n data() {\n return {\r\n\t\tprintlist:[],\n routePre:Setting.routePre,\n\t props: { emitPath: false, multiple: true, checkStrictly: true },\n openErp:false,\n goodsId: \"\",\n headerList: [],\n total: 0,\n loading: false,\n orderList: [],\n formValidate: {\n\t\tshow_type: '',\n store_name: \"\",\n cate_id: \"\",\n type: \"1\",\n page: 1,\n limit: 15,\n },\n // datanew: [],\n // dataid: [],\n product_status:1,\n detailsVisible: false,\n productId: 0,\n isAll: 0,\n isCheckBox: false,\n checkUidList:[],\n isLabel:0,\n\t cateData: [],\n };\n },\n watch: {\n $route() {\n if (this.$route.fullPath === `${this.routePre}/product/index?type=5`) {\n this.getPath();\n }\n },\n },\n computed: {\n ...mapState(\"store/layout\", [\"isMobile\"]),\n labelWidth() {\n return this.isMobile ? undefined : 120;\n },\n labelPosition() {\n return this.isMobile ? \"top\" : \"right\";\n },\n },\n mounted() {\n this.goodsCategory();\n this.getHeader();\n this.getErpConfig();\r\n\tthis.printerList();\n },\n methods: {\n //批量设置\n openBatch() {\n this.isLabel = 0;\n\t this.$refs.batch.checkUidList = this.checkUidList;\n\t this.$refs.batch.isAll = this.isAll;\n\t this.$refs.batch.formValidate = this.formValidate;\n this.$refs.batch.batchModal = true;\n },\n checkboxItem(e){\n let id = parseInt(e.rowid);\n let index = this.checkUidList.indexOf(id);\n if(index !== -1){\n this.checkUidList = this.checkUidList.filter((item)=> item !== id);\n }else{\n this.checkUidList.push(id);\n }\n },\n checkboxAll(){\n // 获取选中当前值\n let obj2 = this.$refs.xTable.getCheckboxRecords(true);\n // 获取之前选中值\n let obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n\t if(this.isAll == 0 && this.checkUidList.length <= obj.length && !this.isCheckBox){\n\t\t obj = [];\n\t }\n obj = obj.concat(obj2);\n let ids = [];\n obj.forEach((item)=>{\n ids.push(parseInt(item.id))\n })\n this.checkUidList = ids;\n if(!obj2.length){\n this.isCheckBox = false;\n }\n },\r\n\t// 列表\r\n\tprinterList() {\r\n\t this.loading = true;\r\n\t getPrinterList({\r\n\t page: 1,\r\n\t limit: 100,\r\n\t }).then((res) => {\r\n\t let { list, count } = res.data;\r\n\t this.printlist = list;\r\n\t this.loading = false;\r\n\t }).catch(err => {\r\n\t this.$Message.error(err.msg);\r\n\t });\r\n\t},\n allPages(e){\n this.isAll = e;\n if(e==0){\n this.$refs.xTable.toggleAllCheckboxRow();\n // this.checkboxAll();\n }else{\n if(!this.isCheckBox){\n this.$refs.xTable.setAllCheckboxRow(true);\n this.isCheckBox = true;\n this.isAll = 1;\n }else{\n this.$refs.xTable.setAllCheckboxRow(false);\n this.isCheckBox = false;\n this.isAll = 0;\n }\n this.checkUidList = []\n }\n },\n\tallReset(){\n\t\tthis.isAll = 0;\n\t\tthis.isCheckBox = false;\n\t\tthis.$refs.xTable.setAllCheckboxRow(false);\n\t\tthis.checkUidList = [];\n\t},\n // 批量上架\n onShelves() {\n if (this.isAll != 1 && this.checkUidList.length === 0) {\n this.$Message.warning(\"请选择要上架的商品\");\n } else {\n let data = {\n all: this.isAll,\n ids: this.checkUidList\n };\n if (this.isAll == 1) {\n data.where = {\n cate_id: this.formValidate.cate_id,\n store_name: this.formValidate.store_name,\n\t\t\tshow_type: this.formValidate.show_type,\n type: this.formValidate.type,\n };\n }\n productShowApi(data)\n .then((res) => {\n this.$Message.success(res.msg);\n this.getHeader();\n\t\t\t this.allReset();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n }\n },\n // 批量下架\n onDismount() {\n if (this.isAll != 1 && this.checkUidList.length === 0) {\n this.$Message.warning(\"请选择要下架的商品\");\n } else {\n let data = {\n all: this.isAll,\n ids:this.checkUidList\n };\n if (this.isAll == 1) {\n data.where = {\n cate_id: this.formValidate.cate_id,\n store_name: this.formValidate.store_name,\n\t\t\tshow_type: this.formValidate.show_type,\n type: this.formValidate.type,\n };\n }\n productUnshowApi(data)\n .then((res) => {\n this.$Message.success(res.msg);\n this.getHeader();\n\t\t\t this.allReset();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n }\n },\n //erp配置\n getErpConfig(){\n erpConfig().then(res=>{\n this.openErp = res.data.open_erp;\n this.product_status = res.data.product_status;\n }).catch(err=>{\n this.$Message.error(err.msg);\n })\n },\n // setStock() {\n // if (this.datanew.length == 0) {\n // this.$Message.warning(\"请选择要同步的商品\");\n // } else {\n // console.log(this.dataid);\n // let a = [];\n // a = this.dataid.join(\",\");\n //\n // let ids = { ids: [] };\n // ids.ids = this.dataid;\n // this.$Modal.confirm({\n // title: \"同步库存\",\n // content: \"此操作会覆盖商品的库存数量,请谨慎使用!
\",\n // onOk: () => {\n // synchStocks(ids).then((res) => {\n // this.datanew = [];\n // this.getList();\n // this.$Message.success(res.msg);\n // });\n // },\n // onCancel: () => {\n // this.$Message.info(\"已取消\");\n // },\n // });\n // }\n // },\n stockChange(stock) {\n this.orderList.forEach((item) => {\n if (this.goodsId == item.id) {\n item.branch_stock = stock;\n }\n });\n },\n // 库存管理\n stockControl(row) {\n this.goodsId = row.id;\n this.$refs.stock.modals = true;\n this.$refs.stock.productAttrs(row);\n },\n //跳转刷新\n getPath() {\n this.formValidate.page = 1;\n this.formValidate.type = this.$route.query.type.toString();\n this.getList();\n },\n // 上下架\n changeSwitch(row) {\n setShowApi(row.id, row.is_show)\n .then((res) => {\n this.$Message.success(res.msg);\n this.getHeader();\n\t\t\tthis.allReset();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n //获取列表\n getList() {\n this.loading = true;\n productListInfo(this.formValidate).then((res) => {\n this.orderList = res.data.list;\n this.total = res.data.count;\n this.loading = false;\n this.$nextTick(function(){\n if (this.isAll == 1) {\n if(this.isCheckBox){\n this.$refs.xTable.setAllCheckboxRow(true);\n }else{\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }else{\n\t\t\tlet obj = this.$refs.xTable.getCheckboxReserveRecords(true);\n if(!this.checkUidList.length || this.checkUidList.length <= obj.length){\n this.$refs.xTable.setAllCheckboxRow(false);\n }\n }\n })\n }).catch((err)=>{\n this.loading = false;\n this.$Message.error(err.msg);\n })\n },\n //头部列表\n getHeader() {\n this.loading = true;\n productHeaderInfo(this.formValidate).then((res) => {\n this.headerList = res.data.list;\n if (this.$route.fullPath === `${Setting.routePre}/product/index?type=5`) {\n this.getPath();\n } else {\n this.getList();\n }\n });\n },\n // 商品分类;\n goodsCategory() {\n cascaderList(1)\n .then((res) => {\n this.cateData = res.data;\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n //详情\n detail(id) {\n // this.goodsId = id;\n // this.isProductBox = true;\n this.detailsVisible = true;\n this.productId = id;\n },\n // 编辑\n edit(row) {\n this.$router.push({ path: Setting.routePre+\"/product/edit_product/\" + row.id });\n },\n // 编辑\n reply(id) {\n this.$router.push({ path: Setting.routePre+'/product/product_reply?id=' + id });\n },\n // 删除\n del(row,num) {\n let delfromData = {\n title: row.is_del ? '恢复商品' : '移入回收站',\n num: num,\n url: `product/product/${row.id}`,\n method: \"DELETE\",\n ids: \"\",\n tips: row.is_del ? '确定恢复商品吗' : '确定移入回收站吗',\n };\n this.$modalSure(delfromData)\n .then((res) => {\n this.$Message.success(res.msg);\n this.orderList.splice(num, 1);\n this.getHeader();\n })\n .catch((res) => {\n this.$Message.error(res.msg);\n });\n },\n // 复制\n copy(row) {\n this.$router.push({ path: `${Setting.routePre}/product/edit_product/`, query: { copy: row.id } });\n },\n //搜索\n search() {\n\t console.log('454545');\n this.allReset();\n this.formValidate.page = 1;\n this.getHeader();\n },\n //重置\n reset() {\n this.formValidate.page = 1;\n\t this.formValidate.show_type = '';\n this.formValidate.store_name = \"\";\n this.formValidate.cate_id = \"\";\n this.getHeader();\n },\n //切换头部列表\n onClickTab(e) {\n this.allReset();\n this.formValidate.type = e;\n this.formValidate.page = 1;\n this.getList();\n\t this.getHeader();\n },\n //分页\n pageChange(page) {\n this.formValidate.page = page.currentPage;\n this.getList();\n },\n },\n};\n",null]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/f9407b57a08564221d2a4a6c23cb6f36.json b/view/store/node_modules/.cache/vue-loader/f9407b57a08564221d2a4a6c23cb6f36.json index 08ef544f9..5924800ff 100644 --- a/view/store/node_modules/.cache/vue-loader/f9407b57a08564221d2a4a6c23cb6f36.json +++ b/view/store/node_modules/.cache/vue-loader/f9407b57a08564221d2a4a6c23cb6f36.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=style&index=0&id=b77c4908&scoped=true&lang=less&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1717396015000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\less-loader\\dist\\cjs.js","mtime":1728455681676},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/deep/.el-cascader {\n\t.el-input__inner {\n\t font-size: 12px;\n\t min-height: 32px !important;\n\t}\n\t.el-input{\n\t\t.el-icon-arrow-down{\n\t\t\tfont-size: 12px;\n\t\t\tcolor: #000;\n\t\t}\n\t}\n\t.el-cascader__search-input{\n\t\tmargin-left: 7px !important;\n\t}\n}\n/deep/.ivu-page-header,\n/deep/.ivu-tabs-bar {\n margin-bottom: 0px !important;\n border-bottom: 1px solid #E9E9E9;\n}\n\n/deep/.ivu-card-body {\n padding: 14px 20px 0 20px !important;\n}\n\n\n/deep/.ivu-tabs-nav {\n height: 45px;\n}\n\n.bg {\n z-index: 100;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n}\n\n.tabbox {\n padding: 0px 20px 0px;\n // border-bottom: 1px solid #DCDFE6;\n}\n\n.box {\n padding: 20px;\n padding-bottom: 0px;\n}\n\n.tablebox {\n margin-top: 15px;\n}\n\n.btnbox {\n padding: 20px 0px 0px 30px;\n\n .btns {\n width: 99px;\n height: 32px;\n background: #1890ff;\n border-radius: 4px;\n text-align: center;\n line-height: 32px;\n color: #ffffff;\n cursor: pointer;\n }\n}\n\n.table {\n padding: 0px 30px 15px 30px;\n}\n.ivu-table {\n background-color: #182328;\n color: #fff;\n}\n.tabBox_img {\n width: 36px;\n height: 36px;\n border-radius: 4px;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n }\n}\n\n.search {\n width: 86px;\n height: 32px;\n background: #1890ff;\n border-radius: 4px;\n text-align: center;\n line-height: 32px;\n font-size: 13px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #ffffff;\n cursor: pointer;\n}\n\n.reset {\n width: 86px;\n height: 32px;\n border-radius: 4px;\n border: 1px solid rgba(151, 151, 151, 0.36);\n text-align: center;\n line-height: 32px;\n font-size: 13px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n font-weight: 500;\n color: #515a6e;\n // background: #2D8CF0;\n\n cursor: pointer;\n}\n",null]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=style&index=0&id=b77c4908&scoped=true&lang=less&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1730267592589},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\less-loader\\dist\\cjs.js","mtime":1728455681676},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/deep/.el-cascader {\n\t.el-input__inner {\n\t font-size: 12px;\n\t min-height: 32px !important;\n\t}\n\t.el-input{\n\t\t.el-icon-arrow-down{\n\t\t\tfont-size: 12px;\n\t\t\tcolor: #000;\n\t\t}\n\t}\n\t.el-cascader__search-input{\n\t\tmargin-left: 7px !important;\n\t}\n}\n/deep/.ivu-page-header,\n/deep/.ivu-tabs-bar {\n margin-bottom: 0px !important;\n border-bottom: 1px solid #E9E9E9;\n}\n\n/deep/.ivu-card-body {\n padding: 14px 20px 0 20px !important;\n}\n\n\n/deep/.ivu-tabs-nav {\n height: 45px;\n}\n\n.bg {\n z-index: 100;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n}\n\n.tabbox {\n padding: 0px 20px 0px;\n // border-bottom: 1px solid #DCDFE6;\n}\n\n.box {\n padding: 20px;\n padding-bottom: 0px;\n}\n\n.tablebox {\n margin-top: 15px;\n}\n\n.btnbox {\n padding: 20px 0px 0px 30px;\n\n .btns {\n width: 99px;\n height: 32px;\n background: #1890ff;\n border-radius: 4px;\n text-align: center;\n line-height: 32px;\n color: #ffffff;\n cursor: pointer;\n }\n}\n\n.table {\n padding: 0px 30px 15px 30px;\n}\n.ivu-table {\n background-color: #182328;\n color: #fff;\n}\n.tabBox_img {\n width: 36px;\n height: 36px;\n border-radius: 4px;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n }\n}\n\n.search {\n width: 86px;\n height: 32px;\n background: #1890ff;\n border-radius: 4px;\n text-align: center;\n line-height: 32px;\n font-size: 13px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n color: #ffffff;\n cursor: pointer;\n}\n\n.reset {\n width: 86px;\n height: 32px;\n border-radius: 4px;\n border: 1px solid rgba(151, 151, 151, 0.36);\n text-align: center;\n line-height: 32px;\n font-size: 13px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-weight: 400;\n font-weight: 500;\n color: #515a6e;\n // background: #2D8CF0;\n\n cursor: pointer;\n}\n",null]} \ No newline at end of file diff --git a/view/store/node_modules/.cache/vue-loader/febdd836574bda4fab18b5fdbd136de1.json b/view/store/node_modules/.cache/vue-loader/febdd836574bda4fab18b5fdbd136de1.json index 7dd4af6b8..0da787557 100644 --- a/view/store/node_modules/.cache/vue-loader/febdd836574bda4fab18b5fdbd136de1.json +++ b/view/store/node_modules/.cache/vue-loader/febdd836574bda4fab18b5fdbd136de1.json @@ -1 +1 @@ -{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=template&id=b77c4908&scoped=true&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1717396015000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\n \"Card\",\n {\n staticClass: \"ivu-mt pt10\",\n attrs: { bordered: false, \"dis-hover\": \"\" }\n },\n [\n _c(\n \"Form\",\n {\n ref: \"formValidate\",\n attrs: {\n model: _vm.formValidate,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n },\n [\n _c(\n \"Row\",\n { attrs: { type: \"flex\", gutter: 24 } },\n [\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品分类:\",\n labelWidth: 80,\n \"label-for\": \"cate_id\"\n }\n },\n [\n _c(\"el-cascader\", {\n staticStyle: { width: \"250px\" },\n attrs: {\n placeholder: \"请选择商品分类\",\n size: \"mini\",\n options: _vm.cateData,\n props: _vm.props,\n filterable: \"\",\n clearable: \"\"\n },\n on: { change: _vm.search },\n model: {\n value: _vm.formValidate.cate_id,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"cate_id\", $$v)\n },\n expression: \"formValidate.cate_id\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品展示:\",\n labelWidth: 80,\n \"label-for\": \"show_type\"\n }\n },\n [\n _c(\n \"Select\",\n {\n staticStyle: { width: \"250px\" },\n attrs: { placeholder: \"请选择\", clearable: \"\" },\n on: { \"on-change\": _vm.search },\n model: {\n value: _vm.formValidate.show_type,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"show_type\", $$v)\n },\n expression: \"formValidate.show_type\"\n }\n },\n [\n _c(\"Option\", { attrs: { value: \"0\" } }, [\n _vm._v(\"全部\")\n ]),\n _c(\"Option\", { attrs: { value: \"1\" } }, [\n _vm._v(\"移动端\")\n ]),\n _c(\"Option\", { attrs: { value: \"2\" } }, [\n _vm._v(\"收银台\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品搜索:\",\n labelWidth: 80,\n \"label-for\": \"store_name\"\n }\n },\n [\n _c(\"Input\", {\n staticStyle: { width: \"250px\" },\n attrs: {\n \"enter-button\": \"\",\n placeholder: \"请输入商品名称,关键字,ID\"\n },\n model: {\n value: _vm.formValidate.store_name,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"store_name\", $$v)\n },\n expression: \"formValidate.store_name\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Col\", [\n _c(\n \"div\",\n { staticClass: \"search\", on: { click: _vm.search } },\n [_vm._v(\"搜索\")]\n )\n ]),\n _c(\"Col\", [\n _c(\n \"div\",\n { staticClass: \"reset\", on: { click: _vm.reset } },\n [_vm._v(\"重置\")]\n )\n ])\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Card\",\n {\n staticClass: \"mt15 tablebox\",\n attrs: { bordered: false, \"dis-hover\": \"\" }\n },\n [\n _c(\n \"div\",\n { staticClass: \"product_tabs tabbox\" },\n [\n _c(\n \"Tabs\",\n {\n on: { \"on-click\": _vm.onClickTab },\n model: {\n value: _vm.formValidate.type,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"type\", $$v)\n },\n expression: \"formValidate.type\"\n }\n },\n _vm._l(_vm.headerList, function(item, index) {\n return _c(\"TabPane\", {\n key: index,\n attrs: {\n label: item.name + \"(\" + item.count + \")\",\n name: item.type.toString()\n }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"table mt20\" },\n [\n _vm.product_status == 1\n ? _c(\n \"router-link\",\n { attrs: { to: _vm.routePre + \"/product/edit_product\" } },\n [\n _c(\n \"Button\",\n { staticClass: \"bnt\", attrs: { type: \"primary\" } },\n [_vm._v(\"添加商品\")]\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.formValidate.type === \"1\",\n expression: \"formValidate.type === '1'\"\n }\n ],\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.onDismount }\n },\n [_vm._v(\"批量下架\")]\n )\n ],\n 1\n ),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.formValidate.type === \"2\",\n expression: \"formValidate.type === '2'\"\n }\n ],\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.onShelves }\n },\n [_vm._v(\"批量上架\")]\n )\n ],\n 1\n ),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.openBatch }\n },\n [_vm._v(\"批量设置\")]\n )\n ],\n 1\n ),\n _c(\n \"vxe-table\",\n {\n ref: \"xTable\",\n staticClass: \"mt25\",\n attrs: {\n loading: _vm.loading,\n \"row-id\": \"id\",\n \"checkbox-config\": { reserve: true },\n data: _vm.orderList\n },\n on: {\n \"checkbox-all\": _vm.checkboxAll,\n \"checkbox-change\": _vm.checkboxItem\n }\n },\n [\n _c(\"vxe-column\", {\n attrs: { type: \"checkbox\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"header\",\n fn: function() {\n return [\n _c(\n \"div\",\n [\n _c(\n \"Dropdown\",\n {\n attrs: { transfer: \"\" },\n on: { \"on-click\": _vm.allPages },\n scopedSlots: _vm._u([\n {\n key: \"list\",\n fn: function() {\n return [\n _c(\n \"DropdownMenu\",\n [\n _c(\n \"DropdownItem\",\n { attrs: { name: \"0\" } },\n [_vm._v(\"当前页\")]\n ),\n _c(\n \"DropdownItem\",\n { attrs: { name: \"1\" } },\n [_vm._v(\"所有页\")]\n )\n ],\n 1\n )\n ]\n },\n proxy: true\n }\n ])\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"acea-row row-middle\",\n attrs: { href: \"javascript:void(0)\" }\n },\n [\n _c(\"span\", [\n _vm._v(\n \"全选(\" +\n _vm._s(\n _vm.isAll == 1\n ? _vm.total -\n _vm.checkUidList.length\n : _vm.checkUidList.length\n ) +\n \")\"\n )\n ]),\n _c(\"Icon\", {\n attrs: { type: \"ios-arrow-down\" }\n })\n ],\n 1\n )\n ]\n )\n ],\n 1\n )\n ]\n },\n proxy: true\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"id\", title: \"商品ID\", width: \"70\" }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"image\", title: \"商品图\", width: \"70\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\"viewer\", [\n _c(\"div\", { staticClass: \"tabBox_img\" }, [\n _c(\"img\", {\n directives: [\n {\n name: \"lazy\",\n rawName: \"v-lazy\",\n value: row.image,\n expression: \"row.image\"\n }\n ]\n })\n ])\n ])\n ]\n }\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"store_name\",\n title: \"商品名称\",\n \"min-width\": \"250\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\n \"Tooltip\",\n {\n attrs: {\n transfer: true,\n theme: \"dark\",\n \"max-width\": \"300\",\n delay: 600,\n content: row.store_name\n }\n },\n [\n _c(\"div\", { staticClass: \"line2\" }, [\n _vm._v(_vm._s(row.store_name))\n ])\n ]\n )\n ]\n }\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"price\",\n title: \"商品售价\",\n \"min-width\": \"90\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"branch_sales\",\n title: \"销量\",\n \"min-width\": \"90\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"branch_stock\",\n title: \"库存\",\n \"min-width\": \"80\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"sort\", title: \"排序\", \"min-width\": \"70\" }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"state\", title: \"状态\", width: \"120\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _vm.formValidate.type != 7\n ? _c(\n \"i-switch\",\n {\n attrs: {\n value: row.is_show,\n \"true-value\": 1,\n \"false-value\": 0,\n disabled:\n row.is_verify == 1 ? false : true,\n size: \"large\"\n },\n on: {\n \"on-change\": function($event) {\n return _vm.changeSwitch(row)\n }\n },\n model: {\n value: row.is_show,\n callback: function($$v) {\n _vm.$set(row, \"is_show\", $$v)\n },\n expression: \"row.is_show\"\n }\n },\n [\n _c(\n \"span\",\n { attrs: { slot: \"open\" }, slot: \"open\" },\n [_vm._v(\"上架\")]\n ),\n _c(\n \"span\",\n {\n attrs: { slot: \"close\" },\n slot: \"close\"\n },\n [_vm._v(\"下架\")]\n )\n ]\n )\n : _c(\"div\", [\n _vm._v(\n _vm._s(\n row.is_del\n ? \"已删除\"\n : !row.is_show\n ? \"已下架\"\n : \"\"\n )\n )\n ])\n ]\n }\n }\n ])\n }),\n _vm.formValidate.type == -1\n ? _c(\"vxe-column\", {\n attrs: {\n field: \"refusal\",\n title: \"拒绝原因\",\n \"min-width\": \"150\"\n }\n })\n : _vm._e(),\n _vm.formValidate.type == -2\n ? _c(\"vxe-column\", {\n attrs: {\n field: \"refusal\",\n title: \"下架原因\",\n \"min-width\": \"150\"\n }\n })\n : _vm._e(),\n _c(\"vxe-column\", {\n attrs: {\n field: \"action\",\n title: \"操作\",\n align: \"center\",\n width: \"220\",\n fixed: \"right\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n var rowIndex = ref.rowIndex\n return [\n row.pid == 0\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.edit(row)\n }\n }\n },\n [_vm._v(\"编辑\")]\n )\n : _vm._e(),\n row.pid == 0\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.detail(row.id)\n }\n }\n },\n [_vm._v(\"详情\")]\n ),\n _c(\"Divider\", { attrs: { type: \"vertical\" } }),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.reply(row.id)\n }\n }\n },\n [_vm._v(\"查看评论\")]\n ),\n !_vm.openErp\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n !_vm.openErp\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.stockControl(row)\n }\n }\n },\n [_vm._v(\"库存管理\")]\n )\n : _vm._e(),\n row.pid == 0\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n row.pid == 0\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.del(row, rowIndex)\n }\n }\n },\n [_vm._v(_vm._s(row.is_del ? \"恢复\" : \"删除\"))]\n )\n : _vm._e(),\n _c(\"Divider\", { attrs: { type: \"vertical\" } }),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.copy(row)\n }\n }\n },\n [_vm._v(\"复制\")]\n )\n ]\n }\n }\n ])\n })\n ],\n 1\n ),\n _c(\"vxe-pager\", {\n staticClass: \"mt20\",\n attrs: {\n border: \"\",\n size: \"medium\",\n \"page-size\": _vm.formValidate.limit,\n \"current-page\": _vm.formValidate.page,\n total: _vm.total,\n layouts: [\n \"PrevPage\",\n \"JumpNumber\",\n \"NextPage\",\n \"FullJump\",\n \"Total\"\n ]\n },\n on: { \"page-change\": _vm.pageChange }\n })\n ],\n 1\n )\n ]\n ),\n _c(\"stockEdit\", { ref: \"stock\", on: { stockChange: _vm.stockChange } }),\n _c(\"productDetails\", {\n attrs: { visible: _vm.detailsVisible, \"product-id\": _vm.productId },\n on: {\n \"update:visible\": function($event) {\n _vm.detailsVisible = $event\n },\n saved: _vm.getList\n }\n }),\n _c(\"batchSet\", {\n ref: \"batch\",\n attrs: {\n checkUidList: _vm.checkUidList,\n isAll: _vm.isAll,\n formValidate: _vm.formValidate\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]} \ No newline at end of file +{"remainingRequest":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js??ref--0-2!D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue?vue&type=template&id=b77c4908&scoped=true&","dependencies":[{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\src\\pages\\product\\productList\\index.vue","mtime":1730267592589},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\loaders\\templateLoader.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"D:\\project\\admin.jiuhaosh.cn\\view\\store\\node_modules\\iview-loader\\index.js","mtime":1570440814000}],"contextDependencies":[],"result":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n [\n _c(\n \"Card\",\n {\n staticClass: \"ivu-mt pt10\",\n attrs: { bordered: false, \"dis-hover\": \"\" }\n },\n [\n _c(\n \"Form\",\n {\n ref: \"formValidate\",\n attrs: {\n model: _vm.formValidate,\n \"label-width\": _vm.labelWidth,\n \"label-position\": _vm.labelPosition\n }\n },\n [\n _c(\n \"Row\",\n { attrs: { type: \"flex\", gutter: 24 } },\n [\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品分类:\",\n labelWidth: 80,\n \"label-for\": \"cate_id\"\n }\n },\n [\n _c(\"el-cascader\", {\n staticStyle: { width: \"250px\" },\n attrs: {\n placeholder: \"请选择商品分类\",\n size: \"mini\",\n options: _vm.cateData,\n props: _vm.props,\n filterable: \"\",\n clearable: \"\"\n },\n on: { change: _vm.search },\n model: {\n value: _vm.formValidate.cate_id,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"cate_id\", $$v)\n },\n expression: \"formValidate.cate_id\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品展示:\",\n labelWidth: 80,\n \"label-for\": \"show_type\"\n }\n },\n [\n _c(\n \"Select\",\n {\n staticStyle: { width: \"250px\" },\n attrs: { placeholder: \"请选择\", clearable: \"\" },\n on: { \"on-change\": _vm.search },\n model: {\n value: _vm.formValidate.show_type,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"show_type\", $$v)\n },\n expression: \"formValidate.show_type\"\n }\n },\n [\n _c(\"Option\", { attrs: { value: \"0\" } }, [\n _vm._v(\"全部\")\n ]),\n _c(\"Option\", { attrs: { value: \"1\" } }, [\n _vm._v(\"移动端\")\n ]),\n _c(\"Option\", { attrs: { value: \"2\" } }, [\n _vm._v(\"收银台\")\n ])\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"打印机:\",\n labelWidth: 80,\n \"label-for\": \"show_type\"\n }\n },\n [\n _c(\n \"Select\",\n {\n staticStyle: { width: \"250px\" },\n attrs: { placeholder: \"请选择\", clearable: \"\" },\n on: { \"on-change\": _vm.search },\n model: {\n value: _vm.formValidate.printset,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"printset\", $$v)\n },\n expression: \"formValidate.printset\"\n }\n },\n [\n _c(\"Option\", { attrs: { value: \"0\" } }, [\n _vm._v(\"全部\")\n ]),\n _vm._l(_vm.printlist, function(item, index) {\n return _c(\n \"Option\",\n { attrs: { value: item.id } },\n [_vm._v(_vm._s(item.name))]\n )\n })\n ],\n 2\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Col\",\n [\n _c(\n \"FormItem\",\n {\n attrs: {\n label: \"商品搜索:\",\n labelWidth: 80,\n \"label-for\": \"store_name\"\n }\n },\n [\n _c(\"Input\", {\n staticStyle: { width: \"250px\" },\n attrs: {\n \"enter-button\": \"\",\n placeholder: \"请输入商品名称,关键字,ID\"\n },\n model: {\n value: _vm.formValidate.store_name,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"store_name\", $$v)\n },\n expression: \"formValidate.store_name\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Col\", [\n _c(\n \"div\",\n { staticClass: \"search\", on: { click: _vm.search } },\n [_vm._v(\"搜索\")]\n )\n ]),\n _c(\"Col\", [\n _c(\n \"div\",\n { staticClass: \"reset\", on: { click: _vm.reset } },\n [_vm._v(\"重置\")]\n )\n ])\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"Card\",\n {\n staticClass: \"mt15 tablebox\",\n attrs: { bordered: false, \"dis-hover\": \"\" }\n },\n [\n _c(\n \"div\",\n { staticClass: \"product_tabs tabbox\" },\n [\n _c(\n \"Tabs\",\n {\n on: { \"on-click\": _vm.onClickTab },\n model: {\n value: _vm.formValidate.type,\n callback: function($$v) {\n _vm.$set(_vm.formValidate, \"type\", $$v)\n },\n expression: \"formValidate.type\"\n }\n },\n _vm._l(_vm.headerList, function(item, index) {\n return _c(\"TabPane\", {\n key: index,\n attrs: {\n label: item.name + \"(\" + item.count + \")\",\n name: item.type.toString()\n }\n })\n }),\n 1\n )\n ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"table mt20\" },\n [\n _vm.product_status == 1\n ? _c(\n \"router-link\",\n { attrs: { to: _vm.routePre + \"/product/edit_product\" } },\n [\n _c(\n \"Button\",\n { staticClass: \"bnt\", attrs: { type: \"primary\" } },\n [_vm._v(\"添加商品\")]\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.formValidate.type === \"1\",\n expression: \"formValidate.type === '1'\"\n }\n ],\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.onDismount }\n },\n [_vm._v(\"批量下架\")]\n )\n ],\n 1\n ),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.formValidate.type === \"2\",\n expression: \"formValidate.type === '2'\"\n }\n ],\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.onShelves }\n },\n [_vm._v(\"批量上架\")]\n )\n ],\n 1\n ),\n _c(\n \"Tooltip\",\n {\n attrs: {\n content: \"本页至少选中一项\",\n disabled: !!_vm.checkUidList.length && _vm.isAll == 0\n }\n },\n [\n _c(\n \"Button\",\n {\n staticClass: \"bnt ml15\",\n attrs: {\n disabled: !_vm.checkUidList.length && _vm.isAll == 0\n },\n on: { click: _vm.openBatch }\n },\n [_vm._v(\"批量设置\")]\n )\n ],\n 1\n ),\n _c(\n \"vxe-table\",\n {\n ref: \"xTable\",\n staticClass: \"mt25\",\n attrs: {\n loading: _vm.loading,\n \"row-id\": \"id\",\n \"checkbox-config\": { reserve: true },\n data: _vm.orderList\n },\n on: {\n \"checkbox-all\": _vm.checkboxAll,\n \"checkbox-change\": _vm.checkboxItem\n }\n },\n [\n _c(\"vxe-column\", {\n attrs: { type: \"checkbox\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"header\",\n fn: function() {\n return [\n _c(\n \"div\",\n [\n _c(\n \"Dropdown\",\n {\n attrs: { transfer: \"\" },\n on: { \"on-click\": _vm.allPages },\n scopedSlots: _vm._u([\n {\n key: \"list\",\n fn: function() {\n return [\n _c(\n \"DropdownMenu\",\n [\n _c(\n \"DropdownItem\",\n { attrs: { name: \"0\" } },\n [_vm._v(\"当前页\")]\n ),\n _c(\n \"DropdownItem\",\n { attrs: { name: \"1\" } },\n [_vm._v(\"所有页\")]\n )\n ],\n 1\n )\n ]\n },\n proxy: true\n }\n ])\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"acea-row row-middle\",\n attrs: { href: \"javascript:void(0)\" }\n },\n [\n _c(\"span\", [\n _vm._v(\n \"全选(\" +\n _vm._s(\n _vm.isAll == 1\n ? _vm.total -\n _vm.checkUidList.length\n : _vm.checkUidList.length\n ) +\n \")\"\n )\n ]),\n _c(\"Icon\", {\n attrs: { type: \"ios-arrow-down\" }\n })\n ],\n 1\n )\n ]\n )\n ],\n 1\n )\n ]\n },\n proxy: true\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"id\", title: \"商品ID\", width: \"70\" }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"image\", title: \"商品图\", width: \"70\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\"viewer\", [\n _c(\"div\", { staticClass: \"tabBox_img\" }, [\n _c(\"img\", {\n directives: [\n {\n name: \"lazy\",\n rawName: \"v-lazy\",\n value: row.image,\n expression: \"row.image\"\n }\n ]\n })\n ])\n ])\n ]\n }\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"store_name\",\n title: \"商品名称\",\n \"min-width\": \"250\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _c(\n \"Tooltip\",\n {\n attrs: {\n transfer: true,\n theme: \"dark\",\n \"max-width\": \"300\",\n delay: 600,\n content: row.store_name\n }\n },\n [\n _c(\"div\", { staticClass: \"line2\" }, [\n _vm._v(_vm._s(row.store_name))\n ])\n ]\n )\n ]\n }\n }\n ])\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"print_name\",\n title: \"打印机\",\n \"min-width\": \"70\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"price\",\n title: \"商品售价\",\n \"min-width\": \"90\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"branch_sales\",\n title: \"销量\",\n \"min-width\": \"90\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: {\n field: \"branch_stock\",\n title: \"库存\",\n \"min-width\": \"80\"\n }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"sort\", title: \"排序\", \"min-width\": \"70\" }\n }),\n _c(\"vxe-column\", {\n attrs: { field: \"state\", title: \"状态\", width: \"120\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n return [\n _vm.formValidate.type != 7\n ? _c(\n \"i-switch\",\n {\n attrs: {\n value: row.is_show,\n \"true-value\": 1,\n \"false-value\": 0,\n disabled:\n row.is_verify == 1 ? false : true,\n size: \"large\"\n },\n on: {\n \"on-change\": function($event) {\n return _vm.changeSwitch(row)\n }\n },\n model: {\n value: row.is_show,\n callback: function($$v) {\n _vm.$set(row, \"is_show\", $$v)\n },\n expression: \"row.is_show\"\n }\n },\n [\n _c(\n \"span\",\n { attrs: { slot: \"open\" }, slot: \"open\" },\n [_vm._v(\"上架\")]\n ),\n _c(\n \"span\",\n {\n attrs: { slot: \"close\" },\n slot: \"close\"\n },\n [_vm._v(\"下架\")]\n )\n ]\n )\n : _c(\"div\", [\n _vm._v(\n _vm._s(\n row.is_del\n ? \"已删除\"\n : !row.is_show\n ? \"已下架\"\n : \"\"\n )\n )\n ])\n ]\n }\n }\n ])\n }),\n _vm.formValidate.type == -1\n ? _c(\"vxe-column\", {\n attrs: {\n field: \"refusal\",\n title: \"拒绝原因\",\n \"min-width\": \"150\"\n }\n })\n : _vm._e(),\n _vm.formValidate.type == -2\n ? _c(\"vxe-column\", {\n attrs: {\n field: \"refusal\",\n title: \"下架原因\",\n \"min-width\": \"150\"\n }\n })\n : _vm._e(),\n _c(\"vxe-column\", {\n attrs: {\n field: \"action\",\n title: \"操作\",\n align: \"center\",\n width: \"220\",\n fixed: \"right\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var row = ref.row\n var rowIndex = ref.rowIndex\n return [\n row.pid == 0\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.edit(row)\n }\n }\n },\n [_vm._v(\"编辑\")]\n )\n : _vm._e(),\n row.pid == 0\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.detail(row.id)\n }\n }\n },\n [_vm._v(\"详情\")]\n ),\n _c(\"Divider\", { attrs: { type: \"vertical\" } }),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.reply(row.id)\n }\n }\n },\n [_vm._v(\"查看评论\")]\n ),\n !_vm.openErp\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n !_vm.openErp\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.stockControl(row)\n }\n }\n },\n [_vm._v(\"库存管理\")]\n )\n : _vm._e(),\n row.pid == 0\n ? _c(\"Divider\", { attrs: { type: \"vertical\" } })\n : _vm._e(),\n row.pid == 0\n ? _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.del(row, rowIndex)\n }\n }\n },\n [_vm._v(_vm._s(row.is_del ? \"恢复\" : \"删除\"))]\n )\n : _vm._e(),\n _c(\"Divider\", { attrs: { type: \"vertical\" } }),\n _c(\n \"a\",\n {\n on: {\n click: function($event) {\n return _vm.copy(row)\n }\n }\n },\n [_vm._v(\"复制\")]\n )\n ]\n }\n }\n ])\n })\n ],\n 1\n ),\n _c(\"vxe-pager\", {\n staticClass: \"mt20\",\n attrs: {\n border: \"\",\n size: \"medium\",\n \"page-size\": _vm.formValidate.limit,\n \"current-page\": _vm.formValidate.page,\n total: _vm.total,\n layouts: [\n \"PrevPage\",\n \"JumpNumber\",\n \"NextPage\",\n \"FullJump\",\n \"Total\"\n ]\n },\n on: { \"page-change\": _vm.pageChange }\n })\n ],\n 1\n )\n ]\n ),\n _c(\"stockEdit\", { ref: \"stock\", on: { stockChange: _vm.stockChange } }),\n _c(\"productDetails\", {\n attrs: { visible: _vm.detailsVisible, \"product-id\": _vm.productId },\n on: {\n \"update:visible\": function($event) {\n _vm.detailsVisible = $event\n },\n saved: _vm.getList\n }\n }),\n _c(\"batchSet\", {\n ref: \"batch\",\n attrs: {\n checkUidList: _vm.checkUidList,\n isAll: _vm.isAll,\n formValidate: _vm.formValidate\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"]} \ No newline at end of file diff --git a/view/store/src/pages/product/productList/index.vue b/view/store/src/pages/product/productList/index.vue index 579b07ccd..5280991f2 100644 --- a/view/store/src/pages/product/productList/index.vue +++ b/view/store/src/pages/product/productList/index.vue @@ -28,6 +28,15 @@ +