lipenghui 3 сар өмнө
parent
commit
34563a454f

+ 0 - 1
src/config/axios/service.ts

@@ -183,7 +183,6 @@ service.interceptors.response.use(
       if (requestUrl.includes('rq/')||requestUrl.includes('system/dict')) {
         const localeStore = useLocaleStore()
         const lang = localeStore.getCurrentLocale.lang
-        // const lang = 'en'
         debugger
         if (data&& data.data) {
           if (data.data.list) {

+ 4 - 2
src/views/pms/inspect/order/WriteOrder.vue

@@ -216,7 +216,8 @@ const handleNext =  (tabIndex, deviceId) => {
     return ElMessage.warning('请先完成当前步骤的必填项')
   }
   const current = currentStep.value[tabIndex]
-  const totalSteps = tabs.value[tabIndex].length
+  const totalSteps = tabs.value[tabIndex].orderDetails.length
+  debugger
   if (currentStep.value[tabIndex] < totalSteps - 1) {
     formData[tabIndex][current].indexId = current+1
     formData[tabIndex][current].deviceId = deviceId
@@ -230,7 +231,8 @@ const handleNext =  (tabIndex, deviceId) => {
 }
 
 const isLastStep = (tabIndex) => {
-  return currentStep.value[tabIndex] === tabs.value[tabIndex].length - 1
+  debugger
+  return currentStep.value[tabIndex] === tabs.value[tabIndex].orderDetails.length - 1
 }
 
 // 提交表单