feat: 阿里采购送货单的业务对接优化

dev_unify
chenhc 4 months ago
parent 369e1f561e
commit c2d1590864

@ -68,7 +68,7 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="search"></el-button>
<el-button type="primary" icon="el-icon-check" @click="confirmSelect"></el-button>
<el-button type="primary" icon="el-icon-check" @click="confirmSelect" :loading="loading">确定</el-button>
</el-button-group>
</div>
<el-table
@ -190,6 +190,7 @@ export default {
},
data() {
return {
loading: false,
orderQuery: {
beginDate:null,
ensDate:null,
@ -250,16 +251,20 @@ export default {
}
this.orderFormData.orderEntity = JSON.parse(JSON.stringify(this.orderFormData));
this.orderFormData.aliData = this.currentRow
this.loading = true
addAliBizProduct(this.orderFormData).then((res) => {
if (res.code === 20000) {
this.codeDetailVisible = false
this.$message.success('选入成功')
this.loading = false
this.closeDialog(res.data)
} else {
this.$message.error(res.message)
this.loading = false
}
}).catch((error) => {
this.$message.error('选入失败')
this.loading = false
})
},
hideSearch() {

Loading…
Cancel
Save