| | |
| | | <el-input-number :step="1" :min="0" style="width: 100%" v-model="scope.row.boxNum" @change="() => calculateTotalPrice(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="单价(元)/件" prop="taxInclusiveUnitPrice" width="150"> |
| | | <el-table-column label="单价(美元)/件" prop="taxInclusiveUnitPrice" width="150"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.taxInclusiveUnitPrice" @change="() => calculateTotalPrice(scope.row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="单价(美元)/件" prop="dollarPrice" width="150"> |
| | | <template #default="scope"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="scope.row.dollarPrice"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="入库日期" prop="inboundDate" width="180"> |
| | |
| | | taxRate: null, |
| | | taxExclusiveTotalPrice: 0, |
| | | boxNum: 0, |
| | | dollarPrice: 0 |
| | | }); |
| | | }; |
| | | |
| | |
| | | proxy.$modal.msgError(`第${i + 1}行单价(元)需大于0`) |
| | | return |
| | | } |
| | | const dollarPrice = Number(product?.dollarPrice ?? 0); |
| | | if (!Number.isFinite(dollarPrice) || dollarPrice <= 0) { |
| | | proxy.$modal.msgError(`第${i + 1}行单价(美元)需大于0`) |
| | | return |
| | | } |
| | | if (!product.inboundDate) { |
| | | proxy.$modal.msgError(`第${i + 1}行请选择入库日期`) |
| | | return |
| | |
| | | boxNum:Number(product.boxNum), |
| | | cartonSpecifications: product.cartonSpecifications, |
| | | url: product.url||'', |
| | | dollarPrice: Number(product.dollarPrice || 0), |
| | | })); |
| | | loading.value = true |
| | | if (operationType.value === 'edit') { |
| | |
| | | boxNum: Number(row?.boxNum ?? 0), |
| | | cartonSpecifications: row?.cartonSpecifications ?? '', |
| | | url: row?.url ?? '', |
| | | dollarPrice: Number(row?.dollarPrice ?? 0), |
| | | }] |
| | | } |
| | | } |