|
@@ -3,7 +3,7 @@
|
|
|
<basicDetails
|
|
<basicDetails
|
|
|
ref="details"
|
|
ref="details"
|
|
|
:titleText="mainData.billno"
|
|
:titleText="mainData.billno"
|
|
|
- formPath="payvoucher"
|
|
|
|
|
|
|
+ formPath="revoucher"
|
|
|
:editData="mainData"
|
|
:editData="mainData"
|
|
|
:mainAreaData="mainAreaData"
|
|
:mainAreaData="mainAreaData"
|
|
|
:turnPageId="20221010102903"
|
|
:turnPageId="20221010102903"
|
|
@@ -11,7 +11,7 @@
|
|
|
idname="sa_cashbillid"
|
|
idname="sa_cashbillid"
|
|
|
ownertable="sa_cashbill"
|
|
ownertable="sa_cashbill"
|
|
|
tags=""
|
|
tags=""
|
|
|
- :tabs="['详细信息']"
|
|
|
|
|
|
|
+ :tabs="['详细信息','核销单查询']"
|
|
|
:statusCheck="[{key:'status',value:'审核'}]"
|
|
:statusCheck="[{key:'status',value:'审核'}]"
|
|
|
@pageChange="pageChange"
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
@@ -21,6 +21,16 @@
|
|
|
<!-- :tabs="['经销商团队','代理区域','营销类别','账户余额']" -->
|
|
<!-- :tabs="['经销商团队','代理区域','营销类别','账户余额']" -->
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="customOperation">
|
|
<div slot="customOperation">
|
|
|
|
|
+ <customBtn
|
|
|
|
|
+ btnName="一键核销"
|
|
|
|
|
+ message="确认核销当前收入凭证吗?"
|
|
|
|
|
+ idName="20230224183304"
|
|
|
|
|
+ keyName="sa_cashbillid"
|
|
|
|
|
+ :id="$route.query.id"
|
|
|
|
|
+ @onSuccess="queryMainData($route.query.id);$refs.bill && $refs.bill.listData()"
|
|
|
|
|
+ class="inline-16"
|
|
|
|
|
+ v-if="mainData.status == '审核' && tool.checkAuth($route.name,'writeoff') && mainData.unwriteoffamount > 0"
|
|
|
|
|
+ />
|
|
|
<examine class="inline-16" v-if="tool.checkAuth($route.name,'check')" :data="mainData" @examineSuccess="onSuccess"></examine>
|
|
<examine class="inline-16" v-if="tool.checkAuth($route.name,'check')" :data="mainData" @examineSuccess="onSuccess"></examine>
|
|
|
<!-- 此区域提供了自定义操作按钮 -->
|
|
<!-- 此区域提供了自定义操作按钮 -->
|
|
|
<!-- <div class="inline-16" v-if="tool.checkAuth($route.name,'receive') && mainData.freeget === 1 && length === 0 ">
|
|
<!-- <div class="inline-16" v-if="tool.checkAuth($route.name,'receive') && mainData.freeget === 1 && length === 0 ">
|
|
@@ -36,6 +46,9 @@
|
|
|
<div slot="slot0" >
|
|
<div slot="slot0" >
|
|
|
<detailed :detailData="mainData"></detailed>
|
|
<detailed :detailData="mainData"></detailed>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div slot="slot1" >
|
|
|
|
|
+ <writeoffBill ref="bill"></writeoffBill>
|
|
|
|
|
+ </div>
|
|
|
</basicDetails>
|
|
</basicDetails>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -43,9 +56,11 @@
|
|
|
<script>
|
|
<script>
|
|
|
import detailed from './modules/detailedData'
|
|
import detailed from './modules/detailedData'
|
|
|
import examine from './modules/examine'
|
|
import examine from './modules/examine'
|
|
|
|
|
+import writeoffBill from '../components/writeoffBill'
|
|
|
|
|
+import { log } from '@antv/g2plot/lib/utils'
|
|
|
export default {
|
|
export default {
|
|
|
name: "index",
|
|
name: "index",
|
|
|
- components:{detailed,examine},
|
|
|
|
|
|
|
+ components:{detailed,examine,writeoffBill},
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
mainData:{},
|
|
mainData:{},
|
|
@@ -62,6 +77,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.mainData = res.data
|
|
this.mainData = res.data
|
|
|
|
|
+ console.log(this.mainData);
|
|
|
|
|
+
|
|
|
this.changeDataStructure()
|
|
this.changeDataStructure()
|
|
|
},
|
|
},
|
|
|
changeDataStructure(){
|
|
changeDataStructure(){
|
|
@@ -98,7 +115,7 @@ export default {
|
|
|
value:this.mainData.enterprisename
|
|
value:this.mainData.enterprisename
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label:'金额',
|
|
|
|
|
|
|
+ label:'核销金额',
|
|
|
value:this.mainData.amount
|
|
value:this.mainData.amount
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -126,8 +143,8 @@ export default {
|
|
|
value:this.mainData.remarks
|
|
value:this.mainData.remarks
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label:'确认金额',
|
|
|
|
|
- value:this.mainData.status === '审核'?this.mainData.amount:'--'
|
|
|
|
|
|
|
+ label:'未核销金额',
|
|
|
|
|
+ value:this.mainData.unwriteoffamount
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|