|
@@ -84,11 +84,6 @@ |
|
@@ -84,11 +84,6 @@ |
|
84
|
<uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" disabled placeholder="不可编辑" />
|
84
|
<uni-easyinput v-model="item.quantity" type="number" :inputBorder="false" disabled placeholder="不可编辑" />
|
|
85
|
</template>
|
85
|
</template>
|
|
86
|
</uni-list-item>
|
86
|
</uni-list-item>
|
|
87
|
- <uni-list-item title="本次锁价数量">
|
|
|
|
88
|
- <template v-slot:footer>
|
|
|
|
89
|
- <uni-easyinput v-model="item.currentQuantity" type="number" :inputBorder="false" placeholder="请输入本次锁价数量" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'currentQuantity', 3)" />
|
|
|
|
90
|
- </template>
|
|
|
|
91
|
- </uni-list-item>
|
|
|
|
92
|
<uni-list-item title="单价">
|
87
|
<uni-list-item title="单价">
|
|
93
|
<template v-slot:footer>
|
88
|
<template v-slot:footer>
|
|
94
|
<uni-easyinput v-model="item.unitPrice" type="digit" :inputBorder="false" placeholder="请输入单价" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'unitPrice', 0)" />
|
89
|
<uni-easyinput v-model="item.unitPrice" type="digit" :inputBorder="false" placeholder="请输入单价" @input="onImmediateChange(idx)" @blur="onNumberBlur(idx, 'unitPrice', 0)" />
|
|
@@ -268,7 +263,6 @@ export default { |
|
@@ -268,7 +263,6 @@ export default { |
|
268
|
materialCode: v.materialCode || '',
|
263
|
materialCode: v.materialCode || '',
|
|
269
|
status: v.status || '',
|
264
|
status: v.status || '',
|
|
270
|
quantity: v.productQuantity || v.quantity || '',
|
265
|
quantity: v.productQuantity || v.quantity || '',
|
|
271
|
- currentQuantity: v.currentQuantity === 0 ? 0 : (v.currentQuantity || ''),
|
|
|
|
272
|
unitPrice: v.unitPrice || '',
|
266
|
unitPrice: v.unitPrice || '',
|
|
273
|
amountExcludingTax: v.amountExcludingTax || 0,
|
267
|
amountExcludingTax: v.amountExcludingTax || 0,
|
|
274
|
totalAmount: v.totalAmount || 0,
|
268
|
totalAmount: v.totalAmount || 0,
|
|
@@ -348,7 +342,6 @@ export default { |
|
@@ -348,7 +342,6 @@ export default { |
|
348
|
this.items = this.items.map((it, i) => ({
|
342
|
this.items = this.items.map((it, i) => ({
|
|
349
|
...it,
|
343
|
...it,
|
|
350
|
quantity: '',
|
344
|
quantity: '',
|
|
351
|
- currentQuantity: '',
|
|
|
|
352
|
unitPrice: '',
|
345
|
unitPrice: '',
|
|
353
|
amountExcludingTax: 0
|
346
|
amountExcludingTax: 0
|
|
354
|
}))
|
347
|
}))
|
|
@@ -357,13 +350,11 @@ export default { |
|
@@ -357,13 +350,11 @@ export default { |
|
357
|
const selected = this.items.filter(it => it.locked).map(it => {
|
350
|
const selected = this.items.filter(it => it.locked).map(it => {
|
|
358
|
const raw = { ...(it.raw || {}) }
|
351
|
const raw = { ...(it.raw || {}) }
|
|
359
|
const qty = this.toNumber(it.quantity)
|
352
|
const qty = this.toNumber(it.quantity)
|
|
360
|
- const curQtyRaw = it.currentQuantity
|
|
|
|
361
|
const price = this.toNumber(it.unitPrice)
|
353
|
const price = this.toNumber(it.unitPrice)
|
|
362
|
const total = this.toNumber(it.totalAmount)
|
354
|
const total = this.toNumber(it.totalAmount)
|
|
363
|
const excl = this.toNumber(it.amountExcludingTax)
|
355
|
const excl = this.toNumber(it.amountExcludingTax)
|
|
364
|
if (Object.prototype.hasOwnProperty.call(raw, 'productQuantity')) raw.productQuantity = qty
|
356
|
if (Object.prototype.hasOwnProperty.call(raw, 'productQuantity')) raw.productQuantity = qty
|
|
365
|
else raw.quantity = qty
|
357
|
else raw.quantity = qty
|
|
366
|
- raw.currentQuantity = (curQtyRaw === '' || curQtyRaw === null || curQtyRaw === undefined) ? null : this.toNumber(curQtyRaw)
|
|
|
|
367
|
raw.unitPrice = price
|
358
|
raw.unitPrice = price
|
|
368
|
raw.totalAmount = total
|
359
|
raw.totalAmount = total
|
|
369
|
raw.amountExcludingTax = excl
|
360
|
raw.amountExcludingTax = excl
|
|
@@ -803,4 +794,4 @@ export default { |
|
@@ -803,4 +794,4 @@ export default { |
|
803
|
height: 60rpx;
|
794
|
height: 60rpx;
|
|
804
|
align-items: center;
|
795
|
align-items: center;
|
|
805
|
}
|
796
|
}
|
|
806
|
-</style> |
797
|
+</style> |