|
|
@@ -2,15 +2,15 @@
|
|
|
<view>
|
|
|
<view class="title_box rx-bc">
|
|
|
<view class="name">报工信息: ({{list.length || 0}})个</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<view class="material " v-for="(it, idx) in list" :key="idx">
|
|
|
-
|
|
|
|
|
|
- <view class="content_table" >
|
|
|
-
|
|
|
+
|
|
|
+ <view class="content_table">
|
|
|
+
|
|
|
<view class="item rx-sc">
|
|
|
<view class="rx">
|
|
|
<view class="lable lable190 rx-cc ">
|
|
|
@@ -65,7 +65,7 @@
|
|
|
<view class="item rx-sc">
|
|
|
<view class="rx ww50 ">
|
|
|
<view class="lable lable150 rx-cc ">刻码</view>
|
|
|
- <view class="content content_num content_H">
|
|
|
+ <view class="content content_num ">
|
|
|
<input class="uni-input" v-model="it.extInfo.engrave"></input>
|
|
|
|
|
|
</view>
|
|
|
@@ -73,9 +73,8 @@
|
|
|
|
|
|
<view class="rx ww50">
|
|
|
<view class="lable lable150 rx-cc ">位置</view>
|
|
|
- <view class="content ">
|
|
|
- <zxz-uni-data-select :localdata="positionList" v-model="it.position" dataValue='id'
|
|
|
- format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
+ <view class="content content_num">
|
|
|
+ <input class="uni-input" v-model="it.extInfo.position"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -83,7 +82,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -98,34 +96,75 @@
|
|
|
<view class="table">
|
|
|
|
|
|
<view class="tr row rx-sc">
|
|
|
- <view class="item ww25">32.67</view>
|
|
|
+ <view class="item ww25">{{it.extInfo.weight}}</view>
|
|
|
<view class="item ww25 content_num">
|
|
|
- <input class="uni-input" v-model="it.formedNum"></input>
|
|
|
+ <input class="uni-input" v-model="it.extInfo.reportWeight"></input>
|
|
|
</view>
|
|
|
- <view class="item ww25">
|
|
|
- <zxz-uni-data-select :localdata="inspectionList" v-model="it.inspection" dataValue='id'
|
|
|
- format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
+ <view class="item ww25" @click="openNumerate(it, idx)">
|
|
|
+ <view class="numerate">点击计算</view>
|
|
|
</view>
|
|
|
<view class="item ww25">
|
|
|
- <zxz-uni-data-select :localdata="stepsList" v-model="it.disposeOf" dataValue='id'
|
|
|
- format='{taskTypeName}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
|
|
|
+ {{it.extInfo.deal }}
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
+ <u-popup :show="show" mode='center' v-if='show' :closeOnClickOverlay='false'>
|
|
|
+ <view class="popup_box">
|
|
|
+
|
|
|
+ <view class="content_table2">
|
|
|
+ <view class="head row rx-sc">
|
|
|
+ <view class="item ww25">物料重量Kg</view>
|
|
|
+ <view class="item ww25">坯体密度</view>
|
|
|
+ <view class="item ww30">产品密度系数</view>
|
|
|
+ <view class="item ww20">标准</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="table">
|
|
|
+
|
|
|
+ <view class="tr row rx-sc" v-for="(item, index) in rowIt" :key='index'>
|
|
|
+ <view class="item ww25 rx-bc">
|
|
|
+ <view>{{item.deal}}</view>
|
|
|
+ <view>{{item.weight}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="item ww25 content_num">
|
|
|
+ <input class="uni-input" v-model="item.billet" type="digit" @input="changeInp(item, index)"></input>
|
|
|
+ </view>
|
|
|
+ <view class="item ww30 content_num" >
|
|
|
+ <input class="uni-input" v-model="item.density" type="digit" @input="changeInp(item, index)"></input>
|
|
|
+ </view>
|
|
|
+ <view class="item ww20">
|
|
|
+ {{item.result}}
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="reportWeight">报工重量: {{reportWeight}}</view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="operate_box rx-sc">
|
|
|
+ <u-button size="small" class="u-reset-button" @click="cancel">取消</u-button>
|
|
|
+ <u-button size="small" class="u-reset-button" type="success" @click="save">确定</u-button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
-
|
|
|
- </view>
|
|
|
+ </u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -142,12 +181,12 @@
|
|
|
type: Object,
|
|
|
default: () => {}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
list: {
|
|
|
type: Array,
|
|
|
default: () => []
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
@@ -185,7 +224,11 @@
|
|
|
id: '2',
|
|
|
name: '不合格'
|
|
|
},
|
|
|
- ]
|
|
|
+ ],
|
|
|
+
|
|
|
+ show: false,
|
|
|
+ rowIt: [],
|
|
|
+ reportWeight: 0,
|
|
|
|
|
|
|
|
|
|
|
|
@@ -208,6 +251,76 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ openNumerate(row, idx) {
|
|
|
+ if(!row.extInfo.reportWeight) {
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title: '请先输入报工重量'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.reportWeight = row.extInfo.reportWeight
|
|
|
+ this.rowIt = [
|
|
|
+ {
|
|
|
+ weight: row.extInfo.weight,
|
|
|
+ billet: 0.45,
|
|
|
+ density: 0.7,
|
|
|
+ result: (Number(row.extInfo.weight) / 0.45 * 0.7).toFixed(2),
|
|
|
+ deal: 'PIP',
|
|
|
+ idx
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ weight: row.extInfo.weight,
|
|
|
+ billet: 0.46,
|
|
|
+ density: 1.1,
|
|
|
+ result: (Number(row.extInfo.weight) / 0.6* 1.1).toFixed(2) ,
|
|
|
+ deal: '粗车',
|
|
|
+ idx
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ weight: row.extInfo.weight,
|
|
|
+ billet: 0.47,
|
|
|
+ density: 1.6,
|
|
|
+ result: (Number(row.extInfo.weight) / 0.47 * 1.6).toFixed(2),
|
|
|
+ deal: '高温',
|
|
|
+ idx
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ this.show = true
|
|
|
+ },
|
|
|
+
|
|
|
+ changeInp(item,index) {
|
|
|
+ this.rowIt[index]['result'] = (Number(item.weight) / item.billet * item.density).toFixed(2)
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ cancel() {
|
|
|
+ this.show = false
|
|
|
+ this.rowIt = []
|
|
|
+ this.reportWeight = 0
|
|
|
+ },
|
|
|
+
|
|
|
+ save() {
|
|
|
+
|
|
|
+ let _idx = this.rowIt[0].idx
|
|
|
+ let _deal = null
|
|
|
+ if(this.reportWeight >= this.rowIt[0].result && this.reportWeight < this.rowIt[1].result) {
|
|
|
+ _deal = this.rowIt[0].deal
|
|
|
+ } else if(this.reportWeight >= this.rowIt[1].result && this.reportWeight < this.rowIt[2].result) {
|
|
|
+ _deal = this.rowIt[1].deal
|
|
|
+ } else if(this.reportWeight >= this.rowIt[2].result ) {
|
|
|
+ _deal = this.rowIt[2].deal
|
|
|
+ }
|
|
|
+
|
|
|
+ if(_deal) {
|
|
|
+ this.list[_idx].extInfo.deal = _deal
|
|
|
+
|
|
|
+ }
|
|
|
+ this.cancel()
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|
|
|
@@ -380,6 +493,12 @@
|
|
|
.ww25 {
|
|
|
width: 25%;
|
|
|
}
|
|
|
+
|
|
|
+ .ww30 {
|
|
|
+ width: 30%;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.head {
|
|
|
@@ -415,10 +534,16 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
&:last-child {
|
|
|
border-bottom: 2rpx solid #E3E5E5;
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ .numerate {
|
|
|
+ font-size: 22rpx;
|
|
|
+ color: $theme-color;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -449,4 +574,29 @@
|
|
|
color: #fff;
|
|
|
margin-right: 18rpx;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ .popup_box {
|
|
|
+ width: 94vw;
|
|
|
+ padding: 16rpx 12rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ .operate_box {
|
|
|
+ margin-top: 32rpx;
|
|
|
+ padding: 10rpx 100rpx;
|
|
|
+
|
|
|
+ /deep/ .u-button {
|
|
|
+ width: 160rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .reportWeight{
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-style: normal;
|
|
|
+ font-weight: 400;
|
|
|
+ margin-top: 12rpx;
|
|
|
+ }
|
|
|
</style>
|