diff --git a/src/views/order/debugging/index.vue b/src/views/order/debugging/index.vue index e8b72f3..1478036 100644 --- a/src/views/order/debugging/index.vue +++ b/src/views/order/debugging/index.vue @@ -44,15 +44,22 @@ const switchValOrder = ref('0'); const switchValOutline = ref('0'); -const testOrder = async type => { - try { - const res = await testWorkOrder({ - orderType: type, - }); - } catch (error) { - console.log('error', error); - } +const testOrder = type => { + proxy.$modal + .confirm('是否确认发送工单信息?') + .then(async () => { + try { + const res = await testWorkOrder({ + orderType: type, + }); + } catch (error) { + console.log('error', error); + } + }) + .catch(() => {}); }; + + // 工单 const handleSwitchChange = async val => { console.log('val', val, typeof val);