|
@@ -171,19 +171,22 @@
|
|
</s-table>
|
|
</s-table>
|
|
<!-- 选择客户弹框 -->
|
|
<!-- 选择客户弹框 -->
|
|
<choose-custom-modal :show="openModal" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
|
|
<choose-custom-modal :show="openModal" @ok="chooseCustomOk" @cancel="openModal=false"></choose-custom-modal>
|
|
|
|
+ <!-- 审核 -->
|
|
|
|
+ <auditModal :openModal="visibleAudit" @close="visibleAudit=false" @ok="auditOrder('WAIT_OUT_WAREHOUSE')" @fail="auditOrder('AUDIT_REJECT')" />
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import chooseCustomModal from './chooseCustomModal.vue'
|
|
import chooseCustomModal from './chooseCustomModal.vue'
|
|
|
|
+import auditModal from '@/views/common/auditModal.vue'
|
|
import { custAllList } from '@/api/customer'
|
|
import { custAllList } from '@/api/customer'
|
|
import { salesList, salesDel, salesWriteAudit, salesWriteStockOut, salesCount } from '@/api/sales'
|
|
import { salesList, salesDel, salesWriteAudit, salesWriteStockOut, salesCount } from '@/api/sales'
|
|
import { settleStyleQueryAll } from '@/api/settleStyle'
|
|
import { settleStyleQueryAll } from '@/api/settleStyle'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
export default {
|
|
export default {
|
|
name: 'TableList',
|
|
name: 'TableList',
|
|
- components: { STable, VSelect, chooseCustomModal, rangeDate },
|
|
|
|
|
|
+ components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
@@ -247,7 +250,9 @@ export default {
|
|
this.disabled = false
|
|
this.disabled = false
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ visibleAudit: false,
|
|
|
|
+ auditInfo: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -266,33 +271,38 @@ export default {
|
|
},
|
|
},
|
|
// 审核
|
|
// 审核
|
|
handleEexamine (row) {
|
|
handleEexamine (row) {
|
|
- const _this = this
|
|
|
|
- this.$confirm({
|
|
|
|
- title: '提示',
|
|
|
|
- content: '请点击下方按钮确认操作?',
|
|
|
|
- centered: true,
|
|
|
|
- closable: true,
|
|
|
|
- okText: '审核通过',
|
|
|
|
- cancelText: '审核不通过',
|
|
|
|
- onOk () {
|
|
|
|
- _this.auditOrder(row.id, 'WAIT_OUT_WAREHOUSE')
|
|
|
|
- },
|
|
|
|
- onCancel (e) {
|
|
|
|
- if (!e.triggerCancel) {
|
|
|
|
- _this.auditOrder(row.id, 'AUDIT_REJECT')
|
|
|
|
- }
|
|
|
|
- _this.$destroyAll()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // const _this = this
|
|
|
|
+ // this.$confirm({
|
|
|
|
+ // title: '提示',
|
|
|
|
+ // content: '请点击下方按钮确认操作?',
|
|
|
|
+ // centered: true,
|
|
|
|
+ // closable: true,
|
|
|
|
+ // okText: '审核通过',
|
|
|
|
+ // cancelText: '审核不通过',
|
|
|
|
+ // onOk () {
|
|
|
|
+ // _this.auditOrder(row.id, 'WAIT_OUT_WAREHOUSE')
|
|
|
|
+ // },
|
|
|
|
+ // onCancel (e) {
|
|
|
|
+ // if (!e.triggerCancel) {
|
|
|
|
+ // _this.auditOrder(row.id, 'AUDIT_REJECT')
|
|
|
|
+ // }
|
|
|
|
+ // _this.$destroyAll()
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ this.auditInfo = row
|
|
|
|
+ this.visibleAudit = true
|
|
},
|
|
},
|
|
- auditOrder (id, billStatus) {
|
|
|
|
|
|
+ auditOrder (billStatus) {
|
|
salesWriteAudit({
|
|
salesWriteAudit({
|
|
- id,
|
|
|
|
- billStatus
|
|
|
|
|
|
+ id: this.auditInfo.id,
|
|
|
|
+ billStatus: billStatus
|
|
}).then(res => {
|
|
}).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
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|