Commit 0b033c9c authored by heduo's avatar heduo

fix(system): 华中阜外实验动物

parent 55d06923
...@@ -138,7 +138,8 @@ wepy.page({ ...@@ -138,7 +138,8 @@ wepy.page({
platformOptions: [], platformOptions: [],
activeTab: 0, activeTab: 0,
activeTitle: '', activeTitle: '',
platform: '' platform: '',
requestTask: null
}, },
computed: {}, computed: {},
methods: { methods: {
...@@ -211,12 +212,12 @@ wepy.page({ ...@@ -211,12 +212,12 @@ wepy.page({
wx.getStorage({ wx.getStorage({
key: 'user_info', key: 'user_info',
success: (res) => { success: (res) => {
this.userInfo = JSON.parse(res.data); this.userInfo = JSON.parse(res.data);
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}); });
const requestURL = wx.getStorageSync('requestURL') const requestURL = wx.getStorageSync('requestURL')
wx.request({ this.requestTask = wx.request({
url: `${requestURL}/approveOpera/listUnApprove`, url: `${requestURL}/approveOpera/listUnApprove`,
method: 'post', method: 'post',
header: { header: {
...@@ -266,7 +267,7 @@ wepy.page({ ...@@ -266,7 +267,7 @@ wepy.page({
title: '加载中' title: '加载中'
}); });
const requestURL = wx.getStorageSync('requestURL') const requestURL = wx.getStorageSync('requestURL')
wx.request({ this.requestTask = wx.request({
url: `${requestURL}/approveOpera/listUnApproveAnm`, url: `${requestURL}/approveOpera/listUnApproveAnm`,
method: 'post', method: 'post',
header: { header: {
...@@ -309,6 +310,9 @@ wepy.page({ ...@@ -309,6 +310,9 @@ wepy.page({
onChange(event) { onChange(event) {
this.activeTitle = event.$wx.detail.title this.activeTitle = event.$wx.detail.title
this.orderList = [] this.orderList = []
if (this.requestTask) {
this.requestTask.abort()
}
if (event.$wx.detail.title === '试剂耗材') { if (event.$wx.detail.title === '试剂耗材') {
this.getList() this.getList()
} else if (event.$wx.detail.title === '实验动物') { } else if (event.$wx.detail.title === '实验动物') {
......
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
<div>商品名称:{{ item.name }}</div> <div>商品名称:{{ item.name }}</div>
<div>单价:{{ item.price }}元</div> <div>单价:{{ item.price }}元</div>
</div> </div>
<div>{{ '品牌: '+ item.brand +';货号:'+ item.goodsNo +';品种:' + item.spec2 }}</div> <div>{{ '品牌: '+ item.brand +';货号:'+ item.goodsNo +';品种:' + item.spec }}</div>
<div>{{ '规格: '+ item.spec +';等级:'+ item.grade +';年龄:' + item.old }}</div> <div>{{ '规格: '+ item.spec2 +';等级:'+ item.grade +';年龄:' + item.old }}</div>
<div>{{ '体重: '+ item.weight +';性别:'+ item.sex }}</div> <div>{{ '体重: '+ item.weight +';性别:'+ item.sex }}</div>
</div> </div>
......
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