Ver código fonte

检验优化

dengrui 11 meses atrás
pai
commit
abb8c6719c

+ 3 - 3
src/views/pro-operation/inspect/components/checkForm.vue

@@ -23,7 +23,7 @@
       </el-select>
     </el-form-item>
     <el-form-item label="备注" prop="remark">
-      <el-input type="textarea" v-model="modelValue.remark"></el-input>
+      <el-input type="textarea" v-model="modelValue.remark" />
     </el-form-item>
     <el-form-item label="上传附件">
       <FilesUpload v-model:src="modelValue.filePath" ref="uploadRef" />
@@ -55,8 +55,8 @@ const props = defineProps({
 const SeqArray = ref([]);
 const emits = defineEmits(["update:modelValue", "submit"]);
 const getSeq = async () => {
-  //const { data } = await getSeqData(processStore.scanInfo.id);
-  SeqArray.value = [processStore.useSeqNo]
+  const { data } = await getSeqData(processStore.scanInfo.id);
+  SeqArray.value = data.processWorkSeq;
 };
 onMounted(() => {
   getSeq();

+ 3 - 1
src/views/pro-operation/inspect/index.vue

@@ -180,7 +180,6 @@ const search = ref({
 });
 const downLoad = async (url) => {
   let resUrl = url;
-  console.log(import.meta.env.VITE_APP_API_URL, "res");
   await downloadFile(resUrl, "附件");
 };
 const addCheck = () => {
@@ -215,6 +214,7 @@ const addCheckAsync = async () => {
     operator: checkName.value,
     processId: processStore.scanInfo.id,
     fileName: fileName.value,
+    operationName: processStore.scanInfo.operationName,
   });
   if (code == "200") {
     ElMessage.success("操作成功!");
@@ -241,6 +241,7 @@ const editCheckAsync = async () => {
     operator: checkName.value,
     processId: processStore.scanInfo.id,
     fileName: fileName.value,
+    operationName: processStore.scanInfo.operationName,
   });
   if (code == "200") {
     ElMessage.success("操作成功!");
@@ -276,6 +277,7 @@ const getPagination = async () => {
     operationId: processStore.odersData.operationId,
     workOrderCode: processStore.odersData.workOrderCode,
     seqNo: processStore.useSeqNo,
+    operationName: processStore.scanInfo.operationName,
   });
   search.value.total = data.totalCount;
   dataList.value = data.records;