问题修改

This commit is contained in:
z 2025-07-20 20:38:44 +08:00
parent b8e4cec878
commit f132d277f6
17 changed files with 141 additions and 104 deletions

View File

@ -341,6 +341,14 @@ private StorageLogService storageLogService;
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Long createStorage(StorageSaveReqVO createReqVO) { public Long createStorage(StorageSaveReqVO createReqVO) {
if (createReqVO.getStockType()==1){
for (StorageMatSaveReqVO item : createReqVO.getMatItemDOList()) {
if (item.getStorageOkQty().compareTo(BigDecimal.ZERO) <= 0) {
throw exception(new ErrorCode(400, "本次入库数量小于等于0,请确认"));
}
}
}
if (createReqVO.getStockType()==1&&createReqVO.getStockInType()==1){ if (createReqVO.getStockType()==1&&createReqVO.getStockInType()==1){
for (StorageMatSaveReqVO item : createReqVO.getMatItemDOList()) { for (StorageMatSaveReqVO item : createReqVO.getMatItemDOList()) {
PurchaseOrderNoDetailDO purchaseOrderNoDetailDO = purchaseOrderNoDetailMapper.selectById(item.getPurchaseOrderNoDetailId()); PurchaseOrderNoDetailDO purchaseOrderNoDetailDO = purchaseOrderNoDetailMapper.selectById(item.getPurchaseOrderNoDetailId());
@ -381,6 +389,16 @@ private StorageLogService storageLogService;
public void updateStorage(StorageSaveReqVO updateReqVO) { public void updateStorage(StorageSaveReqVO updateReqVO) {
// 校验存在 // 校验存在
validateStorageExists(updateReqVO.getId()); validateStorageExists(updateReqVO.getId());
if (updateReqVO.getStockType()==1){
List<StorageMatDO> storageMatDOS = storageMatMapper.selectMatByStorckID(updateReqVO.getId());
if (ObjectUtil.isNotEmpty(storageMatDOS)) {
for (StorageMatDO item : storageMatDOS) {
if (item.getStorageOkQty().compareTo(BigDecimal.ZERO) <= 0) {
throw exception(new ErrorCode(400, "本次入库数量小于等于0,请确认"));
}
}
}
}
if (updateReqVO.getStockType()==1&&updateReqVO.getStockInType()==1){ if (updateReqVO.getStockType()==1&&updateReqVO.getStockInType()==1){
List<StorageMatDO> storageMatDOS = storageMatMapper.selectMatByStorckID(updateReqVO.getId()); List<StorageMatDO> storageMatDOS = storageMatMapper.selectMatByStorckID(updateReqVO.getId());
if (ObjectUtil.isNotEmpty(storageMatDOS)){ if (ObjectUtil.isNotEmpty(storageMatDOS)){

View File

@ -259,6 +259,16 @@
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="goback" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="submitForm" type="success" :disabled="formLoading" size="large"
> </el-button
>
<el-button @click="submitForm" type="primary" :disabled="formLoading" size="large"
> </el-button
>
<el-button @click="submitForm" type="danger" :disabled="formLoading" size="large"
> </el-button
>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -299,18 +309,9 @@
</el-row> </el-row>
</el-card> </el-card>
</el-form> </el-form>
<div class="text-center hl-footer"> <!-- <div class="text-center hl-footer">-->
<el-button @click="goback" size="large"> </el-button> <!-- -->
<el-button @click="submitForm" type="success" :disabled="formLoading" size="large" <!-- </div>-->
> </el-button
>
<el-button @click="submitForm" type="primary" :disabled="formLoading" size="large"
> </el-button
>
<el-button @click="submitForm" type="danger" :disabled="formLoading" size="large"
> </el-button
>
</div>
</el-card> </el-card>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">

View File

@ -325,6 +325,9 @@ link type="primary" size="small"
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="closeForm" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="saveForm(3)" v-if="isShow" type="primary" size="large"> </el-button>
<el-button @click="saveForm(4)" v-if="isShow" type="danger" size="large"> </el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -366,11 +369,9 @@ link type="primary" size="small"
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="closeForm" size="large"> </el-button> <!-- -->
<el-button @click="saveForm(3)" v-if="isShow" type="primary" size="large"> </el-button> <!-- </div>-->
<el-button @click="saveForm(4)" v-if="isShow" type="danger" size="large"> </el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->

View File

@ -280,6 +280,8 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :limit="10" :action="upl
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="closeForm" size="large" style="margin-left: 5rem"> </el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -321,9 +323,8 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :limit="10" :action="upl
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="closeForm" size="large"> </el-button> <!-- </div>-->
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->

View File

@ -293,6 +293,12 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :limit="10" :action="upl
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="closeForm" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4"> </el-button>
<el-button @click="saveForm" type="primary" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
<el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -334,14 +340,9 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :limit="10" :action="upl
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="closeForm" size="large"> </el-button> <!-- -->
<el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4"> </el-button> <!-- </div>-->
<el-button @click="saveForm" type="primary" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
<el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->

View File

@ -459,6 +459,12 @@ link type="primary" size="small" :disabled="formData.status == 2"
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="saveForm" v-if="formData.status !== 2 && formData.status !== 3" type="primary" size="large" style="margin-left: 5rem">
</el-button>
<el-button
@click="submitForm" type="success" size="large"
v-if="formData.status !== 2 && formData.status !== 3">提交</el-button>
<el-button @click="closeForm" v-if="formData.status == 2" size="large">取消提交</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -488,17 +494,12 @@ link type="primary" size="small" :disabled="formData.status == 2"
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<!-- <el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4"> <!-- <el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4">
</el-button> --> </el-button> -->
<el-button @click="saveForm" v-if="formData.status !== 2 && formData.status !== 3" type="primary" size="large">
</el-button> <!-- </div>-->
<el-button
@click="submitForm" type="success" size="large"
v-if="formData.status !== 2 && formData.status !== 3">提交</el-button>
<el-button @click="closeForm" v-if="formData.status == 2" size="large">取消提交</el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
<materials ref="matOpenFormRef" @success="getList" /> <materials ref="matOpenFormRef" @success="getList" />

View File

@ -454,6 +454,8 @@ link type="primary" size="small" :disabled="formData.status == 2 || formData.sta
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="saveForm" type="primary" size="large" style="margin-left: 5rem">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -483,15 +485,14 @@ link type="primary" size="small" :disabled="formData.status == 2 || formData.sta
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<!-- <el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4"> <!-- <el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4">
</el-button> --> </el-button> -->
<el-button @click="saveForm" type="primary" size="large">
</el-button>
<!-- <el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">提交</el-button> <!-- <el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">提交</el-button>
<el-button @click="closeForm" v-if="formData.status == 2" size="large">取消提交</el-button> --> <el-button @click="closeForm" v-if="formData.status == 2" size="large">取消提交</el-button> -->
</div> <!-- </div>-->
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
<materials ref="matOpenFormRef" @success="getList" /> <materials ref="matOpenFormRef" @success="getList" />

View File

@ -128,7 +128,7 @@ const queryParams = reactive({
taxRatio: undefined, taxRatio: undefined,
estimatedPrice: undefined, estimatedPrice: undefined,
actualPrice: undefined, actualPrice: undefined,
status: 2, status: 3,
receivingStatus: undefined, receivingStatus: undefined,
submitUserId: undefined, submitUserId: undefined,
submitTime: [], submitTime: [],

View File

@ -596,6 +596,8 @@
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="closeForm" size="large" style="margin-left: 5rem"> </el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -637,10 +639,9 @@
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="closeForm" size="large"> </el-button>
</div> <!-- </div>-->
</el-card> </el-card>
</template> </template>

View File

@ -596,6 +596,12 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :action="uploadUrl" :hea
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4" style="margin-left: 5rem">
</el-button>
<el-button @click="saveForm" type="primary" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
<el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -637,15 +643,10 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :action="uploadUrl" :hea
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<!-- <el-button @click="closeForm" size="large"> </el-button> --> <!-- <el-button @click="closeForm" size="large"> </el-button> -->
<el-button @click="deleteForm" type="danger" size="large" v-if="formData.status == 1 || formData.status == 4">
</el-button> <!-- </div>-->
<el-button @click="saveForm" type="primary" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
<el-button @click="submitForm" type="success" size="large" v-if="formData.status !== 2 && formData.status !== 3">
</el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
<materials ref="matOpenFormRef" @success="getList" /> <materials ref="matOpenFormRef" @success="getList" />

View File

@ -64,6 +64,8 @@
<el-card class="hl-card-info" v-if="active != 'create'"> <el-card class="hl-card-info" v-if="active != 'create'">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="goback" size="large" style="margin-left: 5rem"> </el-button>
<el-button v-if="active != 'detail'" type="primary" @click="submitForm('SAVE')" :disabled="formLoading" size="large"> </el-button>
</template> </template>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
@ -91,10 +93,9 @@
</el-row> </el-row>
</el-card> </el-card>
</el-form> </el-form>
<div class="text-center hl-footer"> <!-- <div class="text-center hl-footer">-->
<el-button @click="goback" size="large"> </el-button> <!-- -->
<el-button v-if="active != 'detail'" type="primary" @click="submitForm('SAVE')" :disabled="formLoading" size="large"> </el-button> <!-- </div>-->
</div>
</el-card> </el-card>
<ProjectSubDialog ref="projectSubDialog" @success="handleSelectedProjectOrderSub" /> <ProjectSubDialog ref="projectSubDialog" @success="handleSelectedProjectOrderSub" />

View File

@ -308,6 +308,15 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="isPrint()" type="primary" size="large" :loading="printLoading" >打印</el-button>
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 2" size="large">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -348,17 +357,9 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
</el-row> </el-row>
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="() => router.go(-1)" size="large"> </el-button> <!-- -->
<el-button @click="isPrint()" type="primary" size="large" :loading="printLoading" >打印</el-button> <!-- </div>-->
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 2" size="large">
</el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
<materials ref="matOpenFormRef" @success="getList" /> <materials ref="matOpenFormRef" @success="getList" />
@ -788,8 +789,7 @@ const getList1 = async (arrMat) => {
} }
queryParams.whId=formData.value.whId; queryParams.whId=formData.value.whId;
console.log(formData.value.matItemDOList)
console.log(arrMat)
for (const row of arrMat) { for (const row of arrMat) {
if ( if (
formData.value.matItemDOList.filter( formData.value.matItemDOList.filter(

View File

@ -338,6 +338,13 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel" size="large">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -391,16 +398,10 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
</span> </span>
</template> </template>
</el-dialog> </el-dialog>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="() => router.go(-1)" size="large"> </el-button>
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel" size="large">
</el-button>
<!-- <el-button @click="handleStatus(4)" type="success" v-if="btnCancel" size="large">审核</el-button> --> <!-- <el-button @click="handleStatus(4)" type="success" v-if="btnCancel" size="large">审核</el-button> -->
</div> <!-- </div>-->
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
<materials ref="matOpenFormRef" @success="getList" /> <materials ref="matOpenFormRef" @success="getList" />

View File

@ -323,6 +323,15 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(4)" type="success" v-if="btnok " size="large">审核</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 4 " size="large">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -363,17 +372,9 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
</el-row> </el-row>
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="() => router.go(-1)" size="large"> </el-button> <!-- -->
<el-button @click="submitForm" type="success" v-if="btnSave" size="large"> <!-- </div>-->
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(4)" type="success" v-if="btnok " size="large">审核</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 4 " size="large">
</el-button>
</div>
</el-card> </el-card>
<el-dialog v-model="centerDialogVisible" title="提示" width="30%" center> <el-dialog v-model="centerDialogVisible" title="提示" width="30%" center>
<span> <span>

View File

@ -205,6 +205,12 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
const submitForm = async () => { const submitForm = async () => {
for (let i = 0; i < multipleSelection.value.length; i++) {
if (multipleSelection.value[i].purchaseRemAmount==null||multipleSelection.value[i].purchaseRemAmount<=0){
message.error(multipleSelection.value[i].matName+"剩余数量等于0,请确认")
return
}
}
// //
formLoading.value = true formLoading.value = true
try { try {

View File

@ -235,6 +235,13 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :action="uploadUrl" :hea
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem"> </el-button>
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel" size="large">
</el-button>
</template> </template>
<el-row justify="center"> <el-row justify="center">
@ -301,15 +308,9 @@ ref="matUploadRef" :file-list="matUploadFiles" multiple :action="uploadUrl" :hea
</el-dialog> </el-dialog>
</el-card> </el-card>
</el-form> </el-form>
<div class="hl-footer text-center"> <!-- <div class="hl-footer text-center">-->
<el-button @click="() => router.go(-1)" size="large"> </el-button> <!-- -->
<el-button @click="submitForm" type="success" v-if="btnSave" size="large"> <!-- </div>-->
</el-button>
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">
</el-button>
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel" size="large">
</el-button>
</div>
</el-card> </el-card>
<!-- 表单弹窗物料列表 --> <!-- 表单弹窗物料列表 -->
@ -734,7 +735,7 @@ const handleSub = async (pNum, scope) => {
// scope.row.matSub = Number(pNum) - Number(scope.row.matRest) // scope.row.matSub = Number(pNum) - Number(scope.row.matRest)
// console.log(typeof scope.row.matSub) // console.log(typeof scope.row.matSub)
if(scope.row.storageOkQty < 0){ if(scope.row.storageOkQty < 0){
scope.row.storageOkQty = 0; scope.row.storageOkQty = 0;
} }
const matSubValue = Number(pNum) - Number(scope.row.matRest) const matSubValue = Number(pNum) - Number(scope.row.matRest)

View File

@ -117,11 +117,13 @@
<template #footer> <template #footer>
</template> </template>
</el-dialog> </el-dialog>
</el-card> </el-card>
<el-card class="hl-card-info"> <el-card class="hl-card-info">
<template #header> <template #header>
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span> <div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
<el-button @click="activeOpinionDialogVisible = false" style="margin-left: 5rem"> </el-button>
<el-button type="primary" @click="submitForm('AUDIT') && (activeOpinionDialogVisible = false)"> </el-button>
</template> </template>
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
@ -184,10 +186,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<template #footer> <template #footer>
<span class="dialog-footer"> <!-- <span class="dialog-footer">-->
<el-button @click="activeOpinionDialogVisible = false"> </el-button> <!-- -->
<el-button type="primary" @click="submitForm('AUDIT') && (activeOpinionDialogVisible = false)"> </el-button> <!-- </span>-->
</span>
</template> </template>
</el-dialog> </el-dialog>
</el-form> </el-form>