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
37 KiB

{"remainingRequest":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\src\\components\\goods\\GoodsManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\src\\components\\goods\\GoodsManage.vue","mtime":1677915063823},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1677927572803},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\node_modules\\babel-loader\\lib\\index.js","mtime":1677927576192},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1677927572803},{"path":"D:\\Work\\WorkSpace\\GitWorkSpace\\TenShop\\resource\\WarehouseManagerSystem\\src\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js","mtime":1677927577316}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:DQogICAgaW1wb3J0IFNlbGVjdFVzZXIgZnJvbSAiLi4vdXNlci9TZWxlY3RVc2VyIjsNCiAgICBleHBvcnQgZGVmYXVsdCB7DQogICAgICAgIG5hbWU6ICJHb29kc01hbmFnZSIsDQogICAgICAgIGNvbXBvbmVudHM6IHtTZWxlY3RVc2VyfSwNCiAgICAgICAgZGF0YSgpIHsNCiAgICAgICAgICAgIGxldCBjaGVja0NvdW50ID0gKHJ1bGUsIHZhbHVlLCBjYWxsYmFjaykgPT4gew0KICAgICAgICAgICAgICAgIGlmKHZhbHVlPjk5OTkpew0KICAgICAgICAgICAgICAgICAgICBjYWxsYmFjayhuZXcgRXJyb3IoJ+aVsOmHj+i+k+WFpei/h+WkpycpKTsNCiAgICAgICAgICAgICAgICB9ZWxzZXsNCiAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2soKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9Ow0KDQogICAgICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgICAgIHVzZXIgOiBKU09OLnBhcnNlKHNlc3Npb25TdG9yYWdlLmdldEl0ZW0oJ0N1clVzZXInKSksDQogICAgICAgICAgICAgICAgc3RvcmFnZURhdGE6W10sDQogICAgICAgICAgICAgICAgZ29vZHN0eXBlRGF0YTpbXSwNCiAgICAgICAgICAgICAgICB0YWJsZURhdGE6IFtdLA0KICAgICAgICAgICAgICAgIHBhZ2VTaXplOjEwLA0KICAgICAgICAgICAgICAgIHBhZ2VOdW06MSwNCiAgICAgICAgICAgICAgICB0b3RhbDowLA0KICAgICAgICAgICAgICAgIG5hbWU6JycsDQogICAgICAgICAgICAgICAgc3RvcmFnZTonJywNCiAgICAgICAgICAgICAgICBnb29kc3R5cGU6JycsDQogICAgICAgICAgICAgICAgY2VudGVyRGlhbG9nVmlzaWJsZTpmYWxzZSwNCiAgICAgICAgICAgICAgICBpbkRpYWxvZ1Zpc2libGU6ZmFsc2UsDQogICAgICAgICAgICAgICAgaW5uZXJWaXNpYmxlOmZhbHNlLA0KICAgICAgICAgICAgICAgIGN1cnJlbnRSb3c6e30sDQogICAgICAgICAgICAgICAgdGVtcFVzZXI6e30sDQogICAgICAgICAgICAgICAgZm9ybTp7DQogICAgICAgICAgICAgICAgICAgIGlkOicnLA0KICAgICAgICAgICAgICAgICAgICBuYW1lOicnLA0KICAgICAgICAgICAgICAgICAgICBzdG9yYWdlOicnLA0KICAgICAgICAgICAgICAgICAgICBnb29kc3R5cGU6JycsDQogICAgICAgICAgICAgICAgICAgIGNvdW50OicnLA0KICAgICAgICAgICAgICAgICAgICByZW1hcms6JycNCiAgICAgICAgICAgICAgICB9LA0KICAgICAgICAgICAgICAgIGZvcm0xOnsNCiAgICAgICAgICAgICAgICAgICAgZ29vZHM6JycsDQogICAgICAgICAgICAgICAgICAgIGdvb2RzbmFtZTonJywNCiAgICAgICAgICAgICAgICAgICAgY291bnQ6JycsDQogICAgICAgICAgICAgICAgICAgIHVzZXJuYW1lOicnLA0KICAgICAgICAgICAgICAgICAgICB1c2VyaWQ6JycsDQogICAgICAgICAgICAgICAgICAgIGFkbWluSWQ6JycsDQogICAgICAgICAgICAgICAgICAgIHJlbWFyazonJywNCiAgICAgICAgICAgICAgICAgICAgYWN0aW9uOicxJw0KICAgICAgICAgICAgICAgIH0sDQogICAgICAgICAgICAgICAgcnVsZXMxOiB7DQoNCiAgICAgICAgICAgICAgICB9LA0KICAgICAgICAgICAgICAgIHJ1bGVzOiB7DQogICAgICAgICAgICAgICAgICAgIG5hbWU6IFsNCiAgICAgICAgICAgICAgICAgICAgICAgIHtyZXF1aXJlZDogdHJ1ZSwgbWVzc2FnZTogJ+ivt+i+k+WFpeeJqeWTgeWQjScsIHRyaWdnZXI6ICdibHVyJ30NCiAgICAgICAgICAgICAgICAgICAgXSwNCiAgICAgICAgICAgICAgICAgICAgc3RvcmFnZTpbDQogICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICfor7fpgInmi6nku5PlupMnLCB0cmlnZ2VyOiAnYmx1cid9DQogICAgICAgICAgICAgICAgICAgIF0sDQogICAgICAgICAgICAgICAgICAgIGdvb2RzdHlwZTpbDQogICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICfor7fpgInmi6nliIbnsbsnLCB0cmlnZ2VyOiAnYmx1cid9DQogICAgICAgICAgICAgICAgICAgIF0sDQogICAgICAgICAgICAgICAgICAgIGNvdW50OiBbDQogICAgICAgICAgICAgICAgICAgICAgICB7cmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICfor7fovpPlhaXmlbDph48nLCB0cmlnZ2VyOiAnYmx1cid9LA0KICAgICAgICAgICAgICAgICAgICAgICAge3BhdHRlcm46IC9eKFsxLTldWzAtOV0qKXsxLDR9JC8sbWVzc2FnZTogJ+aVsOmHj+W/hemhu+S4uuato+aVtOaVsOWtlycsdHJpZ2dlcjogImJsdXIifSwNCiAgICAgICAgICAgICAgICAgICAgICAgIHt2YWxpZGF0b3I6Y2hlY2tDb3VudCx0cmlnZ2VyOiAnYmx1cid9DQogICAgICAgICAgICAgICAgICAgIF0sDQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgfQ0KICAgICAgICB9LA0KICAgICAgICBtZXRob2RzOnsNCiAgICAgICAgICAgIGRvU2VsZWN0VXNlcih2YWwpew0KICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHZhbCkNCiAgICAgICAgICAgICAgICB0aGlzLnRlbXBVc2VyID0gdmFsDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgY29uZmlybVVzZXIoKXsNCiAgICAgICAgICAgICAgICB0aGlzLmZvcm0xLnVzZXJuYW1lID0gdGhpcy50ZW1wVXNlci5uYW1lDQogICAgICAgICAgICAgICAgdGhpcy5mb3JtMS51c2VyaWQgPSB0aGlzLnRlbXBVc2VyLmlkDQoNCiAgICAgICAgICAgICAgICB0aGlzLmlubmVyVmlzaWJsZSA9IGZhbHNlDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgc2VsZWN0Q3VycmVudENoYW5nZSh2YWwpIHsNCiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRSb3cgPSB2YWw7DQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgZm9ybWF0U3RvcmFnZShyb3cpew0KICAgICAgICAgICAgICAgIGxldCB0ZW1wID0gIHRoaXMuc3RvcmFnZURhdGEuZmluZChpdGVtPT57DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBpdGVtLmlkID09IHJvdy5zdG9yYWdlDQogICAgICAgICAgICAgICAgfSkNCg0KICAgICAgICAgICAgICAgIHJldHVybiB0ZW1wICYmIHRlbXAubmFtZQ0KICAgICAgICAgICAgfSwNCiAgICAgICAgICAgIGZvcm1hdEdvb2RzdHlwZShyb3cpew0KICAgICAgICAgICAgICAgIGxldCB0ZW1wID0gIHRoaXMuZ29vZHN0eXBlRGF0YS5maW5kKGl0ZW09PnsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGl0ZW0uaWQgPT0gcm93Lmdvb2RzdHlwZQ0KICAgICAgICAgICAgICAgIH0pDQoNCiAgICAgICAgICAgICAgICByZXR1cm4gdGVtcCAmJiB0ZW1wLm5hbWUNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICByZXNldEZvcm0oKSB7DQogICAgICAgICAgICAgICAgdGhpcy4kcmVmcy5mb3JtLnJlc2V0RmllbGRzKCk7DQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgcmVzZXRJbkZvcm0oKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRyZWZzLmZvcm0xLnJlc2V0RmllbGRzKCk7DQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgZGVsKGlkKXsNCiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhpZCkNCg0KICAgICAgICAgICAgICAgIHRoaXMuJGF4aW9zLmdldCh0aGlzLiRodHRwVXJsKycvZ29vZHMvZGVsP2lkPScraWQpLnRoZW4ocmVzPT5yZXMuZGF0YSkudGhlbihyZXM9PnsNCiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKQ0KICAgICAgICAgICAgICAgICAgICBpZihyZXMuY29kZT09MjAwKXsNCg0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kbWVzc2FnZSh7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogJ+aTjeS9nOaIkOWKn++8gScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ3N1Y2Nlc3MnDQogICAgICAgICAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubG9hZFBvc3QoKQ0KICAgICAgICAgICAgICAgICAgICB9ZWxzZXsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2Uoew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6ICfmk43kvZzlpLHotKXvvIEnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdlcnJvcicNCiAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICB9KQ0KICAgICAgICAgICAgfSwNCiAgICAgICAgICAgIG1vZChyb3cpew0KICAgICAgICAgICAgICAgIHRoaXMuY2VudGVyRGlhbG9nVmlzaWJsZSA9IHRydWUNCiAgICAgICAgICAgICAgICB0aGlzLiRuZXh0VGljaygoKT0+ew0KICAgICAgICAgICAgICAgICAgICAvL+i1i+WAvOWIsOihqOWNlQ0KICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0uaWQgPSByb3cuaWQNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLm5hbWUgPSByb3cubmFtZQ0KICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0uc3RvcmFnZSA9IHJvdy5zdG9yYWdlDQogICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5nb29kc3R5cGUgPSByb3cuZ29vZHN0eXBlDQogICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5jb3VudCA9IHJvdy5jb3VudA0KICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0ucmVtYXJrID0gcm93LnJlbWFyaw0KICAgICAgICAgICAgICAgIH0pDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgYWRkKCl7DQoNCiAgICAgICAgICAgICAgICB0aGlzLmNlbnRlckRpYWxvZ1Zpc2libGUgPSB0cnVlDQogICAgICAgICAgICAgICAgdGhpcy4kbmV4dFRpY2soKCk9PnsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZXNldEZvcm0oKQ0KDQogICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5pZCA9ICcnDQogICAgICAgICAgICAgICAgfSkNCg0KICAgICAgICAgICAgfSwNCiAgICAgICAgICAgIGluR29vZHMoKXsNCiAgICAgICAgICAgICAgICBpZighdGhpcy5jdXJyZW50Um93LmlkKXsNCiAgICAgICAgICAgICAgICAgICAgYWxlcnQoJ+ivt+mAieaLqeiusOW9lScpOw0KICAgICAgICAgICAgICAgICAgICByZXR1cm47DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHRoaXMuaW5EaWFsb2dWaXNpYmxlID0gdHJ1ZQ0KICAgICAgICAgICAgICAgIHRoaXMuJG5leHRUaWNrKCgpPT57DQogICAgICAgICAgICAgICAgICAgIHRoaXMucmVzZXRJbkZvcm0oKQ0KICAgICAgICAgICAgICAgIH0pDQoNCiAgICAgICAgICAgICAgICB0aGlzLmZvcm0xLmdvb2RzbmFtZSA9IHRoaXMuY3VycmVudFJvdy5uYW1lDQogICAgICAgICAgICAgICAgdGhpcy5mb3JtMS5nb29kcyA9IHRoaXMuY3VycmVudFJvdy5pZA0KICAgICAgICAgICAgICAgIHRoaXMuZm9ybTEuYWRtaW5JZD10aGlzLnVzZXIuaWQNCiAgICAgICAgICAgICAgICB0aGlzLmZvcm0xLmFjdGlvbj0nMScNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBvdXRHb29kcygpew0KICAgICAgICAgICAgICAgIGlmKCF0aGlzLmN1cnJlbnRSb3cuaWQpew0KICAgICAgICAgICAgICAgICAgICBhbGVydCgn6K+36YCJ5oup6K6w5b2VJyk7DQogICAgICAgICAgICAgICAgICAgIHJldHVybjsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgdGhpcy5pbkRpYWxvZ1Zpc2libGUgPSB0cnVlDQogICAgICAgICAgICAgICAgdGhpcy4kbmV4dFRpY2soKCk9PnsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZXNldEluRm9ybSgpDQogICAgICAgICAgICAgICAgfSkNCg0KICAgICAgICAgICAgICAgIHRoaXMuZm9ybTEuZ29vZHNuYW1lID0gdGhpcy5jdXJyZW50Um93Lm5hbWUNCiAgICAgICAgICAgICAgICB0aGlzLmZvcm0xLmdvb2RzID0gdGhpcy5jdXJyZW50Um93LmlkDQogICAgICAgICAgICAgICAgdGhpcy5mb3JtMS5hZG1pbklkPXRoaXMudXNlci5pZA0KICAgICAgICAgICAgICAgIHRoaXMuZm9ybTEuYWN0aW9uPScyJw0KDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgc2VsZWN0VXNlcigpew0KICAgICAgICAgICAgICAgIHRoaXMuaW5uZXJWaXNpYmxlPXRydWUNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBkb1NhdmUoKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRheGlvcy5wb3N0KHRoaXMuJGh0dHBVcmwrJy9nb29kcy9zYXZlJyx0aGlzLmZvcm0pLnRoZW4ocmVzPT5yZXMuZGF0YSkudGhlbihyZXM9PnsNCiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKQ0KICAgICAgICAgICAgICAgICAgICBpZihyZXMuY29kZT09MjAwKXsNCg0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kbWVzc2FnZSh7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogJ+aTjeS9nOaIkOWKn++8gScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ3N1Y2Nlc3MnDQogICAgICAgICAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY2VudGVyRGlhbG9nVmlzaWJsZSA9IGZhbHNlDQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmxvYWRQb3N0KCkNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuIHJlc2V0Rm9ybSgpDQogICAgICAgICAgICAgICAgICAgIH1lbHNlew0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kbWVzc2FnZSh7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogJ+aTjeS9nOWksei0pe+8gScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ2Vycm9yJw0KICAgICAgICAgICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgIH0pDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgZG9Nb2QoKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRheGlvcy5wb3N0KHRoaXMuJGh0dHBVcmwrJy9nb29kcy91cGRhdGUnLHRoaXMuZm9ybSkudGhlbihyZXM9PnJlcy5kYXRhKS50aGVuKHJlcz0+ew0KICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpDQogICAgICAgICAgICAgICAgICAgIGlmKHJlcy5jb2RlPT0yMDApew0KDQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOiAn5pON5L2c5oiQ5Yqf77yBJywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnc3VjY2VzcycNCiAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jZW50ZXJEaWFsb2dWaXNpYmxlID0gZmFsc2UNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubG9hZFBvc3QoKQ0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4gcmVzZXRGb3JtKCkNCiAgICAgICAgICAgICAgICAgICAgfWVsc2V7DQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOiAn5pON5L2c5aSx6LSl77yBJywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnZXJyb3InDQogICAgICAgICAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgfSkNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBzYXZlKCl7DQogICAgICAgICAgICAgICAgdGhpcy4kcmVmcy5mb3JtLnZhbGlkYXRlKCh2YWxpZCkgPT4gew0KICAgICAgICAgICAgICAgICAgICBpZiAodmFsaWQpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGlmKHRoaXMuZm9ybS5pZCl7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5kb01vZCgpOw0KICAgICAgICAgICAgICAgICAgICAgICAgfWVsc2V7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5kb1NhdmUoKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKCdlcnJvciBzdWJtaXQhIScpOw0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfSk7DQoNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBkb0luR29vZHMoKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRheGlvcy5wb3N0KHRoaXMuJGh0dHBVcmwrJy9yZWNvcmQvc2F2ZScsdGhpcy5mb3JtMSkudGhlbihyZXM9PnJlcy5kYXRhKS50aGVuKHJlcz0+ew0KICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpDQogICAgICAgICAgICAgICAgICAgIGlmKHJlcy5jb2RlPT0yMDApew0KDQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOiAn5pON5L2c5oiQ5Yqf77yBJywNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnc3VjY2VzcycNCiAgICAgICAgICAgICAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5pbkRpYWxvZ1Zpc2libGUgPSBmYWxzZQ0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5sb2FkUG9zdCgpDQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiByZXNldEluRm9ybSgpDQogICAgICAgICAgICAgICAgICAgIH1lbHNlew0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kbWVzc2FnZSh7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogJ+aTjeS9nOWksei0pe+8gScsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ2Vycm9yJw0KICAgICAgICAgICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgIH0pDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgaGFuZGxlU2l6ZUNoYW5nZSh2YWwpIHsNCiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhg5q+P6aG1ICR7dmFsfSDmnaFgKTsNCiAgICAgICAgICAgICAgICB0aGlzLnBhZ2VOdW09MQ0KICAgICAgICAgICAgICAgIHRoaXMucGFnZVNpemU9dmFsDQogICAgICAgICAgICAgICAgdGhpcy5sb2FkUG9zdCgpDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgaGFuZGxlQ3VycmVudENoYW5nZSh2YWwpIHsNCiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhg5b2T5YmN6aG1OiAke3ZhbH1gKTsNCiAgICAgICAgICAgICAgICB0aGlzLnBhZ2VOdW09dmFsDQogICAgICAgICAgICAgICAgdGhpcy5sb2FkUG9zdCgpDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgcmVzZXRQYXJhbSgpew0KICAgICAgICAgICAgICAgIHRoaXMubmFtZT0nJw0KICAgICAgICAgICAgICAgIHRoaXMuc3RvcmFnZT0nJw0KICAgICAgICAgICAgICAgIHRoaXMuZ29vZHN0eXBlPScnDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgbG9hZFBvc3QoKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRheGlvcy5wb3N0KHRoaXMuJGh0dHBVcmwrJy9nb29kcy9saXN0UGFnZScsew0KICAgICAgICAgICAgICAgICAgICBwYWdlU2l6ZTp0aGlzLnBhZ2VTaXplLA0KICAgICAgICAgICAgICAgICAgICBwYWdlTnVtOnRoaXMucGFnZU51bSwNCiAgICAgICAgICAgICAgICAgICAgcGFyYW06ew0KICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTp0aGlzLm5hbWUsDQogICAgICAgICAgICAgICAgICAgICAgICBnb29kc3R5cGU6dGhpcy5nb29kc3R5cGUrJycsDQogICAgICAgICAgICAgICAgICAgICAgICBzdG9yYWdlOnRoaXMuc3RvcmFnZSsnJw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfSkudGhlbihyZXM9PnJlcy5kYXRhKS50aGVuKHJlcz0+ew0KICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpDQogICAgICAgICAgICAgICAgICAgIGlmKHJlcy5jb2RlPT0yMDApew0KICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50YWJsZURhdGE9cmVzLmRhdGENCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG90YWw9cmVzLnRvdGFsDQogICAgICAgICAgICAgICAgICAgIH1lbHNlew0KICAgICAgICAgICAgICAgICAgICAgICAgYWxlcnQoJ+iOt+WPluaVsOaNruWksei0pScpDQogICAgICAgICAgICAgICAgICAgIH0NCg0KICAgICAgICAgICAgICAgIH0pDQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgbG9hZFN0b3JhZ2UoKXsNCiAgICAgICAgICAgICAgICB0aGlzLiRheGlvcy5nZXQodGhpcy4kaHR0cFVybCsnL3N0b3JhZ2UvbGlzdCcpLnRoZW4ocmVzPT5yZXMuZGF0YSkudGhlbihyZXM9PnsNCiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKQ0KICAgICAgICAgICAgICAgICAgICBpZihyZXMuY29kZT09MjAwKXsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc3RvcmFnZURhdGE9cmVzLmRhdGENCiAgICAgICAgICAgICAgICAgICAgfWVsc2V7DQogICAgICAgICAgICAgICAgICAgICAgICBhbGVydCgn6I635Y+W5pWw5o2u5aSx6LSlJykNCiAgICAgICAgICAgICAgICAgICAgfQ0KDQogICAgICAgICAgICAgICAgfSkNCiAgICAgICAgICAgIH0sDQogICAgICAgICAgICBsb2FkR29vZHN0eXBlKCl7DQogICAgICAgICAgICAgICAgdGhpcy4kYXhpb3MuZ2V0KHRoaXMuJGh0dHBVcmwrJy9nb29kc3R5cGUvbGlzdCcpLnRoZW4ocmVzPT5yZXMuZGF0YSkudGhlbihyZXM9PnsNCiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2cocmVzKQ0KICAgICAgICAgICAgICAgICAgICBpZihyZXMuY29kZT09MjAwKXsNCiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ29vZHN0eXBlRGF0YT1yZXMuZGF0YQ0KICAgICAgICAgICAgICAgICAgICB9ZWxzZXsNCiAgICAgICAgICAgICAgICAgICAgICAgIGFsZXJ0KCfojrflj5bmlbDmja7lpLHotKUnKQ0KICAgICAgICAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICAgICB9KQ0KICAgICAgICAgICAgfQ0KICAgICAgICB9LA0KICAgICAgICBiZWZvcmVNb3VudCgpIHsNCiAgICAgICAgICAgIHRoaXMubG9hZFN0b3JhZ2UoKQ0KICAgICAgICAgICAgdGhpcy5sb2FkR29vZHN0eXBlKCkNCiAgICAgICAgICAgIHRoaXMubG9hZFBvc3QoKQ0KDQogICAgICAgIH0NCiAgICB9DQo="},{"version":3,"sources":["GoodsManage.vue"],"names":[],"mappings":";AA8KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA","file":"GoodsManage.vue","sourceRoot":"src/components/goods","sourcesContent":["<template>\r\n <div>\r\n <div style=\"margin-bottom: 5px;\">\r\n <el-input v-model=\"name\" placeholder=\"请输入物品名\" suffix-icon=\"el-icon-search\" style=\"width: 200px;\"\r\n @keyup.enter.native=\"loadPost\"></el-input>\r\n <el-select v-model=\"storage\" placeholder=\"请选择仓库\" style=\"margin-left: 5px;\">\r\n <el-option\r\n v-for=\"item in storageData\"\r\n :key=\"item.id\"\r\n :label=\"item.name\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n <el-select v-model=\"goodstype\" placeholder=\"请选择分类\" style=\"margin-left: 5px;\">\r\n <el-option\r\n v-for=\"item in goodstypeData\"\r\n :key=\"item.id\"\r\n :label=\"item.name\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n\r\n <el-button type=\"primary\" style=\"margin-left: 5px;\" @click=\"loadPost\">查询</el-button>\r\n <el-button type=\"success\" @click=\"resetParam\">重置</el-button>\r\n\r\n <el-button type=\"primary\" style=\"margin-left: 5px;\" @click=\"add\" v-if=\"user.roleId!=2\">新增</el-button>\r\n <el-button type=\"primary\" style=\"margin-left: 5px;\" @click=\"inGoods\" v-if=\"user.roleId!=2\">入库</el-button>\r\n <el-button type=\"primary\" style=\"margin-left: 5px;\" @click=\"outGoods\" v-if=\"user.roleId!=2\">出库</el-button>\r\n </div>\r\n <el-table :data=\"tableData\"\r\n :header-cell-style=\"{ background: '#f2f5fc', color: '#555555' }\"\r\n border\r\n highlight-current-row\r\n @current-change=\"selectCurrentChange\"\r\n >\r\n <el-table-column prop=\"id\" label=\"ID\" width=\"60\">\r\n </el-table-column>\r\n <el-table-column prop=\"name\" label=\"物品名\" width=\"160\">\r\n </el-table-column>\r\n <el-table-column prop=\"storage\" label=\"仓库\" width=\"160\" :formatter=\"formatStorage\">\r\n </el-table-column>\r\n <el-table-column prop=\"goodstype\" label=\"分类\" width=\"160\" :formatter=\"formatGoodstype\">\r\n </el-table-column>\r\n <el-table-column prop=\"count\" label=\"数量\" width=\"160\">\r\n </el-table-column>\r\n <el-table-column prop=\"remark\" label=\"备注\" width=\"160\">\r\n </el-table-column>\r\n <el-table-column prop=\"operate\" label=\"操作\" v-if=\"user.roleId!=2\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"small\" type=\"success\" @click=\"mod(scope.row)\">编辑</el-button>\r\n <el-popconfirm\r\n title=\"确定删除吗?\"\r\n @confirm=\"del(scope.row.id)\"\r\n style=\"margin-left: 5px;\"\r\n >\r\n <el-button slot=\"reference\" size=\"small\" type=\"danger\" >删除</el-button>\r\n </el-popconfirm>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <el-pagination\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n :current-page=\"pageNum\"\r\n :page-sizes=\"[5, 10, 20,30]\"\r\n :page-size=\"pageSize\"\r\n layout=\"total, sizes, prev, pager, next, jumper\"\r\n :total=\"total\">\r\n </el-pagination>\r\n\r\n <el-dialog\r\n title=\"物品维护\"\r\n :visible.sync=\"centerDialogVisible\"\r\n width=\"30%\"\r\n center>\r\n\r\n <el-form ref=\"form\" :rules=\"rules\" :model=\"form\" label-width=\"80px\">\r\n <el-form-item label=\"物品名\" prop=\"name\">\r\n <el-col :span=\"20\">\r\n <el-input v-model=\"form.name\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"仓库\" prop=\"storage\">\r\n <el-col :span=\"20\">\r\n <el-select v-model=\"form.storage\" placeholder=\"请选择仓库\" style=\"margin-left: 5px;\">\r\n <el-option\r\n v-for=\"item in storageData\"\r\n :key=\"item.id\"\r\n :label=\"item.name\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"分类\" prop=\"goodstype\">\r\n <el-col :span=\"20\">\r\n <el-select v-model=\"form.goodstype\" placeholder=\"请选择分类\" style=\"margin-left: 5px;\">\r\n <el-option\r\n v-for=\"item in goodstypeData\"\r\n :key=\"item.id\"\r\n :label=\"item.name\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"数量\" prop=\"count\">\r\n <el-col :span=\"20\">\r\n <el-input v-model=\"form.count\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"备注\" prop=\"remark\">\r\n <el-col :span=\"20\">\r\n <el-input type=\"textarea\" v-model=\"form.remark\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"centerDialogVisible = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"save\">确 定</el-button>\r\n </span>\r\n </el-dialog>\r\n\r\n <el-dialog\r\n title=\"出入库\"\r\n :visible.sync=\"inDialogVisible\"\r\n width=\"30%\"\r\n center>\r\n\r\n <el-dialog\r\n width=\"75%\"\r\n title=\"用户选择\"\r\n :visible.sync=\"innerVisible\"\r\n append-to-body>\r\n <SelectUser @doSelectUser=\"doSelectUser\"></SelectUser>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"innerVisible = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"confirmUser\">确 定</el-button>\r\n </span>\r\n </el-dialog>\r\n\r\n <el-form ref=\"form1\" :rules=\"rules1\" :model=\"form1\" label-width=\"80px\">\r\n <el-form-item label=\"物品名\">\r\n <el-col :span=\"20\">\r\n <el-input v-model=\"form1.goodsname\" readonly></el-input>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"申请人\">\r\n <el-col :span=\"20\">\r\n <el-input v-model=\"form1.username\" readonly @click.native=\"selectUser\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"数量\" prop=\"count\">\r\n <el-col :span=\"20\">\r\n <el-input v-model=\"form1.count\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n <el-form-item label=\"备注\" prop=\"remark\">\r\n <el-col :span=\"20\">\r\n <el-input type=\"textarea\" v-model=\"form1.remark\"></el-input>\r\n </el-col>\r\n </el-form-item>\r\n </el-form>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <el-button @click=\"inDialogVisible = false\">取 消</el-button>\r\n <el-button type=\"primary\" @click=\"doInGoods\">确 定</el-button>\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n\r\n<script>\r\n import SelectUser from \"../user/SelectUser\";\r\n export default {\r\n name: \"GoodsManage\",\r\n components: {SelectUser},\r\n data() {\r\n let checkCount = (rule, value, callback) => {\r\n if(value>9999){\r\n callback(new Error('数量输入过大'));\r\n }else{\r\n callback();\r\n }\r\n };\r\n\r\n return {\r\n user : JSON.parse(sessionStorage.getItem('CurUser')),\r\n storageData:[],\r\n goodstypeData:[],\r\n tableData: [],\r\n pageSize:10,\r\n pageNum:1,\r\n total:0,\r\n name:'',\r\n storage:'',\r\n goodstype:'',\r\n centerDialogVisible:false,\r\n inDialogVisible:false,\r\n innerVisible:false,\r\n currentRow:{},\r\n tempUser:{},\r\n form:{\r\n id:'',\r\n name:'',\r\n storage:'',\r\n goodstype:'',\r\n count:'',\r\n remark:''\r\n },\r\n form1:{\r\n goods:'',\r\n goodsname:'',\r\n count:'',\r\n username:'',\r\n userid:'',\r\n adminId:'',\r\n remark:'',\r\n action:'1'\r\n },\r\n rules1: {\r\n\r\n },\r\n rules: {\r\n name: [\r\n {required: true, message: '请输入物品名', trigger: 'blur'}\r\n ],\r\n storage:[\r\n {required: true, message: '请选择仓库', trigger: 'blur'}\r\n ],\r\n goodstype:[\r\n {required: true, message: '请选择分类', trigger: 'blur'}\r\n ],\r\n count: [\r\n {required: true, message: '请输入数量', trigger: 'blur'},\r\n {pattern: /^([1-9][0-9]*){1,4}$/,message: '数量必须为正整数字',trigger: \"blur\"},\r\n {validator:checkCount,trigger: 'blur'}\r\n ],\r\n }\r\n }\r\n },\r\n methods:{\r\n doSelectUser(val){\r\n console.log(val)\r\n this.tempUser = val\r\n },\r\n confirmUser(){\r\n this.form1.username = this.tempUser.name\r\n this.form1.userid = this.tempUser.id\r\n\r\n this.innerVisible = false\r\n },\r\n selectCurrentChange(val) {\r\n this.currentRow = val;\r\n },\r\n formatStorage(row){\r\n let temp = this.storageData.find(item=>{\r\n return item.id == row.storage\r\n })\r\n\r\n return temp && temp.name\r\n },\r\n formatGoodstype(row){\r\n let temp = this.goodstypeData.find(item=>{\r\n return item.id == row.goodstype\r\n })\r\n\r\n return temp && temp.name\r\n },\r\n resetForm() {\r\n this.$refs.form.resetFields();\r\n },\r\n resetInForm(){\r\n this.$refs.form1.resetFields();\r\n },\r\n del(id){\r\n console.log(id)\r\n\r\n this.$axios.get(this.$httpUrl+'/goods/del?id='+id).then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n\r\n this.$message({\r\n message: '操作成功!',\r\n type: 'success'\r\n });\r\n this.loadPost()\r\n }else{\r\n this.$message({\r\n message: '操作失败!',\r\n type: 'error'\r\n });\r\n }\r\n\r\n })\r\n },\r\n mod(row){\r\n this.centerDialogVisible = true\r\n this.$nextTick(()=>{\r\n //赋值到表单\r\n this.form.id = row.id\r\n this.form.name = row.name\r\n this.form.storage = row.storage\r\n this.form.goodstype = row.goodstype\r\n this.form.count = row.count\r\n this.form.remark = row.remark\r\n })\r\n },\r\n add(){\r\n\r\n this.centerDialogVisible = true\r\n this.$nextTick(()=>{\r\n this.resetForm()\r\n\r\n this.form.id = ''\r\n })\r\n\r\n },\r\n inGoods(){\r\n if(!this.currentRow.id){\r\n alert('请选择记录');\r\n return;\r\n }\r\n this.inDialogVisible = true\r\n this.$nextTick(()=>{\r\n this.resetInForm()\r\n })\r\n\r\n this.form1.goodsname = this.currentRow.name\r\n this.form1.goods = this.currentRow.id\r\n this.form1.adminId=this.user.id\r\n this.form1.action='1'\r\n },\r\n outGoods(){\r\n if(!this.currentRow.id){\r\n alert('请选择记录');\r\n return;\r\n }\r\n this.inDialogVisible = true\r\n this.$nextTick(()=>{\r\n this.resetInForm()\r\n })\r\n\r\n this.form1.goodsname = this.currentRow.name\r\n this.form1.goods = this.currentRow.id\r\n this.form1.adminId=this.user.id\r\n this.form1.action='2'\r\n\r\n },\r\n selectUser(){\r\n this.innerVisible=true\r\n },\r\n doSave(){\r\n this.$axios.post(this.$httpUrl+'/goods/save',this.form).then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n\r\n this.$message({\r\n message: '操作成功!',\r\n type: 'success'\r\n });\r\n this.centerDialogVisible = false\r\n this.loadPost()\r\n this. resetForm()\r\n }else{\r\n this.$message({\r\n message: '操作失败!',\r\n type: 'error'\r\n });\r\n }\r\n\r\n })\r\n },\r\n doMod(){\r\n this.$axios.post(this.$httpUrl+'/goods/update',this.form).then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n\r\n this.$message({\r\n message: '操作成功!',\r\n type: 'success'\r\n });\r\n this.centerDialogVisible = false\r\n this.loadPost()\r\n this. resetForm()\r\n }else{\r\n this.$message({\r\n message: '操作失败!',\r\n type: 'error'\r\n });\r\n }\r\n\r\n })\r\n },\r\n save(){\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n if(this.form.id){\r\n this.doMod();\r\n }else{\r\n this.doSave();\r\n }\r\n } else {\r\n console.log('error submit!!');\r\n return false;\r\n }\r\n });\r\n\r\n },\r\n doInGoods(){\r\n this.$axios.post(this.$httpUrl+'/record/save',this.form1).then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n\r\n this.$message({\r\n message: '操作成功!',\r\n type: 'success'\r\n });\r\n this.inDialogVisible = false\r\n this.loadPost()\r\n this. resetInForm()\r\n }else{\r\n this.$message({\r\n message: '操作失败!',\r\n type: 'error'\r\n });\r\n }\r\n\r\n })\r\n },\r\n handleSizeChange(val) {\r\n console.log(`每页 ${val} 条`);\r\n this.pageNum=1\r\n this.pageSize=val\r\n this.loadPost()\r\n },\r\n handleCurrentChange(val) {\r\n console.log(`当前页: ${val}`);\r\n this.pageNum=val\r\n this.loadPost()\r\n },\r\n resetParam(){\r\n this.name=''\r\n this.storage=''\r\n this.goodstype=''\r\n },\r\n loadPost(){\r\n this.$axios.post(this.$httpUrl+'/goods/listPage',{\r\n pageSize:this.pageSize,\r\n pageNum:this.pageNum,\r\n param:{\r\n name:this.name,\r\n goodstype:this.goodstype+'',\r\n storage:this.storage+''\r\n }\r\n }).then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n this.tableData=res.data\r\n this.total=res.total\r\n }else{\r\n alert('获取数据失败')\r\n }\r\n\r\n })\r\n },\r\n loadStorage(){\r\n this.$axios.get(this.$httpUrl+'/storage/list').then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n this.storageData=res.data\r\n }else{\r\n alert('获取数据失败')\r\n }\r\n\r\n })\r\n },\r\n loadGoodstype(){\r\n this.$axios.get(this.$httpUrl+'/goodstype/list').then(res=>res.data).then(res=>{\r\n console.log(res)\r\n if(res.code==200){\r\n this.goodstypeData=res.data\r\n }else{\r\n alert('获取数据失败')\r\n }\r\n\r\n })\r\n }\r\n },\r\n beforeMount() {\r\n this.loadStorage()\r\n this.loadGoodstype()\r\n this.loadPost()\r\n\r\n }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>"]}]}