Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
14ab46c8
authored
Feb 08, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
ERP:增加 ERP 盘点单的实现 100%
parent
0319056e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
src/views/erp/stock/check/components/StockCheckItemForm.vue
+28
-6
No files found.
src/views/erp/stock/check/components/StockCheckItemForm.vue
View file @
14ab46c8
...
...
@@ -52,7 +52,7 @@
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"库存"
min-width=
"100"
>
<el-table-column
label=
"
账面
库存"
min-width=
"100"
>
<
template
#
default=
"{ row }"
>
<el-form-item
class=
"mb-0px!"
>
<el-input
disabled
v-model=
"row.stockCount"
:formatter=
"erpCountInputFormatter"
/>
...
...
@@ -73,19 +73,34 @@
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"
数量"
prop=
"count
"
fixed=
"right"
min-width=
"140"
>
<el-table-column
label=
"
实际库存
"
fixed=
"right"
min-width=
"140"
>
<
template
#
default=
"{ row, $index }"
>
<el-form-item
:prop=
"`$
{$index}.count`" :rules="formRules.count" class="mb-0px!">
<el-form-item
:prop=
"`$
{$index}.actualCount`"
:rules="formRules.actualCount"
class="mb-0px!"
>
<el-input-number
v-model=
"row.
c
ount"
v-model=
"row.
actualC
ount"
controls-position=
"right"
:min=
"0.001"
:precision=
"3"
class=
"!w-100%"
/>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"盈亏数量"
prop=
"count"
fixed=
"right"
min-width=
"110"
>
<
template
#
default=
"{ row, $index }"
>
<el-form-item
:prop=
"`$
{$index}.count`" :rules="formRules.count" class="mb-0px!">
<el-input
disabled
v-model=
"row.count"
:formatter=
"erpCountInputFormatter"
class=
"!w-100%"
/>
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"产品单价"
fixed=
"right"
min-width=
"120"
>
<
template
#
default=
"{ row, $index }"
>
<el-form-item
...
...
@@ -179,6 +194,11 @@ watch(
}
// 循环处理
val
.
forEach
((
item
)
=>
{
if
(
item
.
stockCount
!=
null
&&
item
.
actualCount
!=
null
)
{
item
.
count
=
item
.
actualCount
-
item
.
stockCount
}
else
{
item
.
count
=
undefined
}
item
.
totalPrice
=
erpPriceMultiply
(
item
.
productPrice
,
item
.
count
)
})
},
...
...
@@ -216,7 +236,8 @@ const handleAdd = () => {
productBarCode
:
undefined
,
// 产品条码
productPrice
:
undefined
,
stockCount
:
undefined
,
count
:
1
,
actualCount
:
undefined
,
count
:
undefined
,
totalPrice
:
undefined
,
remark
:
undefined
}
...
...
@@ -253,6 +274,7 @@ const setStockCount = async (row) => {
}
const
stock
=
await
StockApi
.
getStock2
(
row
.
productId
,
row
.
warehouseId
)
row
.
stockCount
=
stock
?
stock
.
count
:
0
row
.
actualCount
=
row
.
stockCount
}
/** 表单校验 */
...
...
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