diff --git a/src/views/report/edit/controlPrice.vue b/src/views/report/edit/controlPrice.vue index 8043f1e..9bbac1c 100644 --- a/src/views/report/edit/controlPrice.vue +++ b/src/views/report/edit/controlPrice.vue @@ -72,6 +72,27 @@ const isDisabled = ref(false) const isAuditButton = ref(false) const datePicker = ref() const serviceTime = ref([]) +const editAll = ref(false) +const auditEdit = () => { + // 进入“全部可编辑模式” + editAll.value = !editAll.value + // 报审信息那块也解锁 + isDisabled.value = !isDisabled.value +} + + + +const shouldDisable = (val) => { + // 全局编辑模式 & 进窗恢复:都应允许编辑(除了 'audit' 控制区不要放开) + if (val !== 'audit') { + if (editAll.value) return false; + if (formData.value.project.isRecessed == 1) return false; + } + // 否则按原先节点规则禁用 + return isAuditEdit(val); +}; + + //获取详情 @@ -441,7 +462,8 @@ const removeFun = async () => { } //提交审批 const approveFun = async () => { - if (!['initial', 'review'].includes(formData.value.project.node)) { + debugger + if (!['initial'].includes(formData.value.project.node)) { const promise = await saveFun(); if (promise) { finishDialog.value = true @@ -521,6 +543,10 @@ let fileIndex = ref(0); const showUpFileDialog = (index)=>{ upFileDialog.value=true; fileIndex.value=index; + const key = activeName.value; + const list = formData.value.files[key] || (formData.value.files[key] = []); + const row = list[index]; + if (row && !Array.isArray(row.fileData)) row.fileData = []; } let importLoading; function beforeUpload() { @@ -542,7 +568,7 @@ const addFileSubmit = ()=>{ if(!formData.value.files[activeName.value]){ formData.value.files[activeName.value] = [] } - formData.value.files[activeName.value].push(fileTable.value) + formData.value.files[activeName.value].push({ fileData: [], ...fileTable.value }); addFileDialog.value=false; addFileTableLoading.value=false; } @@ -954,14 +980,14 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - + formData.value.review.thirdlyMoney,(val)=>{ - + - @@ -1063,7 +1089,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ formData.value.review.thirdlyMoney,(val)=>{ - + @@ -1081,13 +1107,13 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - - @@ -1095,7 +1121,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ formData.value.review.thirdlyMoney,(val)=>{ - + @@ -1113,13 +1139,13 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - - @@ -1127,7 +1153,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ formData.value.review.thirdlyMoney,(val)=>{ - + @@ -1145,13 +1171,13 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - - @@ -1160,7 +1186,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - @@ -1168,7 +1194,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - 已勘察 未勘察 @@ -1177,7 +1203,7 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ - + 已对审 未对审 @@ -1274,7 +1300,8 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ 关闭 审批记录 - 删除 + 编辑 + 删除 结束 提交 驳回 @@ -1285,8 +1312,8 @@ watch(()=>formData.value.review.thirdlyMoney,(val)=>{ 关闭 - 提交 - 保存 + 提交 + 保存 取消 审批记录