|
@@ -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,
|