Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8823e285
authored
May 21, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
2a38fe9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
src/views/List/inquire.vue
view/app.d8cc6b26c012e569520d.js → view/app.6a5e7a3f6741532eb63c.js
view/index.html
view/js/20.js
src/views/List/inquire.vue
View file @
8823e285
...
...
@@ -147,7 +147,7 @@ Vue.prototype.$message=Message
return
;
}
if
(
this
.
multipleSelection
[
0
].
status
==
1
||
this
.
multipleSelection
[
0
].
status
==
2
)
{
if
(
this
.
multipleSelection
[
0
].
i_status
==
1
||
this
.
multipleSelection
[
0
].
i_
status
==
2
)
{
for
(
var
i
=
0
;
i
<
this
.
multipleSelection
.
length
;
i
++
)
{
arr
.
push
(
this
.
multipleSelection
[
i
][
'id'
])
}
...
...
view/app.
d8cc6b26c012e569520d
.js
→
view/app.
6a5e7a3f6741532eb63c
.js
View file @
8823e285
File moved
view/index.html
View file @
8823e285
...
...
@@ -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/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.
d8cc6b26c012e569520d
.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/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.
6a5e7a3f6741532eb63c
.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.
d8cc6b26c012e569520d
.js"
></script></body>
<script
type=
"text/javascript"
src=
"http://yunxin.liexindev.net/app.
6a5e7a3f6741532eb63c
.js"
></script></body>
</html>
view/js/20.js
View file @
8823e285
...
...
@@ -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 _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: '',\n date: ''\n }\n };\n },\n\n watch: {},\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: this.formInline.brand,\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].
status == 1 || this.multipleSelection[0].
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 = '/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 MessageBox.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 _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: '',\n date: ''\n }\n };\n },\n\n watch: {},\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: this.formInline.brand,\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 = '/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 MessageBox.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"
);
/***/
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment