// 确认标签:vue,false,form,transferLoading,res,js,api,type,id From: https://www.cnblogs.com/beichengshiqiao/p/18329302
confirm(id) {
if (this.isEdit && this.form.list !== undefined && this.form.list.length <= 0) {
this.$notify({
title: '表身为空时不能确认',
type: 'error'
})
} else {
this.confirmLoading = true
inConfirm(id).then((res) => {
this.confirmLoading = false
this.getForm(this.form.id)//刷新
this.$notify({
title: res,
type: 'success'
})
})
.catch(() => {
this.confirmLoading = false
})
}
},
// 转采购退货单和采购退货出库单
transfer(id) {
this.transferLoading = true
toTransfer(id).then((res) => {
this.transferLoading = false
this.$notify({
title: res,
type: 'success'
})
this.refresh()
})
.catch(() => {
this.transferLoading = false
})
},