|
@@ -109,6 +109,8 @@
|
|
</s-table>
|
|
</s-table>
|
|
<!-- 新增 -->
|
|
<!-- 新增 -->
|
|
<basic-info-modal :openModal="openModal" @ok="handleOk" @close="openModal=false" />
|
|
<basic-info-modal :openModal="openModal" @ok="handleOk" @close="openModal=false" />
|
|
|
|
+ <!-- 审核 -->
|
|
|
|
+ <auditModal :openModal="visibleAudit" @close="visibleAudit=false" @ok="auditOrder('WAIT_OUT_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" />
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -117,10 +119,11 @@ import moment from 'moment'
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
|
+import auditModal from '@/views/common/auditModal.vue'
|
|
import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
|
|
import { allocateBillList, allocateBillDel, allocateBillAudit, allocateBillExport } from '@/api/allocateBill'
|
|
import { allocateTypeAllList } from '@/api/allocateType'
|
|
import { allocateTypeAllList } from '@/api/allocateType'
|
|
export default {
|
|
export default {
|
|
- components: { STable, VSelect, basicInfoModal, rangeDate },
|
|
+ components: { STable, VSelect, basicInfoModal, rangeDate, auditModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
@@ -167,6 +170,8 @@ export default {
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ visibleAudit: false,
|
|
|
|
+ auditInfo: null,
|
|
allocateTypeList: [], // 调拨类型
|
|
allocateTypeList: [], // 调拨类型
|
|
openModal: false // 新增编辑 弹框
|
|
openModal: false // 新增编辑 弹框
|
|
}
|
|
}
|
|
@@ -211,32 +216,19 @@ export default {
|
|
},
|
|
},
|
|
// 审核
|
|
// 审核
|
|
handleExamine (row) {
|
|
handleExamine (row) {
|
|
- const _this = this
|
|
+ this.auditInfo = row
|
|
- this.$confirm({
|
|
+ this.visibleAudit = true
|
|
- title: '提示',
|
|
|
|
- content: '确认要审核通过吗?',
|
|
|
|
- centered: true,
|
|
|
|
- closable: true,
|
|
|
|
- okText: '审核通过',
|
|
|
|
- cancelText: '审核不通过',
|
|
|
|
- onOk () {
|
|
|
|
- _this.auditOrder(row.allocateSn, 'WAIT_OUT_WAREHOUSE')
|
|
|
|
- },
|
|
|
|
- onCancel (e) {
|
|
|
|
- if (!e.triggerCancel) {
|
|
|
|
- _this.auditOrder(row.allocateSn, 'AUDIT_REJECT')
|
|
|
|
- }
|
|
|
|
- _this.$destroyAll()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
// 审核
|
|
// 审核
|
|
- auditOrder (sn, state) {
|
|
+ auditOrder (state) {
|
|
const _this = this
|
|
const _this = this
|
|
- allocateBillAudit({ sn: sn, state: state }).then(res => {
|
|
+ allocateBillAudit({ sn: this.auditInfo.allocateSn, state: state }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
|
|
+ _this.visibleAudit = false
|
|
_this.$message.success(res.message)
|
|
_this.$message.success(res.message)
|
|
_this.$refs.table.refresh()
|
|
_this.$refs.table.refresh()
|
|
|
|
+ } else {
|
|
|
|
+ _this.visibleAudit = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|