|
|
@@ -97,11 +97,11 @@
|
|
|
<view class="item" v-if='mate.isConsumable == 0 && deviceList.length > 0'>
|
|
|
<view class="rx ww70">
|
|
|
<view class="lable rx-cc">设备</view>
|
|
|
- <view class="content content_num" >
|
|
|
-
|
|
|
- <zxz-uni-data-select v-if="!isDetails" :localdata="deviceList" v-model="mate.deviceId" dataValue='id'
|
|
|
- format='{name}-{codeNumber}' @change="e => selectVal(e, mate, idx)" dataKey="id"
|
|
|
- filterable :clear='false'></zxz-uni-data-select>
|
|
|
+ <view class="content content_num">
|
|
|
+
|
|
|
+ <zxz-uni-data-select v-if="!isDetails" :localdata="deviceList" v-model="mate.deviceId"
|
|
|
+ dataValue='id' format='{name}-{codeNumber}' @change="e => selectVal(e, mate, idx)"
|
|
|
+ dataKey="id" filterable :clear='false'></zxz-uni-data-select>
|
|
|
<span v-if="isDetails">{{mate.deviceName}}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -128,7 +128,8 @@
|
|
|
<view class="rx ww50">
|
|
|
<view class="lable rx-cc ww80">数量</view>
|
|
|
<view class="content content_num ">
|
|
|
- <input class="uni-input" style="width: 160rpx;" v-model="mate.feedQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" style="width: 160rpx;" v-model="mate.feedQuantity"
|
|
|
+ type="digit"></input>
|
|
|
<view class="unit ">/{{mate.unit}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -280,8 +281,15 @@
|
|
|
changeHeatNumber() {
|
|
|
this.deviceList.forEach(f => {
|
|
|
this.list.forEach(o => {
|
|
|
- if (o.deviceId && f.id == o.deviceId) {
|
|
|
+ if (o.deviceId && f.id == o.deviceId && this.deviceList.length > 1) {
|
|
|
o.extInfo.heatNumber = f.extInfo.heatNumber
|
|
|
+ o['workstationName'] = f.workstationName
|
|
|
+ } else if (this.deviceList.length == 1) {
|
|
|
+ o['deviceName'] = this.deviceList[0].name
|
|
|
+ o['deviceId'] = this.deviceList[0].id
|
|
|
+ o['workstationName'] = this.deviceList[0].workstationName
|
|
|
+ o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber
|
|
|
+ this.$forceUpdate()
|
|
|
}
|
|
|
})
|
|
|
})
|