no message
This commit is contained in:
@@ -50,8 +50,8 @@
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" @tap="_doCallTubeShaftShow">刷新</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index || !pkId}" :disabled="disabled" @tap="_doCallTubeShaft">确认</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" @tap="_doCallTubeShaftShow(index)">刷新</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index || !pkId}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -128,12 +128,27 @@
|
||||
this.pkId = this.pkId === e.workorder_id ? '' : e.workorder_id
|
||||
this.pkObj = this.pkId === e.workorder_id ? e : {}
|
||||
},
|
||||
async _doCallTubeShaft () {
|
||||
this.disabled = true
|
||||
toSure () {
|
||||
this.disabled = false
|
||||
if (!this.index || !this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: `将呼叫母卷:${this.pkObj.parent_container_name}的${this.pkObj.split_group}组的计划`,
|
||||
confirmColor: '#ff6a00',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this._doCallTubeShaft()
|
||||
} else if (res.cancel) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
async _doCallTubeShaft () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await doCallTubeShaft(this.index, this.pkObj)
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user