|
@ -90,9 +90,6 @@
|
|
|
:cardSn="cardSn" :cardNo="cardNo" :idcard="idcard" :userName="userName"
|
|
|
@onClose="isShow=true" @onShow="isShow=false"/>
|
|
|
<TipsDialog ref="TipsDialog" @readcard="readcard" @SetPrintPage="SetPrintPage"/>
|
|
|
<Dialog ref="Dialog" v-if="showPrintComplete" @back="onPrev"/>
|
|
|
<Scan @onComplete="onComplete" v-show="step==2" @onBack="step=1"/>
|
|
|
<Result @showOrderDetail="checkCardNo" @outDrug="sendShipment" @onPrint="SetPrintPage" :rsType.sync="rsType" :orderList="orderList" :orderdetail="orderdetail" v-show="step==3" @onBack="step=2" @onBackIndex="step=1"/>
|
|
|
|
|
|
<audio id='audioPlay' src='' hidden='true'/>
|
|
|
</div>
|
|
@ -104,9 +101,6 @@ import Instro from './components/Instro.vue';
|
|
|
import Recharge from './components/Recharge.vue';
|
|
|
import DrugTaking from './components/DrugTaking.vue';
|
|
|
import TipsDialog from './components/TipsDialog.vue';
|
|
|
import Dialog from './components/Dialog.vue';
|
|
|
import Scan from './components/Scan.vue';
|
|
|
import Result from './components/Result.vue';
|
|
|
import medicineAbinetApi from '@/api/api-medicineAbinet'
|
|
|
import socketUtils from './utils/socket'
|
|
|
import ybUtils from './utils/ybUtils'
|
|
@ -115,9 +109,6 @@ var countDownFunc, timeoutInterval, readCardCountDown, test=0
|
|
|
export default {
|
|
|
name: "machineIndex",
|
|
|
components: {
|
|
|
Scan,
|
|
|
Result,
|
|
|
Dialog,
|
|
|
DrugTaking,
|
|
|
TipsDialog,
|
|
|
Recharge,
|
|
@ -183,7 +174,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
window.vm = this
|
|
|
window.vm2 = this
|
|
|
this.init()
|
|
|
window.socketUtils = socketUtils
|
|
|
},
|
|
@ -215,6 +206,13 @@ export default {
|
|
|
this.readcard()
|
|
|
},
|
|
|
startSendShipment: function(item) {
|
|
|
if(item.status == -99){
|
|
|
this.showTipsDialog({
|
|
|
contentType: 3,
|
|
|
message: "该订单已被锁定,请前往药房取药"
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
playAudio(2)
|
|
|
socketUtils.sendShipment(item, 1)
|
|
|
},
|