外包材

This commit is contained in:
2026-01-08 10:57:11 +08:00
parent afc569e771
commit e05a972dbd
17 changed files with 131 additions and 77 deletions

View File

@@ -141,7 +141,7 @@
try {
let res = await insideCodeInsert(e)
if (res) {
this.dataList.push(res.data)
this.dataList = [...this.dataList, ...res.data]
} else {
this.dataList = []
}

View File

@@ -16,7 +16,7 @@
</view>
<view class="zd-row border-bottom">
<view class="zd-col-7">
<span class="filter_label">总数量</span>
<span class="filter_label filter_input_disabled">总数量</span>
</view>
<view class="zd-col-24">
<input type="number" v-model="num" class="filter_input filter_input_disabled" disabled>
@@ -124,7 +124,7 @@
try {
let res = await getPalletAssembly(e)
if (res) {
this.dataList.push(res.data)
this.dataList = [...this.dataList, ...res.data]
this.num = this.dataList.reduce((sum, item) => sum + Number(item.qty), 0)
} else {
this.dataList = []

View File

@@ -152,7 +152,7 @@
try {
let res = await directlyOutCodeInsert(e)
if (res) {
this.dataList.push(res.data)
this.dataList = [...this.dataList, ...res.data]
this.dataList.forEach(e => {
e.initialQty = e.qty
})