|
@@ -9,7 +9,7 @@
|
|
|
</view>
|
|
|
<view class="sub_title">
|
|
|
<view class="cfbh">
|
|
|
- <text class="cfbh_title">处方编号<text class="cfbh_text">{{pageData.cfbh}}</text></text>
|
|
|
+ <text class="cfbh_title">处方编号<text class="cfbh_text">{{pageData.yncfbh}}</text></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="send">
|
|
@@ -35,12 +35,13 @@
|
|
|
</uni-td>
|
|
|
<uni-td align="center" style="width: 200rpx;">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
- <span v-if="index==0? true : false">
|
|
|
+ <uni-easyinput v-model.number="item.totalScore" :clearable="false" :disabled="pageData.disabledStatus" type="digit" @change="changeNewYz(item)"></uni-easyinput>
|
|
|
+ <!-- <span v-if="index==0? true : false">
|
|
|
<uni-easyinput v-model.number="item.totalScore" :clearable="false" :disabled="pageData.disabledStatus" type="digit" @change="changeYz(item)"></uni-easyinput>
|
|
|
</span>
|
|
|
<span v-else>
|
|
|
- {{item.totalScore}}
|
|
|
- </span>
|
|
|
+ {{item.totalScore}}
|
|
|
+ </span> -->
|
|
|
<!-- <text>{{"(>"+(item.score!=null?item.score:0)+"g)"}}</text> -->
|
|
|
</view>
|
|
|
</uni-td>
|
|
@@ -103,6 +104,7 @@ const pageData = reactive({
|
|
|
operatorName:'',
|
|
|
operatorStatus:'',
|
|
|
cfbh:'',
|
|
|
+ yncfbh:'',
|
|
|
detailList: [],
|
|
|
dpList:[],
|
|
|
// 图片列表
|
|
@@ -139,6 +141,20 @@ const changeSz=(item)=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const changeNewYz = (item) => {
|
|
|
+ if(item.totalScore != "0" || item.totalScore != 0){
|
|
|
+ if(item.score!=null && item.totalScore!=null){
|
|
|
+ // 误差率 = (实重 - 应重) / 应重*100%
|
|
|
+ item.resultContent=Math.abs(((item.score-item.totalScore)/item.totalScore).toFixed(2)*100) || 0
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: '应重不能为0,请重新输入',
|
|
|
+ icon:'error'
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const changeYz=(item)=>{
|
|
|
if(item.totalScore!="0" || item.totalScore!=0){
|
|
|
if(item.score!=null && item.totalScore!=null){
|
|
@@ -457,8 +473,8 @@ onLoad((type)=>{
|
|
|
if(type.state!=null){
|
|
|
pageData.operatorStatus=type.state
|
|
|
}
|
|
|
- if(type.cfbh!=null){
|
|
|
- pageData.cfbh=type.cfbh
|
|
|
+ if(type.yncfbh!=null){
|
|
|
+ pageData.yncfbh=type.yncfbh
|
|
|
}
|
|
|
if(type.ptwybh!=null){
|
|
|
createData.pId=type.ptwybh
|