Browse Source

提交修复

Hello小健 3 weeks ago
parent
commit
66639d6b13
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/pages/scanLotno/scanLotno.vue

+ 7 - 7
src/pages/scanLotno/scanLotno.vue

@@ -56,7 +56,7 @@
       </uni-forms-item>
     </uni-forms>
     <view class="button-group">
-      <button type="info" @click="reset">重置</button>
+      <button type="default" @click="reset">重置</button>
       <button type="default" @click="checkOrder" :loading="loading">
         <uni-icons v-if="!loading" type="search" size="18"></uni-icons>
         查看运单
@@ -234,9 +234,9 @@ const checkOrder = async () => {
   })
 
   loading.value = false
-  if (res.data.code == 1) {
+  if (res.code == 1) {
     messageType.value = 'success'
-    messageText.value = res.data.msg
+    messageText.value = res.msg
     messageRef.value.open()
     // uni.setStorageSync('waybills', res.data.data.waybills)
     uni.navigateTo({
@@ -279,12 +279,12 @@ const onsubmit = async () => {
   })
 
   loading.value = false
-  if (res.data.code == 1) {
+  if (res.code == 1) {
     messageType.value = 'success'
-    messageText.value = res.data.msg
+    messageText.value = res.msg
     messageRef.value.open()
 
-    if (res.data.data.labels && res.data.data.labels.length > 0) {
+    if (res.data.labels && res.data.labels.length > 0) {
       console.log('有打印面单')
       // res.data.data.labels.map((url: string) => {
       // 	let path = fullUrl(url);
@@ -303,7 +303,7 @@ const onsubmit = async () => {
     // getHistory()
   } else {
     messageType.value = 'error'
-    messageText.value = res.data.msg
+    messageText.value = res.msg
     messageRef.value.open()
     // const historyItem = {
     //   orderNum: valiFormData.value.orderNum,