Commit 273c48ff authored by 李苏's avatar 李苏 💬

提示调整

parent 6ff68cc5
...@@ -16,10 +16,12 @@ function filterSpace(data){ ...@@ -16,10 +16,12 @@ function filterSpace(data){
} }
function filter(e) { function filter(e) {
if (e.data.success) { if (e.data.success) {
tip.tips=''
return e.data.data return e.data.data
} else { } else {
tip.toast(e.data.message || "操作失败") tip.toast(e.data.message || "操作失败")
tip.tips=e.data.message|| "操作失败"
} }
} }
......
...@@ -42,6 +42,10 @@ ...@@ -42,6 +42,10 @@
<br> <br>
批号:{{apiShow.ph}} 批号:{{apiShow.ph}}
</view> </view>
<view v-show="tips" style="color: red;width: 100%;height: 20px;line-height: 20px;text-align: center;margin-top: 10px;">
{{tips}}
</view>
</view> </view>
<!-- 移入库位 --> <!-- 移入库位 -->
<!-- <view class="padding-xs bg-white" v-show="index!=null&&code!=''" > --> <!-- <view class="padding-xs bg-white" v-show="index!=null&&code!=''" > -->
...@@ -55,9 +59,11 @@ ...@@ -55,9 +59,11 @@
<script> <script>
import {apiGetjhList,apijhPptzdByKw,apiYckw,apiYrkw} from '@/api/dlapi.js'; import {apiGetjhList,apijhPptzdByKw,apiYckw,apiYrkw} from '@/api/dlapi.js';
import tip from '@/common/util/tip.js'
export default { export default {
data() { data() {
return { return {
tips:'',
index:null, index:null,
app:this, app:this,
current: 0, current: 0,
...@@ -158,8 +164,14 @@ ...@@ -158,8 +164,14 @@
}else{ }else{
this.code='' this.code=''
this.apiCode='' this.apiCode=''
this.tips=tip.tips
setTimeout(()=>{
this.tips=''
},5000)
} }
}).finally(res=>{
}) })
}).catch(res=>{ }).catch(res=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment