|
@@ -2,8 +2,6 @@
|
|
|
<view>
|
|
<view>
|
|
|
<view class="title_box rx-bc">
|
|
<view class="title_box rx-bc">
|
|
|
<view class="name">取样</view>
|
|
<view class="name">取样</view>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -44,17 +42,21 @@
|
|
|
<view class="item">
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">取样数量</view>
|
|
<view class="lable rx-cc">取样数量</view>
|
|
|
<view class="content content_num rx-sc">
|
|
<view class="content content_num rx-sc">
|
|
|
- <input class="uni-input" v-model="item.sampleNum" type='digit'
|
|
|
|
|
|
|
+ <input class="uni-input" v-if="!isDetails" v-model="item.sampleNum" type='digit'
|
|
|
@blur='item.sampleNum > item.formedNum ? item.sampleNum = item.formedNum : item.sampleNum'></input>
|
|
@blur='item.sampleNum > item.formedNum ? item.sampleNum = item.formedNum : item.sampleNum'></input>
|
|
|
|
|
+ <view v-else>{{ item.sampleNum }}</view>
|
|
|
<view class="unit">{{item.unit}}</view>
|
|
<view class="unit">{{item.unit}}</view>
|
|
|
- <view class="penalize" @click="penalize">处置
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <view class="penalize" v-if='!isDetails' @click="penalize">处置
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -81,17 +83,18 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item ww20 content_num">
|
|
<view class="item ww20 content_num">
|
|
|
- <input class="uni-input" v-model="item.num"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-if='!isDetails' v-model="item.num"></input>
|
|
|
|
|
+ <view v-else> {{ item.num }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item ww55 content_num">
|
|
<view class="item ww55 content_num">
|
|
|
- <zxz-uni-data-select :localdata="warehouseList" v-if='item.selectType != 1'
|
|
|
|
|
- v-model="item.warehouseId" dataValue='id' dataKey="name" filterable
|
|
|
|
|
- format='{name}'></zxz-uni-data-select>
|
|
|
|
|
|
|
+ <zxz-uni-data-select :localdata="warehouseList" :disabled="isDetails"
|
|
|
|
|
+ v-if='item.selectType != 1' v-model="item.warehouseId" dataValue='id' dataKey="name"
|
|
|
|
|
+ filterable format='{name}'></zxz-uni-data-select>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="item ww15">
|
|
<view class="item ww15">
|
|
|
<view class="left rx-ss" @click="getDelete(index)">
|
|
<view class="left rx-ss" @click="getDelete(index)">
|
|
|
- <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20"
|
|
|
|
|
|
|
+ <uni-icons custom-prefix="iconfont" v-if="!isDetails" type="icon-shanchu" size="20"
|
|
|
color="#fa3534"></uni-icons>
|
|
color="#fa3534"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -111,6 +114,28 @@
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <view class="title_box rx-bc" v-if="isDetails">
|
|
|
|
|
+ <view class="name">报工</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <view class="material " v-if="isDetails">
|
|
|
|
|
+
|
|
|
|
|
+ <view class="content_table">
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ <view class="lable rx-cc">合格数量</view>
|
|
|
|
|
+ <view class="content content_num">
|
|
|
|
|
+ <input class="uni-input" v-model="workReportInfo.formedNum" type='digit'></input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<u-popup :show="show" mode='center' v-if='show' :closeOnClickOverlay='false'>
|
|
<u-popup :show="show" mode='center' v-if='show' :closeOnClickOverlay='false'>
|
|
|
<view class="popup_box">
|
|
<view class="popup_box">
|
|
|
<uni-data-select v-model="selectType" :localdata="rangeList"></uni-data-select>
|
|
<uni-data-select v-model="selectType" :localdata="rangeList"></uni-data-select>
|
|
@@ -142,6 +167,16 @@
|
|
|
default: () => {}
|
|
default: () => {}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ workReportInfo: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => {}
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ isDetails: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -178,7 +213,7 @@
|
|
|
|
|
|
|
|
penalize() {
|
|
penalize() {
|
|
|
|
|
|
|
|
- if (Number(this.item.sampleNum <= 0) ) {
|
|
|
|
|
|
|
+ if (Number(this.item.sampleNum <= 0)) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
icon: 'none',
|
|
|
title: '取样数量要大于0'
|
|
title: '取样数量要大于0'
|
|
@@ -206,6 +241,10 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getDelete(idx) {
|
|
getDelete(idx) {
|