Commit d5e278d0 by lichengming

修改了样品发放判断高级试验样品

parent 6a94d615
......@@ -58,7 +58,10 @@
<th>出库接收人</th>
<td>{{obj.outStockReceiver}}</td>
</tr>
<tr>
<th>出库去向</th>
<td>{{obj.outGo}}</td>
</tr>
</tbody>
</table>
</div>
......@@ -97,7 +100,7 @@ export default {
} else {
this.showMoney = false
}
this.height = '350px'
this.height = '400px'
}
}
}
......
......@@ -252,7 +252,7 @@ export default {
this.$nextTick(() => {
switch (msg) {
case '发放':
this._submitSend()
this._sendDecide()
break
case '发放到高级试验':
this._send()
......@@ -437,6 +437,25 @@ export default {
}
}
},
_sendDecide() {
this.expert = false
if (this.selectData.length === 0) {
this.$Message.warning('请至少选择一条数据')
} else {
for (let i = 0; i < this.selectData.length; i++) {
if (this.selectData[i].groupNames === '高级实验室') {
this.expert = true
}
}
if (this.expert) {
this.$Message.warning('只有高级试验样品请发放到高级试验')
// this._sendToAlone()
} else {
this._submitSend()
// this.$Message.warning('所选样品中没有其他试验样品')
}
}
},
// 发放
_submitSend() {
if (this.selectIds.length === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment