|
@@ -47,7 +47,7 @@
|
|
:loading="spinning"
|
|
:loading="spinning"
|
|
:class="loadData.length==0?'button-grey':'button-primary'"
|
|
:class="loadData.length==0?'button-grey':'button-primary'"
|
|
@click="handleSubmit"
|
|
@click="handleSubmit"
|
|
- style="padding: 0 40px;">确认审批</a-button>
|
|
|
|
|
|
+ style="padding: 0 40px;">确认审核</a-button>
|
|
<a-button
|
|
<a-button
|
|
id="batchAuditModal-cancel"
|
|
id="batchAuditModal-cancel"
|
|
size="large"
|
|
size="large"
|
|
@@ -123,16 +123,24 @@ export default {
|
|
},
|
|
},
|
|
// 确认导入
|
|
// 确认导入
|
|
handleSubmit () {
|
|
handleSubmit () {
|
|
|
|
+ const _this = this
|
|
if (this.loadData.length == 0) {
|
|
if (this.loadData.length == 0) {
|
|
this.$message.warning('没有可审核的数据!')
|
|
this.$message.warning('没有可审核的数据!')
|
|
} else {
|
|
} else {
|
|
- this.spinning = true
|
|
|
|
- sparePartsBatchAudit(this.snList).then(res => {
|
|
|
|
- if(res.status == 200){
|
|
|
|
- this.$emit('ok',res.message)
|
|
|
|
- this.isShow = false
|
|
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确认要审核通过吗?',
|
|
|
|
+ centered: true,
|
|
|
|
+ onOk () {
|
|
|
|
+ _this.spinning = true
|
|
|
|
+ sparePartsBatchAudit(_this.snList).then(res => {
|
|
|
|
+ if(res.status == 200){
|
|
|
|
+ _this.$emit('ok',res.message)
|
|
|
|
+ _this.isShow = false
|
|
|
|
+ }
|
|
|
|
+ _this.spinning = false
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- this.spinning = false
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|