修复 复制报错
This commit is contained in:
parent
026072da43
commit
c9c56a1806
|
|
@ -1353,7 +1353,7 @@ public class SaleOrderServiceImpl implements SaleOrderService {
|
|||
boolean order1 = BillStatusEnum.isCanEditOrder(billStatus);
|
||||
BillStatusEnum byValue = BillStatusEnum.getByValue(billStatus);
|
||||
AssertUtil.isEmpty(byValue, "订单状态异常");
|
||||
if(!StringUtils.isNotBlank(type)){
|
||||
if(StringUtils.isBlank(type)){
|
||||
AssertUtil.isTrue(!order1, byValue.getName() + "状态不允许修改");
|
||||
}
|
||||
return saleOrderDO;
|
||||
|
|
|
|||
|
|
@ -774,12 +774,14 @@ const addNewBill = () => {
|
|||
|
||||
}
|
||||
|
||||
let copyData = '';
|
||||
/** 初始化 **/
|
||||
onMounted(() => {
|
||||
queryParams.id = '';
|
||||
if (route.query) {
|
||||
queryParams.id = route.query.id ?? '';
|
||||
queryParams.type = route.query._t ?? '';
|
||||
copyData = route.query.type ?? '';
|
||||
}
|
||||
|
||||
})
|
||||
|
|
@ -847,9 +849,11 @@ onMounted(async () => {
|
|||
...formData.value,
|
||||
id: queryParams.id
|
||||
}
|
||||
if(queryParams.type!= undefined){ //复制新增
|
||||
if(copyData){ //复制新增
|
||||
formData.value.contractCode = null;
|
||||
formData.value.bizdate = null;
|
||||
formData.value.id = '';
|
||||
queryParams.id = '';
|
||||
that.tmpFormData.planDate = calculateDateAfterDays(7);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue