Commit 0c1e2edd authored by 季圣华's avatar 季圣华
Browse files

给全部单据的查看界面增加反审核的按钮

parent 2a1db9bb
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<!-- table区域-end --> <!-- table区域-end -->
<!-- 表单区域 --> <!-- 表单区域 -->
<money-out-modal ref="modalForm" @ok="modalFormOk"></money-out-modal> <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-card>
</a-col> </a-col>
</a-row> </a-row>
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
<a-button v-if="financialType === '支出'" v-print="'#itemOutPrint'" ghost type="primary">打印</a-button> <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="'#moneyInPrint'" ghost type="primary">打印</a-button>
<a-button v-if="financialType === '付款'" v-print="'#moneyOutPrint'" 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> <a-button key="back" @click="handleCancel">取消</a-button>
</template> </template>
<a-form :form="form"> <a-form :form="form">
...@@ -396,8 +398,7 @@ ...@@ -396,8 +398,7 @@
</template> </template>
<script> <script>
import pick from 'lodash.pick' import pick from 'lodash.pick'
import { getAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import { findBillDetailByNumber} from '@/api/api'
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
export default { export default {
name: 'FinancialDetail', name: 'FinancialDetail',
...@@ -410,6 +411,7 @@ ...@@ -410,6 +411,7 @@
width: '1600px', width: '1600px',
visible: false, visible: false,
model: {}, model: {},
isCanBackCheck: true,
financialType: '', financialType: '',
fileList: [], fileList: [],
labelCol: { labelCol: {
...@@ -424,7 +426,8 @@ ...@@ -424,7 +426,8 @@
loading: false, loading: false,
dataSource: [], dataSource: [],
url: { url: {
detailList: '/accountItem/getDetailList' detailList: '/accountItem/getDetailList',
batchSetStatusUrl: '/accountHead/batchSetStatus'
}, },
advanceInColumns: [ advanceInColumns: [
{ title: '账户名称',dataIndex: 'accountName',width: '30%'}, { title: '账户名称',dataIndex: 'accountName',width: '30%'},
...@@ -497,6 +500,27 @@ ...@@ -497,6 +500,27 @@
this.loading = false 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() { handleCancel() {
this.close() this.close()
}, },
......
...@@ -56,6 +56,9 @@ export const FinancialListMixin = { ...@@ -56,6 +56,9 @@ export const FinancialListMixin = {
} }
}, },
myHandleDetail(record, type) { myHandleDetail(record, type) {
if(this.btnEnableList.indexOf(7)===-1) {
this.$refs.modalDetail.isCanBackCheck = false
}
this.handleDetail(record, type); this.handleDetail(record, type);
}, },
handleApprove(record) { handleApprove(record) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment