应收管理是否完成修改为手动修改
This commit is contained in:
parent
2d7e1df4a8
commit
dcf7f10ba7
@ -50,9 +50,6 @@ public class OrderYsServiceImpl implements OrderYsService {
|
|||||||
public void updateOrderYs(OrderYsSaveReqVO updateReqVO) {
|
public void updateOrderYs(OrderYsSaveReqVO updateReqVO) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateOrderYsExists(updateReqVO.getId());
|
validateOrderYsExists(updateReqVO.getId());
|
||||||
if (updateReqVO.getCgYishou().compareTo(updateReqVO.getCgYs())>=0){
|
|
||||||
updateReqVO.setCgTypee(2);
|
|
||||||
}
|
|
||||||
// 更新
|
// 更新
|
||||||
OrderYsDO updateObj = BeanUtils.toBean(updateReqVO, OrderYsDO.class);
|
OrderYsDO updateObj = BeanUtils.toBean(updateReqVO, OrderYsDO.class);
|
||||||
orderYsMapper.updateById(updateObj);
|
orderYsMapper.updateById(updateObj);
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
clearable
|
clearable
|
||||||
class="!w-240px"
|
class="!w-240px"
|
||||||
disabled
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in getIntDictOptions(DICT_TYPE.HELI_YINGFU_MONEY)"
|
v-for="dict in getIntDictOptions(DICT_TYPE.HELI_YINGFU_MONEY)"
|
||||||
@ -105,6 +104,13 @@ const emit = defineEmits(['success']) // 定义 success 事件,用于操作成
|
|||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
// 校验表单
|
// 校验表单
|
||||||
await formRef.value.validate()
|
await formRef.value.validate()
|
||||||
|
if (formData.value.cgYishou<formData.value.cgYs&&formData.value.cgTypee==2){
|
||||||
|
message.error("已收金额小于应收金额,回款未完成,请确认")
|
||||||
|
return
|
||||||
|
}else if (formData.value.cgYishou>=formData.value.cgYs&&formData.value.cgTypee==1){
|
||||||
|
message.error("已收金额大于等于应收金额,回款已完成,请确认")
|
||||||
|
return
|
||||||
|
}
|
||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
<el-button link type="primary" @click="openForm(scope.row.id)" v-if="scope.row.status!='3'">
|
<el-button link type="primary" @click="openForm(scope.row.id)" v-if="scope.row.status!='3'">
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button link type="primary" @click="complete(scope.row.id)" v-if="scope.row.status=='2'">
|
<el-button link type="primary" @click="complete(scope.row.id)" v-if="scope.row.status=='2'||scope.row.status=='1'">
|
||||||
生产完成
|
生产完成
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown @command="(command) => handleCommand(command, scope.row.id, scope.row.code)">
|
<el-dropdown @command="(command) => handleCommand(command, scope.row.id, scope.row.code)">
|
||||||
|
@ -255,8 +255,8 @@ ref="subFormRef" :model="formData.taskDispatchDetails" :rules="subFormRules"
|
|||||||
v-loading="subFormLoading" label-width="0">
|
v-loading="subFormLoading" label-width="0">
|
||||||
<el-table :data="formData.taskDispatchDetails" class="hl-table">
|
<el-table :data="formData.taskDispatchDetails" class="hl-table">
|
||||||
<el-table-column fixed label="序号" align="center" type="index" width="80" />
|
<el-table-column fixed label="序号" align="center" type="index" width="80" />
|
||||||
<el-table-column fixed label="序号名称" align="center" prop="procedureId" width="180">
|
<el-table-column fixed label="工序名称" align="center" prop="procedureId" width="180">
|
||||||
<template #header> <span class="hl-table_header">*</span>序号名称</template>
|
<template #header> <span class="hl-table_header">*</span>工序名称</template>
|
||||||
<template #default="{ row, $index }">
|
<template #default="{ row, $index }">
|
||||||
<el-form-item :prop="`${$index}.procedureId`" :rules="subFormRules.procedureId" class="mb-0px!">
|
<el-form-item :prop="`${$index}.procedureId`" :rules="subFormRules.procedureId" class="mb-0px!">
|
||||||
<ProcedureSelect
|
<ProcedureSelect
|
||||||
|
Loading…
Reference in New Issue
Block a user