Jelajahi Sumber

fix:修改钎焊完工逻辑

lupeng 1 Minggu lalu
induk
melakukan
6ddc4fcb7d
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 2 2
      src/api/braze/index.ts
  2. 2 2
      src/views/pro-steps/components/zhiyin.vue

+ 2 - 2
src/api/braze/index.ts

@@ -17,9 +17,9 @@ export function operationBrazeQuery(operationId: string | number) {
  * @param id
  * @returns
  */
-export function processBrazeQuery(operationId: string | number) {
+export function processBrazeQuery(operationId: string | number,processId:string | number) {
   return request({
-    url: `/api/v1/processBraze/query/${operationId}`,
+    url: `/api/v1/processBraze/query/${operationId}/${processId}`,
     method: "get",
   });
 }

+ 2 - 2
src/views/pro-steps/components/zhiyin.vue

@@ -114,7 +114,7 @@ const priorityColor=(isComplete)=>{
     }
 }
 const getBrazeOption = () => {
-  processBrazeQuery(proStore.odersData.operationId).then((res) => {
+  processBrazeQuery(proStore.odersData.operationId,proStore.scanInfo.id).then((res) => {
     brazeOption.value = res.data;
     if (res.data) {
       selectBraze.value = res.data[0].id;
@@ -193,7 +193,7 @@ const finishAll = async () => {
     }
     await processBrazeCompleteAll(params).then(
       (data)=>{
-        if(data.code==='200'){
+        if(data.code=='200'){
           getBrazeOption();
         }
       }