|
@@ -50,23 +50,21 @@
|
|
|
bordered>
|
|
|
<!-- 采购单号 -->
|
|
|
<template slot="purchaseNo" slot-scope="text, record">
|
|
|
- <span style="color: #ed1c24;cursor: pointer;">{{record.purchaseNo}}</span>
|
|
|
+ <span style="color: #ed1c24;cursor: pointer;">{{ record.purchaseNo }}</span>
|
|
|
</template>
|
|
|
<!-- 采购入库单号 -->
|
|
|
<template slot="purchaseNos" slot-scope="text, record">
|
|
|
- <span style="color: #ed1c24;cursor: pointer;">{{record.purchaseNo}}</span>
|
|
|
+ <span style="color: #ed1c24;cursor: pointer;">{{ record.purchaseNo }}</span>
|
|
|
</template>
|
|
|
<!-- 状态 -->
|
|
|
<template slot="state" slot-scope="text, record">
|
|
|
- <span>{{record.state == 1 ? '已启用' : '已禁用'}}</span>
|
|
|
+ <span>{{ record.state == 1 ? '已启用' : '已禁用' }}</span>
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-button size="small" type="link" @click="handleExamine(record, 1)" id="inventoryReview-adopt-btn">通过</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleExamine(record, 2)" id="inventoryReview-unadopt-btn">不通过</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleDetail(record)" id="inventoryReview-detail-btn">详情</a-button>
|
|
|
+ <a-button size="small" type="primary" class="button-info" @click="handleExamine(record, 1)" id="inventoryReview-adopt-btn">通过</a-button>
|
|
|
+ <a-button size="small" type="primary" class="button-warning" @click="handleExamine(record, 2)" id="inventoryReview-unadopt-btn">不通过</a-button>
|
|
|
+ <a-button size="small" type="primary" class="button-success" @click="handleDetail(record)" id="inventoryReview-detail-btn">详情</a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
@@ -93,7 +91,7 @@ export default {
|
|
|
{ title: '盘点审核时间', dataIndex: 'sauditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '财务审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '财务审核状态', scopedSlots: { customRender: 'auditStatus' }, width: 120, align: 'center' },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: 190, align: 'center', fixed: 'right' }
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: 250, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -108,7 +106,7 @@ export default {
|
|
|
// return data
|
|
|
// })
|
|
|
const _this = this
|
|
|
- return new Promise(function(resolve, reject){
|
|
|
+ return new Promise(function (resolve, reject) {
|
|
|
const data = {
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
@@ -124,20 +122,20 @@ export default {
|
|
|
_this.disabled = false
|
|
|
resolve(data)
|
|
|
})
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 详情
|
|
|
- handleDetail(row){
|
|
|
- this.$router.push({ path: `/financialManagement/inventoryReview/detail/${row.id}`})
|
|
|
+ handleDetail (row) {
|
|
|
+ this.$router.push({ path: `/financialManagement/inventoryReview/detail/${row.id}` })
|
|
|
},
|
|
|
// 审核
|
|
|
- handleExamine(row, type){
|
|
|
+ handleExamine (row, type) {
|
|
|
const _this = this
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
- content: '操作后不可恢复,确定要进行'+ (type==1 ? ' 通过 ' : ' 不通过 ') +'操作吗?',
|
|
|
+ content: '操作后不可恢复,确定要进行' + (type == 1 ? ' 通过 ' : ' 不通过 ') + '操作吗?',
|
|
|
centered: true,
|
|
|
onOk () {
|
|
|
// delectRolePower({
|
|
@@ -161,7 +159,7 @@ export default {
|
|
|
this.oldTime = undefined
|
|
|
this.newTime = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -171,4 +169,4 @@ export default {
|
|
|
margin-top: 15px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|