Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 83e5f67e
authored
Jul 18, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:erp逻辑调整
1 parent
d03d3612
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
7 deletions
src/api/exWarehouse.js
src/api/request.js
src/plugin/axios/index.js
src/views/financeManage/financeList.vue
src/views/financeManage/warehouseDetail.vue
src/api/exWarehouse.js
View file @
83e5f67
...
@@ -11,7 +11,8 @@ export function getIssueOrder(data) {
...
@@ -11,7 +11,8 @@ export function getIssueOrder(data) {
// erp订单查询
// erp订单查询
export
function
getErpOrderDetail
(
data
)
{
export
function
getErpOrderDetail
(
data
)
{
data
.
method
=
`
${
path
}
goodsOrder.getErpOrderDetail`
data
.
method
=
`
${
path
}
goodsOrder.getErpOrderDetail`
return
request
(
data
,
'post'
)
console
.
log
(
'request'
,
request
)
return
request
(
data
,
'post'
,
''
,
{
timeout
:
5
*
1000
})
}
}
// 替换升级产品查询
// 替换升级产品查询
...
...
src/api/request.js
View file @
83e5f67
...
@@ -9,7 +9,12 @@ import axios from '@/plugin/axios'
...
@@ -9,7 +9,12 @@ import axios from '@/plugin/axios'
import
sign
from
'./sign'
import
sign
from
'./sign'
import
RequestMethods
from
'./request.methods'
import
RequestMethods
from
'./request.methods'
import
util
from
'@/libs/util.js'
import
util
from
'@/libs/util.js'
const
request
=
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[])
=>
{
const
request
=
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
options
)
=>
{
// params.source = 'glsx'
// params.source = 'glsx'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
// params.appKey = 'd7ffc3346fc9a45bccaaa35300d59022'
params
.
appKey
=
window
.
location
.
href
.
includes
(
'dj.glsx.com.cn'
)
params
.
appKey
=
window
.
location
.
href
.
includes
(
'dj.glsx.com.cn'
)
...
@@ -37,9 +42,11 @@ const request = (params = {}, method = RequestMethods.GET, noSignAttr = []) => {
...
@@ -37,9 +42,11 @@ const request = (params = {}, method = RequestMethods.GET, noSignAttr = []) => {
method
===
RequestMethods
.
POST
method
===
RequestMethods
.
POST
?
{
baseURL
:
'/'
,
data
:
sign
(
params
,
noSignAttr
)
}
?
{
baseURL
:
'/'
,
data
:
sign
(
params
,
noSignAttr
)
}
:
{
params
:
sign
(
params
,
noSignAttr
)
}
:
{
params
:
sign
(
params
,
noSignAttr
)
}
reqData
=
reqData
=
Object
.
assign
(
reqData
,
options
,
{})
// console.log(method === RequestMethods.POST)
// console.log(method === RequestMethods.POST)
// console.log(url)
// console.log(url)
console
.
log
(
options
)
console
.
log
(
reqData
)
return
axios
({
return
axios
({
url
,
url
,
method
,
method
,
...
...
src/plugin/axios/index.js
View file @
83e5f67
...
@@ -179,6 +179,13 @@ service.interceptors.response.use(
...
@@ -179,6 +179,13 @@ service.interceptors.response.use(
break
break
}
}
}
}
if
(
error
&&
error
.
stack
.
indexOf
(
'timeout'
)
>
-
1
)
{
if
(
error
.
stack
.
indexOf
(
'5000ms'
))
{
error
.
message
=
'查询超时,请刷新页面重试!'
}
// console.log('超时')
// console.log(error)
}
store
.
commit
(
'd2admin/loading/set'
,
false
)
store
.
commit
(
'd2admin/loading/set'
,
false
)
errorLog
(
error
)
errorLog
(
error
)
return
Promise
.
reject
(
error
)
return
Promise
.
reject
(
error
)
...
...
src/views/financeManage/financeList.vue
View file @
83e5f67
...
@@ -734,8 +734,8 @@ export default {
...
@@ -734,8 +734,8 @@ export default {
upgradeTransfer
:
''
upgradeTransfer
:
''
},
},
accountVisible
:
false
,
accountVisible
:
false
,
warehouseVisible
:
fals
e
,
warehouseVisible
:
tru
e
,
orderId
:
''
,
orderId
:
'
2203150922321960
'
,
outboundStatusShow
:
{
outboundStatusShow
:
{
'1'
:
'待出库'
,
'1'
:
'待出库'
,
'2'
:
'待出库'
,
'2'
:
'待出库'
,
...
...
src/views/financeManage/warehouseDetail.vue
View file @
83e5f67
...
@@ -61,16 +61,19 @@
...
@@ -61,16 +61,19 @@
<captchaInput
:captchaList
.
sync=
"captchaList"
<captchaInput
:captchaList
.
sync=
"captchaList"
class=
"captcha"
></captchaInput>
class=
"captcha"
></captchaInput>
</div>
</div>
<!-- || !orderInfo.erpOrderResponse -->
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"mini"
size=
"mini"
class=
"captchaBtn"
class=
"captchaBtn"
@
click=
"queryCode"
@
click=
"queryCode"
v-if=
"(!orderInfo.storeCode || orderInfo.order.outboundStatus == '1'
|| !orderInfo.erpOrderResponse
) && jurisdictionBtn"
v-if=
"(!orderInfo.storeCode || orderInfo.order.outboundStatus == '1' ) && jurisdictionBtn"
:disabled=
"!$$(orderInfo.order,'customer','standNo')"
>
:disabled=
"!$$(orderInfo.order,'customer','standNo')"
>
查询物料
查询物料
</el-button>
</el-button>
<p
class=
"captchaMsg"
<p
class=
"captchaMsg"
v-if=
"!$$(orderInfo.order,'customer','standNo')"
>
车架号为空,无法查询,请在小程序上补充该订单客户车架号再尝试。
</p>
v-if=
"!$$(orderInfo.order,'customer','standNo')"
>
车架号为空,无法查询,请在小程序上补充该订单客户车架号再尝试。
</p>
<p
class=
"captchaMsg"
v-if=
"orderInfo.order.outboundStatus == '6'"
>
订单车架号有误,请在小程序修改为正确车架号后重试!
</p>
</div>
</div>
<div
style=
"textAlign:center; padding:5px 0;color:blue"
<div
style=
"textAlign:center; padding:5px 0;color:blue"
v-if=
"orderInfo.order.outboundStatus == '2' && !orderInfo.erpOrderResponse"
>
v-if=
"orderInfo.order.outboundStatus == '2' && !orderInfo.erpOrderResponse"
>
...
@@ -252,7 +255,9 @@ export default {
...
@@ -252,7 +255,9 @@ export default {
},
},
orderInfoId
:
{
orderInfoId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
()
=>
{
}
default
:
()
=>
{
// return '2203150922321960'
}
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment