设计资料

This commit is contained in:
2025-08-12 19:01:04 +08:00
parent aecff98642
commit 8c024e6269
18 changed files with 2894 additions and 218 deletions

View File

@ -28,7 +28,7 @@
label-width="100px"
class="space-y-4"
>
<div class="grid grid-cols-1 gap-4">
<div class="grid grid-cols-1 gap-4">
<el-row>
<el-col :span="12">
<el-form-item label="申请单编号" prop="formNo">
@ -149,7 +149,7 @@ const flowCodeOptions = [
{
value: currentProject.value?.id + '_designchanged',
label: '设计变更审批'
},
}
];
const flowCode = ref<string>('');
@ -234,7 +234,7 @@ const getInfo = () => {
nextTick(async () => {
const res = await getDesignChange(routeParams.value.id);
Object.assign(form.value, res.data);
if(form.value.changeReason.length >0){
if (form.value.changeReason.length > 0) {
form.value.changeReason = form.value.changeReason.split(',');
}
loading.value = false;
@ -245,8 +245,8 @@ const getInfo = () => {
/** 提交按钮 */
const submitForm = (status1: string) => {
status.value = status1;
var changeReason=''
if(form.value.changeReason.length >0){
var changeReason = '';
if (form.value.changeReason.length > 0) {
changeReason = form.value.changeReason.join(',');
}
leaveFormRef.value?.validate(async (valid: boolean) => {
@ -254,9 +254,9 @@ const submitForm = (status1: string) => {
buttonLoading.value = true;
var res;
if (form.value.id) {
res = await updateDesignChange({...form.value,changeReason}).finally(() => (buttonLoading.value = false));
res = await updateDesignChange({ ...form.value, changeReason }).finally(() => (buttonLoading.value = false));
} else {
res = await addDesignChange({...form.value,changeReason}).finally(() => (buttonLoading.value = false));
res = await addDesignChange({ ...form.value, changeReason }).finally(() => (buttonLoading.value = false));
}
if (res.code == 200) {
dialog.visible = false;