|
@@ -240,9 +240,10 @@ import verifyModal from './verifyModal.vue'
|
|
|
import chooseDepartUserModal from './chooseDepartUserModal.vue'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import warehouse from '@/views/common/chooseWarehouse.js'
|
|
|
-import { salesReturnList, salesReturnQueryCount, salesReturnDel, salesReturnCancelBill, salesReturnSubmit } from '@/api/salesReturn'
|
|
|
+import { salesReturnList, salesReturnQueryCount, salesReturnDel, salesReturnCancelBill, salesReturnSubmit, submitVerify } from '@/api/salesReturn'
|
|
|
import moment from 'moment'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
+import { forEach } from 'core-js/fn/array'
|
|
|
export default {
|
|
|
name: 'SalesReturnList',
|
|
|
mixins: [commonMixin],
|
|
@@ -441,7 +442,25 @@ export default {
|
|
|
},
|
|
|
beforeSubmit (row) {
|
|
|
this.auditInfo = row
|
|
|
- this.openDepartUserModal = true
|
|
|
+ // 判断价格
|
|
|
+ submitVerify({ salesReturnBillSn: row.salesReturnBillSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ if (!res.data) {
|
|
|
+ this.openDepartUserModal = true
|
|
|
+ } else {
|
|
|
+ const h = this.$createElement
|
|
|
+ const arr = res.data.split('\n')
|
|
|
+ const newArr = []
|
|
|
+ arr.forEach(item => {
|
|
|
+ newArr.push(h('p', item))
|
|
|
+ })
|
|
|
+ this.$error({
|
|
|
+ title: '提示',
|
|
|
+ content: h('div', {}, newArr)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 提交
|
|
|
handleSubmit (data) {
|