|
|
@@ -14,6 +14,7 @@ Page({
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
const appAuth = wx.getStorageSync('auth').woffer;
|
|
|
+ console.log("appAuth", appAuth.options)
|
|
|
let tabsList = [{
|
|
|
label: "详细信息",
|
|
|
icon: "icon-tabxiangxixinxi1"
|
|
|
@@ -265,14 +266,14 @@ Page({
|
|
|
label: "审核"
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
- if (['审核', '复核'].includes(status)) tabbarList.unshift(status == '审核' ? {
|
|
|
+ if (['审核', '复核'].includes(status) && this.data.options.some(v => v.isrecheck)) tabbarList.unshift(status == '审核' ? {
|
|
|
icon: "icon-fuhe",
|
|
|
label: "复核"
|
|
|
} : {
|
|
|
icon: "icon-fanfuhe",
|
|
|
label: "反复核"
|
|
|
});
|
|
|
+
|
|
|
this.setData({
|
|
|
tabbarList,
|
|
|
isLeader,
|
|
|
@@ -325,7 +326,6 @@ Page({
|
|
|
that = this;
|
|
|
switch (detail.label) {
|
|
|
case "编辑":
|
|
|
- console.log(data)
|
|
|
wx.navigateTo({
|
|
|
url: `/packageA/offers/${data.quotedpricetype=='项目报价'?'addProjectOffer':'addSetclientOffer'}?data=${JSON.stringify(data)}`,
|
|
|
})
|
|
|
@@ -527,6 +527,34 @@ Page({
|
|
|
})}&radio=true&principal=true`,
|
|
|
})
|
|
|
break;
|
|
|
+ case "复核":
|
|
|
+ isrecheck(1)
|
|
|
+ break;
|
|
|
+ case "反复核":
|
|
|
+ isrecheck(0)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ function isrecheck(isrecheck) {
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: `是否确定${isrecheck?'复核':'反复核'}报价单`,
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.confirm) _Http.basic({
|
|
|
+ "id": 20231206102404,
|
|
|
+ "content": {
|
|
|
+ "sa_quotedpriceid": detail.sa_quotedpriceid,
|
|
|
+ isrecheck
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ wx.showToast({
|
|
|
+ title: res.msg == '成功' ? `${ isrecheck ? '复核' : '反复核'}成功` : res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ if (res.msg == '成功') this.getDetail(true)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
/* 更换负责人 */
|