Commit 0b033c9c authored by heduo's avatar heduo

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

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