Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
ffbae918
Commit
ffbae918
authored
Jul 14, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
5f561cde
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
151 additions
and
79 deletions
+151
-79
empowerManage.vue
src/components/empower/empowerManage.vue
+10
-9
materialQuery.vue
src/components/empower/materialQuery.vue
+61
-29
printManage.vue
src/components/empower/printManage.vue
+51
-31
procurementMaage.vue
src/components/empower/procurementMaage.vue
+15
-9
putinStorage.vue
src/components/empower/putinStorage.vue
+14
-1
No files found.
src/components/empower/empowerManage.vue
View file @
ffbae918
...
...
@@ -44,19 +44,20 @@
<span
v-if=
"scope.row.Type==2"
>
集团
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.Status==1"
>
待审核
</span>
<span
v-if=
"scope.row.Status==2"
>
已审核
</span>
<span
v-if=
"scope.row.Status==3"
>
已拒绝
</span>
<span
v-if=
"scope.row.Status==4"
>
已作废
</span>
</
template
>
</el-table-column>
<!-- <el-table-column prop="CreateBy" label="创建人Id"></el-table-column> -->
<el-table-column
prop=
"EmpName"
label=
"创建人姓名"
></el-table-column>
<el-table-column
prop=
"DomainName"
label=
"域名"
></el-table-column>
<el-table-column
prop=
"Account"
label=
"关联erp账号"
></el-table-column>
<el-table-column
prop=
"MallUserName"
label=
"电商员工姓名"
></el-table-column>
<el-table-column
prop=
"EmpName"
label=
"创建人姓名"
></el-table-column>
<el-table-column
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.Status==1"
>
待审核
</span>
<span
v-if=
"scope.row.Status==2"
>
已审核
</span>
<span
v-if=
"scope.row.Status==3"
>
已拒绝
</span>
<span
v-if=
"scope.row.Status==4"
>
已作废
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateDate"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"UpdateDate"
label=
"更新时间"
></el-table-column>
<el-table-column
label=
"操作"
>
...
...
src/components/empower/materialQuery.vue
View file @
ffbae918
...
...
@@ -58,6 +58,11 @@
padding
:
5px
0
;
font-size
:
14px
;
}
.materialQuery
.shopinformation
{
display
:
flex
;
flex-direction
:
row
;
font-size
:
12px
;
}
</
style
>
<
template
>
<div
class=
"materialQuery"
>
...
...
@@ -69,16 +74,11 @@
</div>
<div
class=
"temp_content"
>
<div>
<div
class=
"searchInput"
style=
"width:150px;margin-right: 0px;"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:125px;height:30px"
placeholder=
"请输入仓库id"
v-model=
"msg.WareHouseId"
@
clear=
"msg.pageIndex=1,getList()"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
</div>
<span>
仓库
</span>
<el-select
v-model=
"msg.WareHouseId"
placeholder=
"请选择"
size=
"small"
filterable
@
change=
"msg.pageIndex=1,getList()"
>
<el-option
label=
"不限"
:value=
"0"
></el-option>
<el-option
:label=
"item.Name"
:value=
"item.Id"
v-for=
"(item,index) in getWareHouseList"
:key=
"index"
></el-option>
</el-select>
<div
class=
"searchInput"
style=
"width:150px;margin-right: 10px;"
>
<el-input
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
style=
"display:inline-block;width:125px;height:30px"
placeholder=
"请输入商品id"
...
...
@@ -100,33 +100,49 @@
<span
@
click=
"msg.pageIndex=1,getList()"
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
></span>
</div>
</div>
<el-table
:data=
"dataList"
border
style=
"width: 100%;margin-Top:10px"
>
<el-table
:data=
"dataList"
border
style=
"width: 100%;margin-Top:10px"
v-loading=
"loading"
>
<el-table-column
prop=
"Id"
label=
"ID"
width=
"60"
></el-table-column>
<el-table-column
prop=
"Name"
label=
"商品名称"
width=
"400"
></el-table-column>
<el-table-column
prop=
"Money"
label=
"成本价格"
></el-table-column>
<el-table-column
prop=
"Units"
label=
"单位"
></el-table-column>
<el-table-column
label=
"图片列表"
align=
"center"
>
<el-table-column
prop=
"Name"
label=
"商品信息"
width=
"500"
>
<template
slot-scope=
"scope"
>
<div
v-for=
"(item,index) in scope.row.ImageList"
:key=
"index"
style=
"width: 50px; height: 50px;"
>
<img
:src=
"item"
alt=
""
style=
"width: 50px; height: 50px;"
>
<div
class=
"shopinformation"
>
<img
:src=
" scope.row.ImageList[0]"
alt=
""
style=
"width: 60px; height: 60px;"
>
<div
style=
"margin-left:5px"
>
<span>
{{
scope
.
row
.
Name
}}
</span>
<div>
<span>
商品分类:
<span
v-for=
"(item,index3) in scope.row.GoodsCategoryList"
:key=
"index3"
>
{{
item
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
物料编码:
{{
scope
.
row
.
SuppliesNum
}}
</span>
</div>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
></el-table-column>
<el-table-column
prop=
"SupplierName"
label=
"供应商名称"
></el-table-column>
<el-table-column
prop=
"SuppliesNum"
label=
"物料编码"
></el-table-column>
<el-table-column
prop=
"InventoryNum"
label=
"库存(选择仓库后有值)"
></el-table-column>
<el-table-column
label=
"商品规格列表"
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"(item,index2) in scope.row.GoodsSpecificationList"
:key=
"index2"
>
{{
item
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"商品分类列表"
>
<el-table-column
prop=
"Money"
label=
"成本价格"
width=
"80"
></el-table-column>
<el-table-column
prop=
"Units"
label=
"单位"
width=
"80"
></el-table-column>
<el-table-column
width=
"80"
>
<
template
slot=
"header"
>
库存
<el-tooltip
effect=
"dark"
content=
"选择仓库后有值"
placement=
"top"
>
<i
class=
"el-icon-info"
></i>
</el-tooltip>
</
template
>
<
template
slot-scope=
"scope"
>
<span
v-for=
"(item,index3) in scope.row.GoodsCategoryList"
:key=
"index3"
>
{{
item
}}
</span>
<span
>
{{
scope
.
row
.
InventoryNum
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
></el-table-column>
<el-table-column
prop=
"UpdateDate"
label=
"操作时间"
></el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.pageIndex"
...
...
@@ -202,15 +218,17 @@
export
default
{
data
()
{
return
{
loading
:
false
,
dataList
:
[],
fenleiData
:[],
childList2
:[],
childList3
:[],
checkList
:[],
getWareHouseList
:[],
msg
:
{
pageIndex
:
1
,
pageSize
:
1
5
,
WareHouseId
:
''
,
pageSize
:
1
0
,
WareHouseId
:
0
,
GoodsId
:
''
,
Name
:
''
,
},
...
...
@@ -225,11 +243,22 @@
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
// 仓库列表
getWareHouse
(){
this
.
apiJavaPost
(
"/api/Supplies/GetWareHouseList"
,{
Name
:
''
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
getWareHouseList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
getList
()
{
if
(
this
.
msg
.
WareHouseId
!=
''
){
this
.
msg
.
WareHouseId
=
Number
(
this
.
msg
.
WareHouseId
)
}
if
(
this
.
msg
.
GoodsId
!=
''
){
this
.
msg
.
GoodsId
=
Number
(
this
.
msg
.
GoodsId
)
}
...
...
@@ -260,9 +289,11 @@
})
},
setSyncGoodsToMaterial
(
CategoryIds
){
this
.
loading
=
true
this
.
assetsApipost
(
"/api/property/SetSyncGoodsToMaterial"
,
{
CategoryIds
:
CategoryIds
},
res
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
...
...
@@ -298,6 +329,7 @@
mounted
()
{
this
.
getList
();
this
.
getTree
();
this
.
getWareHouse
()
}
};
...
...
src/components/empower/printManage.vue
View file @
ffbae918
...
...
@@ -56,15 +56,16 @@
}
</
style
>
<
template
>
<div
class=
"printManage"
>
<div
class=
"tpEdit_header"
>
<div
class=
"printManage"
>
<div
class=
"tpEdit_header"
>
<div>
<span
style=
"color:rgb(64, 158, 255);cursor:pointer;"
@
click=
"CommonJump('procurementMaage')"
>
采购管理
</span><span
style=
"margin:0 9px;color:#C0C4CC"
>
/
</span><span>
打印
</span>
</div>
<el-button
type=
"primary"
size=
"small"
@
click=
"batchprint(1)"
>
批量打印
</el-button>
</div>
<div
class=
"mimitBody"
>
<div
class=
"mimitBody"
v-loading=
"loading"
element-loading-text=
"拼命打印中..."
>
<div>
<el-checkbox
v-model=
"allchecked"
@
change=
"allcheckbtn"
>
全选
</el-checkbox>
<span
style=
'margin-left:10px'
>
入库批次
</span>
...
...
@@ -119,7 +120,7 @@
</el-row>
</div>
<div
class=
"xuanzhong"
id =
'xuanzhong'
style=
"display:none"
>
<div
class=
"xuanzhong"
id =
'xuanzhong'
style=
"display:none"
>
<!--
<div
v-for=
"(item,index) in checkList"
:key=
"index"
class=
"xuanzhong_item"
:id =
"item.page"
>
-->
<div
v-for=
"(item,index) in checkList"
:key=
"index"
:id =
"item.page"
style=
" width: 283px; height: 283px;padding: 10px;display: flex;flex-direction: column; justify-content: space-around;"
>
<div
style=
" width:100%; height:40px;text-overflow: ellipsis; display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;"
>
...
...
@@ -174,6 +175,7 @@ export default {
data
()
{
return
{
loading
:
false
,
Detaildata
:{},
msg
:{
ProcurementId
:
0
,
...
...
@@ -187,8 +189,7 @@ export default {
},
created
()
{},
methods
:
{
getProcurementInfo
(
data
)
{
//获取采购单 入库批次
getProcurementInfo
(
data
)
{
//获取采购单 入库批次
this
.
assetsApipost
(
"/api/property/GetProcurementSotckInBatchList"
,
{
ProcurementId
:
data
.
ID
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options
=
res
.
data
.
data
;
...
...
@@ -248,29 +249,45 @@ export default {
}
this
.
$forceUpdate
()
},
batchprint
(
num
){
//批量打印
if
(
this
.
checkList
.
length
>
0
){
batchprint
(
n
){
//批量打印
// debugger;
let
conunt
=
this
.
checkList
.
length
;
let
that
=
this
if
(
conunt
>
0
){
// http://www.c-lodop.com/LodopDemo.html 官网地址
let
page
=
'page'
+
num
if
(
n
==
1
){
this
.
loading
=
true
}
let
page
=
'page'
+
n
let
LODOP
=
getLodop
()
//调用getLodop获取LODOP对象
LODOP
.
PRINT_INIT
(
num
)
LODOP
.
PRINT_INIT
(
page
)
LODOP
.
NewPage
();
var
strFormHtml
=
"<body>"
+
document
.
getElementById
(
page
).
innerHTML
+
"</body>"
;
LODOP
.
ADD_PRINT_HTM
(
20
,
15
,
300
,
300
,
strFormHtml
);
// LODOP.PREVIEW()//预览打印
LODOP
.
PRINT
()
//直接打印打印
// LODOP.PRINT_DESIGN()//进入打印设计
// LODOP.PRINT()//直接打印打印
console
.
log
(
page
)
let
num
=
n
if
(
LODOP
.
CVERSION
){
LODOP
.
On_Return
=
function
(
TaskID
,
Value
){
console
.
log
(
TaskID
)
console
.
log
(
Value
)
console
.
log
(
123123
)
if
(
Value
){
console
.
log
(
num
)
num
++
;
//循环打印
if
(
this
.
checkList
.
length
>=
num
){
console
.
log
(
num
)
if
(
conunt
>=
num
){
console
.
log
(
2
)
setTimeout
(()
=>
{
this
.
batchprint
(
num
)
},
1000
)
that
.
batchprint
(
num
)
},
200
)
if
(
conunt
==
num
){
that
.
loading
=
false
}
}
else
{
return
}
}
else
{
console
.
log
(
'错误'
)
...
...
@@ -278,20 +295,23 @@ export default {
}
LODOP
.
PRINT
()
}
else
{
console
.
log
(
'进入'
)
if
(
LODOP
.
PRINT
()){
num
++
;
//循环打印
if
(
this
.
checkList
.
length
>=
num
){
setTimeout
(()
=>
{
this
.
batchprint
(
num
)
},
1000
)
}
}
else
{
console
.
log
(
'错误'
)
}
}
// else{
// if(LODOP.PRINT()){
// num++;//循环打印
// if(conunt>=num){
// setTimeout(()=>{
// that.batchprint(num)
// },200)
// }else{
// return
// }
// }else{
// console.log('错误')
// }
// }
...
...
src/components/empower/procurementMaage.vue
View file @
ffbae918
...
...
@@ -147,19 +147,17 @@
<el-table-column
prop=
"WareHouseName"
label=
"仓库名称"
></el-table-column>
<el-table-column
prop=
"TotalCostMoney"
label=
"总价格"
></el-table-column>
<el-table-column
prop=
"TotalNumber"
label=
"总数量"
width=
"90"
></el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
></el-table-column>
<el-table-column
prop=
"FinanceId"
label=
"绑定财务单据id"
></el-table-column>
<el-table-column
prop=
"CreateDate"
label=
"创建时间"
></el-table-column>
<el-table-column
prop=
"StockInStatus"
label=
"入库状态"
width=
"90"
>
<el-table-column
prop=
"TotalNumber"
label=
"总数量"
width=
"150"
></el-table-column>
<el-table-column
prop=
"FinanceId"
label=
"绑定财务单据id"
width=
"150"
></el-table-column>
<el-table-column
prop=
"Remark"
label=
"备注"
width=
"260"
></el-table-column>
<el-table-column
prop=
"StockInStatus"
label=
"入库状态"
width=
"150"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.StockInStatus==1"
>
未入库
</span>
<span
v-if=
"scope.row.StockInStatus==2"
>
部分入库
</span>
<span
v-if=
"scope.row.StockInStatus==3"
>
已入库
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateDate"
label=
"创建时间"
width=
"120"
></el-table-column>
<el-table-column
label=
"操作"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"打印"
placement=
"top"
>
...
...
@@ -181,7 +179,7 @@
</div>
<!-- 生成采购单 -->
<el-dialog
custom-class=
"app-add-cat"
title=
"新增采购单"
:visible
.
sync=
"flDig"
width=
"1100px"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"
135
px"
style=
"width:50%"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"
90
px"
style=
"width:50%"
>
<el-form-item
label=
"账户类型"
prop=
"IsPublic"
>
<el-select
v-model=
"addMsg.IsPublic"
placeholder=
"请选择"
size=
"small"
filterable
>
<el-option
:label=
"item.Name"
:value=
"item.Id"
v-for=
"(item,index) in AccountList"
:key=
"index"
></el-option>
...
...
@@ -238,7 +236,7 @@
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"flDig = false"
>
取 消
</el-button>
<el-button
@
click=
"chooseFl('addMsg')"
size=
"small"
type=
"primary"
>
确 定
</el-button>
<el-button
@
click=
"chooseFl('addMsg')"
size=
"small"
type=
"primary"
>
新 增
</el-button>
</span>
</el-dialog>
<!-- 商品列表 -->
...
...
@@ -335,6 +333,7 @@
export
default
{
data
()
{
return
{
fullscreenLoading
:
false
,
loading
:
false
,
dataList
:
[],
goodList
:
[],
...
...
@@ -503,10 +502,17 @@
this
.
Error
(
'请选择规格'
);
return
}
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'生成采购单中...'
,
spinner
:
'el-icon-loading'
,
});
this
.
assetsApipost
(
"/api/property/SetProcurementInfo"
,
this
.
addMsg
,
res
=>
{
loading
.
close
();
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
flDig
=
false
;
...
...
src/components/empower/putinStorage.vue
View file @
ffbae918
...
...
@@ -55,7 +55,7 @@
<span
v-for=
"(x,y) in scope.row.MaterialModel.GoodsSpecificationList"
:key=
"y"
>
{{
x
}}
<span
v-if=
"scope.row.MaterialModel.GoodsSpecificationList.length !== y+1"
>
,
</span></span>
</
template
>
</el-table-column>
<el-table-column
prop=
"Number"
label=
"
数量"
width=
"6
0"
></el-table-column>
<el-table-column
prop=
"Number"
label=
"
采购数量"
width=
"8
0"
></el-table-column>
<el-table-column
prop=
"StockInNum"
label=
"已入数量"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
StockInNum
!=
null
?
scope
.
row
.
StockInNum
:
0
}}
</span>
...
...
@@ -66,6 +66,7 @@
<el-input
v-model=
"scope.row.InStockNum"
type=
"number"
:min=
'0'
:max=
"scope.row.Number -(scope.row.StockInNum!=null?scope.row.StockInNum:0)"
:disabled=
"(scope.row.Number -(scope.row.StockInNum!=null?scope.row.StockInNum:0))==0? true:false"
@
input=
'validation(scope.row.Number -(scope.row.StockInNum!=null?scope.row.StockInNum:0),scope.row,$event)'
placeholder=
"请输入"
></el-input>
</
template
>
</el-table-column>
...
...
@@ -133,6 +134,18 @@ export default {
}
})
},
validation
(
v
,
row
,
value
){
let
that
=
this
if
(
value
>
v
){
this
.
Error
(
'数量不足'
);
that
.
Detaildata
.
DetailList
.
forEach
(
x
=>
{
if
(
x
.
Id
==
row
.
Id
){
x
.
InStockNum
=
0
}
})
}
}
...
...
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