Ver código fonte

任务的变更令

ZaiZai 1 ano atrás
pai
commit
add0f2d1ba

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240106173327"
+  "value": "20240110151354"
 }

+ 8 - 8
src/views/tasks/components/hc-data/alter-form.vue

@@ -64,7 +64,7 @@
                         <el-form-item label="设计完成时间:" prop="designDate">
                             <el-date-picker
                                 v-model="baseForm.designDate" class="block" format="YYYY-MM-DD" type="date"
-                                value-format="YYYY-MM-DD"  :disabled="!isEdits || tableInfo.status === 2"
+                                value-format="YYYY-MM-DD" :disabled="!isEdits || tableInfo.status === 2"
                                 @blur="currentInputBlur('designDate')" @focus="currentInputFocus('designDate')"
                             />
                         </el-form-item>
@@ -334,7 +334,7 @@ const meterInputBlur = async (row) => {
     const { error, msg, code } = await mainApi.changeTokenMeterUpdate({
         primaryKeyId: row.primaryKeyId,
         taskId: taskInfo.value.id,
-        contractPicture: row.contractPicture
+        contractPicture: row.contractPicture,
     })
     if (!error && code === 200) {
         window.$message.success('更新成功')
@@ -354,7 +354,7 @@ const delChangeNode = (row) => {
             middleMeterInventoryFormId: '',
             changeNodeId: row.primaryKeyId,
             changeFormId: '',
-            type: 1
+            type: 1,
         })
         if (code === 200) {
             window.$message.success('删除成功')
@@ -389,7 +389,7 @@ const tableFormListDel = (row) => {
             middleMeterInventoryFormId: '',
             changeFormId: row.primaryKeyId,
             changeNodeId: primaryKeyId,
-            type: 2
+            type: 2,
         })
         if (code === 200) {
             window.$message.success('删除成功')
@@ -404,7 +404,7 @@ const tableFormListDel = (row) => {
 const isChangeShow = ref(false)
 const changeNodeInfo = ref({})
 const changeShowClick = () => {
-    const {id, primaryKeyId} = changeNodeItem.value
+    const { id, primaryKeyId } = changeNodeItem.value
     if (isNullES(id)) {
         window.$message.warning('请先选择变更申请部位')
         return false
@@ -452,7 +452,7 @@ const totalInputBlur = async (row) => {
         primaryKeyIdMeter: changeNodeItem.value?.primaryKeyId ?? '',
         taskId: taskInfo.value.id ?? '',
         dataId: tableInfo.value.id ?? '',
-        changTotal: val
+        changTotal: val,
     })
     if (!error && code === 200) {
         window.$message.success('更新成功')
@@ -474,7 +474,7 @@ const uploadFormProps = {
 }
 
 const attachmentUpload = () => {
-    if (isEdits.value || tableInfo.status !== 2) {
+    if (isEdits.value || tableInfo.value.status !== 2) {
         uploadFileRef.value?.selectFile()
     } else {
         window.$message.error('当前状态不可上传')
@@ -519,7 +519,7 @@ const attachmentUploadDel = ({ file }, resolve) => {
     delMessage(async () => {
         const { error, code, msg } = await mainApi.removeFile({
             id: file.id,
-            taskId: taskInfo.value.id
+            taskId: taskInfo.value.id,
         })
         if (!error && code === 200) {
             resolve(true)