rev:出库页面优化

This commit is contained in:
2023-08-25 10:16:02 +08:00
parent 6ca13d6d8a
commit b3394dac77
2 changed files with 26 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
<!--左侧插槽-->
<slot name="left" />
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
<el-button slot="left" type="primary" @click="submit">保存</el-button>
<el-button slot="left" v-loading.fullscreen.lock="fullscreenLoading" type="primary" @click="submit">保存</el-button>
</span>
</div>
</span>
@@ -154,6 +154,7 @@ export default {
return {
dialogVisible: false,
dialogVisible2: false,
fullscreenLoading: false,
goal_unassign_qty: 0,
queryrow: {},
sects: [],
@@ -264,9 +265,13 @@ export default {
rows.push(item)
}
})
this.fullscreenLoading = true
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed')
this.fullscreenLoading = false
}).catch(() => {
this.fullscreenLoading = false
})
} else {
this.$confirm('未分配重量不为0,是否继续提交?')
@@ -277,9 +282,13 @@ export default {
rows.push(item)
}
})
this.fullscreenLoading = true
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed')
this.fullscreenLoading = false
}).catch(() => {
this.fullscreenLoading = false
})
})
.catch(_ => {