Browse Source

采购索赔金额自动计算功能

master
zhaoxuebing 10 months ago
parent
commit
7052a2622d
  1. 11
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  2. 31
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

11
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -35,7 +35,8 @@
:apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain"
:apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :isBusiness="true"
@handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" />
@submitForm="submitForm"
@inputStringBlur="inputStringBlur"/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="false" :allSchemas="PurchaseclaimRequestMain.allSchemas"
@ -430,6 +431,14 @@
}
getList() //
}
const inputStringBlur =(headerItem,index,row) =>{
console.log("headerItem:",headerItem)
console.log("row:",row)
if(headerItem == 'singlePrice'){
// =
row.amount = row.qty * row.singlePrice
}
}
/** 初始化 **/
onMounted(async () => {

31
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -371,6 +371,13 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150
},
},
{
label: '批次',
field: 'batch',
table: {
width: 150
},
},
{
label: '物品代码',
field: 'itemCode',
@ -409,35 +416,29 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
}
},
{
label: '批次',
field: 'batch',
table: {
width: 150
},
},
{
label: '原因',
field: 'reason',
// dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
label: '单价',
field: 'singlePrice',
table: {
width: 150
},
},
{
label: '单价',
field: 'singlePrice',
label: '金额',
field: 'amount',
table: {
width: 150
},
},
{
label: '金额',
field: 'amount',
label: '原因',
field: 'reason',
// dictType: DICT_TYPE.PURCHASE_RETURN_REASON,
dictClass: 'string',
table: {
width: 150
},
},
{
label: '单据号',
field: 'number',

Loading…
Cancel
Save