17.e9e8af1100534438adc3.js.map 42 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/babel-runtime/helpers/objectWithoutProperties.js","webpack:///src/views/pms/purchaseList/index.vue","webpack:///./src/utils/index.js","webpack:///./src/views/pms/purchaseList/index.vue?3acd","webpack:///./src/views/pms/purchaseList/index.vue","webpack:///./src/api/skuStock.js"],"names":["exports","__esModule","default","obj","keys","target","i","indexOf","Object","prototype","hasOwnProperty","call","defaultListQuery","keyword","pageNum","pageSize","id","selectProductSn","timer","purchaseList","name","data","type","dialogVisible","editSkuInfo","productId","productSkuId","internalStock","taxStock","price","rules","required","message","trigger","loading","stockList","listQuery","assign_default","list","total","listLoading","selectProductCateValue","multipleSelection","productCateOptions","brandOptions","created","this","$route","query","getList","methods","onchange","val","replace","_this","_listQuery","more","objectWithoutProperties_default","product","extends_default","times","_ref","_ref2","arguments","length","undefined","format","defineProperty_default","dayjs_min_default","isValid","getTimes","then","response","handleConfirm","formName","_this2","$refs","validate","valid","console","log","$message","duration","handleClose","catch","productAttrCatForm","clearValidate","handleSearchList","onUpdate","row","_this3","skuStock","tempResult","forEach","spText","spData","JSON","parse","key","sp","value","e","handleAddProduct","_this4","handleDownloadStock","downLoadFile","url","fileName","method","params","handleSizeChange","handleCurrentChange","handleResetSearch","pms_purchaseList","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","label","width","placeholder","callback","$$v","$set","expression","align","unlink-panels","range-separator","start-placeholder","end-placeholder","value-format","clearable","directives","rawName","ref","border","scopedSlots","_u","fn","scope","_s","productSkuCode","internalSaleStock","taxSaleStock","createTime","disabled","background","layout","page-size","page-sizes","current-page","size-change","current-change","update:currentPage","title","visible","update:visible","prop","auto-complete","input","nativeOn","keyup","keyupEvent","_l","item","slot","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","pid","__WEBPACK_IMPORTED_MODULE_0__utils_request__"],"mappings":"uDAE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AgBgF,EAAIxK,GACzB,OAAOb,OAAAsL,EAAA,EAAAtL,EACLkG,IAAI,eAAemF,EACnBjF,OAAO,OACPvF,KAAKA","file":"static/js/17.e9e8af1100534438adc3.js","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/objectWithoutProperties.js\n// module id = +6Bu\n// module chunks = 6 17","<template>\r\n\r\n <div class=\"app-container\">\r\n <el-card class=\"filter-container\" shadow=\"never\">\r\n <div>\r\n <i class=\"el-icon-search\"></i>\r\n <span>筛选搜索</span>\r\n <el-button\r\n style=\"float: right\"\r\n @click=\"handleSearchList()\"\r\n type=\"primary\"\r\n size=\"small\"\r\n >\r\n 查询结果\r\n </el-button>\r\n <el-button\r\n style=\"float: right; margin-right: 15px\"\r\n @click=\"handleResetSearch()\"\r\n size=\"small\"\r\n >\r\n 重置\r\n </el-button>\r\n </div>\r\n <div style=\"margin-top: 15px\">\r\n <el-form\r\n :inline=\"true\"\r\n :model=\"listQuery\"\r\n size=\"small\"\r\n label-width=\"120px\"\r\n >\r\n <el-form-item label=\"批次号:\">\r\n <el-input\r\n style=\"width: 203px\"\r\n v-model=\"listQuery.id\"\r\n placeholder=\"请输入批次号\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"备查货号:\">\r\n <el-input\r\n style=\"width: 203px\"\r\n v-model=\"listQuery.selectProductSn\"\r\n placeholder=\"请输入备查货号\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"入库时间:\">\r\n <el-date-picker\r\n v-model=\"listQuery.timer\"\r\n type=\"daterange\"\r\n align=\"right\"\r\n unlink-panels\r\n range-separator=\"至\"\r\n start-placeholder=\"开始日期\"\r\n end-placeholder=\"结束日期\"\r\n format=\"yyyy-MM-dd\"\r\n value-format=\"yyyy-MM-dd\"\r\n :clearable=\"false\"\r\n >\r\n </el-date-picker>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n\r\n <div class=\"btn-add\">\r\n <el-button @click=\"handleAddProduct()\" size=\"mini\">\r\n 新增入库\r\n </el-button>\r\n <el-button type=\"primary\" @click=\"handleDownloadStock()\" size=\"mini\">\r\n 导出记录\r\n </el-button>\r\n </div>\r\n\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table\r\n ref=\"productTable\"\r\n :data=\"list\"\r\n style=\"width: 100%\"\r\n v-loading=\"listLoading\"\r\n border\r\n >\r\n <el-table-column label=\"批次号\" width=\"100\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.id }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"备查货号\" width=\"120\" align=\"center\" >\r\n <template slot-scope=\"scope\">{{ scope.row.selectProductSn }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"序号\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.productSkuId }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"sku编号\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.productSkuCode }}</p>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column label=\"sku规格\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.spData }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"内部库存\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.internalStock }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"内部售出数量\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.internalSaleStock }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"税务库存\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.taxStock }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"税务售出库存\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.taxSaleStock }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"采购价\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.price }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"入库日期\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p>{{ scope.row.createTime }}</p>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button type=\"text\" @click=\"onUpdate(scope.row)\" :disabled=\"scope.row.internalSaleStock != 0 ||scope.row.taxSaleStock != 0\">修改</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n layout=\"total, sizes,prev, pager, next,jumper\"\r\n :page-size=\"listQuery.pageSize\"\r\n :page-sizes=\"[5, 10, 15]\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :total=\"total\"\r\n >\r\n </el-pagination>\r\n </div>\r\n <el-dialog\r\n :title=\"type == 'create' ? '新增入库' : '修改入库'\"\r\n :visible.sync=\"dialogVisible\"\r\n width=\"40%\"\r\n >\r\n <el-form ref=\"productAttrCatForm\" :model=\"editSkuInfo\" :rules=\"rules\" label-width=\"120px\">\r\n <el-form-item label=\"查备货号\" prop=\"selectProductSn\">\r\n <el-input size=\"small\" v-model=\"editSkuInfo.selectProductSn\" placeholder=\"请输入查备货号\" auto-complete=\"off\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"内部库存\" prop=\"internalStock\">\r\n <el-input size=\"small\" v-model=\"editSkuInfo.internalStock\" @input=\"\r\n val => {\r\n onchange(val)\r\n }\r\n \" placeholder=\"请输入内部库存\" auto-complete=\"off\"></el-input>\r\n <!-- <el-input-number size=\"small\" class=\"inputposition\" v-model=\"editSkuInfo.internalStock\" placeholder=\"请输入内部库存\" :controls=\"false\" /> -->\r\n </el-form-item>\r\n <el-form-item label=\"税务库存\" prop=\"taxStock\">\r\n <el-input size=\"small\" v-model=\"editSkuInfo.taxStock\" @input=\"\r\n val => {\r\n editSkuInfo.taxStock = val.replace(/[^\\d]/g, '');\r\n }\r\n \" placeholder=\"请输入税务库存\" auto-complete=\"off\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"采购价\" prop=\"price\">\r\n <el-input size=\"small\" v-model=\"editSkuInfo.price\" @keyup.native=\"keyupEvent($event)\" placeholder=\"请输入采购价\" auto-complete=\"off\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"Sku\" prop=\"productSkuId\">\r\n <el-select size=\"small\" v-model=\"editSkuInfo.productSkuId\" style=\"width:100%\" placeholder=\"请选择Sku\">\r\n <el-option\r\n v-for=\"item in stockList\"\r\n :key=\"item.id\"\r\n :label=\"item.spText\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"handleClose\">取 消</el-button>\r\n <el-button type=\"primary\" :disabled=\"loading\" v-loading=\"loading\" @click=\"handleConfirm('productAttrCatForm')\"\r\n >确 定</el-button\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\nimport { Export } from \"@/utils/downLoadFile\";\r\nimport { getTimes } from '@/utils'\r\nimport {\r\n fetchList as fetchSkuStockList\r\n} from \"@/api/skuStock\";\r\nimport {\r\n getProductSkuStockRecord,\r\n getProductSkuStockRecordCreate,\r\n getProductSkuStockRecordUpdate\r\n} from \"@/api/product\";\r\nconst defaultListQuery = {\r\n keyword: null,\r\n pageNum: 1,\r\n pageSize: 5,\r\n id: null,\r\n selectProductSn: null,\r\n timer: null\r\n};\r\nexport default {\r\n name: \"productList\",\r\n data() {\r\n return {\r\n type: 'create',\r\n dialogVisible: false,\r\n editSkuInfo: {\r\n productId: null,\r\n productSkuId: null,\r\n selectProductSn: null,\r\n internalStock: null,\r\n taxStock: null,\r\n price: null\r\n },\r\n rules: {\r\n selectProductSn: [{ required: true, message: '请输入查备货号', trigger: 'blur' }],\r\n internalStock: [{ required: true, message: '请输入内部库存', trigger: 'blur' }],\r\n taxStock: [{ required: true, message: '请输入税务库存', trigger: 'blur' }],\r\n price: [{ required: true, message: '请输入采购价', trigger: 'blur' }],\r\n productSkuId: [{ required: true, message: '请选择Sku', trigger: 'change, blur' }],\r\n },\r\n loading: false,\r\n stockList: [],\r\n productId: null,\r\n listQuery: Object.assign({}, defaultListQuery),\r\n list: null,\r\n total: null,\r\n listLoading: true,\r\n selectProductCateValue: null,\r\n multipleSelection: [],\r\n productCateOptions: [],\r\n brandOptions: [],\r\n };\r\n },\r\n created() {\r\n this.productId = this.$route.query.id;\r\n this.getList();\r\n },\r\n methods: {\r\n onchange(val) {\r\n this.editSkuInfo.internalStock = val.replace(/[^\\d]/g, '');\r\n },\r\n getList() {\r\n this.listLoading = true;\r\n const { timer, ...more } = this.listQuery;\r\n getProductSkuStockRecord({...more, productId: this.productId, ...getTimes(timer, ['startTime', 'endTime'])}).then((response) => {\r\n this.listLoading = false;\r\n this.list = response.data.list;\r\n this.total = response.data.total;\r\n });\r\n },\r\n handleConfirm(formName){\r\n this.$refs[formName].validate((valid) => {\r\n if (valid) {\r\n let obj = {\r\n ...this.editSkuInfo,\r\n productId: this.productId,\r\n }\r\n this.loading = true\r\n if(this.type == 'create') {\r\n getProductSkuStockRecordCreate(obj).then(response=>{\r\n this.$message({\r\n message: this.type == 'create' ? '添加成功' : '修改成功',\r\n type: 'success',\r\n duration:1000\r\n });\r\n this.dialogVisible = false;\r\n this.handleClose()\r\n this.getList();\r\n }).catch(() => {\r\n this.loading = false\r\n });\r\n } else {\r\n getProductSkuStockRecordUpdate(obj).then(response=>{\r\n this.$message({\r\n message: this.type == 'create' ? '添加成功' : '修改成功',\r\n type: 'success',\r\n duration:1000\r\n });\r\n this.dialogVisible = false;\r\n this.handleClose()\r\n this.getList();\r\n }).catch(() => {\r\n this.loading = false\r\n });\r\n }\r\n\r\n } else {\r\n console.log('error submit!!');\r\n return false;\r\n }\r\n });\r\n },\r\n handleClose(){\r\n this.dialogVisible = false;\r\n if (!this.dialogVisible && this.$refs.productAttrCatForm) {\r\n this.$refs.productAttrCatForm.clearValidate()\r\n }\r\n },\r\n handleSearchList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\r\n },\r\n onUpdate(row) {\r\n this.type = 'update'\r\n this.loading = false\r\n this.editSkuInfo = {\r\n id: row.id,\r\n productId: row.productId,\r\n productSkuId: row.productSkuId,\r\n selectProductSn: row.selectProductSn,\r\n internalStock: row.internalStock,\r\n taxStock: row.taxStock,\r\n price: row.price\r\n }\r\n fetchSkuStockList(this.productId).then((response) => {\r\n try {\r\n // debugger\r\n const tempResult = response.data || [];\r\n tempResult.forEach((product) => {\r\n const spData = product.spData ? JSON.parse(product.spData) : [{ key: '默认' }]\r\n let spText = ''\r\n spData.forEach((sp) => {\r\n spText += sp.key + (sp.value ? ':' + sp.value: '')\r\n })\r\n product.spText = spText\r\n })\r\n\r\n this.stockList = tempResult;\r\n this.dialogVisible = true;\r\n } catch(e) {\r\n console.log(e)\r\n }\r\n });\r\n },\r\n handleAddProduct() {\r\n this.type = 'create'\r\n this.loading = false\r\n this.editSkuInfo = {\r\n productId: null,\r\n productSkuId: null,\r\n selectProductSn: null,\r\n internalStock: null,\r\n taxStock: null,\r\n price: null\r\n }\r\n fetchSkuStockList(this.productId).then((response) => {\r\n try {\r\n // debugger\r\n const tempResult = response.data || [];\r\n tempResult.forEach((product) => {\r\n const spData = product.spData ? JSON.parse(product.spData) : [{ key: '默认' }]\r\n let spText = ''\r\n spData.forEach((sp) => {\r\n spText += sp.key + (sp.value ? ':' + sp.value: '')\r\n })\r\n product.spText = spText\r\n })\r\n\r\n this.stockList = tempResult;\r\n this.dialogVisible = true;\r\n } catch(e) {\r\n console.log(e)\r\n }\r\n });\r\n\r\n },\r\n handleDownloadStock() {\r\n Export(\r\n this,\r\n {\r\n url: \"/api-mall-admin/export/pmsProductSkuStockRecord\",\r\n fileName: \"进货清单记录.xls\",\r\n method: \"post\",\r\n params: { ...this.listQuery, productId: this.productId },\r\n },\r\n \"您确定导出进货清单记录?\"\r\n );\r\n },\r\n handleSizeChange(val) {\r\n this.listQuery.pageNum = 1;\r\n this.listQuery.pageSize = val;\r\n this.getList();\r\n },\r\n handleCurrentChange(val) {\r\n this.listQuery.pageNum = val;\r\n this.getList();\r\n },\r\n handleResetSearch() {\r\n this.selectProductCateValue = [];\r\n this.listQuery = Object.assign({}, defaultListQuery);\r\n this.handleSearchList()\r\n },\r\n },\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n::v-deep.el-select--small {\r\n width: 203px !important;\r\n}\r\n\r\n.inputposition {\r\n width: 100%;\r\ninput {\r\n text-align: left;\r\n}\r\n}\r\n</style>\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/purchaseList/index.vue","import dayjs from 'dayjs'\r\n\r\nexport function parseTime(time, cFormat) {\r\n if (arguments.length === 0) {\r\n return null\r\n }\r\n const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'\r\n let date\r\n if (typeof time === 'object') {\r\n date = time\r\n } else {\r\n if (('' + time).length === 10) time = parseInt(time) * 1000\r\n date = new Date(time)\r\n }\r\n const formatObj = {\r\n y: date.getFullYear(),\r\n m: date.getMonth() + 1,\r\n d: date.getDate(),\r\n h: date.getHours(),\r\n i: date.getMinutes(),\r\n s: date.getSeconds(),\r\n a: date.getDay()\r\n }\r\n const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {\r\n let value = formatObj[key]\r\n if (key === 'a') return ['一', '二', '三', '四', '五', '六', '日'][value - 1]\r\n if (result.length > 0 && value < 10) {\r\n value = '0' + value\r\n }\r\n return value || 0\r\n })\r\n return time_str\r\n}\r\n\r\nexport function formatTime(time, option) {\r\n time = +time * 1000\r\n const d = new Date(time)\r\n const now = Date.now()\r\n\r\n const diff = (now - d) / 1000\r\n\r\n if (diff < 30) {\r\n return '刚刚'\r\n } else if (diff < 3600) { // less 1 hour\r\n return Math.ceil(diff / 60) + '分钟前'\r\n } else if (diff < 3600 * 24) {\r\n return Math.ceil(diff / 3600) + '小时前'\r\n } else if (diff < 3600 * 24 * 2) {\r\n return '1天前'\r\n }\r\n if (option) {\r\n return parseTime(time, option)\r\n } else {\r\n return d.getMonth() + 1 + '月' + d.getDate() + '日' + d.getHours() + '时' + d.getMinutes() + '分'\r\n }\r\n}\r\n\r\n\r\nexport function getTimes (times, keys = [], format = 'YYYY-MM-DD') {\r\n if (times && times.length) {\r\n return format == 'YYYY-MM-DD'\r\n ? {\r\n [keys[0] || 'start']: dayjs(times[0]).isValid()\r\n ? dayjs(times[0]).format(format) + ' 00:00:00'\r\n : '',\r\n [keys[1] || 'end']: dayjs(times[1]).isValid()\r\n ? dayjs(times[1]).format(format) + ' 23:59:59'\r\n : ''\r\n }\r\n : {\r\n [keys[0] || 'start']: dayjs(times[0]).isValid() ? dayjs(times[0]).format(format) : '',\r\n [keys[1] || 'end']: dayjs(times[1]).isValid() ? dayjs(times[1]).format(format) : ''\r\n }\r\n }\r\n return {}\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/index.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"filter-container\",attrs:{\"shadow\":\"never\"}},[_c('div',[_c('i',{staticClass:\"el-icon-search\"}),_vm._v(\" \"),_c('span',[_vm._v(\"筛选搜索\")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleSearchList()}}},[_vm._v(\"\\n 查询结果\\n \")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\",\"margin-right\":\"15px\"},attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.handleResetSearch()}}},[_vm._v(\"\\n 重置\\n \")])],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.listQuery,\"size\":\"small\",\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"批次号:\"}},[_c('el-input',{staticStyle:{\"width\":\"203px\"},attrs:{\"placeholder\":\"请输入批次号\"},model:{value:(_vm.listQuery.id),callback:function ($$v) {_vm.$set(_vm.listQuery, \"id\", $$v)},expression:\"listQuery.id\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"备查货号:\"}},[_c('el-input',{staticStyle:{\"width\":\"203px\"},attrs:{\"placeholder\":\"请输入备查货号\"},model:{value:(_vm.listQuery.selectProductSn),callback:function ($$v) {_vm.$set(_vm.listQuery, \"selectProductSn\", $$v)},expression:\"listQuery.selectProductSn\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"入库时间:\"}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\",\"format\":\"yyyy-MM-dd\",\"value-format\":\"yyyy-MM-dd\",\"clearable\":false},model:{value:(_vm.listQuery.timer),callback:function ($$v) {_vm.$set(_vm.listQuery, \"timer\", $$v)},expression:\"listQuery.timer\"}})],1)],1)],1)]),_vm._v(\" \"),_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('div',{staticClass:\"btn-add\"},[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleAddProduct()}}},[_vm._v(\"\\n 新增入库\\n \")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleDownloadStock()}}},[_vm._v(\"\\n 导出记录\\n \")])],1)]),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"productTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"批次号\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"备查货号\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.selectProductSn))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"序号\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.productSkuId))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"sku编号\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.productSkuCode))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"sku规格\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.spData))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"内部库存\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.internalStock))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"内部售出数量\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.internalSaleStock))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"税务库存\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.taxStock))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"税务售出库存\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.taxSaleStock))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"采购价\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.price))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"入库日期\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',[_vm._v(_vm._s(scope.row.createTime))])]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"type\":\"text\",\"disabled\":scope.row.internalSaleStock != 0 ||scope.row.taxSaleStock != 0},on:{\"click\":function($event){_vm.onUpdate(scope.row)}}},[_vm._v(\"修改\")])]}}])})],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"total, sizes,prev, pager, next,jumper\",\"page-size\":_vm.listQuery.pageSize,\"page-sizes\":[5, 10, 15],\"current-page\":_vm.listQuery.pageNum,\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){_vm.$set(_vm.listQuery, \"pageNum\", $event)}}})],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":_vm.type == 'create' ? '新增入库' : '修改入库',\"visible\":_vm.dialogVisible,\"width\":\"40%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"productAttrCatForm\",attrs:{\"model\":_vm.editSkuInfo,\"rules\":_vm.rules,\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"查备货号\",\"prop\":\"selectProductSn\"}},[_c('el-input',{attrs:{\"size\":\"small\",\"placeholder\":\"请输入查备货号\",\"auto-complete\":\"off\"},model:{value:(_vm.editSkuInfo.selectProductSn),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"selectProductSn\", $$v)},expression:\"editSkuInfo.selectProductSn\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"内部库存\",\"prop\":\"internalStock\"}},[_c('el-input',{attrs:{\"size\":\"small\",\"placeholder\":\"请输入内部库存\",\"auto-complete\":\"off\"},on:{\"input\":function (val) {\n _vm.onchange(val)\n }},model:{value:(_vm.editSkuInfo.internalStock),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"internalStock\", $$v)},expression:\"editSkuInfo.internalStock\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"税务库存\",\"prop\":\"taxStock\"}},[_c('el-input',{attrs:{\"size\":\"small\",\"placeholder\":\"请输入税务库存\",\"auto-complete\":\"off\"},on:{\"input\":function (val) {\n _vm.editSkuInfo.taxStock = val.replace(/[^\\d]/g, '');\n }},model:{value:(_vm.editSkuInfo.taxStock),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"taxStock\", $$v)},expression:\"editSkuInfo.taxStock\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"采购价\",\"prop\":\"price\"}},[_c('el-input',{attrs:{\"size\":\"small\",\"placeholder\":\"请输入采购价\",\"auto-complete\":\"off\"},nativeOn:{\"keyup\":function($event){_vm.keyupEvent($event)}},model:{value:(_vm.editSkuInfo.price),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"price\", $$v)},expression:\"editSkuInfo.price\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"Sku\",\"prop\":\"productSkuId\"}},[_c('el-select',{staticStyle:{\"width\":\"100%\"},attrs:{\"size\":\"small\",\"placeholder\":\"请选择Sku\"},model:{value:(_vm.editSkuInfo.productSkuId),callback:function ($$v) {_vm.$set(_vm.editSkuInfo, \"productSkuId\", $$v)},expression:\"editSkuInfo.productSkuId\"}},_vm._l((_vm.stockList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.spText,\"value\":item.id}})}))],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.handleClose}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"type\":\"primary\",\"disabled\":_vm.loading},on:{\"click\":function($event){_vm.handleConfirm('productAttrCatForm')}}},[_vm._v(\"确 定\")])],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-22d120f3\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/pms/purchaseList/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-22d120f3\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-22d120f3\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-22d120f3\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/pms/purchaseList/index.vue\n// module id = null\n// module chunks = ","import request from '@/utils/request'\r\nexport function fetchList(pid,params) {\r\n return request({\r\n url:'/sku/'+pid,\r\n method:'get',\r\n params:params\r\n })\r\n}\r\n\r\nexport function update(pid,data) {\r\n return request({\r\n url:'/sku/update/'+pid,\r\n method:'post',\r\n data:data\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/skuStock.js"],"sourceRoot":""}