Commit 822fc076 by 肖康

x

parent f983a9bb
......@@ -58,6 +58,7 @@
import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import VueClipboard from 'vue-clipboard2'
import Tool from '../../tool'
import {
Form,
FormItem,
......@@ -199,7 +200,7 @@ Vue.prototype.$message=Message
arr.push(this.multipleSelection[i]['id'])
}
window.location.href = NODE_ENVS+'/api/inquiry/export?ids=' + arr.join(",");
window.location.href = NODE_ENVS+'/api/inquiry/export?ids=' + arr.join(",")+'&token='+Tool.getCookie('token') ;
},
......
......@@ -122,6 +122,7 @@
import {
NODE_ENVS
} from "../../ajax";
import Tool from '../../tool'
Vue.prototype.$message=Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Tooltip);
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination);
......@@ -212,7 +213,7 @@ Vue.prototype.$message=Message
arr.push(this.multipleSelection[i]['id'])
}
window.location.href =NODE_ENVS+ '/api/quote/export?ids=' + arr.join(",");
window.location.href =NODE_ENVS+ '/api/quote/export?ids=' + arr.join(",")+'&token='+Tool.getCookie('token') ;;
},
close() {
......
......@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.5e2bf0b3335e2ee98492.js" rel="preload" as="script"></head>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.29fb300a33c9b2c9ebb4.js" rel="preload" as="script"></head>
<body>
<noscript>
<strong>网络异常,请稍后加载</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.5e2bf0b3335e2ee98492.js"></script></body>
<script type="text/javascript" src="http://yunxin.liexindev.net/app.29fb300a33c9b2c9ebb4.js"></script></body>
</html>
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\nvar _vueClipboard = _interopRequireDefault(__webpack_require__(/*! vue-clipboard2 */ \"./node_modules/vue-clipboard2/vue-clipboard.js\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\n_vue.default.use(_vueClipboard.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: '',\n date: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : ''\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n detail() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].i_status == 1 || this.multipleSelection[0].i_status == 2) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$router.push({\n path: '/inquire/detail?id=' + arr.join(\",\")\n });\n } else {\n this.$message(\"该订单不可报价\");\n return;\n }\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/inquiry/export?ids=' + arr.join(\",\");\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/inquiry/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n onCopy(e) {\n this.$message('复制成功');\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquire.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\nvar _vueClipboard = _interopRequireDefault(__webpack_require__(/*! vue-clipboard2 */ \"./node_modules/vue-clipboard2/vue-clipboard.js\"));\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\n_vue.default.use(_vueClipboard.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: '',\n date: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : ''\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n detail() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].i_status == 1 || this.multipleSelection[0].i_status == 2) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$router.push({\n path: '/inquire/detail?id=' + arr.join(\",\")\n });\n } else {\n this.$message(\"该订单不可报价\");\n return;\n }\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/inquiry/export?ids=' + arr.join(\",\") + '&token=' + _tool.default.getCookie('token');\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/inquiry/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n },\n\n onCopy(e) {\n this.$message('复制成功');\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquire.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: \"\",\n date: '',\n status: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n console.log(this.formInline);\n this.$http('get', \"/api/quote/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : '',\n status: this.formInline.status\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/quote/export?ids=' + arr.join(\",\");\n },\n\n close() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$http('post', \"/api/quote/close\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"关闭成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\nvar _tool = _interopRequireDefault(__webpack_require__(/*! ../../tool */ \"./src/tool/index.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default).use(_tooltip2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand_id: '',\n brand_name: \"\",\n date: '',\n status: ''\n }\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n },\n\n 'formInline.brand_name'(val) {\n if (!val) {\n this.formInline.brand_id = \"\";\n return;\n }\n\n var arr_ = [];\n this.brandList = this.brandList || [];\n\n for (var i = 0; i < this.brandList.length; i++) {\n arr_.push(this.brandList[i].value);\n }\n\n if (arr_.indexOf(val) == -1) {\n this.formInline.brand_id = \"\";\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n console.log(this.formInline);\n this.$http('get', \"/api/quote/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : '',\n status: this.formInline.status\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = _ajax.NODE_ENVS + '/api/quote/export?ids=' + arr.join(\",\") + '&token=' + _tool.default.getCookie('token');\n ;\n },\n\n close() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$http('post', \"/api/quote/close\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"关闭成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n _messageBox2.default.confirm('确认到删除当前勾选数据吗?', {\n type: 'error'\n }).then(() => {\n this.$http('post', \"/api/quote/delete\", {\n ids: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.$message(\"删除成功\");\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n });\n });\n },\n\n handleSelectGoodsName(item) {\n this.formInline.goods_name = item.value;\n },\n\n handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getspu\", {\n spu_name: this.formInline.goods_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n var arr_ = [];\n\n for (var i = 0; i < arrlist_.length; i++) {\n arr_.push({\n value: arrlist_[i]['spu_name']\n });\n }\n\n cb(arr_);\n }\n });\n },\n\n querySearchAsync2(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.formInline.brand_name\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];\n this.formInline.brand_id = \"\";\n\n for (var i = 0; i < arrlist_.length; i++) {\n this.brandList.push({\n value: arrlist_[i]['brand_name'],\n brand_id: arrlist_[i]['brand_id']\n });\n }\n\n cb(this.brandList);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment