Commit a08f0a7f by 肖康

x

parent 0eca56e2
......@@ -3,12 +3,12 @@
<div class="brand-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false"
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="submit"
:fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName">
</el-autocomplete>
</el-form-item>
<el-form-item label="关键词">
<el-input v-model="formInline.keyword" placeholder="请输入关键词"></el-input>
<el-input v-model="formInline.keyword" placeholder="请输入关键词" @keyup.enter.native="submit"></el-input>
</el-form-item>
<el-form-item>
......@@ -211,6 +211,10 @@
this.formInline.brand_id = item.brand_id;
},
submit() {
if(this.formInline.keyword&&this.formInline.keyword.length==1){
this.$message("关键词不能少于2个字符");
return
}
this.page = 1;
this.getData();
},
......
......@@ -3,11 +3,11 @@
<div class="goods-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false"
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="submit"
:fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item>
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false"
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="submit"
:fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName">
</el-autocomplete>
</el-form-item>
......@@ -18,7 +18,7 @@
@change="handleChange"></el-cascader>
</el-form-item>
<el-form-item label="关键词">
<el-input v-model="formInline.keyword" placeholder="请输入关键词"></el-input>
<el-input v-model="formInline.keyword" @keyup.enter.native="submit" placeholder="请输入关键词"></el-input>
</el-form-item>
<el-form-item>
......@@ -275,6 +275,10 @@
})
},
submit() {
if(this.formInline.keyword&&this.formInline.keyword.length==1){
this.$message("关键词不能少于2个字符");
return
}
this.page = 1;
this.getData();
},
......
......@@ -3,10 +3,10 @@
<div class="store-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
<el-autocomplete @keyup.enter.native="onSubmit" v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item>
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName"></el-autocomplete>
<el-autocomplete @keyup.enter.native="onSubmit" v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName"></el-autocomplete>
</el-form-item>
<el-form-item label="询价日期">
<el-date-picker v-model="formInline.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
......@@ -98,7 +98,13 @@ Vue.prototype.$message=Message
}
};
},
watch: {},
watch: {
'formInline.date'(val){
if(!val){
this.formInline.date=[]
}
}
},
created() {
this.getData();
},
......
......@@ -3,10 +3,10 @@
<div class="store-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="报价型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
<el-autocomplete @keyup.enter.native="onSubmit" v-model="formInline.goods_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item>
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName"></el-autocomplete>
<el-autocomplete @keyup.enter.native="onSubmit" v-model="formInline.brand_name" :trigger-on-focus="false" :fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName"></el-autocomplete>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="formInline.status" placeholder="请选择">
......@@ -15,14 +15,12 @@
<el-option label="已成单" value="4"></el-option>
</el-select>
</el-form-item>
<div>
<el-form-item label="最近报价时间">
<el-date-picker v-model="formInline.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item>
<div @click="onSubmit" class="search-btn">搜索</div>
</el-form-item>
</div>
</el-form>
<div class="btn-nav clr">
<div class="fl dcg" @click="exportChange">导出</div>
......@@ -142,7 +140,13 @@ Vue.prototype.$message=Message
}
};
},
watch: {},
watch: {
'formInline.date'(val){
if(!val){
this.formInline.date=[]
}
}
},
created() {
this.getData();
},
......
......@@ -116,7 +116,13 @@
multipleSelection: []
};
},
watch: {},
watch: {
'formInline.date'(val){
if(!val){
this.formInline.date=[]
}
}
},
created() {
this.getData();
},
......
......@@ -3,11 +3,11 @@
<div class="store-con">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="型号">
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false"
<el-autocomplete v-model="formInline.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit"
:fetch-suggestions="querySearchAsync" placeholder="请输入型号" @select="handleSelectGoodsName"></el-autocomplete>
</el-form-item>
<el-form-item label="品牌">
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false"
<el-autocomplete v-model="formInline.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit"
:fetch-suggestions="querySearchAsync2" placeholder="请输入品牌" @select="handleSelectBrandName">
</el-autocomplete>
</el-form-item>
......@@ -266,7 +266,11 @@
};
},
watch: {
'formInline.date'(val){
if(!val){
this.formInline.date=[]
}
}
},
created() {
......
......@@ -178,7 +178,7 @@ Vue.prototype.$message=Message
}
} else if (res.err_code === 102) {
this.errror_text = res.err_msg;
this.errorClass3 = true;
//this.errorClass3 = true;
this.cp = true;
this.updateCp();
} else {
......
......@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="http://yunxin.liexindev.net/favicon.ico">
<title>cloudsystem</title>
<link href="http://yunxin.liexindev.net/js/0.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/1.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/10.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/11.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/12.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/13.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/14.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/15.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/16.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/17.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/18.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/19.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/2.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/20.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/21.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/22.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/23.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/24.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/25.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/26.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/27.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/28.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/3.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/4.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/5.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/6.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/7.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/8.js" rel="prefetch"><link href="http://yunxin.liexindev.net/js/9.js" rel="prefetch"><link href="http://yunxin.liexindev.net/app.47339d24547fcedb6b0f.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.92011b01beafc1262426.js" rel="preload" as="script"></head>
<body>
<noscript>
<strong>网络异常,请稍后加载</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="http://yunxin.liexindev.net/app.47339d24547fcedb6b0f.js"></script></body>
<script type="text/javascript" src="http://yunxin.liexindev.net/app.92011b01beafc1262426.js"></script></body>
</html>
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _loading = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/loading.css */ \"./node_modules/element-ui/lib/theme-chalk/loading.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _loading2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/loading */ \"./node_modules/element-ui/lib/loading.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 _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_vue.default.prototype.$message = _message2.default;\nvar _default = {\n name: \"index\",\n\n data() {\n return {\n pwdFlag: true,\n active: false,\n errror_text: '',\n status1: false,\n status2: false,\n loading: true,\n imgSrc: '',\n errorClass1: false,\n errorClass2: false,\n errorClass3: false,\n cp: false,\n form: {\n mobile: '',\n password: '',\n captcha: '',\n captcha_key: ''\n }\n };\n },\n\n watch: {\n form: {\n deep: true,\n handler: function (newV, oldV) {\n let obj = newV;\n let myreg = /^[1][3,4,5,7,8][0-9]{9}$/;\n\n if (!this.cp) {\n if (obj.captcha || obj.password || obj.mobile) {\n this.errror_text = '';\n this.errorClass1 = false;\n this.errorClass2 = false;\n this.errorClass3 = false;\n }\n } else {\n this.cp = false;\n }\n\n if (myreg.test(obj.mobile)) {\n this.active = true;\n } else {\n this.active = false;\n }\n }\n }\n },\n\n created() {\n this.updateCp();\n },\n\n computed: {},\n methods: {\n updateCp() {\n this.$http('get', \"/auth/cp\").then(res => {\n if (res.err_code === 0) {\n this.imgSrc = res.data.url.img;\n this.form.captcha_key = res.data.url.key;\n }\n }).catch(err => {\n console.log(err.message);\n });\n },\n\n changePwd: function () {\n this.pwdFlag = !this.pwdFlag;\n },\n\n submit() {\n var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;\n\n if (!this.form.mobile) {\n this.errror_text = '请输入手机号';\n this.errorClass1 = true;\n return false;\n }\n\n if (!myreg.test(this.form.mobile)) {\n this.errror_text = '请输入正确的手机号';\n this.errorClass1 = true;\n return false;\n }\n\n if (!this.form.password) {\n this.errror_text = '请输入登录密码';\n this.errorClass2 = true;\n return false;\n }\n\n if (!this.form.captcha) {\n this.errror_text = '请输入验证码';\n this.errorClass3 = true;\n return false;\n }\n\n let loadingInstance = _loading2.default.service({\n background: 'rgba(0, 0, 0, 0)'\n });\n\n this.$http('post', \"/auth/login\", {\n mobile: this.form.mobile,\n password: this.form.password,\n captcha: this.form.captcha,\n captcha_key: this.form.captcha_key\n }).then(res => {\n loadingInstance.close();\n\n if (res.err_code === 0) {\n _tool.default.setCookie(\"token\", res.data.api_token, 1); //强制要求微信绑定\n\n\n if (!res.data.is_bind_wechat) {\n this.$http('get', \"/api/login/getwxqrcode\").then(res => {\n if (res.err_code === 0) {\n window.location.href = res.data.wx_login_url;\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n if (this.$route.query.referer) {\n window.location.href = \"/#\" + this.$route.query.referer;\n } else {\n window.location.href = '/';\n }\n }\n } else if (res.err_code === 102) {\n this.errror_text = res.err_msg;\n this.errorClass3 = true;\n this.cp = true;\n this.updateCp();\n } else {\n this.errror_text = res.err_msg;\n this.updateCp();\n }\n }).catch(err => {\n loadingInstance.close();\n });\n }\n\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/User/login.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 _loading = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/loading.css */ \"./node_modules/element-ui/lib/theme-chalk/loading.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _loading2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/loading */ \"./node_modules/element-ui/lib/loading.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 _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_vue.default.prototype.$message = _message2.default;\nvar _default = {\n name: \"index\",\n\n data() {\n return {\n pwdFlag: true,\n active: false,\n errror_text: '',\n status1: false,\n status2: false,\n loading: true,\n imgSrc: '',\n errorClass1: false,\n errorClass2: false,\n errorClass3: false,\n cp: false,\n form: {\n mobile: '',\n password: '',\n captcha: '',\n captcha_key: ''\n }\n };\n },\n\n watch: {\n form: {\n deep: true,\n handler: function (newV, oldV) {\n let obj = newV;\n let myreg = /^[1][3,4,5,7,8][0-9]{9}$/;\n\n if (!this.cp) {\n if (obj.captcha || obj.password || obj.mobile) {\n this.errror_text = '';\n this.errorClass1 = false;\n this.errorClass2 = false;\n this.errorClass3 = false;\n }\n } else {\n this.cp = false;\n }\n\n if (myreg.test(obj.mobile)) {\n this.active = true;\n } else {\n this.active = false;\n }\n }\n }\n },\n\n created() {\n this.updateCp();\n },\n\n computed: {},\n methods: {\n updateCp() {\n this.$http('get', \"/auth/cp\").then(res => {\n if (res.err_code === 0) {\n this.imgSrc = res.data.url.img;\n this.form.captcha_key = res.data.url.key;\n }\n }).catch(err => {\n console.log(err.message);\n });\n },\n\n changePwd: function () {\n this.pwdFlag = !this.pwdFlag;\n },\n\n submit() {\n var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;\n\n if (!this.form.mobile) {\n this.errror_text = '请输入手机号';\n this.errorClass1 = true;\n return false;\n }\n\n if (!myreg.test(this.form.mobile)) {\n this.errror_text = '请输入正确的手机号';\n this.errorClass1 = true;\n return false;\n }\n\n if (!this.form.password) {\n this.errror_text = '请输入登录密码';\n this.errorClass2 = true;\n return false;\n }\n\n if (!this.form.captcha) {\n this.errror_text = '请输入验证码';\n this.errorClass3 = true;\n return false;\n }\n\n let loadingInstance = _loading2.default.service({\n background: 'rgba(0, 0, 0, 0)'\n });\n\n this.$http('post', \"/auth/login\", {\n mobile: this.form.mobile,\n password: this.form.password,\n captcha: this.form.captcha,\n captcha_key: this.form.captcha_key\n }).then(res => {\n loadingInstance.close();\n\n if (res.err_code === 0) {\n _tool.default.setCookie(\"token\", res.data.api_token, 1); //强制要求微信绑定\n\n\n if (!res.data.is_bind_wechat) {\n this.$http('get', \"/api/login/getwxqrcode\").then(res => {\n if (res.err_code === 0) {\n window.location.href = res.data.wx_login_url;\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n if (this.$route.query.referer) {\n window.location.href = \"/#\" + this.$route.query.referer;\n } else {\n window.location.href = '/';\n }\n }\n } else if (res.err_code === 102) {\n this.errror_text = res.err_msg; //this.errorClass3 = true;\n\n this.cp = true;\n this.updateCp();\n } else {\n this.errror_text = res.err_msg;\n this.updateCp();\n }\n }).catch(err => {\n loadingInstance.close();\n });\n }\n\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/User/login.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");
/***/ }),
......
......@@ -8,7 +8,7 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _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 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\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");
/***/ }),
......@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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 \"div\",\n { staticClass: \"brandxk pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"brand-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.querySearchAsync2,\n placeholder: \"请输入品牌\"\n },\n on: { select: _vm.handleSelectBrandName },\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(\"el-input\", {\n attrs: { placeholder: \"请输入关键词\" },\n model: {\n value: _vm.formInline.keyword,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"keyword\", $$v)\n },\n expression: \"formInline.keyword\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.submit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n {\n staticClass: \"fl dcg updatex\",\n on: { click: _vm.updateBrand }\n },\n [_vm._v(\"修改\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg \", on: { click: _vm.downOut } }, [\n _vm._v(\"导出\")\n ]),\n _c(\n \"a\",\n {\n ref: \"downs\",\n staticStyle: { display: \"none\" },\n attrs: { href: _vm.downHref, target: \"_blank\" }\n },\n [_vm._v(\"下载\")]\n ),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _vm.tableData\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: { fixed: \"\", type: \"selection\", width: \"37\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"internal_standard_name\",\n label: \"内部标准名称\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"region\",\n label: \"地区\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_logo\",\n label: \"LOGO\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.brand_logo\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.brand_logo,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"sku_num\",\n label: \"型号量\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"品牌备注\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"创建时间\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"update_time\",\n label: \"更新时间\",\n \"min-width\": \"15%\"\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 : _vm._e(),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"修改品牌\",\n visible: _vm.dialogVisible,\n width: \"1000px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"div\",\n { staticClass: \"kc-mask\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.updateBranddata, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"region\", label: \"地区\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_logo\",\n label: \"LOGO\",\n \"min-width\": \"120\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.brand_logo\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.brand_logo,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"internal_standard_name\",\n label: \"内部标准名称\",\n \"min-width\": \"170\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.internal_standard_name,\n callback: function($$v) {\n _vm.$set(\n scope.row,\n \"internal_standard_name\",\n $$v\n )\n },\n expression:\n \"scope.row.internal_standard_name\"\n }\n })\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"品牌备注\",\n width: \"320\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.remark,\n callback: function($$v) {\n _vm.$set(scope.row, \"remark\", $$v)\n },\n expression: \"scope.row.remark\"\n }\n })\n ]\n }\n }\n ])\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function($event) {\n _vm.dialogVisible = false\n }\n }\n },\n [_vm._v(\"取 消\")]\n ),\n _c(\n \"el-button\",\n {\n attrs: { type: \"primary\" },\n on: { click: _vm.submitUpdate }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ]\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/Goods/brand.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 \"div\",\n { staticClass: \"brandxk pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"brand-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.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.submit($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(\"el-input\", {\n attrs: { placeholder: \"请输入关键词\" },\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.submit($event)\n }\n },\n model: {\n value: _vm.formInline.keyword,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"keyword\", $$v)\n },\n expression: \"formInline.keyword\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.submit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n {\n staticClass: \"fl dcg updatex\",\n on: { click: _vm.updateBrand }\n },\n [_vm._v(\"修改\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg \", on: { click: _vm.downOut } }, [\n _vm._v(\"导出\")\n ]),\n _c(\n \"a\",\n {\n ref: \"downs\",\n staticStyle: { display: \"none\" },\n attrs: { href: _vm.downHref, target: \"_blank\" }\n },\n [_vm._v(\"下载\")]\n ),\n _c(\n \"div\",\n { staticClass: \"fl dcg delbtn\", on: { click: _vm.del } },\n [_vm._v(\"删除\")]\n )\n ]),\n _vm.tableData\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: { fixed: \"\", type: \"selection\", width: \"37\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"internal_standard_name\",\n label: \"内部标准名称\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"region\",\n label: \"地区\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_logo\",\n label: \"LOGO\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.brand_logo\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.brand_logo,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"sku_num\",\n label: \"型号量\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"品牌备注\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"创建时间\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"update_time\",\n label: \"更新时间\",\n \"min-width\": \"15%\"\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 : _vm._e(),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"修改品牌\",\n visible: _vm.dialogVisible,\n width: \"1000px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"div\",\n { staticClass: \"kc-mask\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.updateBranddata, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"region\", label: \"地区\", width: \"100\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_logo\",\n label: \"LOGO\",\n \"min-width\": \"120\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.brand_logo\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.brand_logo,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"internal_standard_name\",\n label: \"内部标准名称\",\n \"min-width\": \"170\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.internal_standard_name,\n callback: function($$v) {\n _vm.$set(\n scope.row,\n \"internal_standard_name\",\n $$v\n )\n },\n expression:\n \"scope.row.internal_standard_name\"\n }\n })\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"品牌备注\",\n width: \"320\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.remark,\n callback: function($$v) {\n _vm.$set(scope.row, \"remark\", $$v)\n },\n expression: \"scope.row.remark\"\n }\n })\n ]\n }\n }\n ])\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function($event) {\n _vm.dialogVisible = false\n }\n }\n },\n [_vm._v(\"取 消\")]\n ),\n _c(\n \"el-button\",\n {\n attrs: { type: \"primary\" },\n on: { click: _vm.submitUpdate }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ]\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/Goods/brand.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 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _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 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\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");
/***/ }),
......@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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 \"div\",\n { staticClass: \"goods pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"goods-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 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 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(\"el-cascader\", {\n attrs: {\n \"expand-trigger\": \"hover\",\n placeholder: \"试试搜索:分类\",\n options: _vm.options,\n filterable: \"\"\n },\n on: { change: _vm.handleChange }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"关键词\" } },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入关键词\" },\n model: {\n value: _vm.formInline.keyword,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"keyword\", $$v)\n },\n expression: \"formInline.keyword\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.submit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n {\n staticClass: \"fl dcg updatex\",\n on: { click: _vm.updateBrand }\n },\n [_vm._v(\"修改\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg \", on: { click: _vm.downOut } }, [\n _vm._v(\"导出\")\n ]),\n _c(\n \"a\",\n {\n ref: \"downs\",\n staticStyle: { display: \"none\" },\n attrs: { href: _vm.downHref, target: \"_blank\" }\n },\n [_vm._v(\"下载\")]\n )\n ]),\n _vm.tableData\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: { fixed: \"\", type: \"selection\", width: \"37\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_name\",\n label: \"型号\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"encap\",\n label: \"封装\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"pdf\",\n label: \"规格书\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.pdf\n ? [\n _c(\n \"a\",\n {\n staticClass: \"pdf\",\n attrs: {\n href: scope.row.pdf,\n target: \"_blank\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"icon iconfont\" },\n [_vm._v(\"\")]\n )\n ]\n )\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"images_l\",\n label: \"图片\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.images_l\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.images_l,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"商品备注\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"创建时间\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"update_time\",\n label: \"更新时间\",\n \"min-width\": \"15%\"\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 : _vm._e(),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"修改商品\",\n visible: _vm.dialogVisible,\n width: \"1000px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"div\",\n { staticClass: \"kc-mask\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.updateGoodsdata, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_name\",\n label: \"型号\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"encap\",\n label: \"封装\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"pdf\",\n label: \"规格书\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.pdf\n ? [\n _c(\n \"a\",\n {\n staticClass: \"pdf\",\n attrs: {\n href: scope.row.pdf,\n target: \"_blank\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"icon iconfont\" },\n [_vm._v(\"\")]\n )\n ]\n )\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"images_l\",\n label: \"图片\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.images_l\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.images_l,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"商品备注\",\n width: \"320\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.remark,\n callback: function($$v) {\n _vm.$set(scope.row, \"remark\", $$v)\n },\n expression: \"scope.row.remark\"\n }\n })\n ]\n }\n }\n ])\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function($event) {\n _vm.dialogVisible = false\n }\n }\n },\n [_vm._v(\"取 消\")]\n ),\n _c(\n \"el-button\",\n {\n attrs: { type: \"primary\" },\n on: { click: _vm.submitUpdate }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ]\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/Goods/goods.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 \"div\",\n { staticClass: \"goods pagex\" },\n [\n _c(\n \"div\",\n { staticClass: \"goods-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.submit($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.submit($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(\"el-cascader\", {\n attrs: {\n \"expand-trigger\": \"hover\",\n placeholder: \"试试搜索:分类\",\n options: _vm.options,\n filterable: \"\"\n },\n on: { change: _vm.handleChange }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"关键词\" } },\n [\n _c(\"el-input\", {\n attrs: { placeholder: \"请输入关键词\" },\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.submit($event)\n }\n },\n model: {\n value: _vm.formInline.keyword,\n callback: function($$v) {\n _vm.$set(_vm.formInline, \"keyword\", $$v)\n },\n expression: \"formInline.keyword\"\n }\n })\n ],\n 1\n ),\n _c(\"el-form-item\", [\n _c(\n \"div\",\n { staticClass: \"search-btn\", on: { click: _vm.submit } },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"btn-nav clr\" }, [\n _c(\n \"div\",\n {\n staticClass: \"fl dcg updatex\",\n on: { click: _vm.updateBrand }\n },\n [_vm._v(\"修改\")]\n ),\n _c(\"div\", { staticClass: \"fl dcg \", on: { click: _vm.downOut } }, [\n _vm._v(\"导出\")\n ]),\n _c(\n \"a\",\n {\n ref: \"downs\",\n staticStyle: { display: \"none\" },\n attrs: { href: _vm.downHref, target: \"_blank\" }\n },\n [_vm._v(\"下载\")]\n )\n ]),\n _vm.tableData\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: { fixed: \"\", type: \"selection\", width: \"37\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_name\",\n label: \"型号\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"encap\",\n label: \"封装\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"pdf\",\n label: \"规格书\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.pdf\n ? [\n _c(\n \"a\",\n {\n staticClass: \"pdf\",\n attrs: {\n href: scope.row.pdf,\n target: \"_blank\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"icon iconfont\" },\n [_vm._v(\"\")]\n )\n ]\n )\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"images_l\",\n label: \"图片\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.images_l\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.images_l,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"商品备注\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"创建时间\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"update_time\",\n label: \"更新时间\",\n \"min-width\": \"15%\"\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 : _vm._e(),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"修改商品\",\n visible: _vm.dialogVisible,\n width: \"1000px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"div\",\n { staticClass: \"kc-mask\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.updateGoodsdata, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_name\",\n label: \"型号\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"encap\",\n label: \"封装\",\n \"min-width\": \"15%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"pdf\",\n label: \"规格书\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.pdf\n ? [\n _c(\n \"a\",\n {\n staticClass: \"pdf\",\n attrs: {\n href: scope.row.pdf,\n target: \"_blank\"\n }\n },\n [\n _c(\n \"span\",\n { staticClass: \"icon iconfont\" },\n [_vm._v(\"\")]\n )\n ]\n )\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"images_l\",\n label: \"图片\",\n \"min-width\": \"15%\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return scope.row.images_l\n ? [\n _c(\"img\", {\n staticClass: \"brand-img\",\n attrs: {\n src: scope.row.images_l,\n alt: \"\"\n }\n })\n ]\n : undefined\n }\n }\n ],\n null,\n true\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"remark\",\n label: \"商品备注\",\n width: \"320\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-input\", {\n attrs: { placeholder: \"点击修改\" },\n model: {\n value: scope.row.remark,\n callback: function($$v) {\n _vm.$set(scope.row, \"remark\", $$v)\n },\n expression: \"scope.row.remark\"\n }\n })\n ]\n }\n }\n ])\n })\n ],\n 1\n )\n ],\n 1\n ),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n on: {\n click: function($event) {\n _vm.dialogVisible = false\n }\n }\n },\n [_vm._v(\"取 消\")]\n ),\n _c(\n \"el-button\",\n {\n attrs: { type: \"primary\" },\n on: { click: _vm.submitUpdate }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ]\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/Goods/goods.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 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\nvar _vueClipboard = _interopRequireDefault(__webpack_require__(/*! vue-clipboard2 */ \"./node_modules/vue-clipboard2/vue-clipboard.js\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_button2.default).use(_form2.default).use(_select2.default).use(_option2.default).use(_input2.default).use(_formItem2.default).use(_dialog2.default).use(_autocomplete2.default);\n\n_vue.default.use(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_pagination2.default);\n\n_vue.default.use(_vueClipboard.default);\n\nvar _default = {\n name: \"inquire\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n tableData: [],\n multipleSelection: [],\n formInline: {\n goods_name: '',\n brand: '',\n date: ''\n }\n };\n },\n\n watch: {},\n\n created() {\n this.getData();\n },\n\n computed: {},\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/getlist\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.formInline.goods_name,\n brand: this.formInline.brand,\n start_time: this.formInline.date ? this.formInline.date[0] : '',\n end_time: this.formInline.date ? this.formInline.date[1] : ''\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = res.data.total;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getData();\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n detail() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].i_status == 1 || this.multipleSelection[0].i_status == 2) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.$router.push({\n path: '/inquire/detail?id=' + arr.join(\",\")\n });\n } else {\n this.$message(\"该订单不可报价\");\n return;\n }\n },\n\n exportChange() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n window.location.href = '/api/inquiry/export?ids=' + arr.join(\",\");\n },\n\n del() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条数据\");\n return;\n }\n\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id']);\n }\n\n _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: '',\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");
/***/ }),
......@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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 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 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(\"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(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.detail } }, [\n _vm._v(\"报价\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\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: { type: \"selection\", width: \"40\", align: \"center\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"goods_name\",\n label: \"型号\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"div\", { staticClass: \"p-copy\" }, [\n _c(\"p\", [_vm._v(_vm._s(scope.row.goods_name))]),\n _c(\n \"a\",\n {\n directives: [\n {\n name: \"clipboard\",\n rawName: \"v-clipboard:copy\",\n value: scope.row.goods_name,\n expression: \"scope.row.goods_name\",\n arg: \"copy\"\n },\n {\n name: \"clipboard\",\n rawName: \"v-clipboard:success\",\n value: _vm.onCopy,\n expression: \"onCopy\",\n arg: \"success\"\n }\n ],\n staticClass: \"copy\"\n },\n [_vm._v(\"复制\")]\n )\n ])\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_number\",\n label: \"数量\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", \"min-width\": \"10%\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"交货日期\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"i_status\",\n label: \"状态\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.i_status == 2\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"已报价\")\n ])\n : scope.row.i_status == 1\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"待报价\")\n ])\n : scope.row.i_status == 9\n ? _c(\"span\", [_vm._v(\"已删除\")])\n : scope.row.i_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: \"quote_num\",\n label: \"报价数\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"报价时间\",\n \"min-width\": \"10%\",\n formatter: _vm.dateFormat\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/inquire.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(\"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(\"div\", { staticClass: \"fl dcg\", on: { click: _vm.detail } }, [\n _vm._v(\"报价\")\n ]),\n _c(\n \"div\",\n { staticClass: \"fl dcg\", on: { click: _vm.exportChange } },\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: { type: \"selection\", width: \"40\", align: \"center\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_sn\",\n label: \"询价单号\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"goods_name\",\n label: \"型号\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"div\", { staticClass: \"p-copy\" }, [\n _c(\"p\", [_vm._v(_vm._s(scope.row.goods_name))]),\n _c(\n \"a\",\n {\n directives: [\n {\n name: \"clipboard\",\n rawName: \"v-clipboard:copy\",\n value: scope.row.goods_name,\n expression: \"scope.row.goods_name\",\n arg: \"copy\"\n },\n {\n name: \"clipboard\",\n rawName: \"v-clipboard:success\",\n value: _vm.onCopy,\n expression: \"onCopy\",\n arg: \"success\"\n }\n ],\n staticClass: \"copy\"\n },\n [_vm._v(\"复制\")]\n )\n ])\n ]\n }\n }\n ])\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"brand_name\",\n label: \"品牌\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"inquiry_number\",\n label: \"数量\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch\", label: \"批次\", \"min-width\": \"10%\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"delivery_time\",\n label: \"交货日期\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"i_status\",\n label: \"状态\",\n \"min-width\": \"10%\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row.i_status == 2\n ? _c(\"span\", { staticClass: \"f-green\" }, [\n _vm._v(\"已报价\")\n ])\n : scope.row.i_status == 1\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [\n _vm._v(\"待报价\")\n ])\n : scope.row.i_status == 9\n ? _c(\"span\", [_vm._v(\"已删除\")])\n : scope.row.i_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: \"quote_num\",\n label: \"报价数\",\n \"min-width\": \"10%\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"create_time\",\n label: \"报价时间\",\n \"min-width\": \"10%\",\n formatter: _vm.dateFormat\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/inquire.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 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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\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: '',\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");
/***/ }),
......@@ -20,7 +20,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"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 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 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 \"div\",\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 {\n staticClass: \"search-btn\",\n on: { click: _vm.onSubmit }\n },\n [_vm._v(\"搜索\")]\n )\n ])\n ],\n 1\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 @@
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _upload = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/upload.css */ \"./node_modules/element-ui/lib/theme-chalk/upload.css\"));\n\nvar _upload2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/upload */ \"./node_modules/element-ui/lib/upload.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\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_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(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_upload2.default);\n\nvar _default = {\n name: \"enter\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n uploadUrl: _ajax.NODE_ENVS + '/api/uploadSku/import',\n fileData: {\n token: _tool.default.getCookie('token')\n },\n downUrl: _ajax.NODE_ENVS + '/api/uploadSku/downUploadCsv?token=' + _tool.default.getCookie('token'),\n formInline: {\n status: '',\n date: ''\n },\n tableData: \"\",\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/uploadSku/list\", {\n page: this.page,\n limit: this.limit,\n status: this.formInline.status,\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.total) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submit() {\n this.page = 1;\n this.getData();\n },\n\n handleChange(file, fileList) {\n console.log(file.response);\n\n if (!file.response) {\n return;\n }\n\n if (file.response.err_code === 0) {\n this.$message(\"导入成功\");\n this.page = 1;\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n },\n\n checkdr() {\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.downHref = _ajax.NODE_ENVS + '/api/uploadSku/downResult?id=' + this.multipleSelection[0]['id'] + '&token=' + _tool.default.getCookie('token');\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\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('get', \"/api/uploadSku/del\", {\n log_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 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/Store/enter.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 _upload = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/upload.css */ \"./node_modules/element-ui/lib/theme-chalk/upload.css\"));\n\nvar _upload2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/upload */ \"./node_modules/element-ui/lib/upload.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\nvar _ajax = __webpack_require__(/*! ../../ajax */ \"./src/ajax/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n_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(_datePicker2.default).use(_dropdown2.default).use(_dropdownMenu2.default).use(_dropdownItem2.default).use(_tableColumn2.default).use(_table2.default).use(_upload2.default);\n\nvar _default = {\n name: \"enter\",\n\n data() {\n return {\n total: 0,\n limit: 10,\n page: 1,\n downHref: \"\",\n uploadUrl: _ajax.NODE_ENVS + '/api/uploadSku/import',\n fileData: {\n token: _tool.default.getCookie('token')\n },\n downUrl: _ajax.NODE_ENVS + '/api/uploadSku/downUploadCsv?token=' + _tool.default.getCookie('token'),\n formInline: {\n status: '',\n date: ''\n },\n tableData: \"\",\n multipleSelection: []\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/uploadSku/list\", {\n page: this.page,\n limit: this.limit,\n status: this.formInline.status,\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.total) || 0;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n submit() {\n this.page = 1;\n this.getData();\n },\n\n handleChange(file, fileList) {\n console.log(file.response);\n\n if (!file.response) {\n return;\n }\n\n if (file.response.err_code === 0) {\n this.$message(\"导入成功\");\n this.page = 1;\n this.getData();\n } else {\n this.$message(res.err_msg);\n }\n },\n\n checkdr() {\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.downHref = _ajax.NODE_ENVS + '/api/uploadSku/downResult?id=' + this.multipleSelection[0]['id'] + '&token=' + _tool.default.getCookie('token');\n setTimeout(() => {\n this.$refs.downs.click();\n }, 10);\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('get', \"/api/uploadSku/del\", {\n log_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 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/Store/enter.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");
/***/ }),
......
This diff could not be displayed because it is too large.
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