|
@@ -43,6 +43,12 @@
|
|
|
</div>
|
|
|
<!-- 按钮 -->
|
|
|
<div class="btn-con">
|
|
|
+ <a-button
|
|
|
+ id="creatPurchaseReutn-cancel"
|
|
|
+ size="large"
|
|
|
+ class="button-cancel"
|
|
|
+ @click="isShow=false"
|
|
|
+ style="padding: 0 36px;">取消</a-button>
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
id="creatPurchaseReutn-save"
|
|
@@ -50,13 +56,7 @@
|
|
|
:loading="spinning"
|
|
|
class="button-primary"
|
|
|
@click="handleSave"
|
|
|
- style="padding: 0 36px;">确定</a-button>
|
|
|
- <a-button
|
|
|
- id="creatPurchaseReutn-cancel"
|
|
|
- size="large"
|
|
|
- class="button-cancel"
|
|
|
- @click="isShow=false"
|
|
|
- style="padding: 0 36px;margin-left: 15px;">取消</a-button>
|
|
|
+ style="padding: 0 36px;margin-left: 15px;">确定</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-spin>
|
|
@@ -120,12 +120,26 @@ export default {
|
|
|
}
|
|
|
this.spinning = true
|
|
|
createPurchaseReturnBill(params).then(res => {
|
|
|
- if (res.status == 200 && res.data) {
|
|
|
- this.$emit('creatOk')
|
|
|
- this.$emit('close')
|
|
|
- this.$message.success(res.message)
|
|
|
- this.spinning = false
|
|
|
+ if (res.status == 200) {
|
|
|
+ if (res.data && res.data.length) {
|
|
|
+ this.$info({
|
|
|
+ title: '提示',
|
|
|
+ centered: true,
|
|
|
+ content: (h) => {
|
|
|
+ const content = []
|
|
|
+ res.data.map(item => {
|
|
|
+ content.push(h('div', item))
|
|
|
+ })
|
|
|
+ return h('div', content)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$emit('creatOk')
|
|
|
+ this.$message.success(res.message)
|
|
|
+ }
|
|
|
}
|
|
|
+ this.$emit('close')
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
}
|
|
|
},
|