添加采购单审核操作

This commit is contained in:
yangjun 2025-10-13 09:19:45 +08:00
parent 86a90e42f4
commit f01d8e7349
2 changed files with 24 additions and 2 deletions

View File

@ -65,7 +65,7 @@
<NuInvoicingCgdMainModal ref="registerModal" @success="handleSuccess"></NuInvoicingCgdMainModal> <NuInvoicingCgdMainModal ref="registerModal" @success="handleSuccess"></NuInvoicingCgdMainModal>
<!-- 入库单 --> <!-- 入库单 -->
<NuInvoicingCgdRkdModal ref="rkdModal" @success="handleSuccess"></NuInvoicingCgdRkdModal> <NuInvoicingCgdRkdModal ref="rkdModal" @success="handleSuccess"></NuInvoicingCgdRkdModal>
<!-- 入库单 --> <!-- 详情 -->
<NuInvoicingCgdDetailModal ref="detailModal" @success="handleSuccess"></NuInvoicingCgdDetailModal> <NuInvoicingCgdDetailModal ref="detailModal" @success="handleSuccess"></NuInvoicingCgdDetailModal>
</div> </div>
</template> </template>

View File

@ -101,7 +101,11 @@
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
> >
<template #bodyCell="{ column, text }"> <template #bodyCell="{ column, text, record }">
<template v-if="column.dataIndex === 'purchaseQuantity'">
<a-input-number :value="text" placeholder="请购数量" min="0" max="999" @change="(value) => handleQgslChange(record, 'purchaseQuantity', value)" />
</template>
</template> </template>
</a-table> </a-table>
</a-spin> </a-spin>
@ -180,6 +184,23 @@
}); });
const handleQgslChange = (record, field, value) => {
//
record[field] = value;
if(!value){
record[field] = 0;
}
if(parseInt(record.wlUpperLimit) < value){
record[field] = record.wlUpperLimit;
}
// 2 dataSource
const index = dataSource.value.findIndex(item => item.id === record.id);
if (index !== -1) {
dataSource.value[index] = { ...record };
dataSource.value = [...dataSource.value]; //
}
};
/** /**
* 新增 * 新增
*/ */
@ -257,6 +278,7 @@
if(model.status == '3'){ if(model.status == '3'){
model.cgdType = '9' model.cgdType = '9'
} }
model.cgdInfoList = dataSource.value;
console.log("🚀 ~ submitForm ~ model:", model) console.log("🚀 ~ submitForm ~ model:", model)
await auditInfo(model, isUpdate.value) await auditInfo(model, isUpdate.value)
.then((res) => { .then((res) => {