Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
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
ynby
folacin-front
Commits
cd50f9c1
Commit
cd50f9c1
authored
Sep 07, 2021
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新页签打开
parent
cd8e3f0a
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
117 additions
and
67 deletions
+117
-67
.env.dev
.env.dev
+6
-0
.env.production
.env.production
+5
-1
Home.vue
src/views/Home.vue
+13
-13
InformedConsent.vue
src/views/indexComponent/InformedConsent/InformedConsent.vue
+2
-1
addDistributionWarehousing.vue
...tionWarehousing/components/addDistributionWarehousing.vue
+2
-1
distributionWarehousingDetail.vue
...nWarehousing/components/distributionWarehousingDetail.vue
+2
-1
distributionWarehousing.vue
...onent/distributionWarehousing/distributionWarehousing.vue
+9
-5
folviteApply.vue
src/views/indexComponent/folviteApply/folviteApply.vue
+8
-6
addFolviteDistribution.vue
...folviteDistribution/components/addFolviteDistribution.vue
+8
-7
folviteDistributionDetail.vue
...viteDistribution/components/folviteDistributionDetail.vue
+3
-2
folviteDistribution.vue
...ndexComponent/folviteDistribution/folviteDistribution.vue
+10
-6
addMaterialDistribution.vue
...nent/inStockManage/components/addMaterialDistribution.vue
+8
-6
addStock.vue
...iews/indexComponent/inStockManage/components/addStock.vue
+2
-1
inStockManageDetail.vue
...omponent/inStockManage/components/inStockManageDetail.vue
+2
-1
inStockManage.vue
src/views/indexComponent/inStockManage/inStockManage.vue
+23
-6
stockTransfer.vue
src/views/indexComponent/stockTransfer/stockTransfer.vue
+9
-6
addSupply.vue
...iews/indexComponent/supplyManage/components/addSupply.vue
+2
-1
supplyManage.vue
src/views/indexComponent/supplyManage/supplyManage.vue
+3
-1
common.js
src/views/utils/common.js
+0
-1
int.js
src/views/utils/directives/int.js
+0
-1
No files found.
.env.dev
View file @
cd50f9c1
NODE_ENV = dev
NODE_ENV = dev
VUE_APP_BASE_URL = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL1 = https://ys-service.yiboshi.com
VUE_APP_BASE_URL1 = https://yyys-service.yiboshi.com
VUE_APP_BASE_URL1 = http://127.0.0.1:8082
VUE_APP_BASE_URL1 = http://127.0.0.1:8082
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
VUE_APP_LOCATION = https://beta-yesuan.yiboshi.com/#/
VUE_APP_LOCATION1 = https://yesuan.yiboshi.com/#/
.env.production
View file @
cd50f9c1
NODE_ENV = prod
NODE_ENV = prod
VUE_APP_BASE_URL1 = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL1 = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL = https://ys-service.yiboshi.com
VUE_APP_BASE_URL1 = https://ys-service.yiboshi.com
VUE_APP_BASE_URL = https://beta-ysservice.yiboshi.com
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
VUE_APP_LOCATION = https://beta-yesuan.yiboshi.com/#/
VUE_APP_LOCATION1 = https://yesuan.yiboshi.com/#/
src/views/Home.vue
View file @
cd50f9c1
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
},
},
created
()
{
created
()
{
//获取妇幼权限和登录基本信息
//获取妇幼权限和登录基本信息
// document.cookie = 'bGNnd3lwdF9hdA=
5e7516d7-889b-4b19-9490-e9ce576daba
2;'//昆明市
// document.cookie = 'bGNnd3lwdF9hdA=
c64fae79-c4a9-485d-8828-38779bb3b5d
2;'//昆明市
// document.cookie = 'bGNnd3lwdF9hdA=' + sessionStorage.getItem("loginToken") + ';'//云南省
// document.cookie = 'bGNnd3lwdF9hdA=' + sessionStorage.getItem("loginToken") + ';'//云南省
let
cookieToken
=
getCookie
(
'bGNnd3lwdF9hdA'
);
let
cookieToken
=
getCookie
(
'bGNnd3lwdF9hdA'
);
console
.
log
(
'tokenInfo'
,
cookieToken
)
console
.
log
(
'tokenInfo'
,
cookieToken
)
...
@@ -107,18 +107,18 @@
...
@@ -107,18 +107,18 @@
},
},
// 点击tabs标签
// 点击tabs标签
onChange
(
activeKey
)
{
//
onChange(activeKey) {
this
.
activeKey
=
activeKey
;
//
this.activeKey = activeKey;
window
.
sessionStorage
.
setItem
(
'activeKey'
,
this
.
activeKey
);
//
window.sessionStorage.setItem('activeKey', this.activeKey);
this
.
$store
.
commit
(
'changeActKey'
,
this
.
activeKey
)
//
this.$store.commit('changeActKey', this.activeKey)
this
.
$store
.
state
.
tabsInfo
.
forEach
((
item
,
i
)
=>
{
//
this.$store.state.tabsInfo.forEach((item, i) => {
if
(
item
.
frontActionUrl
===
activeKey
)
{
//
if (item.frontActionUrl === activeKey) {
this
.
activeItem
=
[
item
.
frontActionUrl
];
//
this.activeItem = [item.frontActionUrl];
window
.
sessionStorage
.
setItem
(
'activeItem'
,
this
.
activeItem
);
//
window.sessionStorage.setItem('activeItem', this.activeItem);
this
.
$router
.
push
(
item
.
frontActionUrl
);
//
this.$router.push(item.frontActionUrl);
}
//
}
});
//
});
},
//
},
},
},
}
}
</
script
>
</
script
>
...
...
src/views/indexComponent/InformedConsent/InformedConsent.vue
View file @
cd50f9c1
...
@@ -111,7 +111,8 @@
...
@@ -111,7 +111,8 @@
});
});
},
},
backList
()
{
backList
()
{
closedDetail
(
'/system/addTemplate'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuName
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/system/addTemplate')
}
}
},
},
}
}
...
...
src/views/indexComponent/distributionWarehousing/components/addDistributionWarehousing.vue
View file @
cd50f9c1
...
@@ -115,7 +115,8 @@
...
@@ -115,7 +115,8 @@
onOk
()
{
onOk
()
{
that
.
$api
.
stockManage
.
fetchReceiveConfirm
(
params
).
then
(({
data
=
[],
code
})
=>
{
that
.
$api
.
stockManage
.
fetchReceiveConfirm
(
params
).
then
(({
data
=
[],
code
})
=>
{
if
(
code
===
'SUCCESS'
)
{
if
(
code
===
'SUCCESS'
)
{
closedDetail
(
'/inStock/inStockManageDetail'
,
'/Home/distributionWarehousing'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/inStock/inStockManageDetail', '/Home/distributionWarehousing')
}
}
});
});
},
},
...
...
src/views/indexComponent/distributionWarehousing/components/distributionWarehousingDetail.vue
View file @
cd50f9c1
...
@@ -113,7 +113,8 @@
...
@@ -113,7 +113,8 @@
})
})
},
},
goBack
()
{
goBack
()
{
closedDetail
(
'/inStock/inStockManageDetail'
,
'/Home/distributionWarehousing'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/inStock/inStockManageDetail', '/Home/distributionWarehousing')
}
}
},
},
}
}
...
...
src/views/indexComponent/distributionWarehousing/distributionWarehousing.vue
View file @
cd50f9c1
...
@@ -210,13 +210,17 @@
...
@@ -210,13 +210,17 @@
},
},
toDetail
(
record
)
{
toDetail
(
record
)
{
let
par
=
{
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`distributionWarehousing/add?id=
${
record
.
id
}
&menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
`
)
...
record
,
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`查看详情`
,
url
:
now_location
},
'*'
)
menuId
:
this
.
menuId
// let par = {
}
// ...record,
this
.
$router
.
push
({
path
:
'/distributionWarehousing/detail'
,
query
:
par
})
// menuId: this.menuId
// }
// this.$router.push({path: '/distributionWarehousing/detail', query: par})
},
},
toAdd
(
record
)
{
toAdd
(
record
)
{
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`distributionWarehousing/add?id=
${
record
.
id
}
&menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
`
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`分配入库`
,
url
:
now_location
},
'*'
)
let
par
=
{
let
par
=
{
...
record
,
...
record
,
menuId
:
this
.
menuId
menuId
:
this
.
menuId
...
...
src/views/indexComponent/folviteApply/folviteApply.vue
View file @
cd50f9c1
...
@@ -226,12 +226,14 @@
...
@@ -226,12 +226,14 @@
});
});
},
},
toDetail
(
record
)
{
toDetail
(
record
)
{
let
params
=
{
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`folviteDistribution/add?menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
&routerFlag=update`
)
id
:
record
.
id
,
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`叶酸申请`
,
url
:
now_location
},
'*'
)
routerFlag
:
'update'
,
// let params = {
menuId
:
this
.
menuId
// id: record.id,
}
// routerFlag: 'update',
this
.
$router
.
push
({
path
:
'/folviteDistribution/add'
,
query
:
params
})
// menuId: this.menuId
// }
// this.$router.push({path: '/folviteDistribution/add', query: params})
}
}
},
},
}
}
...
...
src/views/indexComponent/folviteDistribution/components/addFolviteDistribution.vue
View file @
cd50f9c1
...
@@ -661,13 +661,14 @@
...
@@ -661,13 +661,14 @@
},
},
goBack
()
{
goBack
()
{
if
(
this
.
routerParams
.
routerFlag
==
"update"
)
{
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
this
.
$router
.
push
(
"/Home/folviteApply"
);
// if (this.routerParams.routerFlag == "update") {
closedDetail
(
'/inStock/addMaterialDistribution'
,
'/Home/folviteApply'
);
// this.$router.push("/Home/folviteApply");
}
else
{
// closedDetail('/inStock/addMaterialDistribution', '/Home/folviteApply');
this
.
$router
.
push
(
"/Home/folviteDistribution"
);
// } else {
closedDetail
(
'/inStock/addMaterialDistribution'
,
'/Home/folviteDistribution'
)
// this.$router.push("/Home/folviteDistribution");
}
// closedDetail('/inStock/addMaterialDistribution', '/Home/folviteDistribution')
// }
}
}
}
}
}
}
...
...
src/views/indexComponent/folviteDistribution/components/folviteDistributionDetail.vue
View file @
cd50f9c1
...
@@ -218,8 +218,9 @@
...
@@ -218,8 +218,9 @@
})
})
},
},
goBack
()
{
goBack
()
{
this
.
$router
.
push
(
"/Home/folviteDistribution"
);
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
closedDetail
(
'/inStock/inStockManageDetail'
,
'/Home/folviteDistribution'
)
// this.$router.push("/Home/folviteDistribution");
// closedDetail('/inStock/inStockManageDetail', '/Home/folviteDistribution')
},
},
},
},
}
}
...
...
src/views/indexComponent/folviteDistribution/folviteDistribution.vue
View file @
cd50f9c1
...
@@ -253,14 +253,18 @@
...
@@ -253,14 +253,18 @@
// return window.parent.document.body
// return window.parent.document.body
// },
// },
toAdd
()
{
toAdd
()
{
this
.
$router
.
push
({
path
:
'/folviteDistribution/add'
,
query
:
{
routerFlag
:
'add'
,
menuId
:
this
.
menuId
}})
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`folviteDistribution/add?menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
&routerFlag=add`
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`发放登记`
,
url
:
now_location
},
'*'
)
// this.$router.push({path: '/folviteDistribution/add', query: {routerFlag: 'add',menuId: this.menuId}})
},
},
toDetail
(
record
)
{
toDetail
(
record
)
{
let
par
=
{
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`folviteDistribution/detail?menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
&id=
${
record
.
id
}
&source=
${
record
.
source
}
`
)
menuId
:
this
.
menuId
,
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`查看详情`
,
url
:
now_location
},
'*'
)
...
record
// let par = {
}
// menuId: this.menuId,
this
.
$router
.
push
({
path
:
'/folviteDistribution/detail'
,
query
:
par
})
// ...record
// }
// this.$router.push({path: '/folviteDistribution/detail', query: par})
},
},
uploadConsentInfo
(
row
)
{
uploadConsentInfo
(
row
)
{
this
.
formData
.
id
=
row
.
id
;
this
.
formData
.
id
=
row
.
id
;
...
...
src/views/indexComponent/inStockManage/components/addMaterialDistribution.vue
View file @
cd50f9c1
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<a-form-model-item
label=
"联系电话"
prop=
"sendPhone"
>
<a-form-model-item
label=
"
发货人
联系电话"
prop=
"sendPhone"
>
<a-input
placeholder=
"请填写发货人电话"
v-model=
"formData.sendPhone"
></a-input>
<a-input
placeholder=
"请填写发货人电话"
v-model=
"formData.sendPhone"
></a-input>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"8"
>
<a-col
:span=
"8"
>
<a-form-model-item
label=
"联系电话"
prop=
"receivePhone"
>
<a-form-model-item
label=
"
收货人
联系电话"
prop=
"receivePhone"
>
<a-input
placeholder=
"请填写收货人电话"
v-model=
"formData.receivePhone"
></a-input>
<a-input
placeholder=
"请填写收货人电话"
v-model=
"formData.receivePhone"
></a-input>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
sendUnitId
:
undefined
,
sendUnitId
:
undefined
,
sendUnitName
:
undefined
,
sendUnitName
:
undefined
,
receiveUnitId
:
undefined
,
receiveUnitId
:
undefined
,
sendDate
:
moment
(
new
Date
()).
format
(
'
yyyy
-MM-DD'
),
sendDate
:
moment
(
new
Date
()).
format
(
'
YYYY
-MM-DD'
),
sendContact
:
undefined
,
sendContact
:
undefined
,
sendPhone
:
undefined
,
sendPhone
:
undefined
,
receivePhone
:
undefined
,
receivePhone
:
undefined
,
...
@@ -183,6 +183,7 @@
...
@@ -183,6 +183,7 @@
}
}
},
},
created
()
{
created
()
{
this
.
routerParams
=
this
.
$route
.
query
this
.
getSelectedMedical
()
this
.
getSelectedMedical
()
this
.
formData
.
sendUnitId
=
this
.
unitInfo
.
unitId
;
this
.
formData
.
sendUnitId
=
this
.
unitInfo
.
unitId
;
this
.
formData
.
sendUnitName
=
this
.
unitInfo
.
unitName
;
this
.
formData
.
sendUnitName
=
this
.
unitInfo
.
unitName
;
...
@@ -229,12 +230,12 @@
...
@@ -229,12 +230,12 @@
let
params
=
{}
let
params
=
{}
let
reviceUnitName
=
this
.
childUnitList
.
filter
(
item
=>
item
.
id
==
this
.
formData
.
receiveUnitId
)[
0
].
unitName
;
let
reviceUnitName
=
this
.
childUnitList
.
filter
(
item
=>
item
.
id
==
this
.
formData
.
receiveUnitId
)[
0
].
unitName
;
let
treeNodeId
=
this
.
childUnitList
.
filter
(
item
=>
item
.
id
==
this
.
formData
.
receiveUnitId
)[
0
].
treeNodeId
;
let
treeNodeId
=
this
.
childUnitList
.
filter
(
item
=>
item
.
id
==
this
.
formData
.
receiveUnitId
)[
0
].
treeNodeId
;
let
unitInfo
=
JSON
.
parse
(
window
.
sessionStorage
.
s
etItem
(
'unitInfo'
));
let
unitInfo
=
JSON
.
parse
(
window
.
sessionStorage
.
g
etItem
(
'unitInfo'
));
params
=
{
params
=
{
...
this
.
formData
,
...
this
.
formData
,
receiveNodeId
:
treeNodeId
,
receiveNodeId
:
treeNodeId
,
receiveNodeName
:
reviceUnitName
,
receiveNodeName
:
reviceUnitName
,
sendDate
:
moment
(
this
.
formData
.
sendDate
).
format
(
'
yyyy
-MM-DD'
),
sendDate
:
moment
(
this
.
formData
.
sendDate
).
format
(
'
YYYY
-MM-DD'
),
receiveUnitName
:
reviceUnitName
,
receiveUnitName
:
reviceUnitName
,
sendUnitName
:
unitInfo
.
unitName
sendUnitName
:
unitInfo
.
unitName
};
};
...
@@ -261,7 +262,8 @@
...
@@ -261,7 +262,8 @@
});
});
},
},
goBack
()
{
goBack
()
{
closedDetail
(
'/inStock/addMaterialDistribution'
,
'/Home/inStock'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/inStock/addMaterialDistribution', '/Home/inStock')
}
}
}
}
}
}
...
...
src/views/indexComponent/inStockManage/components/addStock.vue
View file @
cd50f9c1
...
@@ -242,7 +242,8 @@
...
@@ -242,7 +242,8 @@
},
},
goBack
()
{
goBack
()
{
closedDetail
(
'/inStock/add'
,
'/Home/inStock'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/inStock/add', '/Home/inStock')
}
}
},
},
}
}
...
...
src/views/indexComponent/inStockManage/components/inStockManageDetail.vue
View file @
cd50f9c1
...
@@ -71,7 +71,8 @@
...
@@ -71,7 +71,8 @@
})
})
},
},
goBack
()
{
goBack
()
{
closedDetail
(
'/inStock/inStockManageDetail'
,
'/Home/inStock'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/inStock/inStockManageDetail', '/Home/inStock')
}
}
},
},
}
}
...
...
src/views/indexComponent/inStockManage/inStockManage.vue
View file @
cd50f9c1
...
@@ -34,11 +34,12 @@
...
@@ -34,11 +34,12 @@
</a-form>
</a-form>
<div
style=
"display: flex;justify-content: space-between;align-items: center"
>
<div
style=
"display: flex;justify-content: space-between;align-items: center"
>
<div
style=
"margin-bottom: 10px"
>
<div
style=
"margin-bottom: 10px"
>
<a-button
type=
"primary"
class=
"search_btn btn_space "
@
click=
"openModal"
v-if=
"unitInfo.level==3"
>
<!-- v-if="unitInfo.level==3"-->
<a-button
type=
"primary"
class=
"search_btn btn_space "
@
click=
"openModal"
>
库存录入
库存录入
</a-button>
</a-button>
<!--v-if="unitInfo.level==3||unitInfo.level==4"-->
<a-button
type=
"primary"
class=
"search_btn btn_space"
:disabled=
"selectedRowKeys.length
<
=
0
"
<a-button
type=
"primary"
class=
"search_btn btn_space"
:disabled=
"selectedRowKeys.length
<
=
0
"
v-if=
"unitInfo.level==3||unitInfo.level==4"
@
click=
"toAdd"
>
调拨分配
@
click=
"toAdd"
>
调拨分配
</a-button>
</a-button>
<!--
<a-button
type=
"primary"
class=
"search_btn btn_space"
>
导出Excel
</a-button>
-->
<!--
<a-button
type=
"primary"
class=
"search_btn btn_space"
>
导出Excel
</a-button>
-->
...
@@ -112,6 +113,16 @@
...
@@ -112,6 +113,16 @@
import
{
isNotBlank
,
isEmptyParams
,
getEnumByFlag
}
from
"../../utils/common"
;
import
{
isNotBlank
,
isEmptyParams
,
getEnumByFlag
}
from
"../../utils/common"
;
import
dateRangePicker
from
'../../components/dateRangePicker'
import
dateRangePicker
from
'../../components/dateRangePicker'
import
moment
from
'moment'
import
moment
from
'moment'
// let vm = this
// function postMessageInfo (event) {
// const data = event.data;
// let nowType = data.messageType
// if(nowType=="REFRESH") {
// vm.searchList()
// }
// }
// window.addEventListener('message', postMessageInfo);
// window.removeEventListener('message', postMessageInfo)
const
columns
=
[
const
columns
=
[
{
{
...
@@ -315,14 +326,20 @@
...
@@ -315,14 +326,20 @@
},
},
// 库存录入按钮
// 库存录入按钮
openModal
()
{
openModal
()
{
let
par
=
{
menuId
:
this
.
menuId
}
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`inStock/add?menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
`
)
this
.
$router
.
push
({
path
:
'/inStock/add'
,
query
:
par
})
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`库存录入`
,
url
:
now_location
},
'*'
)
// let par = {menuId: this.menuId}
// this.$router.push({path: '/inStock/add', query: par})
},
},
toAdd
()
{
toAdd
()
{
this
.
$router
.
push
({
path
:
'/inStock/addMaterialDistribution'
,
query
:
{
selected
:
this
.
selectedRowKeys
,
menuId
:
this
.
menuId
}})
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`inStock/addMaterialDistribution?selected=
${
this
.
selectedRowKeys
}
&menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
`
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`调拨分配`
,
url
:
now_location
},
'*'
)
// this.$router.push({path: '/inStock/addMaterialDistribution', query: {selected: this.selectedRowKeys, menuId: this.menuId}})
},
},
toDetail
(
record
)
{
toDetail
(
record
)
{
this
.
$router
.
push
({
path
:
'/inStock/inStockManageDetail'
,
query
:
{
id
:
record
.
id
,
menuId
:
this
.
menuId
}})
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`inStock/inStockManageDetail?id=
${
record
.
id
}
&menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
`
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`查看详情`
,
url
:
now_location
},
'*'
)
// this.$router.push({path: '/inStock/inStockManageDetail', query: {id: record.id, menuId: this.menuId}})
}
}
},
},
}
}
...
...
src/views/indexComponent/stockTransfer/stockTransfer.vue
View file @
cd50f9c1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"stockTransfer"
>
<div
class=
"stockTransfer"
>
<a-form
layout=
"inline"
class=
"search_form"
>
<a-form
layout=
"inline"
class=
"search_form"
>
<a-form-item
label=
"供应商名称"
>
<a-form-item
label=
"供应商名称"
>
<a-select
v-model=
"searchForm.supplierId"
placeholder=
"请选择"
style=
"width: 2
5
0px"
>
<a-select
v-model=
"searchForm.supplierId"
placeholder=
"请选择"
style=
"width: 2
0
0px"
>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
v-for=
"item in allSupplyInfo"
:key=
"item.id"
:value=
"item.id"
>
<a-select-option
v-for=
"item in allSupplyInfo"
:key=
"item.id"
:value=
"item.id"
>
{{
item
.
supplierName
}}
{{
item
.
supplierName
}}
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"品牌"
>
<a-form-item
label=
"品牌"
>
<a-select
v-model=
"searchForm.brandId"
placeholder=
"请选择"
style=
"width: 2
5
0px"
>
<a-select
v-model=
"searchForm.brandId"
placeholder=
"请选择"
style=
"width: 2
0
0px"
>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
v-for=
"item in brandList"
:key=
"item.enumValue"
:value=
"item.enumValue"
>
<a-select-option
v-for=
"item in brandList"
:key=
"item.enumValue"
:value=
"item.enumValue"
>
{{
item
.
enumName
}}
{{
item
.
enumName
}}
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"类型"
>
<a-form-item
label=
"类型"
>
<a-select
v-model=
"searchForm.stockType"
placeholder=
"请选择"
style=
"width:
25
0px"
>
<a-select
v-model=
"searchForm.stockType"
placeholder=
"请选择"
style=
"width:
10
0px"
>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
value=
""
>
全部
</a-select-option>
<a-select-option
v-for=
"item in stockTypeList"
:key=
"item.enumValue"
:value=
"item.enumValue"
>
<a-select-option
v-for=
"item in stockTypeList"
:key=
"item.enumValue"
:value=
"item.enumValue"
>
{{
item
.
enumName
}}
{{
item
.
enumName
}}
...
@@ -26,16 +26,19 @@
...
@@ -26,16 +26,19 @@
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"出库/入库日期"
>
<a-form-item
label=
"出库/入库日期"
>
<dateRangePicker
:date
.
sync=
"searchForm.date"
></dateRangePicker>
<dateRangePicker
:date
.
sync=
"searchForm.date"
style=
"width: 250px"
></dateRangePicker>
</a-form-item>
</a-form-item>
<!--
<a-form-item>
-->
<div
style=
"float: right;margin-bottom: 10px"
>
<a-button
type=
"primary"
class=
"search_btn"
icon=
"search"
@
click=
"searchList"
>
搜索
</a-button>
<a-button
type=
"primary"
class=
"search_btn"
icon=
"search"
@
click=
"searchList"
>
搜索
</a-button>
<a-button
class=
"search_btn ant-table-btn"
style=
"margin-left: 10px"
icon=
"sync"
@
click=
"restSearchForm"
>
清空
</a-button>
<a-button
class=
"search_btn ant-table-btn"
style=
"margin-left: 10px"
icon=
"sync"
@
click=
"restSearchForm"
>
清空
</a-button>
<!--
<a-button
type=
"primary"
class=
"search_btn"
icon=
"download"
style=
"float: right"
@
click=
"downloadExcel"
>
-->
</div>
<!--
</a-form-item>
-->
<!--
<a-button
type=
"primary"
class=
"search_btn"
icon=
"download"
style=
"float: right"
@
click=
"downloadExcel"
>
-->
<!-- 导出Excel-->
<!-- 导出Excel-->
<!--
</a-button>
-->
<!--
</a-button>
-->
</a-form>
</a-form>
<div
style=
"clear: both"
></div>
<div
style=
"clear: both"
></div>
<div
style=
"clear: both"
></div>
<a-table
:dataSource=
"tableData"
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:columns=
"columns"
rowKey=
"id"
rowKey=
"id"
...
...
src/views/indexComponent/supplyManage/components/addSupply.vue
View file @
cd50f9c1
...
@@ -212,7 +212,8 @@
...
@@ -212,7 +212,8 @@
});
});
},
},
goBack
()
{
goBack
()
{
closedDetail
(
'/supplyManage/add'
,
'/Home/supplyManage'
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGECHANGE'
,
name
:
`
${
this
.
routerParams
.
menuCode
}
`
,
source
:
"yesuan"
},
'*'
)
// closedDetail('/supplyManage/add', '/Home/supplyManage')
}
}
},
},
}
}
...
...
src/views/indexComponent/supplyManage/supplyManage.vue
View file @
cd50f9c1
...
@@ -232,7 +232,9 @@
...
@@ -232,7 +232,9 @@
});
});
},
},
updateSupply
(
record
)
{
updateSupply
(
record
)
{
this
.
$router
.
push
({
path
:
'/supplyManage/add'
,
query
:
{
modeType
:
"update"
,
id
:
record
.
id
,
menuId
:
this
.
menuId
}});
let
now_location
=
escape
(
process
.
env
.
VUE_APP_LOCATION
+
`supplyManage/add?modeType=update&menuId=
${
this
.
menuId
}
&menuCode=
${
this
.
routerParams
.
menuName
}
&id=
${
record
.
id
}
`
)
window
.
top
.
postMessage
({
messageType
:
'THIRD_PAGEADD'
,
title
:
`修改供应商`
,
url
:
now_location
},
'*'
)
// this.$router.push({path: '/supplyManage/add', query: {modeType: "update", id: record.id, menuId: this.menuId}});
}
}
},
},
}
}
...
...
src/views/utils/common.js
View file @
cd50f9c1
...
@@ -215,4 +215,3 @@ export const GetUserInfoByCardDevice = () => {
...
@@ -215,4 +215,3 @@ export const GetUserInfoByCardDevice = () => {
})
})
};
};
src/views/utils/directives/int.js
View file @
cd50f9c1
...
@@ -20,7 +20,6 @@ Vue.directive('toInt', {
...
@@ -20,7 +20,6 @@ Vue.directive('toInt', {
}
}
});
});
function
checkedfun
(
el
,
maxNum
,
notNum
)
{
function
checkedfun
(
el
,
maxNum
,
notNum
)
{
debugger
if
(
maxNum
&&
el
.
value
>
maxNum
)
{
if
(
maxNum
&&
el
.
value
>
maxNum
)
{
el
.
value
=
maxNum
el
.
value
=
maxNum
el
.
dispatchEvent
(
new
Event
(
"input"
));
//调用input事件使vue v-model绑定更新
el
.
dispatchEvent
(
new
Event
(
"input"
));
//调用input事件使vue v-model绑定更新
...
...
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