Commit 8516bc27 by 肖康

x

parent a08f0a7f
...@@ -136,7 +136,22 @@ ...@@ -136,7 +136,22 @@
multipleSelection: [] multipleSelection: []
}; };
}, },
watch: {}, watch: {
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
}
},
created() { created() {
this.getData(); this.getData();
}, },
...@@ -207,6 +222,7 @@ ...@@ -207,6 +222,7 @@
}) })
}, },
handleSelectBrandName(item) { handleSelectBrandName(item) {
console.log(this.brandList)
this.formInline.brand_name = item.value; this.formInline.brand_name = item.value;
this.formInline.brand_id = item.brand_id; this.formInline.brand_id = item.brand_id;
}, },
......
...@@ -154,7 +154,22 @@ ...@@ -154,7 +154,22 @@
selectedOptions: [] selectedOptions: []
}; };
}, },
watch: {}, watch: {
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
}
},
created() { created() {
this.getData(); this.getData();
this.getClass(); this.getClass();
......
...@@ -93,7 +93,8 @@ Vue.prototype.$message=Message ...@@ -93,7 +93,8 @@ Vue.prototype.$message=Message
multipleSelection: [], multipleSelection: [],
formInline: { formInline: {
goods_name: '', goods_name: '',
brand: '', brand_id: '',
brand_name: '',
date: '' date: ''
} }
}; };
...@@ -103,6 +104,20 @@ Vue.prototype.$message=Message ...@@ -103,6 +104,20 @@ Vue.prototype.$message=Message
if(!val){ if(!val){
this.formInline.date=[] this.formInline.date=[]
} }
},
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
} }
}, },
created() { created() {
...@@ -115,7 +130,8 @@ Vue.prototype.$message=Message ...@@ -115,7 +130,8 @@ Vue.prototype.$message=Message
page: this.page, page: this.page,
limit: this.limit, limit: this.limit,
goods_name: this.formInline.goods_name, goods_name: this.formInline.goods_name,
brand: this.formInline.brand, brand_id: this.formInline.brand_id,
brand_name: this.formInline.brand_name,
start_time: this.formInline.date ? this.formInline.date[0] : '', start_time: this.formInline.date ? this.formInline.date[0] : '',
end_time: this.formInline.date ? this.formInline.date[1] : '' end_time: this.formInline.date ? this.formInline.date[1] : ''
}).then(res => { }).then(res => {
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<el-table-column prop="quote_brand_name" label="报价品牌" width="200"></el-table-column> <el-table-column prop="quote_brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" width="100"> <el-table-column prop="status" label="状态" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">已报价</span> <span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span> <span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span> <span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==4">已成单</span> <span v-else-if="scope.row.status==4">已成单</span>
...@@ -134,7 +134,8 @@ Vue.prototype.$message=Message ...@@ -134,7 +134,8 @@ Vue.prototype.$message=Message
multipleSelection: [], multipleSelection: [],
formInline: { formInline: {
goods_name: '', goods_name: '',
brand: '', brand_id: '',
brand_name:"",
date: '', date: '',
status: '' status: ''
} }
...@@ -145,6 +146,20 @@ Vue.prototype.$message=Message ...@@ -145,6 +146,20 @@ Vue.prototype.$message=Message
if(!val){ if(!val){
this.formInline.date=[] this.formInline.date=[]
} }
},
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
} }
}, },
created() { created() {
...@@ -158,7 +173,8 @@ Vue.prototype.$message=Message ...@@ -158,7 +173,8 @@ Vue.prototype.$message=Message
page: this.page, page: this.page,
limit: this.limit, limit: this.limit,
goods_name: this.formInline.goods_name, goods_name: this.formInline.goods_name,
brand: this.formInline.brand, brand_id: this.formInline.brand_id,
brand_name: this.formInline.brand_name,
start_time: this.formInline.date ? this.formInline.date[0] : '', start_time: this.formInline.date ? this.formInline.date[0] : '',
end_time: this.formInline.date ? this.formInline.date[1] : '', end_time: this.formInline.date ? this.formInline.date[1] : '',
status: this.formInline.status status: this.formInline.status
......
...@@ -270,6 +270,20 @@ ...@@ -270,6 +270,20 @@
if(!val){ if(!val){
this.formInline.date=[] this.formInline.date=[]
} }
},
'formInline.brand_name'(val){
if(!val){
this.formInline.brand_id=""
return
}
var arr_=[]
this.brandList=this.brandList||[]
for(var i=0;i<this.brandList.length;i++){
arr_.push(this.brandList[i].value)
}
if(arr_.indexOf(val)==-1){
this.formInline.brand_id=""
}
} }
}, },
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico"> <link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title> <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.92011b01beafc1262426.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.9358fc146056d17c564c.js" rel="preload" as="script"></head>
<body> <body>
<noscript> <noscript>
<strong>网络异常,请稍后加载</strong> <strong>网络异常,请稍后加载</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.92011b01beafc1262426.js"></script></body> <script type="text/javascript" src="http://yunxin.liexindev.net/app.9358fc146056d17c564c.js"></script></body>
</html> </html>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "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 _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 _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 _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 _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 _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_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(_pagination2.default).use(_autocomplete2.default);\n\n_vue.default.use(_tableColumn2.default).use(_table2.default);\n\nvar _default = {\n name: \"brand\",\n\n data() {\n return {\n dialogVisible: false,\n updateBranddata: [],\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n formInline: {\n brand_name: '',\n brand_id: '',\n keyword: ''\n },\n disabled: false,\n tableData: \"\",\n timer: null,\n multipleSelection: []\n };\n },\n\n watch: {},\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/brand/get_brand_list\", {\n page: this.page,\n limit: this.limit,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.total) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n updateBrand() {\n if (this.multipleSelection.length > 1) {\n this.$message(\"只能选择一条数据\");\n return;\n }\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.updateBranddata = JSON.parse(JSON.stringify(this.multipleSelection));\n this.dialogVisible = true;\n },\n\n submitUpdate() {\n var arr_ = {\n id: this.updateBranddata[0].id,\n remark: this.updateBranddata[0].remark,\n internal_standard_name: this.updateBranddata[0].internal_standard_name\n };\n this.$http('post', \"/api/brand/update_brand\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\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 handleSelectBrandName(item) {\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n submit() {\n if (this.formInline.keyword && this.formInline.keyword.length == 1) {\n this.$message(\"关键词不能少于2个字符\");\n return;\n }\n\n this.page = 1;\n this.getData();\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('post', \"/api/brand/export_brand\", {\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n del() {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\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/brand/delete_brand\", {\n id: 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 handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val || [];\n console.log(this.multipleSelection);\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Goods/brand.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 _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 _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 _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 _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 _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_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(_pagination2.default).use(_autocomplete2.default);\n\n_vue.default.use(_tableColumn2.default).use(_table2.default);\n\nvar _default = {\n name: \"brand\",\n\n data() {\n return {\n dialogVisible: false,\n updateBranddata: [],\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n formInline: {\n brand_name: '',\n brand_id: '',\n keyword: ''\n },\n disabled: false,\n tableData: \"\",\n timer: null,\n multipleSelection: []\n };\n },\n\n watch: {\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/brand/get_brand_list\", {\n page: this.page,\n limit: this.limit,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.total) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n updateBrand() {\n if (this.multipleSelection.length > 1) {\n this.$message(\"只能选择一条数据\");\n return;\n }\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.updateBranddata = JSON.parse(JSON.stringify(this.multipleSelection));\n this.dialogVisible = true;\n },\n\n submitUpdate() {\n var arr_ = {\n id: this.updateBranddata[0].id,\n remark: this.updateBranddata[0].remark,\n internal_standard_name: this.updateBranddata[0].internal_standard_name\n };\n this.$http('post', \"/api/brand/update_brand\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\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 handleSelectBrandName(item) {\n console.log(this.brandList);\n this.formInline.brand_name = item.value;\n this.formInline.brand_id = item.brand_id;\n },\n\n submit() {\n if (this.formInline.keyword && this.formInline.keyword.length == 1) {\n this.$message(\"关键词不能少于2个字符\");\n return;\n }\n\n this.page = 1;\n this.getData();\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('post', \"/api/brand/export_brand\", {\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n del() {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\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/brand/delete_brand\", {\n id: 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 handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val || [];\n console.log(this.multipleSelection);\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Goods/brand.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 @@ ...@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "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 _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.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 _cascader = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/cascader.css */ \"./node_modules/element-ui/lib/theme-chalk/cascader.css\"));\n\nvar _cascader2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/cascader */ \"./node_modules/element-ui/lib/cascader.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 _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 _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 _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 _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//\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(_pagination2.default);\n\n_vue.default.use(_tableColumn2.default).use(_table2.default).use(_cascader2.default).use(_autocomplete2.default);\n\nvar _default = {\n name: \"brand\",\n\n data() {\n return {\n dialogVisible: false,\n updateGoodsdata: [],\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n formInline: {\n goods_name: '',\n brand_name: '',\n brand_id: '',\n keyword: '',\n class_id2: '',\n class_id1: ''\n },\n disabled: false,\n timer: null,\n tableData: \"\",\n multipleSelection: [],\n options: [],\n selectedOptions: []\n };\n },\n\n watch: {},\n\n created() {\n this.getData();\n this.getClass();\n },\n\n computed: {},\n methods: {\n getClass() {\n this.$http('get', \"/api/class/get_class_list\", {}).then(res => {\n if (res.err_code === 0) {\n var arr_ = res.data || [];\n\n for (var i = 0; i < arr_.length; i++) {\n var children_arr = [];\n var arr_2 = arr_[i].sub_class || [];\n\n for (var o = 0; o < arr_2.length; o++) {\n children_arr.push({\n value: arr_[i].class_id,\n label: arr_[i].class_name\n });\n }\n\n this.options.push({\n value: arr_[i].class_id,\n label: arr_[i].class_name,\n children: children_arr\n });\n }\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getData() {\n this.$http('get', \"/api/spu/get_spu_list\", {\n page: this.page,\n limit: this.limit,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n spu_name: this.formInline.goods_name,\n keyword: this.formInline.keyword,\n class_id2: this.formInline.class_id2,\n class_id1: this.formInline.class_id1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n updateBrand() {\n if (this.multipleSelection.length > 1) {\n this.$message(\"只能选择一条数据\");\n return;\n }\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.updateGoodsdata = JSON.parse(JSON.stringify(this.multipleSelection));\n this.dialogVisible = true;\n },\n\n submitUpdate() {\n var arr_ = {\n id: this.updateGoodsdata[0].spu_id,\n remark: this.updateGoodsdata[0].remark\n };\n this.$http('post', \"/api/spu/update_spu\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\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 submit() {\n if (this.formInline.keyword && this.formInline.keyword.length == 1) {\n this.$message(\"关键词不能少于2个字符\");\n return;\n }\n\n this.page = 1;\n this.getData();\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('post', \"/api/spu/export_spu\", {\n spu_name: this.formInline.goods_name,\n brand_name: this.formInline.brand_name,\n brand_id: this.formInline.brand_id,\n class_id2: this.formInline.class_id2,\n class_id1: this.formInline.class_id1,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val || [];\n console.log(this.multipleSelection);\n },\n\n handleChange(value) {\n console.log(value);\n this.formInline.class_id1 = value[0];\n this.formInline.class_id2 = value[1];\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Goods/goods.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 _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.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 _cascader = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/cascader.css */ \"./node_modules/element-ui/lib/theme-chalk/cascader.css\"));\n\nvar _cascader2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/cascader */ \"./node_modules/element-ui/lib/cascader.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 _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 _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 _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 _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//\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(_pagination2.default);\n\n_vue.default.use(_tableColumn2.default).use(_table2.default).use(_cascader2.default).use(_autocomplete2.default);\n\nvar _default = {\n name: \"brand\",\n\n data() {\n return {\n dialogVisible: false,\n updateGoodsdata: [],\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n formInline: {\n goods_name: '',\n brand_name: '',\n brand_id: '',\n keyword: '',\n class_id2: '',\n class_id1: ''\n },\n disabled: false,\n timer: null,\n tableData: \"\",\n multipleSelection: [],\n options: [],\n selectedOptions: []\n };\n },\n\n watch: {\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 this.getClass();\n },\n\n computed: {},\n methods: {\n getClass() {\n this.$http('get', \"/api/class/get_class_list\", {}).then(res => {\n if (res.err_code === 0) {\n var arr_ = res.data || [];\n\n for (var i = 0; i < arr_.length; i++) {\n var children_arr = [];\n var arr_2 = arr_[i].sub_class || [];\n\n for (var o = 0; o < arr_2.length; o++) {\n children_arr.push({\n value: arr_[i].class_id,\n label: arr_[i].class_name\n });\n }\n\n this.options.push({\n value: arr_[i].class_id,\n label: arr_[i].class_name,\n children: children_arr\n });\n }\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getData() {\n this.$http('get', \"/api/spu/get_spu_list\", {\n page: this.page,\n limit: this.limit,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n spu_name: this.formInline.goods_name,\n keyword: this.formInline.keyword,\n class_id2: this.formInline.class_id2,\n class_id1: this.formInline.class_id1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n updateBrand() {\n if (this.multipleSelection.length > 1) {\n this.$message(\"只能选择一条数据\");\n return;\n }\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.updateGoodsdata = JSON.parse(JSON.stringify(this.multipleSelection));\n this.dialogVisible = true;\n },\n\n submitUpdate() {\n var arr_ = {\n id: this.updateGoodsdata[0].spu_id,\n remark: this.updateGoodsdata[0].remark\n };\n this.$http('post', \"/api/spu/update_spu\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\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 submit() {\n if (this.formInline.keyword && this.formInline.keyword.length == 1) {\n this.$message(\"关键词不能少于2个字符\");\n return;\n }\n\n this.page = 1;\n this.getData();\n },\n\n downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('post', \"/api/spu/export_spu\", {\n spu_name: this.formInline.goods_name,\n brand_name: this.formInline.brand_name,\n brand_id: this.formInline.brand_id,\n class_id2: this.formInline.class_id2,\n class_id1: this.formInline.class_id1,\n keyword: this.formInline.keyword\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val || [];\n console.log(this.multipleSelection);\n },\n\n handleChange(value) {\n console.log(value);\n this.formInline.class_id1 = value[0];\n this.formInline.class_id2 = value[1];\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Goods/goods.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 @@ ...@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\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: 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 _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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 = '/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");
/***/ }), /***/ }),
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: '',\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 },\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: this.formInline.brand,\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 = '/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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 = '/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");
/***/ }), /***/ }),
...@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b ...@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) { /***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"store pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"store-con\" },\n [\n _c(\n \"el-form\",\n {\n staticClass: \"demo-form-inline\",\n attrs: { inline: true, model: _vm.formInline }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"报价型号\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync,\n placeholder: \"请输入型号\"\n },\n on: { select: _vm.handleSelectGoodsName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.goods_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"goods_name\", $$v)\n },\n expression: \"formInline.goods_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"品牌\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync2,\n placeholder: \"请输入品牌\"\n },\n on: { select: _vm.handleSelectBrandName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.brand_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"brand_name\", $$v)\n },\n expression: \"formInline.brand_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"状态\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: { placeholder: \"请选择\" },\n model: {\n value: _vm.formInline.status,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"status\", $$v)\n },\n expression: \"formInline.status\"\n }\n },\n [\n _c(\"el-option\", {\n attrs: { label: \"比价中\", value: \"1\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已确认\", value: \"3\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已成单\", value: \"4\" }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"最近报价时间\" } },\n [\n _c(\"el-date-picker\", {\n attrs: {\n type: \"daterange\",\n \"range-separator\": \"至\",\n \"start-placeholder\": \"开始日期\",\n \"end-placeholder\": \"结束日期\"\n },\n model: {\n value: _vm.formInline.date,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"date\", $$v)\n },\n expression: \"formInline.date\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.onSubmit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\n [_vm._v(\"导出\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.close } }, [\n _vm._v(\"关闭\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"data-box th-all\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" },\n on: { \"selection-change\": _vm.handleSelectionChange }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n type: \"selection\",\n width: \"40\",\n align: \"center\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"goods_name\", label: \"型号\", width: \"200\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"div\",\n { staticClass: \"price-mores\" },\n [\n _c(\n \"el-tooltip\",\n {\n attrs: {\n effect: \"light\",\n placement: \"bottom-start\",\n \"popper-class\": \"popper-class-box\"\n }\n },\n [\n _c(\n \"div\",\n {\n attrs: { slot: \"content\" },\n slot: \"content\"\n },\n [\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"型号\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.goods_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"品牌\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.brand_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"数量\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.quote_number)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"批次\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [_vm._v(_vm._s(scope.row.batch))]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"交货日期\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(\n scope.row.delivery_time\n )\n )\n ]\n )\n ]\n )\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"more-search-btn\" },\n [_vm._v(_vm._s(scope.row.goods_name))]\n )\n ]\n )\n ],\n 1\n )\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"brand_name\", label: \"品牌\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_goods_name\",\n label: \"报价型号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_brand_name\",\n label: \"报价品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"status\", label: \"状态\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"已报价\")\n ])\n : scope.row.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"已选中\")\n ])\n : scope.row.status == 3\n ? _c(\"span\", [_vm._v(\"已确认\")])\n : scope.row.status == 4\n ? _c(\"span\", [_vm._v(\"已成单\")])\n : scope.row.status == 5\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已关闭\")\n ])\n : scope.row.status == 9\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已删除\")\n ])\n : scope.row.status == -1\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已撤销\")\n ])\n : _vm._e()\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_status_val\",\n label: \"是否有效\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_number\",\n label: \"报价数量\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"price_origin\", label: \"价格\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"currency_val\", label: \"币种\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"tax_rate\", label: \"税率\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"货期\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"最小包装数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_other\",\n label: \"其他费用\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_time\",\n label: \"报价有效期\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"remark\", label: \"备注\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"最近报价时间\",\n width: \"200\"\n }\n })\n ],\n 1\n ),\n _c(\"el-pagination\", {\n attrs: {\n layout: \"prev, pager, next,jumper\",\n \"page-size\": _vm.limit,\n total: _vm.total,\n \"current-page\": _vm.page\n },\n on: { \"current-change\": _vm.handleCurrentChange }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221c089814-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"store pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"store-con\" },\n [\n _c(\n \"el-form\",\n {\n staticClass: \"demo-form-inline\",\n attrs: { inline: true, model: _vm.formInline }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"报价型号\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync,\n placeholder: \"请输入型号\"\n },\n on: { select: _vm.handleSelectGoodsName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.goods_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"goods_name\", $$v)\n },\n expression: \"formInline.goods_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"品牌\" } },\n [\n _c(\"el-autocomplete\", {\n attrs: {\n \"trigger-on-focus\": false,\n \"fetch-suggestions\": _vm.querySearchAsync2,\n placeholder: \"请输入品牌\"\n },\n on: { select: _vm.handleSelectBrandName },\n nativeOn: {\n keyup: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k(\n $event.keyCode,\n \"enter\",\n 13,\n $event.key,\n \"Enter\"\n )\n ) {\n return null\n }\n return _vm.onSubmit($event)\n }\n },\n model: {\n value: _vm.formInline.brand_name,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"brand_name\", $$v)\n },\n expression: \"formInline.brand_name\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"状态\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: { placeholder: \"请选择\" },\n model: {\n value: _vm.formInline.status,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"status\", $$v)\n },\n expression: \"formInline.status\"\n }\n },\n [\n _c(\"el-option\", {\n attrs: { label: \"比价中\", value: \"1\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已确认\", value: \"3\" }\n }),\n _c(\"el-option\", {\n attrs: { label: \"已成单\", value: \"4\" }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"最近报价时间\" } },\n [\n _c(\"el-date-picker\", {\n attrs: {\n type: \"daterange\",\n \"range-separator\": \"至\",\n \"start-placeholder\": \"开始日期\",\n \"end-placeholder\": \"结束日期\"\n },\n model: {\n value: _vm.formInline.date,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"date\", $$v)\n },\n expression: \"formInline.date\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.onSubmit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\n [_vm._v(\"导出\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.close } }, [\n _vm._v(\"关闭\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"data-box th-all\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" },\n on: { \"selection-change\": _vm.handleSelectionChange }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n type: \"selection\",\n width: \"40\",\n align: \"center\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"goods_name\", label: \"型号\", width: \"200\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"div\",\n { staticClass: \"price-mores\" },\n [\n _c(\n \"el-tooltip\",\n {\n attrs: {\n effect: \"light\",\n placement: \"bottom-start\",\n \"popper-class\": \"popper-class-box\"\n }\n },\n [\n _c(\n \"div\",\n {\n attrs: { slot: \"content\" },\n slot: \"content\"\n },\n [\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"型号\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.goods_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"品牌\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.brand_name)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"数量\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(scope.row.quote_number)\n )\n ]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"批次\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [_vm._v(_vm._s(scope.row.batch))]\n )\n ]\n ),\n _c(\n \"p\",\n {\n staticClass: \"p-text row verCenter\"\n },\n [\n _c(\"em\", { staticClass: \"row\" }, [\n _vm._v(\"交货日期\")\n ]),\n _c(\n \"span\",\n {\n staticClass:\n \"row verCenter boxsiz\"\n },\n [\n _vm._v(\n _vm._s(\n scope.row.delivery_time\n )\n )\n ]\n )\n ]\n )\n ]\n ),\n _c(\n \"div\",\n { staticClass: \"more-search-btn\" },\n [_vm._v(_vm._s(scope.row.goods_name))]\n )\n ]\n )\n ],\n 1\n )\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"brand_name\", label: \"品牌\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_goods_name\",\n label: \"报价型号\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_brand_name\",\n label: \"报价品牌\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"status\", label: \"状态\", width: \"100\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"比价中\")\n ])\n : scope.row.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"已选中\")\n ])\n : scope.row.status == 3\n ? _c(\"span\", [_vm._v(\"已确认\")])\n : scope.row.status == 4\n ? _c(\"span\", [_vm._v(\"已成单\")])\n : scope.row.status == 5\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已关闭\")\n ])\n : scope.row.status == 9\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已删除\")\n ])\n : scope.row.status == -1\n ? _c(\"span\", { staticClass: \"f-red1\" }, [\n _vm._v(\"已撤销\")\n ])\n : _vm._e()\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_status_val\",\n label: \"是否有效\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"quote_number\",\n label: \"报价数量\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"price_origin\", label: \"价格\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"currency_val\", label: \"币种\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"tax_rate\", label: \"税率\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"货期\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"最小包装数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_other\",\n label: \"其他费用\",\n width: \"100\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"expire_time\",\n label: \"报价有效期\",\n width: \"200\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"remark\", label: \"备注\", width: \"200\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"最近报价时间\",\n width: \"200\"\n }\n })\n ],\n 1\n ),\n _c(\"el-pagination\", {\n attrs: {\n layout: \"prev, pager, next,jumper\",\n \"page-size\": _vm.limit,\n total: _vm.total,\n \"current-page\": _vm.page\n },\n on: { \"current-change\": _vm.handleCurrentChange }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/List/quote.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%221c089814-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }), /***/ }),
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "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 _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 _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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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(_tooltip2.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\nvar _default = {\n name: \"list\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n dialogVisible: false,\n dialogVisible2: false,\n downHref: \"\",\n formInline: {\n goods_name: '',\n status: '',\n brand_id: '',\n brand_name: '',\n date: ''\n },\n multipleSelection: [],\n selectData: [],\n huoqidata: [],\n kucundata: [],\n tableData: [],\n brandList: [],\n disabled: false,\n timer: null\n };\n },\n\n watch: {\n 'formInline.date'(val) {\n if (!val) {\n this.formInline.date = [];\n }\n }\n\n },\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/sku/list\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\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 downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('get', \"/api/sku/exportSku\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10); //window.location.href = res.data\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCommand(command) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.selectData = JSON.parse(JSON.stringify(this.multipleSelection));\n\n if (command == 1) {\n //修改库存弹窗\n this.dialogVisible = true;\n this.kucundata = this.selectData;\n } else {\n //修改货期弹窗\n this.dialogVisible2 = true;\n this.huoqidata = this.selectData;\n }\n },\n\n submitHq() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.huoqidata.length; i++) {\n arr_[self.huoqidata[i]['goods_id']] = {\n cn_delivery_time: self.huoqidata[i]['dlhq'] + (self.huoqidata[i]['dlhqdw'] || '天'),\n hk_delivery_time: self.huoqidata[i]['hkhq'] + (self.huoqidata[i]['hkhqdw'] || '天')\n };\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible2 = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submitKc() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.kucundata.length; i++) {\n arr_[self.kucundata[i]['goods_id']] = {\n stock: self.kucundata[i]['updateStock']\n };\n console.log(self.kucundata[i]['goods_id']);\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code === 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n changeStatus(status) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['goods_id']);\n }\n\n this.$http('post', \"/api/sku/updateSkuStatus\", {\n sku_ids: arr.join(\",\"),\n status: status == 1 ? 'passed' : 'offshelf'\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 components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/list.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 _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 _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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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(_tooltip2.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\nvar _default = {\n name: \"list\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n dialogVisible: false,\n dialogVisible2: false,\n downHref: \"\",\n formInline: {\n goods_name: '',\n status: '',\n brand_id: '',\n brand_name: '',\n date: ''\n },\n multipleSelection: [],\n selectData: [],\n huoqidata: [],\n kucundata: [],\n tableData: [],\n brandList: [],\n disabled: false,\n timer: null\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/sku/list\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n } else {\n this.$message(res.err_msg);\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 downOut() {\n if (this.disabled) {\n this.$message(\"正在导出中,请不要重复点击\");\n return;\n }\n\n this.$http('get', \"/api/sku/exportSku\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n status: this.formInline.status,\n brand_id: this.formInline.brand_id,\n brand_name: this.formInline.brand_name,\n action_time: this.formInline.date[0],\n end_time: this.formInline.date[1]\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = true;\n this.$message(\"正在导出中,请耐心等待\");\n this.timer = setInterval(() => {\n if (!this.disabled) {\n clearInterval(this.timer);\n return;\n }\n\n this.resultDown(res.data);\n }, 3000);\n }\n });\n },\n\n resultDown(id_) {\n this.$http('get', \"/api/export/get_export_data\", {\n id: id_\n }).then(res => {\n if (res.err_code == 0) {\n this.disabled = false;\n this.$message(\"导出成功\");\n this.downHref = res.data;\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10); //window.location.href = res.data\n } else if (res.err_code == -1) {\n //导出失败\n this.$message(res.data);\n this.disabled = false;\n }\n }, error => {\n this.$message('网络出现问题,请检查网络');\n this.disabled = false;\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCommand(command) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n this.selectData = JSON.parse(JSON.stringify(this.multipleSelection));\n\n if (command == 1) {\n //修改库存弹窗\n this.dialogVisible = true;\n this.kucundata = this.selectData;\n } else {\n //修改货期弹窗\n this.dialogVisible2 = true;\n this.huoqidata = this.selectData;\n }\n },\n\n submitHq() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.huoqidata.length; i++) {\n arr_[self.huoqidata[i]['goods_id']] = {\n cn_delivery_time: self.huoqidata[i]['dlhq'] + (self.huoqidata[i]['dlhqdw'] || '天'),\n hk_delivery_time: self.huoqidata[i]['hkhq'] + (self.huoqidata[i]['hkhqdw'] || '天')\n };\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code == 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible2 = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submitKc() {\n var arr_ = {};\n var self = this;\n\n for (var i = 0; i < self.kucundata.length; i++) {\n arr_[self.kucundata[i]['goods_id']] = {\n stock: self.kucundata[i]['updateStock']\n };\n console.log(self.kucundata[i]['goods_id']);\n }\n\n console.log(arr_);\n this.$http('post', \"/api/sku/updateSku\", arr_).then(res => {\n if (res.err_code === 0) {\n this.$message(\"修改成功\");\n this.getData();\n this.dialogVisible = false;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n changeStatus(status) {\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n var arr = [];\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['goods_id']);\n }\n\n this.$http('post', \"/api/sku/updateSkuStatus\", {\n sku_ids: arr.join(\",\"),\n status: status == 1 ? 'passed' : 'offshelf'\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 components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/list.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