7.14 提交

This commit is contained in:
zoujiandong
2025-07-14 17:16:32 +08:00
parent 5a56083d0c
commit c542b5e0ed
37 changed files with 1267 additions and 733 deletions
+81 -22
View File
@@ -1,17 +1,19 @@
// index.js
const app = getApp()
import {caseList,getExpertSign,getProjectStatus,getBankInfo,getfangxinSite} from "../../api/api"
import {caseList,getExpertSign,getProjectStatus,getBankInfo,getfangxinSite,limitCount,getDeal} from "../../api/api"
import {throttle} from "../../utils/util"
import {createStoreBindings} from "mobx-miniprogram-bindings"
import {store} from '../../store/store.js'
Page({
data: {
showDelDraft:false,
authMessage:'',
showAuth:false,
editId:'',
showDraft:true,
reason:'',
status_title:'病例状态',
casetype_title:'病例类型',
casetype_title:'治疗类型',
draftTime:'',
caseDraft:{},
hasDraft:false,
@@ -24,11 +26,11 @@ Page({
{ text: '已通过', value: 1,select:false },
],
typeList:[{
text:'四次及以上疗程化',
text:'DPMAS及联合模式',
value:1,
select:false,
},{
text:'早前期(INR≤1.5)',
text:'CA280及联合模式',
value:2,
select:false,
}],
@@ -51,9 +53,44 @@ Page({
pageSize:10,
img_host:app.hostConfig().imghost
},
handleGetDeal(){
getDeal().then(res=>{
this.setData({
authMessage:res,
showAuth:true
})
})
},
getAuthStatus(){
getProjectStatus().then(res=>{
getBankInfo().then(result=>{
if(result){
getExpertSign().then(response=>{
if(response.taskStatus==2){
this.handleGetDeal()
}
})
}else{
this.handleGetDeal()
}
})
})
},
handleGetProjectStatus(){
getProjectStatus().then(res=>{
this.handleGetSign()
limitCount({
type:4
}).then(result=>{
if(result<4){
this.handleGetSign()
}else{
wx.showToast({
title: '每人参与病例征集不得超过20例',
})
}
})
}).catch((error)=>{
if(error.code==30007){
wx.showToast({
@@ -67,6 +104,19 @@ Page({
}
})
},
onConfirmAuth(){
this.setData({
showAuth:false
});
app.method.navigateTo({
url: '/case/pages/bankCard/bankCard',
})
},
onCancleAuth(){
this.setData({
showAuth:false
});
},
onConfirmDelDraft(){
wx.setStorageSync('caseDraft', '');
this.setData({
@@ -110,11 +160,11 @@ Page({
}),
goCreate:throttle(function(){
//this.handleGetProjectStatus();
this.handleGetProjectStatus();
app.method.navigateTo({
url: '/case/pages/createCase/createCase',
})
// app.method.navigateTo({
// url: '/case/pages/createCase/createCase',
// })
}),
goAgreement:throttle(function(event){
@@ -132,15 +182,19 @@ Page({
getBank(){
getBankInfo().then(res=>{
if(!res){
wx.showToast({
title: '请先绑定信息',
icon:"none",
duration:3000
this.handleGetDeal();
// this.setData({
// showAgree:true
// })
// wx.showToast({
// title: '请先绑定信息',
// icon:"none",
// duration:3000
})
app.method.navigateTo({
url: '/case/pages/bankCard/bankCard',
})
// })
// app.method.navigateTo({
// url: '/case/pages/bankCard/bankCard',
// })
}else{
this.setData({
showAgree:true
@@ -156,6 +210,9 @@ getBank(){
url: '/case/pages/createCase/createCase',
})
}else{
// this.setData({
// showAuth:true
// })
this.getBank();
}
}).catch(error=>{
@@ -228,10 +285,10 @@ getBank(){
this.setData({
showAgree:false
});
this.getSite();
// app.method.navigateTo({
// url:'/case/pages/agreement/agreement'
// })
//this.getSite();
app.method.navigateTo({
url:'/case/pages/bankCard/bankCard'
})
},
onCancelAgree(){
this.setData({
@@ -409,12 +466,14 @@ getBank(){
fields: [,"active"],
actions: ["updateActive"],
});
this.getAuthStatus();
},
onUnload() {
this.storeBindings.destroyStoreBindings();
},
onShow(){
console.log("show")
this.updateActive('list');
let nav=this.selectComponent('#nav');
nav.clearKeyWord();
+3 -1
View File
@@ -63,7 +63,9 @@
</view>
</view>
<dialog showDialog="{{showCheck}}" showCancel="{{showCancel}}" bind:confirm="onConfirm" bind:cancel="onCancel" title="审核未通过" confirmText="去修改" showTip="{{true}}" message="{{reason}}"></dialog>
<dialog showDialog="{{showAgree}}" showCancel="{{showCancel}}" bind:confirm="onConfirmAgree" bind:cancel="onCancelAgree" title="项目协议" confirmText="查看" message="创建病例前需签署《人工肝病例登记系统》电子协议书"></dialog>
<dialog showDialog="{{showAgree}}" bind:confirm="onConfirmAgree" bind:cancel="onCancelAgree" title="项目协议" confirmText="查看" message="创建病例前需签署《人工肝病例登记系统》电子协议书"></dialog>
<dialog showDialog="{{showAuth}}" bind:confirm="onConfirmAuth"
showCancel="{{showCancel}}"bind:cancel="onCancelAuth" confirmText="去认证" showCancel="{{false}}" message="{{authMessage}}"></dialog>
<dialog showDialog="{{showDelDraft}}" showCancel="{{showCancel}}" bind:confirm="onConfirmDelDraft" bind:cancel="onCancelDelDraft" title="注意" confirmText="确定" message="确定删除草稿?"></dialog>
<van-overlay show="{{ showEntryTip }}" zIndex="9999999">
<view class="wrapper">