分切暂存下料弹窗
This commit is contained in:
@@ -24,8 +24,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" :disabled="disabled" @tap="_sendSubVolumeToNBJ">确认</button>
|
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index}" @tap="toSure">确认</button>
|
||||||
</view>
|
</view>
|
||||||
|
<uni-popup ref="alertDialog" type="dialog">
|
||||||
|
<uni-popup-dialog type="info" cancelText="关闭" confirmText="确定" title="提示" content="确认是否创建送到内包间AGV任务?" @confirm="dialogConfirm"></uni-popup-dialog>
|
||||||
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -45,7 +48,6 @@
|
|||||||
newoptions: [],
|
newoptions: [],
|
||||||
options2: [],
|
options2: [],
|
||||||
index2: '',
|
index2: '',
|
||||||
disabled: false,
|
|
||||||
obj: {a_point: '-', b_point: '-', status: '-'}
|
obj: {a_point: '-', b_point: '-', status: '-'}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -103,21 +105,24 @@
|
|||||||
this.options = [...res]
|
this.options = [...res]
|
||||||
this.newoptions = [...res]
|
this.newoptions = [...res]
|
||||||
},
|
},
|
||||||
async _sendSubVolumeToNBJ () {
|
toSure () {
|
||||||
this.disabled = true
|
|
||||||
if (!this.index) {
|
if (!this.index) {
|
||||||
this.disabled = false
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.$refs.alertDialog.open()
|
||||||
|
},
|
||||||
|
dialogConfirm () {
|
||||||
|
this._sendSubVolumeToNBJ()
|
||||||
|
},
|
||||||
|
async _sendSubVolumeToNBJ () {
|
||||||
try {
|
try {
|
||||||
let res = await sendSubVolumeToNBJ(this.index)
|
let res = await sendSubVolumeToNBJ(this.index)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
this.disabled = false
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
console.log(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
|
|||||||
Reference in New Issue
Block a user