You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 line
101 KiB

  1. {"version":3,"sources":["webpack:///static/js/44.cbf16af592f67cb5262d.js","webpack:///./src/api/stock/inverntory.js?0b80","webpack:///./src/views/stock/inverntory/index.vue?d2cf","webpack:///./src/api/stock/supplier.js?33a7","webpack:///./src/views/stock/inverntory/index.vue?e941","webpack:///./src/api/marketing/shop/store.js?838e****************************","webpack:///./src/views/stock/inverntory/index.vue?0476","webpack:///src/views/stock/inverntory/index.vue","webpack:///./src/views/stock/inverntory/index.vue"],"names":["webpackJsonp","C4CJ","module","__webpack_exports__","__webpack_require__","pdList","params","i","__WEBPACK_IMPORTED_MODULE_0__utils_fetch__","url","method","pdShowList","pdTotalList","historyList","inventoryList","ingoods","data","wingoods","returngoods","outgoods","losegoods","supReturngoods","totalamount","F3Qx","exports","push","version","sources","names","mappings","file","sourcesContent","sourceRoot","M6dI","supplierList","supplierAdd","id","supplierDel","OHju","render","_vm","this","_h","$createElement","_c","_self","staticClass","ref","attrs","inline","model","listQuery","label","prop","placeholder","value","callback","$$v","$set","expression","_l","item","key","name","_v","clearable","type","on","click","fetchData","$event","resetForm","handleDownload","_s","totalAmount","totalStorageNum","directives","rawName","modifiers","body","list","element-loading-text","border","fit","align","width","scopedSlots","_u","fn","scope","row","isStock","size","_e","to","path","query","sid","shopId","goodsBarCode","current-page","currPage","page-sizes","page-size","limit","layout","total","size-change","handleSizeChange","current-change","handleCurrentChange","title","visible","dialogIn","before-close","handleClose","update:visible","staticStyle","margin-top","form","rules","rule","label-width","margin-left","goodsName","num","trim","intypevalue","index","value-format","slot","subTable","dialogOut","outtypevalue","subTableOut","staticRenderFns","esExports","g45I","storeList","storeAdd","storeFind","storeEdit","par","storeOta","storeDel","jfLB","content","locals","sH7f","__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__","__WEBPACK_IMPORTED_MODULE_1__api_marketing_shop_store__","__WEBPACK_IMPORTED_MODULE_2__api_stock_supplier__","created","_this","shopIds","length","then","response","shopList","result","rows","status","supplierId","listLoading","watch","listQuery.shopId","_this2","_this3","validatestorageNum","Error","$store","getters","usertype","dialogVisible","offset","isPage","goodsCategory","intype","0","1","2","outtype","storageNum","required","message","trigger","pattern","validator","inPrice","methods","_this4","$message","center","shop_id","formName","$refs","resetFields","vo","goodsId","unit","goodsUnit","orgId","val","clearValidate","_this5","validate","valid","post","supplier","madeDate","qualityDate","uniqId","_this6","_this7","e","bind","excel","tHeader","filterVal","formatJson","export_json_to_excel","jsonData","map","v","j","thh6","injectStyle","ssrContext","Object","defineProperty","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd6e3aa0_hasScoped_false_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__","normalizeComponent","__vue_styles__","Component"],"mappings":"AAAAA,cAAc,KAERC,KACA,SAAUC,EAAQC,EAAqBC,GAE7C,YCFO,SAASC,GAAOC,GACrB,MAAOF,GAAAG,EAAAC,EAAA,IACLC,IAAK,gDACLC,OAAQ,MACRJ,WAKG,QAASK,GAAWL,GACzB,MAAOF,GAAAG,EAAAC,EAAA,IACLC,IAAK,kDACLC,OAAQ,MACRJ,WAIG,QAASM,GAAYN,GAC1B,MAAOF,GAAAG,EAAAC,EAAA,IACLC,IAAK,mDACLC,OAAQ,MACRJ,WAOG,QAASO,GAAYP,GACxB,MAAOF,GAAAG,EAAAC,EAAA,IACHC,IAAK,uCACLC,OAAQ,MACRJ,WAID,QAASQ,GAAcR,GAC1B,MAAOF,GAAAG,EAAAC,EAAA,IACHC,IAAK,oCACLC,OAAQ,MACRJ,WAID,QAASS,GAAQT,GACtB,MAAOF,GAAAG,EAAAC,EAAA,IACLC,IAAK,uCACLC,OAAQ,OACRM,KAAKV,IAKF,QAASW,GAASX,GACvB,MAAOF,GAAAG,EAAAC,EA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bd/I,kBPo3BIG,eAAgB,WO52BpB,GAAA6I,GAAA5K,IP+2BMrC,GAAoBkN,EAAgB,IAAmB1D,KAAKxJ,EAAoBmN,KAAK,KAAM,SAAS3D,KAAK,SAAU4D,GACjH,GAAIC,IAAW,OAAQ,OAAQ,KAAM,MAAO,OAAQ,KAAM,OAAQ,QAAS,OO92BnF,OP+2BYC,GAAa,eAAgB,YAAa,gBAAiB,WAAY,cAAe,aAAc,iBAAkB,uBAAwB,cO92B1J,WP+2BQL,GAAOlK,UAAU4H,QO92BzB,EP+2BQ3K,EAAoBG,EAAE8I,EAA2E,GAAGgE,EAAOlK,WAAWyG,KAAK,SAAUC,GACnI,GAAI7E,GAAO6E,EAASE,OO92B9B/I,KP+2BcA,EAAOqM,EAAOM,WAAWD,EO92BvC1I,EP+2BUwI,GAAMI,qBAAqBH,EAASzM,EO92B9C,QP+2BUqM,EAAOlK,UAAU4H,QO92B3B,OPk3BI4C,WAAY,SAAoBD,EAAWG,GACzC,MAAOA,GAASC,IAAI,SAAUC,GAC5B,MAAOL,GAAUI,IAAI,SAAUE,GAC7B,MAAOD,GO/2BjBC,WPw3BMC,KACA,SAAU/N,EAAQC,EAAqBC,GAE7C,YQ10CA,SAAA8N,GAAAC,GACA/N,EAAA,QR00CAgO,OAAOC,eAAelO,EAAqB,cAAgBoD,OAAO,GAC7C,IAAI+K,GAAiHlO,EAAoB,QQ50C9JmO,EAAAnO,EAAA,QAGAoO,EAAApO,EAAA,QAMAqO,EAAAP,EAKAQ,EAAAF,EACAF,EAAA,EACAC,EAAA,EACAE,EANA,KAEA,KASAtO,GAAA,QAAAuO,EAAA","file":"static/js/44.cbf16af592f67cb5262d.js","sourcesContent":["webpackJsonp([44],{\n\n/***/ \"C4CJ\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = pdList;\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = pdShowList;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = pdTotalList;\n/* harmony export (immutable) */ __webpack_exports__[\"l\"] = historyList;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = inventoryList;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = ingoods;\n/* harmony export (immutable) */ __webpack_exports__[\"g\"] = wingoods;\n/* harmony export (immutable) */ __webpack_exports__[\"h\"] = returngoods;\n/* harmony export (immutable) */ __webpack_exports__[\"i\"] = outgoods;\n/* harmony export (immutable) */ __webpack_exports__[\"j\"] = losegoods;\n/* harmony export (immutable) */ __webpack_exports__[\"k\"] = supReturngoods;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = totalamount;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_fetch__ = __webpack_require__(\"Vo7i\");\n\n\n//盘点列表\nfunction pdList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/check-stock/list',\n method: 'get',\n params: params\n });\n}\n\n//盘点列表详情\nfunction pdShowList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/check-stock/detail',\n method: 'get',\n params: params\n });\n}\n//盘点统计\nfunction pdTotalList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/check-stock/summary',\n method: 'get',\n params: params\n });\n}\n\n//列表库存流水\nfunction historyList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/history',\n method: 'get',\n params: params\n });\n}\n//列表库存\nfunction inventoryList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/list',\n method: 'get',\n params: params\n });\n}\n//入库\nfunction ingoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/stockIn',\n method: 'post',\n data: params\n });\n}\n\n//盘盈\nfunction wingoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/checkAdd',\n method: 'post',\n data: params\n });\n}\n//退货\nfunction returngoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/userReturn',\n method: 'post',\n data: params\n });\n}\n//领用\nfunction outgoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/goodsTake',\n method: 'put',\n data: params\n });\n}\n//盘损\nfunction losegoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/checkDec',\n method: 'put',\n data: params\n });\n}\n//.向供应商退货接口\nfunction supReturngoods(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/supReturn',\n method: 'put',\n data: params\n });\n}\n\n//统计\nfunction totalamount(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/total-amount',\n method: 'get',\n params: params\n });\n}\n\n/***/ }),\n\n/***/ \"F3Qx\":\n/***/ (function(module, exports, __webpack_require__) {\n\nexports = module.exports = __webpack_require__(\"FZ+f\")(true);\n// imports\n\n\n// module\nexports.push([module.i, \".demo-table-expand{margin-top:-30px;font-size:0}.demo-table-expand label{width:90px;color:#99a9bf}.demo-table-expand .el-form-item{margin-right:0;margin-bottom:0;width:50%}.box-card{margin:20px auto;height:60px;background-color:rgba(199,223,255,.2)}.box-card span{margin-left:30px}\", \"\", {\"version\":3,\"sources\":[\"D:/projects/gitLab/wxpos/posadmin/src/views/stock/inverntory/index.vue\"],\"names\":[],\"mappings\":\"AACA,mBACE,iBAAkB,AAClB,WAAa,CACd,AACD,yBACE,WAAY,AACZ,aAAe,CAChB,AACD,iCACE,eAAgB,AAChB,gBAAiB,AACjB,SAAW,CACZ,AACD,UACE,iBAA4B,AAC5B,YAAa,AACb,qCAA2C,CAC5C,AACD,eACE,gBAAkB,CACnB\",\"file\":\"index.vue\",\"sourcesContent\":[\"\\n.demo-table-expand {\\n margin-top: -30px;\\n font-size: 0;\\n}\\n.demo-table-expand label {\\n width: 90px;\\n color: #99a9bf;\\n}\\n.demo-table-expand .el-form-item {\\n margin-right: 0;\\n margin-bottom: 0;\\n width: 50%;\\n}\\n.box-card {\\n margin: 20px auto 20px auto;\\n height: 60px;\\n background-color: rgba(199, 223, 255, 0.2);\\n}\\n.box-card span {\\n margin-left: 30px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n\n// exports\n\n\n/***/ }),\n\n/***/ \"M6dI\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = supplierList;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = supplierAdd;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = supplierDel;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_fetch__ = __webpack_require__(\"Vo7i\");\n\n\n//供应商列表\nfunction supplierList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/supplier/list',\n method: 'get',\n params: params\n });\n}\n\n//添加修改供应商\nfunction supplierAdd(params) {\n var method = 'post';\n if (params.id) {\n method = 'put';\n }\n\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/supplier/',\n method: method,\n data: params\n });\n}\n\n//删除供应商\nfunction supplierDel(id) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-inventory/inventory/supplier/' + id,\n method: 'delete'\n });\n}\n\n/***/ }),\n\n/***/ \"OHju\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"app-container\"\n }, [_c('el-form', {\n ref: \"listQuery\",\n staticClass: \"demo-form-inline\",\n attrs: {\n \"inline\": true,\n \"model\": _vm.listQuery\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"门店\",\n \"prop\": \"\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"门店\"\n },\n model: {\n value: (_vm.listQuery.shopId),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"shopId\", $$v)\n },\n expression: \"listQuery.shopId\"\n }\n }, _vm._l((_vm.shopList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"prop\": \"goodsBarCode\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"商品条码\"\n },\n model: {\n value: (_vm.listQuery.goodsBarCode),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsBarCode\", $$v)\n },\n expression: \"listQuery.goodsBarCode\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"商品名称\",\n \"prop\": \"goodsName\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"商品名称\"\n },\n model: {\n value: (_vm.listQuery.goodsName),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsName\", $$v)\n },\n expression: \"listQuery.goodsName\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"类别\",\n \"prop\": \"goodsCategory\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"类别\"\n },\n model: {\n value: (_vm.listQuery.goodsCategory),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsCategory\", $$v)\n },\n expression: \"listQuery.goodsCategory\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"供货商\",\n \"prop\": \"supplierId\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.listQuery.supplierId),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"supplierId\", $$v)\n },\n expression: \"listQuery.supplierId\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"操作人\",\n \"prop\": \"operator\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"操作人\"\n },\n model: {\n value: (_vm.listQuery.operator),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"operator\", $$v)\n },\n expression: \"listQuery.operator\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', [_c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.fetchData\n }\n }, [_vm._v(\"查询\")]), _vm._v(\" \"), _c('el-button', {\n on: {\n \"click\": function($event) {\n _vm.resetForm('listQuery')\n }\n }\n }, [_vm._v(\"重置\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"success\"\n },\n on: {\n \"click\": _vm.handleDownload\n }\n }, [_vm._v(\"导出\")])], 1)], 1), _vm._v(\" \"), _c('el-card', {\n staticClass: \"box-card\"\n }, [_c('span', [_vm._v(\"库存总金额:\" + _vm._s(_vm.totalAmount) + \"元\")]), _vm._v(\" \"), _c('span', [_vm._v(\"库存总数:\" + _vm._s(_vm.totalStorageNum))])]), _vm._v(\" \"), _c('el-table', {\n directives: [{\n name: \"loading\",\n rawName: \"v-loading.body\",\n value: (_vm.listLoading),\n expression: \"listLoading\",\n modifiers: {\n \"body\": true\n }\n }],\n attrs: {\n \"data\": _vm.list,\n \"element-loading-text\": \"拼命加载中\",\n \"border\": \"\",\n \"fit\": \"\"\n }\n }, [_c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"商品条码\",\n \"prop\": \"goodsBarCode\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"商品名称\",\n \"prop\": \"goodsName\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"类别\",\n \"prop\": \"goodsCategory\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"供应商\",\n \"prop\": \"supplier\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"过期日期\",\n \"prop\": \"qualityDate\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"数量\",\n \"prop\": \"storageNum\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"进价均价\",\n \"prop\": \"averageInPrice\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"库存总金额\",\n \"prop\": \"totalInventoryAmount\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"更新时间\",\n \"prop\": \"updatedTime\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"操作人\",\n \"prop\": \"operator\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"操作\",\n \"width\": \"160\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function(scope) {\n return [(scope.row.isStock === 1) ? _c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n on: {\n \"click\": function($event) {\n _vm.ingoods(scope.row)\n }\n }\n }, [_vm._v(\"入库\")]) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 1) ? _c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n on: {\n \"click\": function($event) {\n _vm.outgoods(scope.row)\n }\n }\n }, [_vm._v(\"出库\")]) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 1) ? _c('router-link', {\n attrs: {\n \"to\": {\n path: 'history',\n query: {\n sid: _vm.listQuery.shopId,\n goodsBarCode: scope.row.goodsBarCode\n }\n }\n }\n }, [_c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n }\n }, [_vm._v(\"历史明细\")])], 1) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 0) ? _c('span', [_vm._v(\"无库存管理商品\")]) : _vm._e()]\n }\n }])\n })], 1), _vm._v(\" \"), _c('el-pagination', {\n staticClass: \"pagination\",\n attrs: {\n \"current-page\": _vm.currPage,\n \"page-sizes\": [10, 30, 50, 100],\n \"page-size\": _vm.listQuery.limit,\n \"layout\": \"total, sizes, prev, pager, next\",\n \"total\": _vm.total\n },\n on: {\n \"size-change\": _vm.handleSizeChange,\n \"current-change\": _vm.handleCurrentChange\n }\n }), _vm._v(\" \"), _c('el-dialog', {\n attrs: {\n \"title\": \" 入库\",\n \"visible\": _vm.dialogIn,\n \"before-close\": _vm.handleClose\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogIn = $event\n }\n }\n }, [_c('el-form', {\n ref: \"form\",\n staticStyle: {\n \"margin-top\": \"-30px\"\n },\n attrs: {\n \"model\": _vm.form,\n \"rules\": _vm.rule\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(_vm._s(_vm.form.goodsBarCode))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"商品名称\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.goodsName))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"库存剩余\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.num))])]), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"数量\",\n \"label-width\": \"15%\",\n \"prop\": \"storageNum\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.storageNum),\n callback: function($$v) {\n _vm.$set(_vm.form, \"storageNum\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.storageNum\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"入库类型\",\n \"label-width\": \"15%\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\"\n },\n model: {\n value: (_vm.intypevalue),\n callback: function($$v) {\n _vm.intypevalue = $$v\n },\n expression: \"intypevalue\"\n }\n }, _vm._l((_vm.intype), function(item, index) {\n return _c('el-option', {\n key: index,\n attrs: {\n \"label\": item,\n \"value\": index\n }\n })\n }))], 1), _vm._v(\" \"), (_vm.intypevalue == '0') ? _c('el-form-item', {\n attrs: {\n \"label\": \"进价\",\n \"label-width\": \"15%\",\n \"prop\": \"inPrice\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.inPrice),\n callback: function($$v) {\n _vm.$set(_vm.form, \"inPrice\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.inPrice\"\n }\n })], 1) : _vm._e(), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"生产日期\",\n \"label-width\": \"15%\",\n \"prop\": \"madeDate\"\n }\n }, [_c('el-date-picker', {\n attrs: {\n \"type\": \"date\",\n \"placeholder\": \"生产日期\",\n \"value-format\": \"yyyy-MM-dd\"\n },\n model: {\n value: (_vm.form.madeDate),\n callback: function($$v) {\n _vm.$set(_vm.form, \"madeDate\", $$v)\n },\n expression: \"form.madeDate\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"到期日期\",\n \"label-width\": \"15%\",\n \"prop\": \"qualityDate\"\n }\n }, [_c('el-date-picker', {\n attrs: {\n \"type\": \"date\",\n \"placeholder\": \"到期日期\",\n \"value-format\": \"yyyy-MM-dd\"\n },\n model: {\n value: (_vm.form.qualityDate),\n callback: function($$v) {\n _vm.$set(_vm.form, \"qualityDate\", $$v)\n },\n expression: \"form.qualityDate\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"供应商\",\n \"label-width\": \"15%\",\n \"prop\": \"supplier\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.form.supplier),\n callback: function($$v) {\n _vm.$set(_vm.form, \"supplier\", $$v)\n },\n expression: \"form.supplier\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1)], 1), _vm._v(\" \"), _c('div', {\n staticClass: \"dialog-footer\",\n attrs: {\n \"slot\": \"footer\"\n },\n slot: \"footer\"\n }, [_c('el-button', {\n on: {\n \"click\": _vm.handleClose\n }\n }, [_vm._v(\"取 消\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.subTable\n }\n }, [_vm._v(\"确 定\")])], 1)], 1), _vm._v(\" \"), _c('el-dialog', {\n attrs: {\n \"title\": \" 出库\",\n \"visible\": _vm.dialogOut,\n \"before-close\": _vm.handleClose\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogOut = $event\n }\n }\n }, [_c('el-form', {\n ref: \"form\",\n staticStyle: {\n \"margin-top\": \"-30px\"\n },\n attrs: {\n \"model\": _vm.form,\n \"rules\": _vm.rule\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(_vm._s(_vm.form.goodsBarCode))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"商品名称\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.goodsName))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"库存剩余\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.num))])]), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"数量\",\n \"label-width\": \"15%\",\n \"prop\": \"storageNum\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.storageNum),\n callback: function($$v) {\n _vm.$set(_vm.form, \"storageNum\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.storageNum\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"出库类型\",\n \"label-width\": \"15%\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\"\n },\n model: {\n value: (_vm.outtypevalue),\n callback: function($$v) {\n _vm.outtypevalue = $$v\n },\n expression: \"outtypevalue\"\n }\n }, _vm._l((_vm.outtype), function(item, index) {\n return _c('el-option', {\n key: index,\n attrs: {\n \"label\": item,\n \"value\": index\n }\n })\n }))], 1), _vm._v(\" \"), (_vm.outtypevalue == '2') ? _c('el-form-item', {\n attrs: {\n \"label\": \"供应商\",\n \"label-width\": \"15%\",\n \"prop\": \"supplier\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.form.supplier),\n callback: function($$v) {\n _vm.$set(_vm.form, \"supplier\", $$v)\n },\n expression: \"form.supplier\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1) : _vm._e()], 1), _vm._v(\" \"), _c('div', {\n staticClass: \"dialog-footer\",\n attrs: {\n \"slot\": \"footer\"\n },\n slot: \"footer\"\n }, [_c('el-button', {\n on: {\n \"click\": _vm.handleClose\n }\n }, [_vm._v(\"取 消\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.subTableOut\n }\n }, [_vm._v(\"确 定\")])], 1)], 1)], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"g45I\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (immutable) */ __webpack_exports__[\"a\"] = storeList;\n/* harmony export (immutable) */ __webpack_exports__[\"f\"] = storeAdd;\n/* harmony export (immutable) */ __webpack_exports__[\"b\"] = storeFind;\n/* harmony export (immutable) */ __webpack_exports__[\"c\"] = storeEdit;\n/* harmony export (immutable) */ __webpack_exports__[\"d\"] = storeOta;\n/* harmony export (immutable) */ __webpack_exports__[\"e\"] = storeDel;\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils_fetch__ = __webpack_require__(\"Vo7i\");\n\n// 门店列表\nfunction storeList(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-org/shop/list',\n method: 'get',\n params: params\n });\n}\n\n// 门店添加\nfunction storeAdd(params) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/unionService/shop/shop',\n method: 'post',\n data: params\n });\n}\n// 门店查询\nfunction storeFind(id) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-org/shop/detail?shopId=' + id,\n method: 'get'\n });\n}\n// 门店修改\nfunction storeEdit(par) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/unionService/shop/shop',\n method: 'put',\n data: par\n });\n}\n// 门店关联ota\nfunction storeOta(par) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/unionService/device/store',\n method: 'put',\n data: par\n });\n}\n\n// 门店删除\nfunction storeDel(id) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__utils_fetch__[\"a\" /* default */])({\n url: '/service-org/shop/delete?shopId=' + id,\n method: 'DELETE'\n });\n}\n\n/***/ }),\n\n/***/ \"jfLB\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(\"F3Qx\");\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = __webpack_require__(\"rjj0\")(\"544cf1c9\", content, true);\n\n/***/ }),\n\n/***/ \"sH7f\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__ = __webpack_require__(\"C4CJ\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__api_marketing_shop_store__ = __webpack_require__(\"g45I\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__api_stock_supplier__ = __webpack_require__(\"M6dI\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n created: function created() {\n var _this = this;\n\n if (this.shopIds.length == 1) {\n this.listQuery.shopId = this.shopIds[0];\n this.fetchData();\n } else {\n //if (this.usertype == 'user') {\n //多个门店选择\n // storeList().then(response => {\n // this.shopList = response.result.rows\n // this.listQuery.shopId = response.result.rows[0].id\n // }).then(() => {\n // // this.listQuery.shopId =this.shopList[0][id]\n // this.fetchData()\n // })\n //}else{\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__api_marketing_shop_store__[\"a\" /* storeList */])().then(function (response) {\n _this.shopList = response.result.rows;\n _this.listQuery.shopId = response.result.rows[0].id;\n }).then(function () {\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__api_stock_supplier__[\"a\" /* supplierList */])({\n shopId: _this.listQuery.shopId,\n status: 1\n }).then(function (response) {\n _this.supplierList = response.result;\n _this.listQuery.supplierId = '';\n }).then(function () {\n // this.listQuery.shopId =this.shopList[0][id]\n _this.fetchData();\n });\n });\n //}\n this.listLoading = false;\n }\n },\n\n watch: {\n \"listQuery.shopId\": function listQueryShopId() {\n var _this2 = this;\n\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__api_stock_supplier__[\"a\" /* supplierList */])({\n shopId: this.listQuery.shopId,\n status: 1\n }).then(function (response) {\n _this2.supplierList = response.result;\n _this2.listQuery.supplierId = '';\n });\n }\n\n },\n data: function data() {\n var _this3 = this;\n\n var validatestorageNum = function validatestorageNum(rule, value, callback) {\n if (_this3.dialogOut == true) {\n if (_this3.form.num < value) {\n callback(new Error(\"数量不能大于库存剩余\"));\n }\n }\n callback();\n };\n return {\n shopIds: this.$store.getters.shopIds,\n usertype: this.$store.getters.usertype,\n shopList: [],\n dialogVisible: false,\n list: null,\n listLoading: true,\n listQuery: {\n shopId: '',\n supplierId: '',\n limit: 10,\n offset: 0,\n isPage: true,\n goodsName: '',\n goodsCategory: ''\n },\n currPage: 1,\n total: null,\n supplierList: [],\n intypevalue: '0',\n outtypevalue: \"0\",\n dialogIn: false,\n dialogOut: false,\n intype: {\n 0: '进货',\n 1: '盘盈',\n 2: '用户退货'\n },\n outtype: {\n 0: '领取',\n 1: '盘损',\n 2: '向供应商退货'\n },\n form: {},\n\n totalAmount: '',\n totalStorageNum: '',\n rule: {\n storageNum: [{ required: true, message: '请输数量', trigger: 'blur' }, { pattern: /^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$/, message: '请输入正确的数量', trigger: 'blur' }, { trigger: \"blur\", validator: validatestorageNum }],\n inPrice: [{ required: true, message: '请输入价格', trigger: 'blur' }, { pattern: /^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$/, message: '请输入正确的价格', trigger: 'blur' }]\n }\n };\n },\n\n\n methods: {\n fetchData: function fetchData() {\n var _this4 = this;\n\n if (this.listQuery.shopId == '') {\n this.$message({\n message: '请选择门店',\n center: true,\n type: 'warning'\n });\n } else {\n this.listLoading = true;\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"d\" /* inventoryList */])(this.listQuery).then(function (response) {\n _this4.list = response.result.data;\n _this4.total = response.result.total;\n _this4.listLoading = false;\n });\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"e\" /* totalamount */])({\n shop_id: this.listQuery.shopId\n }).then(function (response) {\n _this4.totalAmount = response.result.totalAmount;\n _this4.totalStorageNum = response.result.totalStorageNum;\n });\n }\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n },\n ingoods: function ingoods(vo) {\n this.form = {\n 'goodsId': vo.goodsId,\n 'goodsBarCode': vo.goodsBarCode,\n 'goodsName': vo.goodsName,\n 'num': vo.storageNum,\n 'unit': vo.goodsUnit,\n orgId: this.$store.getters.orgId\n };\n this.intypevalue = '0';\n this.dialogIn = true;\n },\n outgoods: function outgoods(vo) {\n this.form = {\n 'goodsId': vo.goodsId,\n 'goodsBarCode': vo.goodsBarCode,\n 'goodsName': vo.goodsName,\n 'num': vo.storageNum,\n 'unit': vo.goodsUnit\n };\n this.outtypevalue = '0';\n this.dialogOut = true;\n },\n handleSizeChange: function handleSizeChange(val) {\n this.listQuery.limit = val;\n this.listQuery.offset = (this.currPage - 1) * val;\n this.fetchData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.currPage = val;\n this.listQuery.offset = this.listQuery.limit * (val - 1);\n this.fetchData();\n },\n handleClose: function handleClose() {\n this.$refs['form'].clearValidate();\n this.dialogIn = false;\n this.dialogOut = false;\n },\n subTable: function subTable() {\n var _this5 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n if (_this5.intypevalue == '0') {\n //入库\n _this5.form.shopId = _this5.listQuery.shopId;\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"f\" /* ingoods */])(_this5.form).then(function (response) {\n _this5.dialogIn = false;\n _this5.fetchData();\n });\n } else if (_this5.intypevalue == '1') {\n var post = {\n goodsId: _this5.form.goodsId,\n shopId: _this5.listQuery.shopId,\n storageNum: _this5.form.storageNum,\n supplier: _this5.form.supplier,\n madeDate: _this5.form.madeDate,\n qualityDate: _this5.form.qualityDate\n };\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"g\" /* wingoods */])(post).then(function (response) {\n _this5.dialogIn = false;\n _this5.fetchData();\n });\n } else if (_this5.intypevalue == '2') {\n var post = {\n goodsId: _this5.form.goodsId,\n shopId: _this5.listQuery.shopId,\n storageNum: _this5.form.storageNum,\n uniqId: '',\n supplier: _this5.form.supplier,\n madeDate: _this5.form.madeDate,\n qualityDate: _this5.form.qualityDate\n };\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"h\" /* returngoods */])(post).then(function (response) {\n _this5.dialogIn = false;\n _this5.fetchData();\n });\n }\n } else {\n return false;\n }\n });\n },\n subTableOut: function subTableOut() {\n var _this6 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n if (_this6.outtypevalue == '0') {\n //领取\n var post = {\n goodsId: _this6.form.goodsId,\n shopId: _this6.listQuery.shopId,\n storageNum: _this6.form.storageNum,\n supplier: _this6.form.supplier\n };\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"i\" /* outgoods */])(post).then(function (response) {\n _this6.dialogOut = false;\n _this6.fetchData();\n });\n } else if (_this6.outtypevalue == '1') {\n var post = {\n goodsId: _this6.form.goodsId,\n shopId: _this6.listQuery.shopId,\n storageNum: _this6.form.storageNum,\n supplier: _this6.form.supplier,\n uniqId: ''\n };\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"j\" /* losegoods */])(post).then(function (response) {\n _this6.dialogOut = false;\n _this6.fetchData();\n });\n } else if (_this6.outtypevalue == '2') {\n var post = {\n goodsId: _this6.form.goodsId,\n shopId: _this6.listQuery.shopId,\n storageNum: _this6.form.storageNum\n };\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"k\" /* supReturngoods */])(post).then(function (response) {\n _this6.dialogOut = false;\n _this6.fetchData();\n });\n }\n } else {\n return false;\n }\n });\n },\n handleDownload: function handleDownload() {\n var _this7 = this;\n\n __webpack_require__.e/* import() */(90/* duplicate */).then(__webpack_require__.bind(null, \"zWO4\")).then(function (excel) {\n var tHeader = ['商品条码', '商品名称', '类别', '供应商', '过期日期', '数量', '进价均价', '库存总金额', '更新时间', '操作人'];\n var filterVal = ['goodsBarCode', 'goodsName', 'goodsCategory', 'supplier', 'qualityDate', 'storageNum', 'averageInPrice', 'totalInventoryAmount', 'updatedTime', 'operator'];\n _this7.listQuery.isPage = false;\n __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__api_stock_inverntory__[\"d\" /* inventoryList */])(_this7.listQuery).then(function (response) {\n var list = response.result.data;\n var data = _this7.formatJson(filterVal, list);\n excel.export_json_to_excel(tHeader, data, '库存列表');\n _this7.listQuery.isPage = true;\n });\n });\n },\n formatJson: function formatJson(filterVal, jsonData) {\n return jsonData.map(function (v) {\n return filterVal.map(function (j) {\n return v[j];\n });\n });\n }\n }\n});\n\n/***/ }),\n\n/***/ \"thh6\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__ = __webpack_require__(\"sH7f\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd6e3aa0_hasScoped_false_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__ = __webpack_require__(\"OHju\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"jfLB\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_index_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_dd6e3aa0_hasScoped_false_node_modules_vue_loader_lib_selector_type_template_index_0_index_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Component.exports);\n\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// static/js/44.cbf16af592f67cb5262d.js","import fetch from '@/utils/fetch'\r\n\r\n//盘点列表\r\nexport function pdList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/check-stock/list',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n//盘点列表详情\r\nexport function pdShowList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/check-stock/detail',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n//盘点统计\r\nexport function pdTotalList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/check-stock/summary',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n\r\n//列表库存流水\r\nexport function historyList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/history',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n//列表库存\r\nexport function inventoryList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/list',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n//入库\r\nexport function ingoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/stockIn',\r\n method: 'post',\r\n data:params\r\n })\r\n}\r\n\r\n//盘盈\r\nexport function wingoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/checkAdd',\r\n method: 'post',\r\n data:params\r\n })\r\n}\r\n//退货\r\nexport function returngoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/userReturn',\r\n method: 'post',\r\n data:params\r\n })\r\n}\r\n//领用\r\nexport function outgoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/goodsTake',\r\n method: 'put',\r\n data:params\r\n })\r\n}\r\n//盘损\r\nexport function losegoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/checkDec',\r\n method: 'put',\r\n data:params\r\n })\r\n}\r\n//.向供应商退货接口\r\nexport function supReturngoods(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/supReturn',\r\n method: 'put',\r\n data:params\r\n })\r\n}\r\n\r\n//统计\r\nexport function totalamount(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/total-amount',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/stock/inverntory.js","exports = module.exports = require(\"../../../../node_modules/css-loader/lib/css-base.js\")(true);\n// imports\n\n\n// module\nexports.push([module.id, \".demo-table-expand{margin-top:-30px;font-size:0}.demo-table-expand label{width:90px;color:#99a9bf}.demo-table-expand .el-form-item{margin-right:0;margin-bottom:0;width:50%}.box-card{margin:20px auto;height:60px;background-color:rgba(199,223,255,.2)}.box-card span{margin-left:30px}\", \"\", {\"version\":3,\"sources\":[\"D:/projects/gitLab/wxpos/posadmin/src/views/stock/inverntory/index.vue\"],\"names\":[],\"mappings\":\"AACA,mBACE,iBAAkB,AAClB,WAAa,CACd,AACD,yBACE,WAAY,AACZ,aAAe,CAChB,AACD,iCACE,eAAgB,AAChB,gBAAiB,AACjB,SAAW,CACZ,AACD,UACE,iBAA4B,AAC5B,YAAa,AACb,qCAA2C,CAC5C,AACD,eACE,gBAAkB,CACnB\",\"file\":\"index.vue\",\"sourcesContent\":[\"\\n.demo-table-expand {\\n margin-top: -30px;\\n font-size: 0;\\n}\\n.demo-table-expand label {\\n width: 90px;\\n color: #99a9bf;\\n}\\n.demo-table-expand .el-form-item {\\n margin-right: 0;\\n margin-bottom: 0;\\n width: 50%;\\n}\\n.box-card {\\n margin: 20px auto 20px auto;\\n height: 60px;\\n background-color: rgba(199, 223, 255, 0.2);\\n}\\n.box-card span {\\n margin-left: 30px;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n\n// exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/css-loader?{\"minimize\":true,\"sourceMap\":true}!./~/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-dd6e3aa0\",\"scoped\":false,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/stock/inverntory/index.vue\n// module id = F3Qx\n// module chunks = 44","import fetch from '@/utils/fetch'\r\n\r\n//供应商列表\r\nexport function supplierList(params) {\r\n return fetch({\r\n url: '/service-inventory/inventory/supplier/list',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n//添加修改供应商\r\nexport function supplierAdd(params) {\r\n var method ='post'\r\n if (params.id) {\r\n method = 'put'\r\n }\r\n\r\n return fetch({\r\n url: '/service-inventory/inventory/supplier/',\r\n method: method,\r\n data: params\r\n })\r\n}\r\n\r\n//删除供应商\r\nexport function supplierDel(id) {\r\n return fetch({\r\n url: '/service-inventory/inventory/supplier/' + id,\r\n method: 'delete',\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/stock/supplier.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"app-container\"\n }, [_c('el-form', {\n ref: \"listQuery\",\n staticClass: \"demo-form-inline\",\n attrs: {\n \"inline\": true,\n \"model\": _vm.listQuery\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"门店\",\n \"prop\": \"\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"门店\"\n },\n model: {\n value: (_vm.listQuery.shopId),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"shopId\", $$v)\n },\n expression: \"listQuery.shopId\"\n }\n }, _vm._l((_vm.shopList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"prop\": \"goodsBarCode\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"商品条码\"\n },\n model: {\n value: (_vm.listQuery.goodsBarCode),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsBarCode\", $$v)\n },\n expression: \"listQuery.goodsBarCode\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"商品名称\",\n \"prop\": \"goodsName\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"商品名称\"\n },\n model: {\n value: (_vm.listQuery.goodsName),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsName\", $$v)\n },\n expression: \"listQuery.goodsName\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"类别\",\n \"prop\": \"goodsCategory\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"类别\"\n },\n model: {\n value: (_vm.listQuery.goodsCategory),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"goodsCategory\", $$v)\n },\n expression: \"listQuery.goodsCategory\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"供货商\",\n \"prop\": \"supplierId\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.listQuery.supplierId),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"supplierId\", $$v)\n },\n expression: \"listQuery.supplierId\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"操作人\",\n \"prop\": \"operator\"\n }\n }, [_c('el-input', {\n attrs: {\n \"placeholder\": \"操作人\"\n },\n model: {\n value: (_vm.listQuery.operator),\n callback: function($$v) {\n _vm.$set(_vm.listQuery, \"operator\", $$v)\n },\n expression: \"listQuery.operator\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', [_c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.fetchData\n }\n }, [_vm._v(\"查询\")]), _vm._v(\" \"), _c('el-button', {\n on: {\n \"click\": function($event) {\n _vm.resetForm('listQuery')\n }\n }\n }, [_vm._v(\"重置\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"success\"\n },\n on: {\n \"click\": _vm.handleDownload\n }\n }, [_vm._v(\"导出\")])], 1)], 1), _vm._v(\" \"), _c('el-card', {\n staticClass: \"box-card\"\n }, [_c('span', [_vm._v(\"库存总金额:\" + _vm._s(_vm.totalAmount) + \"元\")]), _vm._v(\" \"), _c('span', [_vm._v(\"库存总数:\" + _vm._s(_vm.totalStorageNum))])]), _vm._v(\" \"), _c('el-table', {\n directives: [{\n name: \"loading\",\n rawName: \"v-loading.body\",\n value: (_vm.listLoading),\n expression: \"listLoading\",\n modifiers: {\n \"body\": true\n }\n }],\n attrs: {\n \"data\": _vm.list,\n \"element-loading-text\": \"拼命加载中\",\n \"border\": \"\",\n \"fit\": \"\"\n }\n }, [_c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"商品条码\",\n \"prop\": \"goodsBarCode\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"商品名称\",\n \"prop\": \"goodsName\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"类别\",\n \"prop\": \"goodsCategory\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"供应商\",\n \"prop\": \"supplier\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"过期日期\",\n \"prop\": \"qualityDate\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"数量\",\n \"prop\": \"storageNum\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"进价均价\",\n \"prop\": \"averageInPrice\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"库存总金额\",\n \"prop\": \"totalInventoryAmount\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"更新时间\",\n \"prop\": \"updatedTime\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"操作人\",\n \"prop\": \"operator\"\n }\n }), _vm._v(\" \"), _c('el-table-column', {\n attrs: {\n \"align\": \"center\",\n \"label\": \"操作\",\n \"width\": \"160\"\n },\n scopedSlots: _vm._u([{\n key: \"default\",\n fn: function(scope) {\n return [(scope.row.isStock === 1) ? _c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n on: {\n \"click\": function($event) {\n _vm.ingoods(scope.row)\n }\n }\n }, [_vm._v(\"入库\")]) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 1) ? _c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n on: {\n \"click\": function($event) {\n _vm.outgoods(scope.row)\n }\n }\n }, [_vm._v(\"出库\")]) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 1) ? _c('router-link', {\n attrs: {\n \"to\": {\n path: 'history',\n query: {\n sid: _vm.listQuery.shopId,\n goodsBarCode: scope.row.goodsBarCode\n }\n }\n }\n }, [_c('el-button', {\n attrs: {\n \"size\": \"mini\",\n \"type\": \"text\"\n }\n }, [_vm._v(\"历史明细\")])], 1) : _vm._e(), _vm._v(\" \"), (scope.row.isStock === 0) ? _c('span', [_vm._v(\"无库存管理商品\")]) : _vm._e()]\n }\n }])\n })], 1), _vm._v(\" \"), _c('el-pagination', {\n staticClass: \"pagination\",\n attrs: {\n \"current-page\": _vm.currPage,\n \"page-sizes\": [10, 30, 50, 100],\n \"page-size\": _vm.listQuery.limit,\n \"layout\": \"total, sizes, prev, pager, next\",\n \"total\": _vm.total\n },\n on: {\n \"size-change\": _vm.handleSizeChange,\n \"current-change\": _vm.handleCurrentChange\n }\n }), _vm._v(\" \"), _c('el-dialog', {\n attrs: {\n \"title\": \" 入库\",\n \"visible\": _vm.dialogIn,\n \"before-close\": _vm.handleClose\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogIn = $event\n }\n }\n }, [_c('el-form', {\n ref: \"form\",\n staticStyle: {\n \"margin-top\": \"-30px\"\n },\n attrs: {\n \"model\": _vm.form,\n \"rules\": _vm.rule\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(_vm._s(_vm.form.goodsBarCode))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"商品名称\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.goodsName))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"库存剩余\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.num))])]), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"数量\",\n \"label-width\": \"15%\",\n \"prop\": \"storageNum\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.storageNum),\n callback: function($$v) {\n _vm.$set(_vm.form, \"storageNum\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.storageNum\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"入库类型\",\n \"label-width\": \"15%\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\"\n },\n model: {\n value: (_vm.intypevalue),\n callback: function($$v) {\n _vm.intypevalue = $$v\n },\n expression: \"intypevalue\"\n }\n }, _vm._l((_vm.intype), function(item, index) {\n return _c('el-option', {\n key: index,\n attrs: {\n \"label\": item,\n \"value\": index\n }\n })\n }))], 1), _vm._v(\" \"), (_vm.intypevalue == '0') ? _c('el-form-item', {\n attrs: {\n \"label\": \"进价\",\n \"label-width\": \"15%\",\n \"prop\": \"inPrice\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.inPrice),\n callback: function($$v) {\n _vm.$set(_vm.form, \"inPrice\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.inPrice\"\n }\n })], 1) : _vm._e(), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"生产日期\",\n \"label-width\": \"15%\",\n \"prop\": \"madeDate\"\n }\n }, [_c('el-date-picker', {\n attrs: {\n \"type\": \"date\",\n \"placeholder\": \"生产日期\",\n \"value-format\": \"yyyy-MM-dd\"\n },\n model: {\n value: (_vm.form.madeDate),\n callback: function($$v) {\n _vm.$set(_vm.form, \"madeDate\", $$v)\n },\n expression: \"form.madeDate\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"到期日期\",\n \"label-width\": \"15%\",\n \"prop\": \"qualityDate\"\n }\n }, [_c('el-date-picker', {\n attrs: {\n \"type\": \"date\",\n \"placeholder\": \"到期日期\",\n \"value-format\": \"yyyy-MM-dd\"\n },\n model: {\n value: (_vm.form.qualityDate),\n callback: function($$v) {\n _vm.$set(_vm.form, \"qualityDate\", $$v)\n },\n expression: \"form.qualityDate\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"供应商\",\n \"label-width\": \"15%\",\n \"prop\": \"supplier\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.form.supplier),\n callback: function($$v) {\n _vm.$set(_vm.form, \"supplier\", $$v)\n },\n expression: \"form.supplier\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1)], 1), _vm._v(\" \"), _c('div', {\n staticClass: \"dialog-footer\",\n attrs: {\n \"slot\": \"footer\"\n },\n slot: \"footer\"\n }, [_c('el-button', {\n on: {\n \"click\": _vm.handleClose\n }\n }, [_vm._v(\"取 消\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.subTable\n }\n }, [_vm._v(\"确 定\")])], 1)], 1), _vm._v(\" \"), _c('el-dialog', {\n attrs: {\n \"title\": \" 出库\",\n \"visible\": _vm.dialogOut,\n \"before-close\": _vm.handleClose\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogOut = $event\n }\n }\n }, [_c('el-form', {\n ref: \"form\",\n staticStyle: {\n \"margin-top\": \"-30px\"\n },\n attrs: {\n \"model\": _vm.form,\n \"rules\": _vm.rule\n }\n }, [_c('el-form-item', {\n attrs: {\n \"label\": \"商品条码\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(_vm._s(_vm.form.goodsBarCode))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"商品名称\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.goodsName))])]), _vm._v(\" \"), _c('el-form-item', {\n staticStyle: {\n \"margin-top\": \"-20px\"\n },\n attrs: {\n \"label\": \"库存剩余\",\n \"label-width\": \"15%\"\n }\n }, [_c('span', {\n staticStyle: {\n \"margin-left\": \"20px\"\n }\n }, [_vm._v(\" \" + _vm._s(_vm.form.num))])]), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"数量\",\n \"label-width\": \"15%\",\n \"prop\": \"storageNum\"\n }\n }, [_c('el-input', {\n model: {\n value: (_vm.form.storageNum),\n callback: function($$v) {\n _vm.$set(_vm.form, \"storageNum\", (typeof $$v === 'string' ? $$v.trim() : $$v))\n },\n expression: \"form.storageNum\"\n }\n })], 1), _vm._v(\" \"), _c('el-form-item', {\n attrs: {\n \"label\": \"出库类型\",\n \"label-width\": \"15%\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\"\n },\n model: {\n value: (_vm.outtypevalue),\n callback: function($$v) {\n _vm.outtypevalue = $$v\n },\n expression: \"outtypevalue\"\n }\n }, _vm._l((_vm.outtype), function(item, index) {\n return _c('el-option', {\n key: index,\n attrs: {\n \"label\": item,\n \"value\": index\n }\n })\n }))], 1), _vm._v(\" \"), (_vm.outtypevalue == '2') ? _c('el-form-item', {\n attrs: {\n \"label\": \"供应商\",\n \"label-width\": \"15%\",\n \"prop\": \"supplier\"\n }\n }, [_c('el-select', {\n attrs: {\n \"placeholder\": \"请选择\",\n \"clearable\": \"\"\n },\n model: {\n value: (_vm.form.supplier),\n callback: function($$v) {\n _vm.$set(_vm.form, \"supplier\", $$v)\n },\n expression: \"form.supplier\"\n }\n }, _vm._l((_vm.supplierList), function(item) {\n return _c('el-option', {\n key: item.id,\n attrs: {\n \"label\": item.name,\n \"value\": item.id\n }\n })\n }))], 1) : _vm._e()], 1), _vm._v(\" \"), _c('div', {\n staticClass: \"dialog-footer\",\n attrs: {\n \"slot\": \"footer\"\n },\n slot: \"footer\"\n }, [_c('el-button', {\n on: {\n \"click\": _vm.handleClose\n }\n }, [_vm._v(\"取 消\")]), _vm._v(\" \"), _c('el-button', {\n attrs: {\n \"type\": \"primary\"\n },\n on: {\n \"click\": _vm.subTableOut\n }\n }, [_vm._v(\"确 定\")])], 1)], 1)], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-dd6e3aa0\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/views/stock/inverntory/index.vue\n// module id = OHju\n// module chunks = 44","import fetch from '@/utils/fetch'\r\n// 门店列表\r\nexport function storeList(params) {\r\n return fetch({\r\n url: '/service-org/shop/list',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n// 门店添加\r\nexport function storeAdd(params) {\r\n return fetch({\r\n url: '/unionService/shop/shop',\r\n method: 'post',\r\n data: params\r\n })\r\n}\r\n// 门店查询\r\nexport function storeFind(id) {\r\n return fetch({\r\n url: '/service-org/shop/detail?shopId=' + id,\r\n method: 'get'\r\n })\r\n}\r\n// 门店修改\r\nexport function storeEdit(par) {\r\n return fetch({\r\n url: '/unionService/shop/shop',\r\n method: 'put',\r\n data: par\r\n })\r\n}\r\n// 门店关联ota\r\nexport function storeOta(par) {\r\n return fetch({\r\n url: '/unionService/device/store',\r\n method: 'put',\r\n data: par\r\n })\r\n}\r\n\r\n// 门店删除\r\nexport function storeDel(id) {\r\n return fetch({\r\n url: '/service-org/shop/delete?shopId=' + id,\r\n method: 'DELETE'\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/marketing/shop/store.js","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/css-loader/index.js?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-dd6e3aa0\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./index.vue\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar update = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\")(\"544cf1c9\", content, true);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!./~/vue-style-loader!./~/css-loader?{\"minimize\":true,\"sourceMap\":true}!./~/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-dd6e3aa0\",\"scoped\":false,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/views/stock/inverntory/index.vue\n// module id = jfLB\n// module chunks = 44","<template>\n <div class=\"app-container\">\n <el-form :inline=\"true\" :model=\"listQuery\" class=\"demo-form-inline\" ref=\"listQuery\">\n <el-form-item label=\"门店\" prop=\"\">\n <el-select v-model=\"listQuery.shopId\" placeholder=\"门店\">\n <el-option\n v-for=\"item in shopList\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\">\n </el-option>\n </el-select>\n </el-form-item>\n <el-form-item label=\"商品条码\" prop=\"goodsBarCode\">\n <el-input v-model=\"listQuery.goodsBarCode\" placeholder=\"商品条码\"></el-input>\n </el-form-item>\n <el-form-item label=\"商品名称\" prop=\"goodsName\">\n <el-input v-model=\"listQuery.goodsName\" placeholder=\"商品名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"类别\" prop=\"goodsCategory\">\n <el-input v-model=\"listQuery.goodsCategory\" placeholder=\"类别\"></el-input>\n </el-form-item>\n <el-form-item label=\"供货商\" prop=\"supplierId\">\n <el-select v-model=\"listQuery.supplierId\" placeholder=\"请选择\" clearable>\n <el-option\n v-for=\"item in supplierList\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\"/>\n </el-select>\n </el-form-item>\n <el-form-item label=\"操作人\" prop=\"operator\">\n <el-input v-model=\"listQuery.operator\" placeholder=\"操作人\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" v-on:click=\"fetchData\">查询</el-button>\n <el-button @click=\"resetForm('listQuery')\">重置</el-button>\n <el-button type=\"success\" @click=\"handleDownload\">导出</el-button>\n </el-form-item>\n </el-form>\n <el-card class=\"box-card\">\n <span>库存总金额:{{totalAmount}}元</span>\n <span>库存总数:{{totalStorageNum}}</span>\n </el-card>\n <el-table :data=\"list\" v-loading.body=\"listLoading\" element-loading-text=\"拼命加载中\" border fit>\n <el-table-column align=\"center\" label='商品条码' prop=\"goodsBarCode\"></el-table-column>\n <el-table-column align=\"center\" label=\"商品名称\" prop=\"goodsName\"></el-table-column>\n <el-table-column align=\"center\" label=\"类别\" prop=\"goodsCategory\"></el-table-column>\n <el-table-column align=\"center\" label=\"供应商\" prop=\"supplier\"></el-table-column>\n <el-table-column align=\"center\" label=\"过期日期\" prop=\"qualityDate\"></el-table-column>\n <el-table-column align=\"center\" label=\"数量\" prop=\"storageNum\"></el-table-column>\n <el-table-column align=\"center\" label=\"进价均价\" prop=\"averageInPrice\"></el-table-column>\n <el-table-column align=\"center\" label=\"库存总金额\" prop=\"totalInventoryAmount\"></el-table-column>\n <el-table-column align=\"center\" label=\"更新时间\" prop=\"updatedTime\"></el-table-column>\n <el-table-column align=\"center\" label=\"操作人\" prop=\"operator\"></el-table-column>\n <el-table-column align=\"center\" label=\"操作\" width=\"160\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" type=\"text\" @click=\"ingoods(scope.row)\" v-if=\"scope.row.isStock===1\">入库</el-button>\n <el-button size=\"mini\" type=\"text\" @click=\"outgoods(scope.row)\" v-if=\"scope.row.isStock===1\">出库</el-button>\n <router-link v-if=\"scope.row.isStock===1\"\n :to=\"{ path: 'history',query:{sid:listQuery.shopId,goodsBarCode:scope.row.goodsBarCode}}\">\n <el-button size=\"mini\" type=\"text\">历史明细</el-button>\n </router-link>\n <span v-if=\"scope.row.isStock===0\">无库存管理商品</span>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n class=\"pagination\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n :current-page=\"currPage\"\n :page-sizes=\"[10, 30, 50, 100]\"\n :page-size=\"listQuery.limit\"\n layout=\"total, sizes, prev, pager, next\"\n :total=\"total\">\n </el-pagination>\n\n <el-dialog title=\" 入库\" :visible.sync=\"dialogIn\" :before-close=\"handleClose\">\n <el-form :model=\"form\" :rules=\"rule\" ref=\"form\" style=\"margin-top: -30px\">\n <el-form-item label=\"商品条码\" label-width=\"15%\">\n <span style=\"margin-left: 20px\">{{form.goodsBarCode}}</span>\n </el-form-item>\n <el-form-item label=\"商品名称\" label-width=\"15%\" style=\"margin-top: -20px\">\n <span style=\"margin-left: 20px\"> {{form.goodsName}}</span>\n </el-form-item>\n <el-form-item label=\"库存剩余\" label-width=\"15%\" style=\"margin-top: -20px\">\n <span style=\"margin-left: 20px\"> {{form.num}}</span>\n </el-form-item>\n <el-form-item label=\"数量\" label-width=\"15%\" prop=\"storageNum\">\n <el-input v-model.trim=\"form.storageNum\"></el-input>\n </el-form-item>\n <el-form-item label=\"入库类型\" label-width=\"15%\">\n <el-select v-model=\"intypevalue\" placeholder=\"请选择\">\n <el-option\n v-for=\"(item,index) in intype\"\n :key=\"index\"\n :label=\"item\"\n :value=\"index\"/>\n </el-select>\n </el-form-item>\n <el-form-item label=\"进价\" label-width=\"15%\" prop=\"inPrice\" v-if=\"intypevalue=='0'\">\n <el-input v-model.trim=\"form.inPrice\"></el-input>\n </el-form-item>\n <el-form-item label=\"生产日期\" label-width=\"15%\" prop=\"madeDate\">\n <el-date-picker\n v-model=\"form.madeDate\"\n type=\"date\"\n placeholder=\"生产日期\"\n value-format=\"yyyy-MM-dd\">\n </el-date-picker>\n </el-form-item>\n <el-form-item label=\"到期日期\" label-width=\"15%\" prop=\"qualityDate\">\n <el-date-picker\n v-model=\"form.qualityDate\"\n type=\"date\"\n placeholder=\"到期日期\"\n value-format=\"yyyy-MM-dd\">\n </el-date-picker>\n </el-form-item>\n <el-form-item label=\"供应商\" label-width=\"15%\" prop=\"supplier\">\n <el-select v-model=\"form.supplier\" placeholder=\"请选择\" clearable>\n <el-option\n v-for=\"item in supplierList\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\"/>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"handleClose\">取 消</el-button>\n <el-button type=\"primary\" @click=\"subTable\">确 定</el-button>\n </div>\n </el-dialog>\n <el-dialog title=\" 出库\" :visible.sync=\"dialogOut\" :before-close=\"handleClose\">\n <el-form :model=\"form\" :rules=\"rule\" ref=\"form\" style=\"margin-top: -30px\">\n <el-form-item label=\"商品条码\" label-width=\"15%\">\n <span style=\"margin-left: 20px\">{{form.goodsBarCode}}</span>\n </el-form-item>\n <el-form-item label=\"商品名称\" label-width=\"15%\" style=\"margin-top: -20px\">\n <span style=\"margin-left: 20px\"> {{form.goodsName}}</span>\n </el-form-item>\n <el-form-item label=\"库存剩余\" label-width=\"15%\" style=\"margin-top: -20px\">\n <span style=\"margin-left: 20px\"> {{form.num}}</span>\n </el-form-item>\n <el-form-item label=\"数量\" label-width=\"15%\" prop=\"storageNum\">\n <el-input v-model.trim=\"form.storageNum\"></el-input>\n </el-form-item>\n <el-form-item label=\"出库类型\" label-width=\"15%\">\n <el-select v-model=\"outtypevalue\" placeholder=\"请选择\">\n <el-option\n v-for=\"(item,index) in outtype\"\n :key=\"index\"\n :label=\"item\"\n :value=\"index\"/>\n </el-select>\n </el-form-item>\n <el-form-item label=\"供应商\" label-width=\"15%\" prop=\"supplier\" v-if=\"outtypevalue=='2'\">\n <el-select v-model=\"form.supplier\" placeholder=\"请选择\" clearable>\n <el-option\n v-for=\"item in supplierList\"\n :key=\"item.id\"\n :label=\"item.name\"\n :value=\"item.id\"/>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"handleClose\">取 消</el-button>\n <el-button type=\"primary\" @click=\"subTableOut\">确 定</el-button>\n </div>\n </el-dialog>\n </div>\n</template>\n\n<script>\n import {\n inventoryList,\n ingoods,\n wingoods,\n returngoods,\n outgoods,\n losegoods,\n supReturngoods,\n totalamount\n } from '@/api/stock/inverntory'\n import {storeList} from '@/api/marketing/shop/store'\n import {supplierList} from \"@/api/stock/supplier\";\n\n export default {\n created() {\n if (this.shopIds.length == 1){\n this.listQuery.shopId = this.shopIds[0]\n this.fetchData()\n } else {\n //if (this.usertype == 'user') {\n //多个门店选择\n// storeList().then(response => {\n// this.shopList = response.result.rows\n// this.listQuery.shopId = response.result.rows[0].id\n// }).then(() => {\n// // this.listQuery.shopId =this.shopList[0][id]\n// this.fetchData()\n// })\n //}else{\n storeList().then(response => {\n this.shopList = response.result.rows\n this.listQuery.shopId = response.result.rows[0].id\n }).then(() => {\n supplierList({\n shopId: this.listQuery.shopId,\n status: 1\n }).then(response => {\n this.supplierList = response.result\n this.listQuery.supplierId = ''\n }).then(() => {\n // this.listQuery.shopId =this.shopList[0][id]\n this.fetchData()\n })\n })\n //}\n this.listLoading = false\n }\n },\n watch: {\n \"listQuery.shopId\": function () {\n supplierList({\n shopId: this.listQuery.shopId,\n status: 1\n }).then(response => {\n this.supplierList = response.result\n this.listQuery.supplierId = ''\n });\n }\n\n },\n data() {\n const validatestorageNum = (rule, value, callback) => {\n if (this.dialogOut == true){\n if (this.form.num < value){\n callback(new Error(\"数量不能大于库存剩余\"));\n }\n }\n callback();\n };\n return {\n shopIds: this.$store.getters.shopIds,\n usertype: this.$store.getters.usertype,\n shopList: [],\n dialogVisible: false,\n list: null,\n listLoading: true,\n listQuery: {\n shopId: '',\n supplierId: '',\n limit: 10,\n offset: 0,\n isPage: true,\n goodsName: '',\n goodsCategory: '',\n },\n currPage: 1,\n total: null,\n supplierList: [],\n intypevalue: '0',\n outtypevalue: \"0\",\n dialogIn: false,\n dialogOut: false,\n intype: {\n 0: '进货',\n 1: '盘盈',\n 2: '用户退货',\n },\n outtype: {\n 0: '领取',\n 1: '盘损',\n 2: '向供应商退货',\n },\n form: {},\n\n totalAmount: '',\n totalStorageNum: '',\n rule: {\n storageNum: [\n {required: true, message: '请输数量', trigger: 'blur'},\n {pattern: /^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$/, message: '请输入正确的数量', trigger: 'blur'},\n {trigger: \"blur\", validator: validatestorageNum},\n ],\n inPrice: [\n {required: true, message: '请输入价格', trigger: 'blur'},\n {pattern: /^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$/, message: '请输入正确的价格', trigger: 'blur'}\n ],\n },\n }\n },\n\n methods: {\n fetchData() {\n if (this.listQuery.shopId == ''){\n this.$message({\n message: '请选择门店',\n center: true,\n type: 'warning'\n });\n } else {\n this.listLoading = true\n inventoryList(this.listQuery).then(response => {\n this.list = response.result.data\n this.total = response.result.total\n this.listLoading = false\n })\n totalamount({\n shop_id: this.listQuery.shopId,\n }).then(response => {\n this.totalAmount = response.result.totalAmount\n this.totalStorageNum = response.result.totalStorageNum\n });\n }\n },\n resetForm(formName) {\n this.$refs[formName].resetFields()\n },\n ingoods(vo) {\n this.form = {\n 'goodsId': vo.goodsId,\n 'goodsBarCode': vo.goodsBarCode,\n 'goodsName': vo.goodsName,\n 'num': vo.storageNum,\n 'unit': vo.goodsUnit,\n orgId: this.$store.getters.orgId,\n }\n this.intypevalue = '0'\n this.dialogIn = true\n },\n outgoods(vo) {\n this.form = {\n 'goodsId': vo.goodsId,\n 'goodsBarCode': vo.goodsBarCode,\n 'goodsName': vo.goodsName,\n 'num': vo.storageNum,\n 'unit': vo.goodsUnit,\n }\n this.outtypevalue = '0'\n this.dialogOut = true\n },\n handleSizeChange(val) {\n this.listQuery.limit = val;\n this.listQuery.offset = (this.currPage - 1) * val\n this.fetchData();\n },\n handleCurrentChange(val) {\n this.currPage = val;\n this.listQuery.offset = this.listQuery.limit * (val - 1)\n this.fetchData();\n },\n handleClose() {\n this.$refs['form'].clearValidate();\n this.dialogIn = false\n this.dialogOut = false\n },\n subTable() {\n this.$refs['form'].validate((valid) => {\n if (valid){\n if (this.intypevalue == '0'){\n //入库\n this.form.shopId = this.listQuery.shopId\n ingoods(this.form).then(response => {\n this.dialogIn = false\n this.fetchData();\n })\n } else if (this.intypevalue == '1'){\n var post = {\n goodsId: this.form.goodsId,\n shopId: this.listQuery.shopId,\n storageNum: this.form.storageNum,\n supplier: this.form.supplier,\n madeDate: this.form.madeDate,\n qualityDate: this.form.qualityDate\n }\n wingoods(post).then(response => {\n this.dialogIn = false\n this.fetchData();\n })\n } else if (this.intypevalue == '2'){\n var post = {\n goodsId: this.form.goodsId,\n shopId: this.listQuery.shopId,\n storageNum: this.form.storageNum,\n uniqId: '',\n supplier: this.form.supplier,\n madeDate: this.form.madeDate,\n qualityDate: this.form.qualityDate\n }\n returngoods(post).then(response => {\n this.dialogIn = false\n this.fetchData();\n })\n }\n } else {\n return false;\n }\n })\n },\n subTableOut() {\n this.$refs['form'].validate((valid) => {\n if (valid){\n if (this.outtypevalue == '0'){\n //领取\n var post = {\n goodsId: this.form.goodsId,\n shopId: this.listQuery.shopId,\n storageNum: this.form.storageNum,\n supplier: this.form.supplier,\n }\n outgoods(post).then(response => {\n this.dialogOut = false\n this.fetchData();\n })\n } else if (this.outtypevalue == '1'){\n var post = {\n goodsId: this.form.goodsId,\n shopId: this.listQuery.shopId,\n storageNum: this.form.storageNum,\n supplier: this.form.supplier,\n uniqId: '',\n }\n losegoods(post).then(response => {\n this.dialogOut = false\n this.fetchData();\n })\n } else if (this.outtypevalue == '2'){\n var post = {\n goodsId: this.form.goodsId,\n shopId: this.listQuery.shopId,\n storageNum: this.form.storageNum,\n }\n supReturngoods(post).then(response => {\n this.dialogOut = false\n this.fetchData();\n })\n }\n } else {\n return false;\n }\n })\n },\n handleDownload() {\n import('@/vendor/Export2Excel').then(excel => {\n const tHeader = ['商品条码', '商品名称', '类别', '供应商', '过期日期', '数量', '进价均价', '库存总金额', '更新时间', '操作人']\n const filterVal = ['goodsBarCode', 'goodsName', 'goodsCategory', 'supplier', 'qualityDate', 'storageNum', 'averageInPrice', 'totalInventoryAmount', 'updatedTime', 'operator']\n this.listQuery.isPage = false\n inventoryList(this.listQuery).then(response => {\n const list = response.result.data\n const data = this.formatJson(filterVal, list)\n excel.export_json_to_excel(tHeader, data, '库存列表')\n this.listQuery.isPage = true\n })\n })\n },\n formatJson(filterVal, jsonData) {\n return jsonData.map(v => filterVal.map(j => {\n return v[j]\n }))\n },\n },\n }\n</script>\n<style>\n .demo-table-expand {\n margin-top: -30px;\n font-size: 0;\n }\n\n .demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n }\n\n .demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n }\n\n .box-card {\n margin: 20px auto 20px auto;\n height: 60px;\n background-color: rgba(199, 223, 255, 0.2);\n }\n\n .box-card span {\n margin-left: 30px;\n }\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/views/stock/inverntory/index.vue?2610f798","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-dd6e3aa0\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-dd6e3aa0\\\",\\\"hasScoped\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/stock/inverntory/index.vue\n// module id = thh6\n// module chunks = 44"],"sourceRoot":""}