Commit d5e278d0 by lichengming

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

parent 6a94d615
...@@ -58,7 +58,10 @@ ...@@ -58,7 +58,10 @@
<th>出库接收人</th> <th>出库接收人</th>
<td>{{obj.outStockReceiver}}</td> <td>{{obj.outStockReceiver}}</td>
</tr> </tr>
<tr>
<th>出库去向</th>
<td>{{obj.outGo}}</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
...@@ -97,7 +100,7 @@ export default { ...@@ -97,7 +100,7 @@ export default {
} else { } else {
this.showMoney = false this.showMoney = false
} }
this.height = '350px' this.height = '400px'
} }
} }
} }
......
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
switch (msg) { switch (msg) {
case '发放': case '发放':
this._submitSend() this._sendDecide()
break break
case '发放到高级试验': case '发放到高级试验':
this._send() this._send()
...@@ -437,6 +437,25 @@ export default { ...@@ -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() { _submitSend() {
if (this.selectIds.length === 0) { 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