Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dbe2f9d7
authored
May 25, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
14ac325b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
21 deletions
src/App.vue
src/components/menu.vue
src/router/index.js
src/views/List/inquireDetail.vue
src/views/Store/listDetail.vue
view/app.a73382ccd74a95c29f80.js → view/app.6fc3967792186e42811d.js
view/index.html
view/js/12.js
view/js/2.js
view/js/22.js
src/App.vue
View file @
dbe2f9d7
<
template
>
<div
id=
"app"
>
<keep-alive
exclude=
"index,listDetail,inquireDetail"
>
<keep-alive
>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</div>
...
...
src/components/menu.vue
View file @
dbe2f9d7
...
...
@@ -65,6 +65,7 @@
<el-menu-item-group>
<el-menu-item
:index=
"'/inquire'"
>
询价管理
</el-menu-item>
<el-menu-item
:index=
"'/quote'"
>
报价管理
</el-menu-item>
<el-menu-item
:index=
"'/inquire/detail'"
style=
"display:none"
>
报价详情
</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu
index=
"3"
>
...
...
@@ -75,6 +76,7 @@
<el-menu-item-group>
<el-menu-item
:index=
"'/list'"
>
库存列表
</el-menu-item>
<el-menu-item
:index=
"'/enter'"
>
库存导入
</el-menu-item>
<el-menu-item
:index=
"'/listDetail'"
style=
"display:none"
>
导入详情
</el-menu-item>
</el-menu-item-group>
</el-submenu>
<el-submenu
index=
"4"
>
...
...
@@ -191,6 +193,7 @@
isIndexTab
:
true
,
tabSure
:
""
,
tabs
:
""
,
width
:
""
,
dialogVisible
:
false
,
ruleForm
:
{
old_password
:
''
,
...
...
@@ -218,6 +221,7 @@
},
watch
:
{
$route
(
to
,
from
)
{
let
tab_arr
=
sessionStorage
.
getItem
(
'tabs'
)
if
(
tab_arr
)
{
this
.
tabs
=
JSON
.
parse
(
tab_arr
);
...
...
@@ -266,10 +270,10 @@
if
(
lk
==
"/"
)
{
this
.
tabSure
=
1
}
if
(
lk
==
"/inquire"
||
lk
==
"/quote"
)
{
if
(
lk
==
"/inquire"
||
lk
==
"/quote"
||
lk
==
'/inquire/detail'
)
{
this
.
tabSure
=
2
}
if
(
lk
==
"/list"
||
lk
==
"/enter"
)
{
if
(
lk
==
"/list"
||
lk
==
"/enter"
||
lk
==
'/listDetail'
)
{
this
.
tabSure
=
3
}
if
(
lk
==
"/goods"
||
lk
==
"/brand"
)
{
...
...
src/router/index.js
View file @
dbe2f9d7
...
...
@@ -74,7 +74,7 @@ const routes = [
path
:
'/listDetail'
,
name
:
'ListDetail'
,
meta
:
{
title
:
'
库存
导入详情'
title
:
'导入详情'
},
component
:
ListDetail
...
...
src/views/List/inquireDetail.vue
View file @
dbe2f9d7
...
...
@@ -590,7 +590,7 @@
if
(
res
.
err_code
==
0
)
{
var
arrlist_
=
res
.
data
||
[];
this
.
brandList
=
[];
this
.
ruleForm
.
brand
=
""
;
//
this.ruleForm.brand = "";
for
(
var
i
=
0
;
i
<
arrlist_
.
length
;
i
++
)
{
this
.
brandList
.
push
({
value
:
arrlist_
[
i
][
'brand_name'
],
...
...
src/views/Store/listDetail.vue
View file @
dbe2f9d7
...
...
@@ -15,12 +15,12 @@
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
fixed
prop=
"item_id"
label=
"ID"
width=
"75"
>
</el-table-column>
<el-table-column
prop=
"status"
fixed
label=
"状态"
width=
"
75
"
>
<el-table-column
prop=
"status"
fixed
label=
"状态"
width=
"
120
"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.status==1"
class=
"f-green"
>
待处理
</span>
<span
v-else-if=
"scope.row.status==2"
class=
"f-yellow1"
>
处理中
</span>
<span
v-else-if=
"scope.row.status==3"
>
已处理
</span>
<span
v-else-if=
"scope.row.status==4"
class=
"f-red1"
>
其他失败
</span>
<span
v-if=
"scope.row.status==1"
class=
"f-green"
>
审核前失败
</span>
<span
v-else-if=
"scope.row.status==2"
class=
"f-yellow1"
>
待审核
</span>
<span
v-else-if=
"scope.row.status==3"
>
审核通过
</span>
<span
v-else-if=
"scope.row.status==4"
class=
"f-red1"
>
审核未通过
</span>
</
template
>
</el-table-column>
<el-table-column
fixed
prop=
"goods_sn"
label=
"供应商内部型号编码"
width=
"180"
>
...
...
@@ -84,7 +84,7 @@
Vue
.
prototype
.
$message
=
Message
Vue
.
use
(
Pagination
).
use
(
TableColumn
).
use
(
Table
)
export
default
{
name
:
"
l
istDetail"
,
name
:
"
L
istDetail"
,
data
()
{
return
{
...
...
@@ -96,12 +96,20 @@
maxPrice
:
[]
};
},
watch
:
{},
watch
:
{
$route
(
to
,
from
)
{
if
(
to
.
path
==
from
.
path
){
this
.
getInfo
()
this
.
getList
()
}
}
},
created
()
{
this
.
getInfo
()
this
.
getList
()
},
computed
:
{},
methods
:
{
getInfo
()
{
this
.
$http
(
'get'
,
"/api/uploadSku/info"
,
{
...
...
view/app.
a73382ccd74a95c29f80
.js
→
view/app.
6fc3967792186e42811d
.js
View file @
dbe2f9d7
...
...
@@ -555,7 +555,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n
/***/
(
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 { attrs: { id: \"app\" } },\n [
\n _c(\n \"keep-alive\",\n { attrs: { exclude: \"index,listDetail,inquireDetail\" } },\n [_c(\"router-view\", { staticClass: \"router-view\" })],\n 1\n )\n
],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/App.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 { attrs: { id: \"app\" } },\n [
_c(\"keep-alive\", [_c(\"router-view\", { staticClass: \"router-view\" })], 1)
],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/App.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"
);
/***/
}),
...
...
@@ -1209,7 +1209,7 @@ eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@b
/***/
(
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 _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _vueRouter = _interopRequireDefault(__webpack_require__(/*! vue-router */ \"./node_modules/vue-router/dist/vue-router.esm.js\"));\n\n_vue.default.use(_vueRouter.default);\n\nconst Home = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(6), __webpack_require__.e(11), __webpack_require__.e(2), __webpack_require__.e(18)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Index/index.vue */ \"./src/views/Index/index.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Inquire = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(25), __webpack_require__.e(2), __webpack_require__.e(20)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/inquire.vue */ \"./src/views/List/inquire.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst InquireDetail = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(12)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/inquireDetail.vue */ \"./src/views/List/inquireDetail.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Quote = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(13)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/quote.vue */ \"./src/views/List/quote.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Brand = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(7), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(16)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Goods/brand.vue */ \"./src/views/Goods/brand.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst List = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(2), __webpack_require__.e(14)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/list.vue */ \"./src/views/Store/list.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst ListDetail = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(2), __webpack_require__.e(22)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/listDetail.vue */ \"./src/views/Store/listDetail.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Enter = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(10), __webpack_require__.e(2), __webpack_require__.e(21)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/enter.vue */ \"./src/views/Store/enter.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Goods = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(7), __webpack_require__.e(24), __webpack_require__.e(2), __webpack_require__.e(17)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Goods/goods.vue */ \"./src/views/Goods/goods.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Message = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(10), __webpack_require__.e(2), __webpack_require__.e(19)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Info/message.vue */ \"./src/views/Info/message.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Login = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/User/login.vue */ \"./src/views/User/login.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst notfound = resolve => __webpack_require__.e(/*! AMD require */ 23).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/User/notfound.vue */ \"./src/views/User/notfound.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst routes = [//首页\n{\n path: '/',\n name: 'Index',\n meta: {\n title: '概况'\n },\n component: Home\n}, {\n path: '/inquire',\n name: 'Inquire',\n meta: {\n title: '询价管理'\n },\n component: Inquire\n}, {\n path: '/inquire/detail',\n name: 'InquireDetail',\n meta: {\n title: '报价详情'\n },\n component: InquireDetail\n}, {\n path: '/quote',\n name: 'Quote',\n meta: {\n title: '报价管理'\n },\n component: Quote\n}, {\n path: '/brand',\n name: 'Brand',\n meta: {\n title: '品牌列表'\n },\n component: Brand\n}, {\n path: '/list',\n name: 'List',\n meta: {\n title: '库存列表'\n },\n component: List\n}, {\n path: '/listDetail',\n name: 'ListDetail',\n meta: {\n title: '
库存
导入详情'\n },\n component: ListDetail\n}, {\n path: '/enter',\n name: 'Enter',\n meta: {\n title: '库存导入'\n },\n component: Enter\n}, {\n path: '/goods',\n name: 'Goods',\n meta: {\n title: '商品列表'\n },\n component: Goods\n}, {\n path: '/message',\n name: 'Message',\n meta: {\n title: '基本信息'\n },\n component: Message\n}, {\n path: '/login',\n name: 'Login',\n meta: {\n title: '猎芯网 - 云芯系统登录',\n back: true\n },\n component: Login\n}, {\n path: '/notfound',\n name: 'notfound',\n meta: {\n title: '猎芯网',\n back: true\n },\n component: notfound\n},\n/**错误页面重定向到首页**/\n{\n path: '*',\n redirect: '/'\n}];\nconst router = new _vueRouter.default({\n mode: 'hash',\n base: \"http://yunxin.liexindev.net/\",\n routes\n});\nvar _default = router;\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/router/index.js?"
);
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 _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _vueRouter = _interopRequireDefault(__webpack_require__(/*! vue-router */ \"./node_modules/vue-router/dist/vue-router.esm.js\"));\n\n_vue.default.use(_vueRouter.default);\n\nconst Home = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(6), __webpack_require__.e(11), __webpack_require__.e(2), __webpack_require__.e(18)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Index/index.vue */ \"./src/views/Index/index.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Inquire = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(25), __webpack_require__.e(2), __webpack_require__.e(20)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/inquire.vue */ \"./src/views/List/inquire.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst InquireDetail = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(12)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/inquireDetail.vue */ \"./src/views/List/inquireDetail.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Quote = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(13)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/List/quote.vue */ \"./src/views/List/quote.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Brand = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(7), __webpack_require__.e(9), __webpack_require__.e(2), __webpack_require__.e(16)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Goods/brand.vue */ \"./src/views/Goods/brand.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst List = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(7), __webpack_require__.e(8), __webpack_require__.e(2), __webpack_require__.e(14)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/list.vue */ \"./src/views/Store/list.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst ListDetail = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(2), __webpack_require__.e(22)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/listDetail.vue */ \"./src/views/Store/listDetail.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Enter = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(6), __webpack_require__.e(8), __webpack_require__.e(9), __webpack_require__.e(10), __webpack_require__.e(2), __webpack_require__.e(21)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Store/enter.vue */ \"./src/views/Store/enter.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Goods = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(3), __webpack_require__.e(4), __webpack_require__.e(5), __webpack_require__.e(7), __webpack_require__.e(24), __webpack_require__.e(2), __webpack_require__.e(17)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Goods/goods.vue */ \"./src/views/Goods/goods.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Message = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(10), __webpack_require__.e(2), __webpack_require__.e(19)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/Info/message.vue */ \"./src/views/Info/message.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst Login = resolve => Promise.all(/*! AMD require */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/User/login.vue */ \"./src/views/User/login.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst notfound = resolve => __webpack_require__.e(/*! AMD require */ 23).then(function() { var __WEBPACK_AMD_REQUIRE_ARRAY__ = [__webpack_require__(/*! @/views/User/notfound.vue */ \"./src/views/User/notfound.vue\")]; (resolve).apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__);}.bind(this)).catch(__webpack_require__.oe);\n\nconst routes = [//首页\n{\n path: '/',\n name: 'Index',\n meta: {\n title: '概况'\n },\n component: Home\n}, {\n path: '/inquire',\n name: 'Inquire',\n meta: {\n title: '询价管理'\n },\n component: Inquire\n}, {\n path: '/inquire/detail',\n name: 'InquireDetail',\n meta: {\n title: '报价详情'\n },\n component: InquireDetail\n}, {\n path: '/quote',\n name: 'Quote',\n meta: {\n title: '报价管理'\n },\n component: Quote\n}, {\n path: '/brand',\n name: 'Brand',\n meta: {\n title: '品牌列表'\n },\n component: Brand\n}, {\n path: '/list',\n name: 'List',\n meta: {\n title: '库存列表'\n },\n component: List\n}, {\n path: '/listDetail',\n name: 'ListDetail',\n meta: {\n title: '导入详情'\n },\n component: ListDetail\n}, {\n path: '/enter',\n name: 'Enter',\n meta: {\n title: '库存导入'\n },\n component: Enter\n}, {\n path: '/goods',\n name: 'Goods',\n meta: {\n title: '商品列表'\n },\n component: Goods\n}, {\n path: '/message',\n name: 'Message',\n meta: {\n title: '基本信息'\n },\n component: Message\n}, {\n path: '/login',\n name: 'Login',\n meta: {\n title: '猎芯网 - 云芯系统登录',\n back: true\n },\n component: Login\n}, {\n path: '/notfound',\n name: 'notfound',\n meta: {\n title: '猎芯网',\n back: true\n },\n component: notfound\n},\n/**错误页面重定向到首页**/\n{\n path: '*',\n redirect: '/'\n}];\nconst router = new _vueRouter.default({\n mode: 'hash',\n base: \"http://yunxin.liexindev.net/\",\n routes\n});\nvar _default = router;\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/router/index.js?"
);
/***/
}),
...
...
view/index.html
View file @
dbe2f9d7
...
...
@@ -6,12 +6,12 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"http://yunxin.liexindev.net/favicon.ico"
>
<title>
cloudsystem
</title>
<link
href=
"http://yunxin.liexindev.net/js/0.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/1.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/10.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/11.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/12.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/13.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/14.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/15.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/16.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/17.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/18.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/19.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/2.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/20.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/21.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/22.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/23.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/24.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/25.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/3.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/4.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/5.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/6.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/7.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/8.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/9.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/app.
a73382ccd74a95c29f80
.js"
rel=
"preload"
as=
"script"
></head>
<link
href=
"http://yunxin.liexindev.net/js/0.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/1.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/10.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/11.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/12.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/13.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/14.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/15.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/16.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/17.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/18.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/19.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/2.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/20.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/21.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/22.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/23.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/24.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/25.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/3.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/4.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/5.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/6.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/7.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/8.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/js/9.js"
rel=
"prefetch"
><link
href=
"http://yunxin.liexindev.net/app.
6fc3967792186e42811d
.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.
a73382ccd74a95c29f80
.js"
></script></body>
<script
type=
"text/javascript"
src=
"http://yunxin.liexindev.net/app.
6fc3967792186e42811d
.js"
></script></body>
</html>
view/js/12.js
View file @
dbe2f9d7
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
"use strict"
;
eval
(
"\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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); // .use(Loading);\n\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: \"InquireDetail\",\n\n data() {\n return {\n currentDataId: 0,\n active: 0,\n total: 0,\n limit: 10,\n page: 1,\n multipleSelection: [],\n quote_info: {},\n inquiry_info: {},\n quote_list: [],\n title: '新增',\n isModify: false,\n tableData: [],\n historyList: [],\n submitState: 0,\n ruleForm: {\n inquiry_id: '',\n inquiry_sn: '',\n inquiry_items_id: '',\n quote_id: '',\n goods_name: '',\n quote_number: '',\n currency: '1',\n batch: '',\n mpq: '',\n price_other: '',\n unit: '',\n brand: '',\n brand_s: '',\n price_origin: '',\n tax_rate: '13%',\n delivery_time: '',\n delivery_time_val: '',\n delivery_time_unit: '天',\n moq: '',\n expire_time: '',\n remark: ''\n },\n rules: {\n goods_name: [{\n required: true,\n message: '请输入报价型号',\n trigger: 'blur'\n }],\n quote_number: [{\n required: true,\n message: '请输入报价数量',\n trigger: 'blur'\n }],\n currency: [{\n required: true,\n message: '请选择币种',\n trigger: 'blur'\n }],\n batch: [{\n required: true,\n message: '请输入批次',\n trigger: 'blur'\n }],\n brand: [{\n required: true,\n message: '请选择报价品牌'\n }],\n price_origin: [{\n required: true,\n message: '请输入价格',\n trigger: 'blur'\n }],\n delivery_time_val: [{\n required: true,\n message: '请输入货期',\n trigger: 'blur'\n }],\n expire_time: [{\n required: true,\n message: '请输入报价有效期',\n trigger: 'blur'\n }]\n },\n dialogVisible: false,\n brandList: [],\n textArr: ['匹配库存', '历史报价']\n };\n },\n\n created() {\n this.getData();\n },\n\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/detail\", {\n inquiry_item_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.inquiry_info = res.data.inquiry_info;\n this.quote_list = res.data.quote_list;\n this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;\n this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;\n this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;\n this.getSkulist();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getSkulist() {\n console.log('库存匹配');\n this.$http('get', \"/api/sku/list\", {\n brand_id: this.inquiry_info.brand_id,\n goods_name: 'this.inquiry_info.goods_name',\n goods_status: 1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n var arr_ = this.tableData,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n checkBind(ids) {\n this.$http('get', \"/api/quote/checkpinlist\", {\n inquiry_items_id: this.$route.query.id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_ids: ids\n }).then(res => {\n if (res.err_code === 0) {\n if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {\n var arr_ = this.active == 1 ? this.historyList : this.tableData;\n\n for (var i = 0; i < arr_.length; i++) {\n if (res.data.bind_ids.indexOf(String(arr_[i].id)) != -1) {\n if (this.active == 1) {\n this.historyList[i].disabled = true;\n } else {\n this.tableData[i].disabled = true;\n }\n } else {\n if (this.active == 1) {\n this.historyList[i].disabled = false;\n } else {\n this.tableData[i].disabled = false;\n }\n }\n }\n }\n }\n });\n },\n\n getHistory() {\n console.log('历史报价');\n this.$http('get', \"/api/quote/history\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.inquiry_info.goods_name,\n brand_name: this.inquiry_info.brand_name,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.total = res.data.total;\n this.historyList = res.data.list || [];\n var arr_ = this.historyList,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getHistory();\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n tab(index) {\n this.active = index;\n this.page = 1;\n\n if (index == 1) {\n this.getHistory();\n } else if (index == 1) {\n this.getSkulist();\n }\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n keyup(val) {\n if (this.ruleForm.delivery_time_unit == '天') {\n if (val >= 6) {\n this.ruleForm.delivery_time_val = 6;\n }\n\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n } else if (this.ruleForm.delivery_time_unit == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n }\n },\n\n unitChange(val) {\n if (val == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n } else {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n }\n },\n\n currentChange(val) {\n if (val == 1) {\n this.ruleForm.tax_rate = '13%';\n } else if (val == 2) {\n this.ruleForm.tax_rate = '0';\n }\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (this.submitState) {\n return;\n }\n\n if (valid) {\n // let loadingInstance = Loading.service({\n // background: 'rgba(0, 0, 0, 0)'\n // });\n this.submitState = 1;\n let submitData_ = JSON.parse(JSON.stringify(this.ruleForm));\n\n if (submitData_.tax_rate == '13%') {\n submitData_.tax_rate = 0.13;\n } else {\n submitData_.tax_rate = 0;\n }\n\n this.$http('post', \"/api/quote/save\", submitData_).then(res => {\n if (res.err_code == 0) {\n //this.$message('操作成功');\n this.$http('post', \"/api/quote/pin\", {\n inquiry_items_id: this.ruleForm.inquiry_items_id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_id: this.currentDataId\n }).then(res => {\n if (res.err_code == 0) {} else {// this.$message(res.err_msg);\n }\n\n this.$message('操作成功');\n setTimeout(() => {\n window.location.reload();\n }, 2000); // loadingInstance.close();\n\n this.submitState = 0;\n });\n } else {\n this.$message(res.err_msg);\n this.submitState = 0; //loadingInstance.close();\n }\n }).catch(err => {\n this.submitState = 0; //loadingInstance.close();\n });\n } else {\n console.log(this.ruleForm.delivery_time);\n return false;\n }\n });\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.ruleForm.brand\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];
\n
this.ruleForm.brand = \"\";\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 let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = item.brand_id;\n brand_ss[0].brand_name = item.value;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n },\n\n added() {\n this.title = '新增';\n this.dialogVisible = true;\n this.isModify = false;\n this.ruleForm.brand = '';\n this.ruleForm.tax_rate = '13%';\n this.ruleForm.moq = '';\n this.ruleForm.mpq = '';\n this.ruleForm.price_other = '';\n this.ruleForm.quote_id = '';\n this.$nextTick(() => {\n this.$refs['ruleForm'].resetFields();\n });\n },\n\n modify() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 || this.multipleSelection[0].status == 5) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.title = '修改';\n this.dialogVisible = true;\n this.ruleForm.quote_id = arr.join(\",\");\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$message(\"该订单不可修改\");\n return;\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 handle(index, row) {\n if (row.disabled) {\n this.$message('已绑定,不能重复操作');\n return;\n }\n\n this.currentDataId = row.id;\n this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';\n this.dialogVisible = true;\n this.ruleForm.quote_id = '';\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: row.id\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquireDetail.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options"
);
eval
(
"\n\nvar _interopRequireDefault = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/interopRequireDefault */ \"./node_modules/@babel/runtime/helpers/interopRequireDefault.js\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _messageBox = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message-box.css */ \"./node_modules/element-ui/lib/theme-chalk/message-box.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _messageBox2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message-box */ \"./node_modules/element-ui/lib/message-box.js\"));\n\nvar _datePicker = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/date-picker.css */ \"./node_modules/element-ui/lib/theme-chalk/date-picker.css\"));\n\nvar _datePicker2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/date-picker */ \"./node_modules/element-ui/lib/date-picker.js\"));\n\nvar _dropdown = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown.css\"));\n\nvar _dropdown2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown */ \"./node_modules/element-ui/lib/dropdown.js\"));\n\nvar _dropdownMenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-menu.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-menu.css\"));\n\nvar _dropdownMenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-menu */ \"./node_modules/element-ui/lib/dropdown-menu.js\"));\n\nvar _dropdownItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dropdown-item.css */ \"./node_modules/element-ui/lib/theme-chalk/dropdown-item.css\"));\n\nvar _dropdownItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dropdown-item */ \"./node_modules/element-ui/lib/dropdown-item.js\"));\n\nvar _tableColumn = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table-column.css */ \"./node_modules/element-ui/lib/theme-chalk/table-column.css\"));\n\nvar _tableColumn2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table-column */ \"./node_modules/element-ui/lib/table-column.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/table.css */ \"./node_modules/element-ui/lib/theme-chalk/table.css\"));\n\nvar _table2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/table */ \"./node_modules/element-ui/lib/table.js\"));\n\nvar _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.js\"));\n\nvar _button = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/button.css */ \"./node_modules/element-ui/lib/theme-chalk/button.css\"));\n\nvar _button2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/button */ \"./node_modules/element-ui/lib/button.js\"));\n\nvar _form = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form.css */ \"./node_modules/element-ui/lib/theme-chalk/form.css\"));\n\nvar _form2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form */ \"./node_modules/element-ui/lib/form.js\"));\n\nvar _select = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/select.css */ \"./node_modules/element-ui/lib/theme-chalk/select.css\"));\n\nvar _select2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/select */ \"./node_modules/element-ui/lib/select.js\"));\n\nvar _option = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/option.css */ \"./node_modules/element-ui/lib/theme-chalk/option.css\"));\n\nvar _option2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/option */ \"./node_modules/element-ui/lib/option.js\"));\n\nvar _input = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/input.css */ \"./node_modules/element-ui/lib/theme-chalk/input.css\"));\n\nvar _input2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/input */ \"./node_modules/element-ui/lib/input.js\"));\n\nvar _formItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/form-item.css */ \"./node_modules/element-ui/lib/theme-chalk/form-item.css\"));\n\nvar _formItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/form-item */ \"./node_modules/element-ui/lib/form-item.js\"));\n\nvar _dialog = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/dialog.css */ \"./node_modules/element-ui/lib/theme-chalk/dialog.css\"));\n\nvar _dialog2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/dialog */ \"./node_modules/element-ui/lib/dialog.js\"));\n\nvar _autocomplete = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/autocomplete.css */ \"./node_modules/element-ui/lib/theme-chalk/autocomplete.css\"));\n\nvar _autocomplete2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/autocomplete */ \"./node_modules/element-ui/lib/autocomplete.js\"));\n\nvar _tooltip = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/tooltip.css */ \"./node_modules/element-ui/lib/theme-chalk/tooltip.css\"));\n\nvar _tooltip2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/tooltip */ \"./node_modules/element-ui/lib/tooltip.js\"));\n\nvar _message = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/message.css */ \"./node_modules/element-ui/lib/theme-chalk/message.css\"));\n\nvar _message2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/message */ \"./node_modules/element-ui/lib/message.js\"));\n\nvar _vue = _interopRequireDefault(__webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\"));\n\nvar _menu = _interopRequireDefault(__webpack_require__(/*! @/components/menu.vue */ \"./src/components/menu.vue\"));\n\nvar _formate = __webpack_require__(/*! ../../filters/formate.js */ \"./src/filters/formate.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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); // .use(Loading);\n\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: \"InquireDetail\",\n\n data() {\n return {\n currentDataId: 0,\n active: 0,\n total: 0,\n limit: 10,\n page: 1,\n multipleSelection: [],\n quote_info: {},\n inquiry_info: {},\n quote_list: [],\n title: '新增',\n isModify: false,\n tableData: [],\n historyList: [],\n submitState: 0,\n ruleForm: {\n inquiry_id: '',\n inquiry_sn: '',\n inquiry_items_id: '',\n quote_id: '',\n goods_name: '',\n quote_number: '',\n currency: '1',\n batch: '',\n mpq: '',\n price_other: '',\n unit: '',\n brand: '',\n brand_s: '',\n price_origin: '',\n tax_rate: '13%',\n delivery_time: '',\n delivery_time_val: '',\n delivery_time_unit: '天',\n moq: '',\n expire_time: '',\n remark: ''\n },\n rules: {\n goods_name: [{\n required: true,\n message: '请输入报价型号',\n trigger: 'blur'\n }],\n quote_number: [{\n required: true,\n message: '请输入报价数量',\n trigger: 'blur'\n }],\n currency: [{\n required: true,\n message: '请选择币种',\n trigger: 'blur'\n }],\n batch: [{\n required: true,\n message: '请输入批次',\n trigger: 'blur'\n }],\n brand: [{\n required: true,\n message: '请选择报价品牌'\n }],\n price_origin: [{\n required: true,\n message: '请输入价格',\n trigger: 'blur'\n }],\n delivery_time_val: [{\n required: true,\n message: '请输入货期',\n trigger: 'blur'\n }],\n expire_time: [{\n required: true,\n message: '请输入报价有效期',\n trigger: 'blur'\n }]\n },\n dialogVisible: false,\n brandList: [],\n textArr: ['匹配库存', '历史报价']\n };\n },\n\n created() {\n this.getData();\n },\n\n methods: {\n getData() {\n this.$http('get', \"/api/inquiry/detail\", {\n inquiry_item_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.inquiry_info = res.data.inquiry_info;\n this.quote_list = res.data.quote_list;\n this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;\n this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;\n this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;\n this.getSkulist();\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getSkulist() {\n console.log('库存匹配');\n this.$http('get', \"/api/sku/list\", {\n brand_id: this.inquiry_info.brand_id,\n goods_name: 'this.inquiry_info.goods_name',\n goods_status: 1\n }).then(res => {\n if (res.err_code === 0) {\n this.tableData = res.data.list || [];\n this.total = Number(res.data.count) || 0;\n var arr_ = this.tableData,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n checkBind(ids) {\n this.$http('get', \"/api/quote/checkpinlist\", {\n inquiry_items_id: this.$route.query.id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_ids: ids\n }).then(res => {\n if (res.err_code === 0) {\n if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {\n var arr_ = this.active == 1 ? this.historyList : this.tableData;\n\n for (var i = 0; i < arr_.length; i++) {\n if (res.data.bind_ids.indexOf(String(arr_[i].id)) != -1) {\n if (this.active == 1) {\n this.historyList[i].disabled = true;\n } else {\n this.tableData[i].disabled = true;\n }\n } else {\n if (this.active == 1) {\n this.historyList[i].disabled = false;\n } else {\n this.tableData[i].disabled = false;\n }\n }\n }\n }\n }\n });\n },\n\n getHistory() {\n console.log('历史报价');\n this.$http('get', \"/api/quote/history\", {\n page: this.page,\n limit: this.limit,\n goods_name: this.inquiry_info.goods_name,\n brand_name: this.inquiry_info.brand_name,\n inquiry_items_id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.total = res.data.total;\n this.historyList = res.data.list || [];\n var arr_ = this.historyList,\n id_arr = [];\n\n for (var i = 0; i < arr_.length; i++) {\n id_arr.push(arr_[i].id);\n }\n\n this.checkBind(id_arr.join(\",\"));\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getHistory();\n },\n\n onSubmit() {\n this.page = 1;\n this.getData();\n },\n\n handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n tab(index) {\n this.active = index;\n this.page = 1;\n\n if (index == 1) {\n this.getHistory();\n } else if (index == 1) {\n this.getSkulist();\n }\n },\n\n dateFormat(row, column) {\n let date = row.create_time;\n return (0, _formate.dateTimeFormate)(date);\n },\n\n keyup(val) {\n if (this.ruleForm.delivery_time_unit == '天') {\n if (val >= 6) {\n this.ruleForm.delivery_time_val = 6;\n }\n\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n } else if (this.ruleForm.delivery_time_unit == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n }\n },\n\n unitChange(val) {\n if (val == '周') {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;\n } else {\n this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;\n }\n },\n\n currentChange(val) {\n if (val == 1) {\n this.ruleForm.tax_rate = '13%';\n } else if (val == 2) {\n this.ruleForm.tax_rate = '0';\n }\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (this.submitState) {\n return;\n }\n\n if (valid) {\n // let loadingInstance = Loading.service({\n // background: 'rgba(0, 0, 0, 0)'\n // });\n this.submitState = 1;\n let submitData_ = JSON.parse(JSON.stringify(this.ruleForm));\n\n if (submitData_.tax_rate == '13%') {\n submitData_.tax_rate = 0.13;\n } else {\n submitData_.tax_rate = 0;\n }\n\n this.$http('post', \"/api/quote/save\", submitData_).then(res => {\n if (res.err_code == 0) {\n //this.$message('操作成功');\n this.$http('post', \"/api/quote/pin\", {\n inquiry_items_id: this.ruleForm.inquiry_items_id,\n pin_type: this.active == 1 ? 1 : 2,\n pin_obj_id: this.currentDataId\n }).then(res => {\n if (res.err_code == 0) {} else {// this.$message(res.err_msg);\n }\n\n this.$message('操作成功');\n setTimeout(() => {\n window.location.reload();\n }, 2000); // loadingInstance.close();\n\n this.submitState = 0;\n });\n } else {\n this.$message(res.err_msg);\n this.submitState = 0; //loadingInstance.close();\n }\n }).catch(err => {\n this.submitState = 0; //loadingInstance.close();\n });\n } else {\n console.log(this.ruleForm.delivery_time);\n return false;\n }\n });\n },\n\n querySearchAsync(queryString, cb) {\n this.$http('get', \"/api/search/getbrand\", {\n brand_name: this.ruleForm.brand\n }).then(res => {\n if (res.err_code == 0) {\n var arrlist_ = res.data || [];\n this.brandList = [];
//
this.ruleForm.brand = \"\";\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 let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = item.brand_id;\n brand_ss[0].brand_name = item.value;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n },\n\n added() {\n this.title = '新增';\n this.dialogVisible = true;\n this.isModify = false;\n this.ruleForm.brand = '';\n this.ruleForm.tax_rate = '13%';\n this.ruleForm.moq = '';\n this.ruleForm.mpq = '';\n this.ruleForm.price_other = '';\n this.ruleForm.quote_id = '';\n this.$nextTick(() => {\n this.$refs['ruleForm'].resetFields();\n });\n },\n\n modify() {\n var arr = [];\n\n if (this.multipleSelection.length == 0) {\n this.$message(\"请至少选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection.length > 1) {\n this.$message(\"请选择一条询价信息\");\n return;\n }\n\n if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3 || this.multipleSelection[0].status == 5) {\n for (var i = 0; i < this.multipleSelection.length; i++) {\n arr.push(this.multipleSelection[i]['id']);\n }\n\n this.title = '修改';\n this.dialogVisible = true;\n this.ruleForm.quote_id = arr.join(\",\");\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: arr.join(\",\")\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n } else {\n this.$message(\"该订单不可修改\");\n return;\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 handle(index, row) {\n if (row.disabled) {\n this.$message('已绑定,不能重复操作');\n return;\n }\n\n this.currentDataId = row.id;\n this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';\n this.dialogVisible = true;\n this.ruleForm.quote_id = '';\n this.isModify = true;\n this.$http('get', \"/api/quote/getinfo\", {\n id: row.id\n }).then(res => {\n if (res.err_code === 0) {\n this.ruleForm.goods_name = res.data.quote_info.goods_name;\n this.ruleForm.quote_number = res.data.quote_info.quote_number;\n this.ruleForm.currency = res.data.quote_info.currency.toString();\n this.ruleForm.batch = res.data.quote_info.batch;\n this.ruleForm.mpq = res.data.quote_info.mpq;\n this.ruleForm.price_other = res.data.quote_info.price_other;\n this.ruleForm.unit = res.data.quote_info.unit;\n this.ruleForm.brand = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = res.data.quote_info.brand_name;\n this.ruleForm.price_origin = res.data.quote_info.price_origin;\n this.ruleForm.tax_rate = res.data.quote_info.tax_rate;\n this.ruleForm.delivery_time = res.data.quote_info.delivery_time;\n this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;\n this.ruleForm.delivery_time_unit = '天';\n this.ruleForm.moq = res.data.quote_info.moq;\n this.ruleForm.remark = res.data.quote_info.remark;\n\n if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {\n this.ruleForm.expire_time = '';\n } else {\n this.ruleForm.expire_time = res.data.quote_info.expire_time;\n }\n\n let brand_ss = [{\n brand_id: '',\n brand_name: ''\n }];\n brand_ss[0].brand_id = res.data.quote_info.brand_id;\n brand_ss[0].brand_name = res.data.quote_info.brand_name;\n this.ruleForm.brand_s = JSON.stringify(brand_ss);\n } else {\n this.$message(res.err_msg);\n }\n });\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/List/inquireDetail.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"
);
/***/
}),
...
...
view/js/2.js
View file @
dbe2f9d7
...
...
@@ -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 _menu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu.css */ \"./node_modules/element-ui/lib/theme-chalk/menu.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _menu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu */ \"./node_modules/element-ui/lib/menu.js\"));\n\nvar _menuItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu-item.css */ \"./node_modules/element-ui/lib/theme-chalk/menu-item.css\"));\n\nvar _menuItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu-item */ \"./node_modules/element-ui/lib/menu-item.js\"));\n\nvar _menuItemGroup = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu-item-group.css */ \"./node_modules/element-ui/lib/theme-chalk/menu-item-group.css\"));\n\nvar _menuItemGroup2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu-item-group */ \"./node_modules/element-ui/lib/menu-item-group.js\"));\n\nvar _submenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/submenu.css */ \"./node_modules/element-ui/lib/theme-chalk/submenu.css\"));\n\nvar _submenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/submenu */ \"./node_modules/element-ui/lib/submenu.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 _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 _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 _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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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(_menu2.default).use(_menuItem2.default).use(_menuItemGroup2.default).use(_submenu2.default).use(_form2.default).use(_formItem2.default).use(_dialog2.default).use(_button2.default).use(_input2.default);\n\nvar _default = {\n name: 'menus',\n props: {},\n\n created() {\n this.getData();\n },\n\n data() {\n var validatePass2 = (rule, value, callback) => {\n if (value === '') {\n callback(new Error('请再次输入密码'));\n } else if (value !== this.ruleForm.password) {\n callback(new Error('两次输入密码不一致!'));\n } else {\n callback();\n }\n };\n\n return {\n userinfo: {},\n collapse: false,\n isIndexTab: true,\n tabSure: \"\",\n tabs: \"\",\n dialogVisible: false,\n ruleForm: {\n old_password: '',\n password: '',\n repassword: ''\n },\n rules: {\n old_password: [{\n required: true,\n message: '请输入原始密码',\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: '请输入新密码',\n trigger: 'blur'\n }],\n repassword: [{\n required: true,\n trigger: 'blur',\n validator: validatePass2\n }]\n }\n };\n },\n\n watch: {\n $route(to, from) {\n let tab_arr = sessionStorage.getItem('tabs');\n\n if (tab_arr) {\n this.tabs = JSON.parse(tab_arr);\n }\n\n let app_ = document.getElementById('app');\n this.collapse = false;\n\n if (this.collapse) {\n app_.setAttribute('style', 'padding-left:62px');\n } else {\n app_.setAttribute('style', 'padding-left:226px');\n }\n }\n\n },\n\n mounted() {\n this.tabss(this.$route.path);\n },\n\n methods: {\n getData() {\n var userInfo_ = sessionStorage.getItem('userInfox');\n\n if (userInfo_) {\n this.userinfo = JSON.parse(userInfo_);\n } else {\n this.$http('get', \"/api/user/getuserinfo\").then(res => {\n this.userinfo = res.data;\n\n if (res.data) {\n sessionStorage.setItem('userInfox', JSON.stringify(res.data));\n }\n });\n }\n },\n\n tabUrl(item) {\n this.$router.push({\n path: item.path,\n query: item.query\n });\n },\n\n changePwd() {\n this.dialogVisible = true;\n },\n\n tabss(lk) {\n if (lk == \"/\") {\n this.tabSure = 1;\n }\n\n if (lk == \"/inquire\" || lk == \"/quote\") {\n this.tabSure = 2;\n }\n\n if (lk == \"/list\" || lk == \"/enter\"
) {\n this.tabSure = 3;\n }\n\n if (lk == \"/goods\" || lk == \"/brand\") {\n this.tabSure = 4;\n }\n\n if (lk == \"/message\") {\n this.tabSure = 5;\n }\n\n let tab_arr = sessionStorage.getItem('tabs');\n\n if (tab_arr) {\n this.tabs = JSON.parse(tab_arr);\n }\n },\n\n closetab(path) {\n let tab_arr = JSON.parse(sessionStorage.getItem('tabs'));\n\n for (var i = 0; i < tab_arr.length; i++) {\n if (tab_arr[i].path == path) {\n tab_arr.splice(i, 1);\n sessionStorage.setItem('tabs', JSON.stringify(tab_arr));\n this.tabs = tab_arr;\n\n if (path == this.$route.path) {\n if (i == 0) {\n this.$router.push({\n path: \"/\"\n });\n } else {\n this.$router.push({\n path: tab_arr[i - 1].path\n });\n }\n }\n\n break;\n }\n }\n },\n\n zk() {\n this.collapse = !this.collapse;\n let app_ = document.getElementById('app');\n\n if (this.collapse) {\n app_.setAttribute('style', 'padding-left:62px');\n } else {\n app_.setAttribute('style', 'padding-left:226px');\n }\n },\n\n handleOpen(key, keyPath) {\n if (this.$route.path == \"/\") {\n this.isIndexTab = false;\n }\n },\n\n handleClose(key, keyPath) {\n if (this.$route.path == \"/\") {\n this.isIndexTab = true;\n }\n },\n\n handleSelect(key, keyPath) {\n this.tabss(key);\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (valid) {\n this.$http('post', \"/api/user/setpasswd\", this.ruleForm).then(res => {\n if (res.err_code === 0) {\n this.$message('修改成功');\n setTimeout(() => {\n _tool.default.delCookie('token');\n\n window.location.href = '/#/login';\n sessionStorage.removeItem('userInfox');\n history.go(0);\n }, 2000);\n } else {\n this.$message(res.err_msg);\n }\n }).catch(err => {\n console.log(err.message);\n });\n } else {\n console.log('error submit!!');\n return false;\n }\n });\n },\n\n logout() {\n this.$http('post', \"/auth/logout\").then(res => {\n _tool.default.delCookie('token');\n\n window.location.href = '/#/login';\n sessionStorage.removeItem('userInfox');\n history.go(0);\n }).catch(err => {\n console.log(err.message);\n });\n }\n\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/menu.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 _menu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu.css */ \"./node_modules/element-ui/lib/theme-chalk/menu.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _menu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu */ \"./node_modules/element-ui/lib/menu.js\"));\n\nvar _menuItem = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu-item.css */ \"./node_modules/element-ui/lib/theme-chalk/menu-item.css\"));\n\nvar _menuItem2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu-item */ \"./node_modules/element-ui/lib/menu-item.js\"));\n\nvar _menuItemGroup = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/menu-item-group.css */ \"./node_modules/element-ui/lib/theme-chalk/menu-item-group.css\"));\n\nvar _menuItemGroup2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/menu-item-group */ \"./node_modules/element-ui/lib/menu-item-group.js\"));\n\nvar _submenu = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/submenu.css */ \"./node_modules/element-ui/lib/theme-chalk/submenu.css\"));\n\nvar _submenu2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/submenu */ \"./node_modules/element-ui/lib/submenu.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 _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 _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 _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 _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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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(_menu2.default).use(_menuItem2.default).use(_menuItemGroup2.default).use(_submenu2.default).use(_form2.default).use(_formItem2.default).use(_dialog2.default).use(_button2.default).use(_input2.default);\n\nvar _default = {\n name: 'menus',\n props: {},\n\n created() {\n this.getData();\n },\n\n data() {\n var validatePass2 = (rule, value, callback) => {\n if (value === '') {\n callback(new Error('请再次输入密码'));\n } else if (value !== this.ruleForm.password) {\n callback(new Error('两次输入密码不一致!'));\n } else {\n callback();\n }\n };\n\n return {\n userinfo: {},\n collapse: false,\n isIndexTab: true,\n tabSure: \"\",\n tabs: \"\",\n width: \"\",\n dialogVisible: false,\n ruleForm: {\n old_password: '',\n password: '',\n repassword: ''\n },\n rules: {\n old_password: [{\n required: true,\n message: '请输入原始密码',\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: '请输入新密码',\n trigger: 'blur'\n }],\n repassword: [{\n required: true,\n trigger: 'blur',\n validator: validatePass2\n }]\n }\n };\n },\n\n watch: {\n $route(to, from) {\n let tab_arr = sessionStorage.getItem('tabs');\n\n if (tab_arr) {\n this.tabs = JSON.parse(tab_arr);\n }\n\n let app_ = document.getElementById('app');\n this.collapse = false;\n\n if (this.collapse) {\n app_.setAttribute('style', 'padding-left:62px');\n } else {\n app_.setAttribute('style', 'padding-left:226px');\n }\n }\n\n },\n\n mounted() {\n this.tabss(this.$route.path);\n },\n\n methods: {\n getData() {\n var userInfo_ = sessionStorage.getItem('userInfox');\n\n if (userInfo_) {\n this.userinfo = JSON.parse(userInfo_);\n } else {\n this.$http('get', \"/api/user/getuserinfo\").then(res => {\n this.userinfo = res.data;\n\n if (res.data) {\n sessionStorage.setItem('userInfox', JSON.stringify(res.data));\n }\n });\n }\n },\n\n tabUrl(item) {\n this.$router.push({\n path: item.path,\n query: item.query\n });\n },\n\n changePwd() {\n this.dialogVisible = true;\n },\n\n tabss(lk) {\n if (lk == \"/\") {\n this.tabSure = 1;\n }\n\n if (lk == \"/inquire\" || lk == \"/quote\" || lk == '/inquire/detail') {\n this.tabSure = 2;\n }\n\n if (lk == \"/list\" || lk == \"/enter\" || lk == '/listDetail'
) {\n this.tabSure = 3;\n }\n\n if (lk == \"/goods\" || lk == \"/brand\") {\n this.tabSure = 4;\n }\n\n if (lk == \"/message\") {\n this.tabSure = 5;\n }\n\n let tab_arr = sessionStorage.getItem('tabs');\n\n if (tab_arr) {\n this.tabs = JSON.parse(tab_arr);\n }\n },\n\n closetab(path) {\n let tab_arr = JSON.parse(sessionStorage.getItem('tabs'));\n\n for (var i = 0; i < tab_arr.length; i++) {\n if (tab_arr[i].path == path) {\n tab_arr.splice(i, 1);\n sessionStorage.setItem('tabs', JSON.stringify(tab_arr));\n this.tabs = tab_arr;\n\n if (path == this.$route.path) {\n if (i == 0) {\n this.$router.push({\n path: \"/\"\n });\n } else {\n this.$router.push({\n path: tab_arr[i - 1].path\n });\n }\n }\n\n break;\n }\n }\n },\n\n zk() {\n this.collapse = !this.collapse;\n let app_ = document.getElementById('app');\n\n if (this.collapse) {\n app_.setAttribute('style', 'padding-left:62px');\n } else {\n app_.setAttribute('style', 'padding-left:226px');\n }\n },\n\n handleOpen(key, keyPath) {\n if (this.$route.path == \"/\") {\n this.isIndexTab = false;\n }\n },\n\n handleClose(key, keyPath) {\n if (this.$route.path == \"/\") {\n this.isIndexTab = true;\n }\n },\n\n handleSelect(key, keyPath) {\n this.tabss(key);\n },\n\n submitForm(formName) {\n this.$refs[formName].validate(valid => {\n if (valid) {\n this.$http('post', \"/api/user/setpasswd\", this.ruleForm).then(res => {\n if (res.err_code === 0) {\n this.$message('修改成功');\n setTimeout(() => {\n _tool.default.delCookie('token');\n\n window.location.href = '/#/login';\n sessionStorage.removeItem('userInfox');\n history.go(0);\n }, 2000);\n } else {\n this.$message(res.err_msg);\n }\n }).catch(err => {\n console.log(err.message);\n });\n } else {\n console.log('error submit!!');\n return false;\n }\n });\n },\n\n logout() {\n this.$http('post', \"/auth/logout\").then(res => {\n _tool.default.delCookie('token');\n\n window.location.href = '/#/login';\n sessionStorage.removeItem('userInfox');\n history.go(0);\n }).catch(err => {\n console.log(err.message);\n });\n }\n\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/components/menu.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: \"nav-box\" },\n [\n _c(\"div\", { staticClass: \"nav-top\" }, [\n _c(\"div\", { staticClass: \"con-box clr\" }, [\n _c(\"div\", { staticClass: \"logo fl\" }, [_vm._v(\"云芯系统\")]),\n _c(\"div\", { staticClass: \"tab-box fl\" }, [\n _c(\n \"div\",\n {\n staticClass: \"item-boxs\",\n style: \"width:\" + (_vm.tabs.length * 95 + 68) + \"px\"\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"item fl first\",\n class: { act: _vm.$route.path == \"/\" },\n attrs: { href: \"/#/\" }\n },\n [_c(\"font\", { staticClass: \"fl\" }, [_vm._v(\"概况\")])],\n 1\n ),\n _vm._l(_vm.tabs, function(item) {\n return _c(\n \"a\",\n {\n staticClass: \"item fl\",\n class: {\n act:\n JSON.stringify(item) ==\n JSON.stringify({\n path: _vm.$route.path,\n title: _vm.$route.meta.title,\n query: _vm.$route.query\n })\n },\n on: {\n click: function($event) {\n return _vm.tabUrl(item)\n }\n }\n },\n [\n _c(\"font\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(item.title))\n ]),\n _c(\n \"span\",\n {\n staticClass: \"icon iconfont fl\",\n on: {\n click: function($event) {\n $event.stopPropagation()\n return _vm.closetab(item.path)\n }\n }\n },\n [_vm._v(\"\")]\n )\n ],\n 1\n )\n })\n ],\n 2\n )\n ]),\n _c(\"div\", { staticClass: \"user-box fr\" }, [\n _c(\"div\", { staticClass: \"line\" }),\n _vm._m(0),\n _c(\"div\", { staticClass: \"line\" }),\n _vm._m(1),\n _c(\"div\", { staticClass: \"line\" }),\n _c(\"div\", { staticClass: \"login-v fl\" }, [\n _c(\"img\", {\n staticClass: \"fl\",\n attrs: { src: _vm.userinfo.avatar, alt: \"\" }\n }),\n _c(\"div\", { staticClass: \"fl namex\" }, [\n _vm._v(_vm._s(_vm.userinfo.contacts_name))\n ]),\n _c(\"div\", { staticClass: \"fl lo-box-drop\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")]),\n _c(\"div\", { staticClass: \"drop-box\" }, [\n _c(\n \"a\",\n {\n attrs: { href: \"javascript:;\" },\n on: {\n click: function($event) {\n return _vm.changePwd()\n }\n }\n },\n [_vm._v(\"修改密码\")]\n ),\n _c(\n \"a\",\n {\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.logout }\n },\n [_vm._v(\"退出登录\")]\n )\n ])\n ])\n ])\n ])\n ])\n ]),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !_vm.collapse,\n expression: \"!collapse\"\n }\n ],\n staticClass: \"nav-left\"\n },\n [\n _c(\n \"div\",\n { staticClass: \"meau-con\" },\n [\n _c(\"div\", { staticClass: \"zankai\" }, [\n _c(\n \"span\",\n { staticClass: \"icon iconfont fr\", on: { click: _vm.zk } },\n [_vm._v(\"\")]\n )\n ]),\n _c(\n \"el-menu\",\n {\n staticClass: \"el-menu-vertical-demo\",\n attrs: {\n \"active-text-color\": \"#1969F9\",\n router: \"\",\n \"default-active\": _vm.$route.path,\n router: true,\n \"unique-opened\": true\n },\n on: {\n open: _vm.handleOpen,\n close: _vm.handleClose,\n select: _vm.handleSelect\n }\n },\n [\n _c(\n \"el-menu-item\",\n {\n class: { indextab: _vm.isIndexTab },\n attrs: { index: \"/\" }\n },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\"span\", [_vm._v(\"概况\")])\n ])\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"2\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"询报价管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/inquire\" } }, [\n _vm._v(\"询价管理\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/quote\" } }, [\n _vm._v(\"报价管理\")\n ])
\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"3\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"库存管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/list\" } }, [\n _vm._v(\"库存列表\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/enter\" } }, [\n _vm._v(\"库存导入\")\n ]
)\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"4\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"商品管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/goods\" } }, [\n _vm._v(\"商品列表\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/brand\" } }, [\n _vm._v(\"品牌列表\")\n ])\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"5\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"用户中心\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/message\" } }, [\n _vm._v(\"基本信息\")\n ])\n ],\n 1\n )\n ],\n 2\n )\n ],\n 1\n )\n ],\n 1\n )\n ]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.collapse,\n expression: \"collapse\"\n }\n ],\n staticClass: \"nav-left2\"\n },\n [\n _c(\"div\", { staticClass: \"zankai\" }, [\n _c(\n \"span\",\n { staticClass: \"icon iconfont fr\", on: { click: _vm.zk } },\n [_vm._v(\"\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"item \", class: { act: _vm.tabSure == 1 } },\n [_c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])]\n ),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 2 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 3 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 4 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 5 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ])\n ]\n ),\n _vm._m(2),\n _c(\n \"el-dialog\",\n {\n staticClass: \"demo-ruleForm\",\n attrs: {\n title: \"修改密码\",\n visible: _vm.dialogVisible,\n width: \"500px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"el-form\",\n {\n ref: \"ruleForm\",\n attrs: {\n model: _vm.ruleForm,\n rules: _vm.rules,\n \"label-width\": \"100px\"\n }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"原始密码\", prop: \"old_password\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入原始密码\" },\n model: {\n value: _vm.ruleForm.old_password,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"old_password\", $$v)\n },\n expression: \"ruleForm.old_password\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"新密码\", prop: \"password\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入新密码\" },\n model: {\n value: _vm.ruleForm.password,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"password\", $$v)\n },\n expression: \"ruleForm.password\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"确认新密码\", prop: \"repassword\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入新密码\" },\n model: {\n value: _vm.ruleForm.repassword,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"repassword\", $$v)\n },\n expression: \"ruleForm.repassword\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\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: {\n click: function($event) {\n return _vm.submitForm(\"ruleForm\")\n }\n }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"a\",\n { staticClass: \"msgh fl\", attrs: { href: \"javascript:history.go(0)\" } },\n [\n _c(\"span\", {\n staticClass: \"el-icon-refresh icon\",\n staticStyle: { position: \"relative\", top: \"3px\" }\n })\n ]\n )\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"a\",\n { staticClass: \"fl\", attrs: { href: \"#\", target: \"_blank\" } },\n [_c(\"span\", { staticClass: \"icon iconfont fl\" }, [_vm._v(\"\")])]\n )\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"kf-box\" }, [\n _c(\"a\", { attrs: { href: \"\", target: \"_blank\" } }, [\n _c(\"i\", { staticClass: \"el-icon-service\" })\n ])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/menu.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: \"nav-box\" },\n [\n _c(\"div\", { staticClass: \"nav-top\" }, [\n _c(\"div\", { staticClass: \"con-box clr\" }, [\n _c(\"div\", { staticClass: \"logo fl\" }, [_vm._v(\"云芯系统\")]),\n _c(\"div\", { staticClass: \"tab-box fl\" }, [\n _c(\n \"div\",\n {\n staticClass: \"item-boxs\",\n style: \"width:\" + (_vm.tabs.length * 95 + 68) + \"px\"\n },\n [\n _c(\n \"a\",\n {\n staticClass: \"item fl first\",\n class: { act: _vm.$route.path == \"/\" },\n attrs: { href: \"/#/\" }\n },\n [_c(\"font\", { staticClass: \"fl\" }, [_vm._v(\"概况\")])],\n 1\n ),\n _vm._l(_vm.tabs, function(item) {\n return _c(\n \"a\",\n {\n staticClass: \"item fl\",\n class: {\n act:\n JSON.stringify(item) ==\n JSON.stringify({\n path: _vm.$route.path,\n title: _vm.$route.meta.title,\n query: _vm.$route.query\n })\n },\n on: {\n click: function($event) {\n return _vm.tabUrl(item)\n }\n }\n },\n [\n _c(\"font\", { staticClass: \"fl\" }, [\n _vm._v(_vm._s(item.title))\n ]),\n _c(\n \"span\",\n {\n staticClass: \"icon iconfont fl\",\n on: {\n click: function($event) {\n $event.stopPropagation()\n return _vm.closetab(item.path)\n }\n }\n },\n [_vm._v(\"\")]\n )\n ],\n 1\n )\n })\n ],\n 2\n )\n ]),\n _c(\"div\", { staticClass: \"user-box fr\" }, [\n _c(\"div\", { staticClass: \"line\" }),\n _vm._m(0),\n _c(\"div\", { staticClass: \"line\" }),\n _vm._m(1),\n _c(\"div\", { staticClass: \"line\" }),\n _c(\"div\", { staticClass: \"login-v fl\" }, [\n _c(\"img\", {\n staticClass: \"fl\",\n attrs: { src: _vm.userinfo.avatar, alt: \"\" }\n }),\n _c(\"div\", { staticClass: \"fl namex\" }, [\n _vm._v(_vm._s(_vm.userinfo.contacts_name))\n ]),\n _c(\"div\", { staticClass: \"fl lo-box-drop\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")]),\n _c(\"div\", { staticClass: \"drop-box\" }, [\n _c(\n \"a\",\n {\n attrs: { href: \"javascript:;\" },\n on: {\n click: function($event) {\n return _vm.changePwd()\n }\n }\n },\n [_vm._v(\"修改密码\")]\n ),\n _c(\n \"a\",\n {\n attrs: { href: \"javascript:;\" },\n on: { click: _vm.logout }\n },\n [_vm._v(\"退出登录\")]\n )\n ])\n ])\n ])\n ])\n ])\n ]),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: !_vm.collapse,\n expression: \"!collapse\"\n }\n ],\n staticClass: \"nav-left\"\n },\n [\n _c(\n \"div\",\n { staticClass: \"meau-con\" },\n [\n _c(\"div\", { staticClass: \"zankai\" }, [\n _c(\n \"span\",\n { staticClass: \"icon iconfont fr\", on: { click: _vm.zk } },\n [_vm._v(\"\")]\n )\n ]),\n _c(\n \"el-menu\",\n {\n staticClass: \"el-menu-vertical-demo\",\n attrs: {\n \"active-text-color\": \"#1969F9\",\n router: \"\",\n \"default-active\": _vm.$route.path,\n router: true,\n \"unique-opened\": true\n },\n on: {\n open: _vm.handleOpen,\n close: _vm.handleClose,\n select: _vm.handleSelect\n }\n },\n [\n _c(\n \"el-menu-item\",\n {\n class: { indextab: _vm.isIndexTab },\n attrs: { index: \"/\" }\n },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\"span\", [_vm._v(\"概况\")])\n ])\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"2\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"询报价管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/inquire\" } }, [\n _vm._v(\"询价管理\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/quote\" } }, [\n _vm._v(\"报价管理\")\n ])
,\n _c(\n \"el-menu-item\",\n {\n staticStyle: { display: \"none\" },\n attrs: { index: \"/inquire/detail\" }\n },\n [_vm._v(\"报价详情\")]\n )\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"3\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"库存管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/list\" } }, [\n _vm._v(\"库存列表\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/enter\" } }, [\n _vm._v(\"库存导入\")\n ]),\n _c(\n \"el-menu-item\",\n {\n staticStyle: { display: \"none\" },\n attrs: { index: \"/listDetail\" }\n },\n [_vm._v(\"导入详情\")]\n
)\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"4\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"商品管理\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/goods\" } }, [\n _vm._v(\"商品列表\")\n ]),\n _c(\"el-menu-item\", { attrs: { index: \"/brand\" } }, [\n _vm._v(\"品牌列表\")\n ])\n ],\n 1\n )\n ],\n 2\n ),\n _c(\n \"el-submenu\",\n { attrs: { index: \"5\" } },\n [\n _c(\"template\", { slot: \"title\" }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [\n _vm._v(\"\")\n ]),\n _c(\n \"span\",\n { attrs: { slot: \"title\" }, slot: \"title\" },\n [_vm._v(\"用户中心\")]\n )\n ]),\n _c(\n \"el-menu-item-group\",\n [\n _c(\"el-menu-item\", { attrs: { index: \"/message\" } }, [\n _vm._v(\"基本信息\")\n ])\n ],\n 1\n )\n ],\n 2\n )\n ],\n 1\n )\n ],\n 1\n )\n ]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.collapse,\n expression: \"collapse\"\n }\n ],\n staticClass: \"nav-left2\"\n },\n [\n _c(\"div\", { staticClass: \"zankai\" }, [\n _c(\n \"span\",\n { staticClass: \"icon iconfont fr\", on: { click: _vm.zk } },\n [_vm._v(\"\")]\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"item \", class: { act: _vm.tabSure == 1 } },\n [_c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])]\n ),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 2 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 3 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 4 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ]),\n _c(\"div\", { staticClass: \"item\", class: { act: _vm.tabSure == 5 } }, [\n _c(\"span\", { staticClass: \"icon iconfont\" }, [_vm._v(\"\")])\n ])\n ]\n ),\n _vm._m(2),\n _c(\n \"el-dialog\",\n {\n staticClass: \"demo-ruleForm\",\n attrs: {\n title: \"修改密码\",\n visible: _vm.dialogVisible,\n width: \"500px\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogVisible = $event\n }\n }\n },\n [\n _c(\n \"el-form\",\n {\n ref: \"ruleForm\",\n attrs: {\n model: _vm.ruleForm,\n rules: _vm.rules,\n \"label-width\": \"100px\"\n }\n },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"原始密码\", prop: \"old_password\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入原始密码\" },\n model: {\n value: _vm.ruleForm.old_password,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"old_password\", $$v)\n },\n expression: \"ruleForm.old_password\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"新密码\", prop: \"password\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入新密码\" },\n model: {\n value: _vm.ruleForm.password,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"password\", $$v)\n },\n expression: \"ruleForm.password\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\n { attrs: { label: \"确认新密码\", prop: \"repassword\" } },\n [\n _c(\"el-input\", {\n attrs: { type: \"password\", placeholder: \"请输入新密码\" },\n model: {\n value: _vm.ruleForm.repassword,\n callback: function($$v) {\n _vm.$set(_vm.ruleForm, \"repassword\", $$v)\n },\n expression: \"ruleForm.repassword\"\n }\n })\n ],\n 1\n ),\n _c(\n \"el-form-item\",\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: {\n click: function($event) {\n return _vm.submitForm(\"ruleForm\")\n }\n }\n },\n [_vm._v(\"确 定\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"a\",\n { staticClass: \"msgh fl\", attrs: { href: \"javascript:history.go(0)\" } },\n [\n _c(\"span\", {\n staticClass: \"el-icon-refresh icon\",\n staticStyle: { position: \"relative\", top: \"3px\" }\n })\n ]\n )\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"a\",\n { staticClass: \"fl\", attrs: { href: \"#\", target: \"_blank\" } },\n [_c(\"span\", { staticClass: \"icon iconfont fl\" }, [_vm._v(\"\")])]\n )\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"kf-box\" }, [\n _c(\"a\", { attrs: { href: \"\", target: \"_blank\" } }, [\n _c(\"i\", { staticClass: \"el-icon-service\" })\n ])\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/menu.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"
);
/***/
}),
...
...
view/js/22.js
View file @
dbe2f9d7
...
...
@@ -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 _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.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 _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_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_pagination2.default).use(_tableColumn2.default).use(_table2.default);\n\nvar _default = {\n name: \"
listDetail\",\n\n data() {\n return {\n detailInfo: \"\",\n total: 0,\n limit: 10,\n page: 1,\n tableData: \"\",\n maxPrice: []\n };\n },\n\n watch: {
},\n\n created() {\n this.getInfo();\n this.getList();\n },\n\n computed: {},\n methods: {\n getInfo() {\n this.$http('get', \"/api/uploadSku/info\", {\n id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.detailInfo = res.data;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getList() {\n this.$http('get', \"/api/uploadSku/itemList\", {\n page: this.page,\n limit: this.limit,\n up_sn: this.$route.query.sn\n }).then(res => {\n if (res.err_code === 0) {\n var arr = res.data.list || [];\n\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]['ladder_price']) {\n for (var j = 0; j < arr[i]['ladder_price'].length; j++) {\n arr[i]['purchases' + (j + 1)] = arr[i]['ladder_price'][j]['purchases'];\n arr[i]['price_cn' + (j + 1)] = arr[i]['ladder_price'][j]['price_cn'];\n arr[i]['price_us' + (j + 1)] = arr[i]['ladder_price'][j]['price_us'];\n }\n }\n }\n\n this.tableData = arr;\n this.total = res.data.total || 0;\n var max_ = res.data.max_price_count || 0;\n\n for (var g = 0; g < max_; g++) {\n this.maxPrice.push(g);\n }\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getList();\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/listDetail.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 _pagination = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/theme-chalk/pagination.css */ \"./node_modules/element-ui/lib/theme-chalk/pagination.css\"));\n\n__webpack_require__(/*! element-ui/lib/theme-chalk/base.css */ \"./node_modules/element-ui/lib/theme-chalk/base.css\");\n\nvar _pagination2 = _interopRequireDefault(__webpack_require__(/*! element-ui/lib/pagination */ \"./node_modules/element-ui/lib/pagination.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 _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_vue.default.prototype.$message = _message2.default;\n\n_vue.default.use(_pagination2.default).use(_tableColumn2.default).use(_table2.default);\n\nvar _default = {\n name: \"
ListDetail\",\n\n data() {\n return {\n detailInfo: \"\",\n total: 0,\n limit: 10,\n page: 1,\n tableData: \"\",\n maxPrice: []\n };\n },\n\n watch: {\n $route(to, from) {\n if (to.path == from.path) {\n this.getInfo();\n this.getList();\n }\n }\n\n
},\n\n created() {\n this.getInfo();\n this.getList();\n },\n\n computed: {},\n methods: {\n getInfo() {\n this.$http('get', \"/api/uploadSku/info\", {\n id: this.$route.query.id\n }).then(res => {\n if (res.err_code === 0) {\n this.detailInfo = res.data;\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n getList() {\n this.$http('get', \"/api/uploadSku/itemList\", {\n page: this.page,\n limit: this.limit,\n up_sn: this.$route.query.sn\n }).then(res => {\n if (res.err_code === 0) {\n var arr = res.data.list || [];\n\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]['ladder_price']) {\n for (var j = 0; j < arr[i]['ladder_price'].length; j++) {\n arr[i]['purchases' + (j + 1)] = arr[i]['ladder_price'][j]['purchases'];\n arr[i]['price_cn' + (j + 1)] = arr[i]['ladder_price'][j]['price_cn'];\n arr[i]['price_us' + (j + 1)] = arr[i]['ladder_price'][j]['price_us'];\n }\n }\n }\n\n this.tableData = arr;\n this.total = res.data.total || 0;\n var max_ = res.data.max_price_count || 0;\n\n for (var g = 0; g < max_; g++) {\n this.maxPrice.push(g);\n }\n } else {\n this.$message(res.err_msg);\n }\n });\n },\n\n handleCurrentChange(val) {\n this.page = val;\n this.getList();\n }\n\n },\n components: {\n Menu: _menu.default\n }\n};\nexports.default = _default;\n\n//# sourceURL=webpack:///./src/views/Store/listDetail.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: \"listDetail pagex\" },\n [\n _vm.detailInfo\n ? _c(\"div\", { staticClass: \"detail-nav\" }, [\n _c(\"span\", [_vm._v(\"单号:\" + _vm._s(_vm.detailInfo.up_sn))]),\n _c(\"span\", [_vm._v(\"文件名:\" + _vm._s(_vm.detailInfo.file_name))]),\n _c(\"span\", [\n _vm._v(\"上传时间:\" + _vm._s(_vm.detailInfo.create_time))\n ]),\n _c(\"span\", [\n _vm._v(\"状态: \"),\n _vm.detailInfo.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [_vm._v(\"待处理\")])\n : _vm.detailInfo.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [_vm._v(\"处理中\")])\n : _vm.detailInfo.status == 3\n ? _c(\"span\", [_vm._v(\"已处理\")])\n : _vm.detailInfo.status == 4\n ? _c(\"span\", { staticClass: \"f-red1\" }, [_vm._v(\"其他失败\")])\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm.tableData\n ? _c(\n \"div\",\n { staticClass: \"data-box\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"item_id\",\n label: \"ID\",\n width: \"75\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"status\",\n fixed: \"\",\n label: \"状态\",\n width: \"
75\"\n },\n scopedSlots: _vm._u(\n [\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\", { staticClass: \"f-red1\" }, [\n _vm._v(\"其他失败\")\n ])\n : _vm._e()\n ]\n }\n }\n ],\n null,\n false,\n 2621045418
\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"goods_sn\",\n label: \"供应商内部型号编码\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"goods_name\",\n label: \"型号\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"brand_name\",\n label: \"品牌\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"stock\", label: \"库存数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"标准包装量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch_sn\", label: \"批次\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"cn_delivery_time\",\n label: \"大陆交期\",\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"hk_delivery_time\",\n label: \"香港交期\",\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_brief\",\n label: \"简短描述\",\n width: \"150\"\n }\n }),\n _vm.maxPrice.length\n ? [\n _vm._l(_vm.maxPrice, function(item) {\n return [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"purchases\" + (item + 1),\n label: \"阶梯数量\" + (item + 1),\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_cn\" + (item + 1),\n label: \"国内含税价\" + (item + 1),\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_us\" + (item + 1),\n label: \"香港交货价\" + (item + 1),\n width: \"150\"\n }\n })\n ]\n })\n ]\n : _vm._e()\n ],\n 2\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(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/Store/listDetail.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: \"listDetail pagex\" },\n [\n _vm.detailInfo\n ? _c(\"div\", { staticClass: \"detail-nav\" }, [\n _c(\"span\", [_vm._v(\"单号:\" + _vm._s(_vm.detailInfo.up_sn))]),\n _c(\"span\", [_vm._v(\"文件名:\" + _vm._s(_vm.detailInfo.file_name))]),\n _c(\"span\", [\n _vm._v(\"上传时间:\" + _vm._s(_vm.detailInfo.create_time))\n ]),\n _c(\"span\", [\n _vm._v(\"状态: \"),\n _vm.detailInfo.status == 1\n ? _c(\"span\", { staticClass: \"f-green\" }, [_vm._v(\"待处理\")])\n : _vm.detailInfo.status == 2\n ? _c(\"span\", { staticClass: \"f-yellow1\" }, [_vm._v(\"处理中\")])\n : _vm.detailInfo.status == 3\n ? _c(\"span\", [_vm._v(\"已处理\")])\n : _vm.detailInfo.status == 4\n ? _c(\"span\", { staticClass: \"f-red1\" }, [_vm._v(\"其他失败\")])\n : _vm._e()\n ])\n ])\n : _vm._e(),\n _vm.tableData\n ? _c(\n \"div\",\n { staticClass: \"data-box\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: { data: _vm.tableData, border: \"\" }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"item_id\",\n label: \"ID\",\n width: \"75\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"status\",\n fixed: \"\",\n label: \"状态\",\n width: \"
120\"\n },\n scopedSlots: _vm._u(\n [\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\", { staticClass: \"f-red1\" }, [\n _vm._v(\"审核未通过\")\n ])\n : _vm._e()\n ]\n }\n }\n ],\n null,\n false,\n 1309998672
\n )\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"goods_sn\",\n label: \"供应商内部型号编码\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"goods_name\",\n label: \"型号\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n fixed: \"\",\n prop: \"brand_name\",\n label: \"品牌\",\n width: \"180\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"stock\", label: \"库存数量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"moq\", label: \"起订量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"mpq\", label: \"标准包装量\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: { prop: \"batch_sn\", label: \"批次\", width: \"150\" }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"cn_delivery_time\",\n label: \"大陆交期\",\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"hk_delivery_time\",\n label: \"香港交期\",\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"spu_brief\",\n label: \"简短描述\",\n width: \"150\"\n }\n }),\n _vm.maxPrice.length\n ? [\n _vm._l(_vm.maxPrice, function(item) {\n return [\n _c(\"el-table-column\", {\n attrs: {\n prop: \"purchases\" + (item + 1),\n label: \"阶梯数量\" + (item + 1),\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_cn\" + (item + 1),\n label: \"国内含税价\" + (item + 1),\n width: \"150\"\n }\n }),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"price_us\" + (item + 1),\n label: \"香港交货价\" + (item + 1),\n width: \"150\"\n }\n })\n ]\n })\n ]\n : _vm._e()\n ],\n 2\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(\"Menu\")\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/Store/listDetail.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"
);
/***/
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment