给全部单据的查看界面增加反审核的按钮
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<advance-in-modal ref="modalForm" @ok="modalFormOk"></advance-in-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<giro-modal ref="modalForm" @ok="modalFormOk"></giro-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<item-in-modal ref="modalForm" @ok="modalFormOk"></item-in-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<item-out-modal ref="modalForm" @ok="modalFormOk"></item-out-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<money-in-modal ref="modalForm" @ok="modalFormOk"></money-in-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<!-- table区域-end -->
|
||||
<!-- 表单区域 -->
|
||||
<money-out-modal ref="modalForm" @ok="modalFormOk"></money-out-modal>
|
||||
<financial-detail ref="modalDetail"></financial-detail>
|
||||
<financial-detail ref="modalDetail" @ok="modalFormOk"></financial-detail>
|
||||
</a-card>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
<a-button v-if="financialType === '支出'" v-print="'#itemOutPrint'" ghost type="primary">打印</a-button>
|
||||
<a-button v-if="financialType === '收款'" v-print="'#moneyInPrint'" ghost type="primary">打印</a-button>
|
||||
<a-button v-if="financialType === '付款'" v-print="'#moneyOutPrint'" ghost type="primary">打印</a-button>
|
||||
<!--反审核-->
|
||||
<a-button v-if="isCanBackCheck && model.status==='1'" @click="handleBackCheck()">反审核</a-button>
|
||||
<a-button key="back" @click="handleCancel">取消</a-button>
|
||||
</template>
|
||||
<a-form :form="form">
|
||||
@@ -396,8 +398,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import { getAction } from '@/api/manage'
|
||||
import { findBillDetailByNumber} from '@/api/api'
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import JUpload from '@/components/jeecg/JUpload'
|
||||
export default {
|
||||
name: 'FinancialDetail',
|
||||
@@ -410,6 +411,7 @@
|
||||
width: '1600px',
|
||||
visible: false,
|
||||
model: {},
|
||||
isCanBackCheck: true,
|
||||
financialType: '',
|
||||
fileList: [],
|
||||
labelCol: {
|
||||
@@ -424,7 +426,8 @@
|
||||
loading: false,
|
||||
dataSource: [],
|
||||
url: {
|
||||
detailList: '/accountItem/getDetailList'
|
||||
detailList: '/accountItem/getDetailList',
|
||||
batchSetStatusUrl: '/accountHead/batchSetStatus'
|
||||
},
|
||||
advanceInColumns: [
|
||||
{ title: '账户名称',dataIndex: 'accountName',width: '30%'},
|
||||
@@ -497,6 +500,27 @@
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
handleBackCheck() {
|
||||
let that = this
|
||||
this.$confirm({
|
||||
title: "确认操作",
|
||||
content: "是否对该单据进行反审核?",
|
||||
onOk: function () {
|
||||
that.loading = true
|
||||
postAction(that.url.batchSetStatusUrl, {status: '0', ids: that.model.id}).then((res) => {
|
||||
if(res.code === 200){
|
||||
that.$emit('ok')
|
||||
that.loading = false
|
||||
that.close()
|
||||
} else {
|
||||
that.$message.warning(res.data.message)
|
||||
that.loading = false
|
||||
}
|
||||
}).finally(() => {
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.close()
|
||||
},
|
||||
|
||||
@@ -56,6 +56,9 @@ export const FinancialListMixin = {
|
||||
}
|
||||
},
|
||||
myHandleDetail(record, type) {
|
||||
if(this.btnEnableList.indexOf(7)===-1) {
|
||||
this.$refs.modalDetail.isCanBackCheck = false
|
||||
}
|
||||
this.handleDetail(record, type);
|
||||
},
|
||||
handleApprove(record) {
|
||||
|
||||
Reference in New Issue
Block a user