|
@@ -176,7 +176,7 @@ import allocationDetailModal from '@/views/allocationManagement/transferOut/deta
|
|
|
import sendGoodModal from './sendGoodModal.vue'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import { stockOutList, stockOutOut } from '@/api/stockOut'
|
|
|
-import { getCustomerInfo } from '@/api/sendBill'
|
|
|
+import { getCustomerInfo, validateStockOut } from '@/api/sendBill'
|
|
|
export default {
|
|
|
name: 'OutboundOrderList',
|
|
|
mixins: [commonMixin],
|
|
@@ -382,18 +382,20 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 发货/批量发货
|
|
|
- getCustome (data, stockOutSnList) {
|
|
|
+ // 获取客户信息
|
|
|
+ async getCustome (data, stockOutSnList) {
|
|
|
const _this = this
|
|
|
- this.spinning = true
|
|
|
- getCustomerInfo({ stockOutSnList: stockOutSnList }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- _this.showDetailModal = true
|
|
|
- _this.$refs.detailModal.setData(data, res.data)
|
|
|
- _this.spinning = false
|
|
|
- }
|
|
|
- })
|
|
|
+ const customer = await getCustomerInfo({ stockOutSnList: stockOutSnList })
|
|
|
+ const validRet = await validateStockOut({ stockOutSnList, ...customer.data })
|
|
|
+ if (validRet.status == 200) {
|
|
|
+ _this.showDetailModal = true
|
|
|
+ _this.$refs.detailModal.setData(data, customer.data)
|
|
|
+ _this.spinning = false
|
|
|
+ } else {
|
|
|
+ // _this.$message.error(validRet.message)
|
|
|
+ }
|
|
|
},
|
|
|
+ // 发货/批量发货
|
|
|
handleSendGood (row) {
|
|
|
const _this = this
|
|
|
let stockOutSnList = []
|