|
@@ -83,6 +83,7 @@
|
|
|
size="mini"
|
|
|
style="width: 100%"
|
|
|
placeholder="请输入单价"
|
|
|
+ :disabled="true"
|
|
|
@input="validateFloatInput($event, scope.row, 'unitPrice')"
|
|
|
@blur="handleUnitPriceBlur(scope.row, scope.$index)"
|
|
|
/>
|
|
@@ -566,6 +567,7 @@ export default {
|
|
|
mainItemCategoryName: item.MainItemCategory_Name,
|
|
|
mainItemCategoryId: item.MainItemCategory_ID,
|
|
|
mainItemCategoryCode: item.MainItemCategory_Code,
|
|
|
+ unitPrice: item.Item_Price || '0',
|
|
|
description: item.Item_Description || '',
|
|
|
warehouseId: item.Warehouse_ID,
|
|
|
warehouseCode: item.Warehouse_Code,
|
|
@@ -633,6 +635,7 @@ export default {
|
|
|
* @private
|
|
|
*/
|
|
|
prepareMaterialDetailData(material) {
|
|
|
+ console.log('material', material)
|
|
|
return {
|
|
|
id: this.generateUniqueId(),
|
|
|
itemId: material.itemId,
|
|
@@ -651,7 +654,7 @@ export default {
|
|
|
orgId: material.orgId,
|
|
|
orgCode: material.orgCode,
|
|
|
orgName: material.orgName,
|
|
|
- unitPrice: 0, // 默认单价为0,需要用户手动输入
|
|
|
+ unitPrice: material.unitPrice || 0,
|
|
|
orderQuantity: 1,
|
|
|
confirmQuantity: 1,
|
|
|
availableQuantity: 0,
|
|
@@ -659,7 +662,7 @@ export default {
|
|
|
taxAmount: 0,
|
|
|
totalAmount: 0,
|
|
|
itemStatus: MaterialDetailStatus.UNCONFIRMED,
|
|
|
- dataSource: MaterialDetailDataSource.REMOTE,
|
|
|
+ dataSource: MaterialDetailDataSource.IMPORTED,
|
|
|
isDeletable: true,
|
|
|
remark: ''
|
|
|
}
|