Pārlūkot izejas kodu

审核附件bug修复

zhuqingsong 1 gadu atpakaļ
vecāks
revīzija
dbbc467537

+ 1 - 3
src/views/InformationAudit/enterWarehouseAudit/detail.vue

@@ -223,9 +223,7 @@ const handleBack = () => {
223 223
 // 附件相关
224 224
 const getFileInfo = (res: any, file: any, fileList: any) => {
225 225
   if (fileList.length > 0) {
226
-    formData.filePart = fileList[0].response
227
-      ? fileList[0].response.data.bucketName + "/" + fileList[0].response.data.fileName
228
-      : "";
226
+    formData.filePart = fileList[0].response ? fileList[0].response.data.fileName : "";
229 227
     formData.fileName = fileList[0].name;
230 228
   }
231 229
 };

+ 4 - 4
src/views/InformationAudit/enterWarehouseAudit/index.vue

@@ -54,7 +54,7 @@
54 54
       <el-table-column prop="quantity" label="数量" header-align="center" align="center" />
55 55
       <el-table-column prop="inboundTime" label="入库日期" align="center" width="115">
56 56
         <template #default="scope">
57
-          {{ scope.row.inboundTime.substring(0, 7) }}
57
+          {{ scope.row.inboundTime.length > 8 ? scope.row.inboundTime.substring(0, 7) : "" }}
58 58
         </template>
59 59
       </el-table-column>
60 60
       <el-table-column prop="status" label="当前审批节点" header-align="center" align="center">
@@ -132,8 +132,8 @@ let { tableData, deptType } = toRefs(data);
132 132
 
133 133
 // 获取列表
134 134
 const getList = () => {
135
-  console.log(store.state.searchQuery)
136
-  store.commit('SET_SEARCH_QUERY', {
135
+  console.log(store.state.searchQuery);
136
+  store.commit("SET_SEARCH_QUERY", {
137 137
     enterAudit: {
138 138
       warehouse: formData.value.warehouse,
139 139
       inboundType: formData.value.inboundType,
@@ -199,7 +199,7 @@ const handleShow = (row: any) => {
199 199
 };
200 200
 
201 201
 onMounted(() => {
202
-  formData.value = store.state.searchQuery.searchQuery.enterAudit || {}
202
+  formData.value = store.state.searchQuery.searchQuery.enterAudit || {};
203 203
   getList();
204 204
   deptType = userInfo.value.deptType ? userInfo.value.deptType : "";
205 205
 });