Browse Source

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

master
赵雪冰 1 year 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" :apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain"
:apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :isBusiness="true" :apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :isBusiness="true"
@handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" /> @submitForm="submitForm"
@inputStringBlur="inputStringBlur"/>
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" :isBasic="false" :allSchemas="PurchaseclaimRequestMain.allSchemas" <Detail ref="detailRef" :isBasic="false" :allSchemas="PurchaseclaimRequestMain.allSchemas"
@ -430,6 +431,14 @@
} }
getList() // 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 () => { onMounted(async () => {

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

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

Loading…
Cancel
Save