Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陈婉清
/
scrm-micro-inventory
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 81079bd2
authored
Apr 10, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
22eb4f21
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
54 deletions
src/views/allocation/allocationNumDialog.vue
src/views/allocation/index.vue
src/views/check/add.vue
src/views/check/index.vue
src/views/check/inventoryNumDialog.vue
src/views/outbound/index.vue
src/views/allocation/allocationNumDialog.vue
View file @
81079bd
<!-- 盘点 -->
<!-- 盘点 -->
<
template
>
<
template
>
<GLDialog
title=
"调拨"
mode=
"small"
:visible
.
sync=
"allocationNumVisible"
class=
"allocationNumDailog"
okText=
"确定"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
<GLDialog
title=
"调拨"
:visible
.
sync=
"allocationNumVisible"
class=
"allocationNumDailog"
okText=
"确定"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
<el-form
ref=
"allocationNumForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"120px"
>
<div
class=
"gl-form-page gl-form-min"
>
<el-form
ref=
"allocationNumForm"
size=
"small"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"154px"
>
<el-form-item
label=
"调拨数量:"
prop=
"allocationNum"
>
<el-form-item
label=
"调拨数量:"
prop=
"allocationNum"
>
<el-input
placeholder=
"请输入调拨数量"
v-model=
"infoForm.allocationNum"
style=
"width: 250px"
clearable
@
input=
"handleUpgradeNum"
></el-input>
<el-input
placeholder=
"请输入调拨数量"
v-model=
"infoForm.allocationNum"
clearable
@
input=
"handleUpgradeNum"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
...
src/views/allocation/index.vue
View file @
81079bd
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建调拨
</el-button>
-->
<h2>
调拨列表
</h2>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
...
src/views/check/add.vue
View file @
81079bd
...
@@ -3,9 +3,14 @@
...
@@ -3,9 +3,14 @@
<div
class=
"addWrap"
>
<div
class=
"addWrap"
>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<div
style=
"padding: 15px 0"
>
<div
style=
"padding: 15px 0"
>
<div>
<div
class=
"gl-form-page"
>
<el-form
ref=
"ruleForm"
:model=
"searchForm"
size=
"small"
inline=
"true"
>
<el-form-item
label=
""
>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<el-input
v-model=
"searchForm.searchName"
style=
"width: 200px"
placeholder=
"请输入商品名称/系列"
maxlength=
"20"
clearable
/>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
style=
"marginleft: 15px"
>
查询
</el-button>
</el-form-item>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
>
查询
</el-button>
</el-form>
</div>
</div>
</div>
</div>
<p
class=
"title"
>
盘存
</p>
<p
class=
"title"
>
盘存
</p>
...
@@ -33,8 +38,7 @@
...
@@ -33,8 +38,7 @@
</div>
</div>
<glsx-form
ref=
"addInventoryForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
></glsx-form>
<glsx-form
ref=
"addInventoryForm"
:origin-data=
"editData"
:form-list=
"editForm"
form-ref=
"inveFormRef"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
></glsx-form>
<!-- 盘点 -->
<!-- 盘点 -->
<inventory-num-dialog
:inventory-num-visible=
"inventoryNumVisible"
:record-info=
"recordInfo"
<inventory-num-dialog
:inventory-num-visible=
"inventoryNumVisible"
:record-info=
"recordInfo"
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</div>
</template>
</template>
...
@@ -262,8 +266,7 @@ export default {
...
@@ -262,8 +266,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.d2-container-content
{
.d2-container-content
{
background
:
#fff
;
background
:
#fff
;
padding
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -277,7 +280,7 @@ export default {
...
@@ -277,7 +280,7 @@ export default {
font-weight
:
600
;
font-weight
:
600
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333333
;
color
:
#333333
;
padding
:
17px
0
;
padding
:
17px
0
;
}
}
.leftSpan
{
.leftSpan
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/check/index.vue
View file @
81079bd
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
创建盘点
</el-button>
-->
<h2>
盘点列表
</h2>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportExcel"
>
导出
</el-button>
</div>
</div>
...
@@ -85,20 +86,17 @@ export default {
...
@@ -85,20 +86,17 @@ export default {
{
{
label
:
'盘点单号'
,
label
:
'盘点单号'
,
prop
:
'checkCode'
,
prop
:
'checkCode'
,
width
:
200
},
},
{
{
label
:
'盘点时间'
,
label
:
'盘点时间'
,
prop
:
'checkTime'
,
prop
:
'checkTime'
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
checkTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
checkTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
},
},
{
{
label
:
'盘点人'
,
label
:
'盘点人'
,
prop
:
'operator'
,
prop
:
'operator'
width
:
150
},
},
{
{
label
:
'盘点门店'
,
label
:
'盘点门店'
,
...
@@ -111,7 +109,6 @@ export default {
...
@@ -111,7 +109,6 @@ export default {
{
{
label
:
'凭证'
,
label
:
'凭证'
,
prop
:
'voucherPic'
,
prop
:
'voucherPic'
,
width
:
100
,
addHtml
:
'img'
addHtml
:
'img'
}
}
]
]
...
...
src/views/check/inventoryNumDialog.vue
View file @
81079bd
<!-- 盘点 -->
<!-- 盘点 -->
<
template
>
<
template
>
<GLDialog
title=
"盘点"
<GLDialog
title=
"盘点"
:visible
.
sync=
"inventoryNumVisible"
class=
"inventoryNumDailog"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
:visible
.
sync=
"inventoryNumVisible"
<div
class=
"gl-form-page gl-form-min"
>
class=
"inventoryNumDailog"
<el-form
ref=
"inventoryNumForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"154px"
size=
"small"
>
mode=
"small"
<el-form-item
label=
"盘点数量:"
prop=
"inventoryNum"
>
@
onCancel=
"handleClose"
<el-input
placeholder=
"请输入盘点数量"
v-model=
"infoForm.inventoryNum"
clearable
@
input=
"handleUpgradeNum"
></el-input>
@
onOk=
"handleAddConfirm"
>
<el-form
ref=
"inventoryNumForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"120px"
>
<el-form-item
label=
"盘点数量:"
prop=
"inventoryNum"
>
<el-input
placeholder=
"请输入盘点数量"
v-model=
"infoForm.inventoryNum"
style=
"width:250px"
clearable
@
input=
"handleUpgradeNum"
>
</el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</GLDialog>
</GLDialog>
</
template
>
</
template
>
...
@@ -34,13 +22,11 @@ export default {
...
@@ -34,13 +22,11 @@ export default {
inventoryNum
:
''
inventoryNum
:
''
},
},
oldVal
:
{
oldVal
:
{
inventoryNum
:
''
,
inventoryNum
:
''
},
},
formRules
:
{
formRules
:
{
inventoryNum
:
[
inventoryNum
:
[{
required
:
true
,
message
:
'请输入盘点数量'
,
trigger
:
'change'
}]
{
required
:
true
,
message
:
'请输入盘点数量'
,
trigger
:
'change'
}
]
},
},
selectLoading
:
false
,
selectLoading
:
false
,
// 基本数据
// 基本数据
...
@@ -57,27 +43,20 @@ export default {
...
@@ -57,27 +43,20 @@ export default {
},
},
recordInfo
:
{
recordInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
,
}
},
},
watch
:
{
watch
:
{},
},
created
()
{
created
()
{},
},
components
:
{},
components
:
{},
computed
:
{
computed
:
{
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
handleUpgradeNum
(
newVal
)
{
handleUpgradeNum
(
newVal
)
{
this
.
infoForm
.
inventoryNum
=
limitPrice
(
newVal
,
this
.
oldVal
.
inventoryNum
,
8
,
2
)
this
.
infoForm
.
inventoryNum
=
limitPrice
(
newVal
,
this
.
oldVal
.
inventoryNum
,
8
,
2
)
this
.
oldVal
.
inventoryNum
=
this
.
infoForm
.
inventoryNum
this
.
oldVal
.
inventoryNum
=
this
.
infoForm
.
inventoryNum
...
...
src/views/outbound/index.vue
View file @
81079bd
...
@@ -198,8 +198,8 @@ export default {
...
@@ -198,8 +198,8 @@ export default {
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
reduceDate
)
{
if
(
this
.
searchForm
.
reduceDate
)
{
params
.
reduceStartDateStr
=
new
Date
(
this
.
searchForm
.
reduceDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
reduceStartDateStr
=
dayjs
(
this
.
searchForm
.
reduceDate
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
params
.
reduceEndDateStr
=
new
Date
(
this
.
searchForm
.
reduceDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
+
' 23:59:59'
params
.
reduceEndDateStr
=
dayjs
(
this
.
searchForm
.
reduceDate
[
0
]).
format
(
'YYYY-MM-DD
'
)
+
' 23:59:59'
}
}
delete
params
.
reduceDate
delete
params
.
reduceDate
return
params
return
params
...
...
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