Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
godwithdh
WX_h5
Commits
66408037
Commit
66408037
authored
Jan 10, 2020
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload
parent
e63b5c7a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
5 deletions
+33
-5
host.js
src/libs/host.js
+2
-2
util.js
src/libs/util.js
+2
-1
list.vue
src/view/tiip/checkProgress/process/list.vue
+0
-1
operateCustomDetail.vue
src/view/tiip/kanban/operateCustomDetail.vue
+29
-1
No files found.
src/libs/host.js
View file @
66408037
...
...
@@ -12,9 +12,9 @@ function urlFun(name){
/**
* 默认公司
*/
default
:
`http://192.168.4.34:5001`
,
//
default:`http://192.168.4.34:5001`,
// default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
//
default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/service/proxy/
${
userID
}
`
,
/**
* 基本地址
...
...
src/libs/util.js
View file @
66408037
...
...
@@ -103,7 +103,8 @@ util.deepClone = function (data) {
}
util
.
dateFormat
=
function
(
str
,
fmt
)
{
var
usedDate
=
new
Date
(
str
);
var
usedDate
=
new
Date
(
str
).
getTime
;
console
.
log
(
usedDate
)
var
o
=
{
"M+"
:
usedDate
.
getMonth
()
+
1
,
//月份
"d+"
:
usedDate
.
getDate
(),
//日
...
...
src/view/tiip/checkProgress/process/list.vue
View file @
66408037
...
...
@@ -236,7 +236,6 @@ export default {
this
.
list
=
[];
},
async
routerToDetail
(){
console
.
log
(
this
.
row
.
sProduceArtInfo
)
this
.
$store
.
dispatch
(
'saveCheckProgressHdr'
,{
type
:
'process'
,
row
:
this
.
row
...
...
src/view/tiip/kanban/operateCustomDetail.vue
View file @
66408037
...
...
@@ -270,7 +270,35 @@ export default {
this
.
list
[
res
.
trIndex
].
dReceivedDate
=
Util
.
dateFormat
(
this
.
list
[
res
.
trIndex
].
dReceivedDate
,
'yyyy-MM-dd'
);
this
.
$store
.
dispatch
(
'searchOrderSaveHdr'
,
this
.
list
[
res
.
trIndex
]);
this
.
$router
.
push
({
name
:
'searchOrderTrack'
})
}
else
if
(
this
.
hdr
.
sType
==
'采购'
||
this
.
hdr
.
sType
==
'加工'
||
this
.
hdr
.
sType
==
'成品入库'
||
this
.
hdr
.
sType
==
'销售'
||
this
.
hdr
.
sType
==
'检验'
||
this
.
hdr
.
sType
==
'收货'
){
}
else
if
(
this
.
hdr
.
sType
==
'采购'
||
this
.
hdr
.
sType
==
'加工'
){
let
postData
=
[
{
key
:
'url'
,
value
:
this
.
hdr
.
sType
==
'采购'
?
'Procurement progress'
:
'Processing schedule'
},
{
key
:
this
.
hdr
.
sType
==
'采购'
?
'begin_date'
:
'dBeginDate'
,
value
:
Util
.
dateFormat
(
this
.
list
[
res
.
trIndex
].
dContractDate
,
'yyyy-MM-dd'
)},
{
key
:
this
.
hdr
.
sType
==
'采购'
?
'end_date'
:
'dEndDate'
,
value
:
Util
.
dateFormat
(
this
.
list
[
res
.
trIndex
].
dContractDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
},
{
key
:
'searchname'
,
value
:
this
.
list
[
res
.
trIndex
].
sOrderNo
},
]
alert
(
JSON
.
stringify
(
postData
))
let
result
=
await
this
.
request
(
this
.
hdr
.
sType
==
'采购'
?
'getTipProcurementProgress'
:
'getTipProcessProgress'
,{
data
:
postData
,
params
:{}},
'加载中'
)
result
.
map
(
y
=>
{
y
.
sContractNoHTML
=
`<div><span style="text-decoration:underline;">
${
y
.
sContractNo
}
</span></div>`
;
y
.
child
.
map
(
x
=>
{
if
(
this
.
hdr
.
sType
==
'采购'
){
x
.
dLastStoreInTime
=
!!
x
.
dLastStoreInTime
?
Util
.
dateFormat
(
x
.
dLastStoreInTime
,
'yyyy-MM-dd'
)
:
''
;
}
else
{
x
.
nInputQtyRate
=
(
x
.
nInputQtyRate
*
100
).
toFixed
(
2
)
+
'%'
;
x
.
tDropInTime
=
!!
x
.
tDropInTime
?
Util
.
dateFormat
(
x
.
tDropInTime
,
'yyyy-MM-dd'
)
:
''
;
x
.
tProductOutTime
=
!!
x
.
tProductOutTime
?
Util
.
dateFormat
(
x
.
tProductOutTime
,
'yyyy-MM-dd'
)
:
''
;
}
})
});
this
.
$store
.
dispatch
(
'saveCheckProgressHdr'
,{
type
:
this
.
hdr
.
sType
==
'采购'
?
'procurement'
:
'process'
,
row
:
result
[
0
]
});
this
.
$router
.
push
({
name
:
this
.
hdr
.
sType
==
'采购'
?
'tipProcurementProgressDetail'
:
'tipProcessProgressDetail'
})
}
else
if
(
this
.
hdr
.
sType
==
'加工'
){
}
else
if
(
this
.
hdr
.
sType
==
'成品入库'
||
this
.
hdr
.
sType
==
'销售'
||
this
.
hdr
.
sType
==
'检验'
||
this
.
hdr
.
sType
==
'收货'
){
await
this
.
getDetail
(
1
,
this
.
hdr
.
sType
,
this
.
list
[
res
.
trIndex
].
sOrderNo
);
}
else
if
(
this
.
hdr
.
sType
==
'供应商索赔'
||
this
.
hdr
.
sType
==
'超期应付'
){
await
this
.
getDetail
(
2
,
this
.
hdr
.
sType
,
this
.
list
[
res
.
trIndex
].
sPayableNO
);
...
...
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