|
@@ -20,6 +20,10 @@
|
|
<view class="operator" v-if="pageData.operatorName!=null && pageData.operatorName!=''">
|
|
<view class="operator" v-if="pageData.operatorName!=null && pageData.operatorName!=''">
|
|
<text class="operator_title">操作人<text class="operator_text">{{pageData.operatorName}}</text></text>
|
|
<text class="operator_title">操作人<text class="operator_text">{{pageData.operatorName}}</text></text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 查看处方内容按钮 -->
|
|
|
|
+ <view class="detail">
|
|
|
|
+ <view @click="showDetail" class="showDetail_button">查看处方内容<uni-icons type="calendar" color="#FFFFFF"></uni-icons></view>
|
|
|
|
+ </view>
|
|
<!-- 检查结果 -->
|
|
<!-- 检查结果 -->
|
|
<uni-card padding="0" spacing="0" v-for="(item,index) in pageData.resData.results" class="djList">
|
|
<uni-card padding="0" spacing="0" v-for="(item,index) in pageData.resData.results" class="djList">
|
|
<view class="djList_title">
|
|
<view class="djList_title">
|
|
@@ -153,7 +157,11 @@
|
|
// 任务状态(编辑为2,保存为1)
|
|
// 任务状态(编辑为2,保存为1)
|
|
taskStatus: '',
|
|
taskStatus: '',
|
|
taskStatusData: '',
|
|
taskStatusData: '',
|
|
- buttonDisabled: true
|
|
|
|
|
|
+ buttonDisabled: true,
|
|
|
|
+ // 处方信息
|
|
|
|
+ detail:{},
|
|
|
|
+ // 药品
|
|
|
|
+ medicines:[]
|
|
})
|
|
})
|
|
|
|
|
|
const formData = reactive({
|
|
const formData = reactive({
|
|
@@ -172,6 +180,15 @@
|
|
detail: '',
|
|
detail: '',
|
|
unHgStateName: ''
|
|
unHgStateName: ''
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ // 查看处方内容
|
|
|
|
+ const showDetail=()=>{
|
|
|
|
+ console.log(pageData.detail);
|
|
|
|
+ console.log(pageData.medicines);
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/ypczk/zkTask/prescriptionInfo/prescriptionInfo?detail='+encodeURIComponent(JSON.stringify(pageData.detail))+'&medicines='+encodeURIComponent(JSON.stringify(pageData.medicines))
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
// 不合格数
|
|
// 不合格数
|
|
const bhgNumber = () => {
|
|
const bhgNumber = () => {
|
|
@@ -422,6 +439,10 @@
|
|
http.get("app-api/taskDetail/get", formData).then(res => {
|
|
http.get("app-api/taskDetail/get", formData).then(res => {
|
|
pageData.djList = res.results
|
|
pageData.djList = res.results
|
|
pageData.cfbh = res.detail.ptwybm
|
|
pageData.cfbh = res.detail.ptwybm
|
|
|
|
+
|
|
|
|
+ pageData.detail=res.detail
|
|
|
|
+ pageData.medicines=res.medicines
|
|
|
|
+
|
|
saveTaskData.detail = res.results
|
|
saveTaskData.detail = res.results
|
|
pageData.resData = res
|
|
pageData.resData = res
|
|
pageData.djList.forEach(item => {
|
|
pageData.djList.forEach(item => {
|
|
@@ -459,6 +480,8 @@
|
|
pageData.totalProgress = res.results.length
|
|
pageData.totalProgress = res.results.length
|
|
pageData.taskStatus = 2
|
|
pageData.taskStatus = 2
|
|
pageData.operatorName = res.detail.creatorName
|
|
pageData.operatorName = res.detail.creatorName
|
|
|
|
+ pageData.detail=res.detail
|
|
|
|
+ pageData.medicines=res.medicines
|
|
res.results.forEach(item => {
|
|
res.results.forEach(item => {
|
|
// 检查内容(分数与总分相同为合格,反之不合格)
|
|
// 检查内容(分数与总分相同为合格,反之不合格)
|
|
if (item.score == item.totalScore && !item.isDj) {
|
|
if (item.score == item.totalScore && !item.isDj) {
|