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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
60 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
>
<GLDialog
title=
"调拨"
mode=
"small"
:visible
.
sync=
"allocationNumVisible"
class=
"allocationNumDailog"
okText=
"确定"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
<el-form
ref=
"allocationNumForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"120px"
>
<GLDialog
title=
"调拨"
:visible
.
sync=
"allocationNumVisible"
class=
"allocationNumDailog"
okText=
"确定"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
<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-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>
</div>
</GLDialog>
</
template
>
...
...
src/views/allocation/index.vue
View file @
81079bd
...
...
@@ -4,7 +4,8 @@
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<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>
</div>
...
...
src/views/check/add.vue
View file @
81079bd
...
...
@@ -3,9 +3,14 @@
<div
class=
"addWrap"
>
<div
class=
"d2-container-content"
>
<div
style=
"padding: 15px 0"
>
<div>
<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>
<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-form-item>
<el-button
@
click=
"handleSearch"
size=
"small"
type=
"primary"
>
查询
</el-button>
</el-form>
</div>
</div>
<p
class=
"title"
>
盘存
</p>
...
...
@@ -33,8 +38,7 @@
</div>
<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"
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
<inventory-num-dialog
:inventory-num-visible=
"inventoryNumVisible"
:record-info=
"recordInfo"
v-if=
"inventoryNumVisible"
@
dialogClose=
"dialogClose"
/>
</div>
</template>
...
...
@@ -262,11 +266,10 @@ export default {
}
</
script
>
<
style
scoped
>
.d2-container-content
{
.d2-container-content
{
background
:
#fff
;
padding
:
20px
;
margin-bottom
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
}
.count-txt
{
font-weight
:
700
;
...
...
@@ -277,7 +280,7 @@ export default {
font-weight
:
600
;
font-size
:
16px
;
color
:
#333333
;
padding
:
17px
0
;
padding
:
17px
0
;
}
.leftSpan
{
display
:
inline-block
;
...
...
src/views/check/index.vue
View file @
81079bd
...
...
@@ -4,7 +4,8 @@
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<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>
</div>
...
...
@@ -85,20 +86,17 @@ export default {
{
label
:
'盘点单号'
,
prop
:
'checkCode'
,
width
:
200
},
{
label
:
'盘点时间'
,
prop
:
'checkTime'
,
width
:
150
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
checkTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'盘点人'
,
prop
:
'operator'
,
width
:
150
prop
:
'operator'
},
{
label
:
'盘点门店'
,
...
...
@@ -111,7 +109,6 @@ export default {
{
label
:
'凭证'
,
prop
:
'voucherPic'
,
width
:
100
,
addHtml
:
'img'
}
]
...
...
src/views/check/inventoryNumDialog.vue
View file @
81079bd
<!-- 盘点 -->
<
template
>
<GLDialog
title=
"盘点"
:visible
.
sync=
"inventoryNumVisible"
class=
"inventoryNumDailog"
mode=
"small"
@
onCancel=
"handleClose"
@
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>
<GLDialog
title=
"盘点"
:visible
.
sync=
"inventoryNumVisible"
class=
"inventoryNumDailog"
@
onCancel=
"handleClose"
@
onOk=
"handleAddConfirm"
>
<div
class=
"gl-form-page gl-form-min"
>
<el-form
ref=
"inventoryNumForm"
:model=
"infoForm"
:rules=
"formRules"
label-width=
"154px"
size=
"small"
>
<el-form-item
label=
"盘点数量:"
prop=
"inventoryNum"
>
<el-input
placeholder=
"请输入盘点数量"
v-model=
"infoForm.inventoryNum"
clearable
@
input=
"handleUpgradeNum"
></el-input>
</el-form-item>
</el-form>
</div>
</GLDialog>
</
template
>
...
...
@@ -34,13 +22,11 @@ export default {
inventoryNum
:
''
},
oldVal
:
{
inventoryNum
:
''
,
inventoryNum
:
''
},
formRules
:
{
inventoryNum
:
[
{
required
:
true
,
message
:
'请输入盘点数量'
,
trigger
:
'change'
}
]
inventoryNum
:
[{
required
:
true
,
message
:
'请输入盘点数量'
,
trigger
:
'change'
}]
},
selectLoading
:
false
,
// 基本数据
...
...
@@ -57,27 +43,20 @@ export default {
},
recordInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
}
,
default
:
()
=>
{}
}
},
watch
:
{
},
watch
:
{},
created
()
{
},
created
()
{},
components
:
{},
computed
:
{
computed
:
{
},
},
mounted
()
{
},
mounted
()
{},
methods
:
{
handleUpgradeNum
(
newVal
)
{
this
.
infoForm
.
inventoryNum
=
limitPrice
(
newVal
,
this
.
oldVal
.
inventoryNum
,
8
,
2
)
this
.
oldVal
.
inventoryNum
=
this
.
infoForm
.
inventoryNum
...
...
src/views/outbound/index.vue
View file @
81079bd
...
...
@@ -198,8 +198,8 @@ export default {
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
reduceDate
)
{
params
.
reduceStartDateStr
=
new
Date
(
this
.
searchForm
.
reduceDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
reduceEndDateStr
=
new
Date
(
this
.
searchForm
.
reduceDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-
'
)
+
' 23:59:59'
params
.
reduceStartDateStr
=
dayjs
(
this
.
searchForm
.
reduceDate
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
params
.
reduceEndDateStr
=
dayjs
(
this
.
searchForm
.
reduceDate
[
0
]).
format
(
'YYYY-MM-DD
'
)
+
' 23:59:59'
}
delete
params
.
reduceDate
return
params
...
...
@@ -253,7 +253,7 @@ export default {
handleReset
()
{
this
.
searchForm
=
{
reduceDate
:
''
,
reduceDate
:
''
,
eventType
:
''
,
upgradeGoodsName
:
''
,
yqMerchantId
:
''
,
...
...
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