|
@@ -67,7 +67,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { useProcessStore } from "@/store";
|
|
|
-import {operationBrazeQuery, processBrazePage, processBrazeUpdate} from '@/api/braze'
|
|
|
+import {operationBrazeQuery, processBrazePage1, processBrazeUpdate} from '@/api/braze'
|
|
|
const proStore = useProcessStore();
|
|
|
const selectBraze = ref([])
|
|
|
const brazeOption = ref([])
|
|
@@ -75,23 +75,27 @@ const baseUrl = import.meta.env.VITE_APP_UPLOAD_URL;
|
|
|
const getBrazeOption = () => {
|
|
|
operationBrazeQuery(proStore.odersData.operationId).then(res => {
|
|
|
brazeOption.value = res.data
|
|
|
+ if(res.data){
|
|
|
+ selectBraze.value = res.data[0].id
|
|
|
+ handleSelectChange(res.data[0].id)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
getBrazeOption()
|
|
|
|
|
|
const tableData = ref([])
|
|
|
const handleSelectChange = (brazeId) => {
|
|
|
- console.log()
|
|
|
imageUrl.value = brazeOption.value.find(item => item.id == brazeId).filePath
|
|
|
const data = {
|
|
|
brazeId,
|
|
|
+ workOrderCode: proStore.odersData.workOrderCode,
|
|
|
processId: proStore.scanInfo.id,
|
|
|
orders: [{
|
|
|
column: 'created',
|
|
|
isAsc: true
|
|
|
}]
|
|
|
}
|
|
|
- processBrazePage(data).then(res => {
|
|
|
+ processBrazePage1(data).then(res => {
|
|
|
tableData.value = res.data.records
|
|
|
})
|
|
|
}
|