Commit 909a33febb0ef7354c1c73869ab8cd06cb30fb69

Authored by gesilong
1 parent 1d8cda39

commit:修复明细品种名

@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 <uni-list> 43 <uni-list>
44 <uni-list-item title="买断品种"> 44 <uni-list-item title="买断品种">
45 <template v-slot:footer> 45 <template v-slot:footer>
46 - <uni-easyinput :value="item.buyoutCategory" :inputBorder="false" disabled /> 46 + <uni-easyinput :value="item.productName" :inputBorder="false" disabled />
47 </template> 47 </template>
48 </uni-list-item> 48 </uni-list-item>
49 <uni-list-item title="买断数量"> 49 <uni-list-item title="买断数量">
@@ -339,7 +339,7 @@ export default { @@ -339,7 +339,7 @@ export default {
339 settleLineId: item.settleLineId || item.id || '', 339 settleLineId: item.settleLineId || item.id || '',
340 procurementPlanId: item.procurementPlanId || '', 340 procurementPlanId: item.procurementPlanId || '',
341 productId: item.productId || '', 341 productId: item.productId || '',
342 - buyoutCategory: item.buyoutCategory || item.category || '', 342 + productName: item.productName || '',
343 buyoutQuantity, 343 buyoutQuantity,
344 buyoutPrice, 344 buyoutPrice,
345 buyoutAmount: this.calcBuyoutAmount(buyoutPrice, buyoutQuantity), 345 buyoutAmount: this.calcBuyoutAmount(buyoutPrice, buyoutQuantity),
@@ -428,7 +428,7 @@ export default { @@ -428,7 +428,7 @@ export default {
428 settleLineId: item.settleLineId || '', 428 settleLineId: item.settleLineId || '',
429 procurementPlanId: item.procurementPlanId || '', 429 procurementPlanId: item.procurementPlanId || '',
430 productId: item.productId || '', 430 productId: item.productId || '',
431 - buyoutCategory: item.buyoutCategory || '', 431 + productName: item.productName || '',
432 buyoutQuantity: this.toNum(item.buyoutQuantity), 432 buyoutQuantity: this.toNum(item.buyoutQuantity),
433 buyoutPrice: this.toNum(item.buyoutPrice), 433 buyoutPrice: this.toNum(item.buyoutPrice),
434 buyoutAmount: this.toNum(item.buyoutAmount), 434 buyoutAmount: this.toNum(item.buyoutAmount),
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <view v-if="!lineList.length" class="empty-tip">暂无明细</view> 25 <view v-if="!lineList.length" class="empty-tip">暂无明细</view>
26 <view v-for="(item, idx) in lineList" :key="'l-' + (item.id || idx)" class="card"> 26 <view v-for="(item, idx) in lineList" :key="'l-' + (item.id || idx)" class="card">
27 <view class="card-index">第 {{ idx + 1 }} 行</view> 27 <view class="card-index">第 {{ idx + 1 }} 行</view>
28 - <view class="row"><text class="label">买断品种</text><text class="value">{{ safeText(item.buyoutCategory) }}</text></view> 28 + <view class="row"><text class="label">买断品种</text><text class="value">{{ safeText(item.productName) }}</text></view>
29 <view class="row"><text class="label">买断数量</text><text class="value">{{ formatNumber(item.buyoutQuantity) }}</text></view> 29 <view class="row"><text class="label">买断数量</text><text class="value">{{ formatNumber(item.buyoutQuantity) }}</text></view>
30 <view class="row"><text class="label">买断单价</text><text class="value">{{ formatNumber(item.buyoutPrice) }}</text></view> 30 <view class="row"><text class="label">买断单价</text><text class="value">{{ formatNumber(item.buyoutPrice) }}</text></view>
31 <view class="row"><text class="label">买断金额</text><text class="value">{{ formatNumber(item.buyoutAmount) }}</text></view> 31 <view class="row"><text class="label">买断金额</text><text class="value">{{ formatNumber(item.buyoutAmount) }}</text></view>
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 <uni-list> 42 <uni-list>
43 <uni-list-item title="买断品种"> 43 <uni-list-item title="买断品种">
44 <template v-slot:footer> 44 <template v-slot:footer>
45 - <uni-easyinput :value="item.buyoutCategory" :inputBorder="false" disabled /> 45 + <uni-easyinput :value="item.productName" :inputBorder="false" disabled />
46 </template> 46 </template>
47 </uni-list-item> 47 </uni-list-item>
48 <uni-list-item title="买断数量"> 48 <uni-list-item title="买断数量">
@@ -236,7 +236,7 @@ export default { @@ -236,7 +236,7 @@ export default {
236 settleLineId: item.settleLineId || '', 236 settleLineId: item.settleLineId || '',
237 procurementPlanId: item.procurementPlanId || '', 237 procurementPlanId: item.procurementPlanId || '',
238 productId: item.productId || '', 238 productId: item.productId || '',
239 - buyoutCategory: item.buyoutCategory || '', 239 + productName: item.productName || '',
240 buyoutQuantity: item.buyoutQuantity == null ? '' : item.buyoutQuantity, 240 buyoutQuantity: item.buyoutQuantity == null ? '' : item.buyoutQuantity,
241 buyoutPrice: item.buyoutPrice == null ? '' : item.buyoutPrice, 241 buyoutPrice: item.buyoutPrice == null ? '' : item.buyoutPrice,
242 buyoutAmount: item.buyoutAmount == null ? '' : item.buyoutAmount, 242 buyoutAmount: item.buyoutAmount == null ? '' : item.buyoutAmount,
@@ -316,7 +316,7 @@ export default { @@ -316,7 +316,7 @@ export default {
316 settleLineId: item.settleLineId || '', 316 settleLineId: item.settleLineId || '',
317 procurementPlanId: item.procurementPlanId || '', 317 procurementPlanId: item.procurementPlanId || '',
318 productId: item.productId || '', 318 productId: item.productId || '',
319 - buyoutCategory: item.buyoutCategory || '', 319 + productName: item.productName || '',
320 buyoutQuantity: this.toNum(item.buyoutQuantity), 320 buyoutQuantity: this.toNum(item.buyoutQuantity),
321 buyoutPrice: this.toNum(item.buyoutPrice), 321 buyoutPrice: this.toNum(item.buyoutPrice),
322 buyoutAmount: this.toNum(item.buyoutAmount), 322 buyoutAmount: this.toNum(item.buyoutAmount),
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <view v-if="!lineList.length" class="empty-tip">暂无明细</view> 20 <view v-if="!lineList.length" class="empty-tip">暂无明细</view>
21 <view v-for="(item, idx) in lineList" :key="'l-' + (item.id || idx)" class="card"> 21 <view v-for="(item, idx) in lineList" :key="'l-' + (item.id || idx)" class="card">
22 <view class="card-index">第 {{ idx + 1 }} 行</view> 22 <view class="card-index">第 {{ idx + 1 }} 行</view>
23 - <view class="row"><text class="label">买断品种</text><text class="value">{{ safeText(item.buyoutCategory) }}</text></view> 23 + <view class="row"><text class="label">买断品种</text><text class="value">{{ safeText(item.productName) }}</text></view>
24 <view class="row"><text class="label">买断数量</text><text class="value">{{ formatNumber(item.buyoutQuantity) }}</text></view> 24 <view class="row"><text class="label">买断数量</text><text class="value">{{ formatNumber(item.buyoutQuantity) }}</text></view>
25 <view class="row"><text class="label">买断单价</text><text class="value">{{ formatNumber(item.buyoutPrice) }}</text></view> 25 <view class="row"><text class="label">买断单价</text><text class="value">{{ formatNumber(item.buyoutPrice) }}</text></view>
26 <view class="row"><text class="label">买断金额</text><text class="value">{{ formatNumber(item.buyoutAmount) }}</text></view> 26 <view class="row"><text class="label">买断金额</text><text class="value">{{ formatNumber(item.buyoutAmount) }}</text></view>