|
@@ -25,22 +25,7 @@ Page({
|
|
|
icon: "icon-tabcaozuojilu1",
|
|
|
model: "#remitVoucher"
|
|
|
}],
|
|
|
- tabbarsList: [{
|
|
|
- label: "编辑",
|
|
|
- icon: "icon-tabxiangxixinxi1"
|
|
|
- }, {
|
|
|
- label: "提交",
|
|
|
- icon: "icon-tabxiansuo"
|
|
|
- }, {
|
|
|
- label: "审核",
|
|
|
- icon: "icon-tabcaozuojilu1"
|
|
|
- }, {
|
|
|
- label: "退回",
|
|
|
- icon: "icon-tabgenjinjilu"
|
|
|
- }, {
|
|
|
- label: "删除",
|
|
|
- icon: "icon-tabgenjinjilu"
|
|
|
- },]
|
|
|
+ tabbarsList: []
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
@@ -62,9 +47,34 @@ Page({
|
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
|
});
|
|
|
+
|
|
|
+ let tabbarsList = []
|
|
|
+ if (res.data.status == '新建') tabbarsList = [{
|
|
|
+ label: "编辑",
|
|
|
+ icon: "icon-tabxiangxixinxi1"
|
|
|
+ },{
|
|
|
+ label: "提交",
|
|
|
+ icon: "icon-tabxiansuo",
|
|
|
+ },{
|
|
|
+ label: "删除",
|
|
|
+ icon: "icon-tabgenjinjilu"
|
|
|
+ }]
|
|
|
+ if (res.data.status == '提交') tabbarsList = [{
|
|
|
+ label: "审核",
|
|
|
+ icon: "icon-tabcaozuojilu1"
|
|
|
+ },{
|
|
|
+ label: "退回",
|
|
|
+ icon: "icon-tabgenjinjilu"
|
|
|
+ }]
|
|
|
+ if (res.data.status == '审核') tabbarsList = [{
|
|
|
+ label: "退回",
|
|
|
+ icon: "icon-tabgenjinjilu"
|
|
|
+ }]
|
|
|
+
|
|
|
this.setPreview(res.data);
|
|
|
this.setData({
|
|
|
detail: res.data,
|
|
|
+ tabbarsList,
|
|
|
loading: false
|
|
|
});
|
|
|
if (init) this.partialRenewal(true)
|