|
@@ -2,55 +2,71 @@
|
|
<template>
|
|
<template>
|
|
<basicDetails
|
|
<basicDetails
|
|
ref="details"
|
|
ref="details"
|
|
- :titleText="mainData.enterprisename"
|
|
|
|
- formPath="Creditbilladj"
|
|
|
|
|
|
+ :titleText="mainData.billno"
|
|
:editData="mainData"
|
|
:editData="mainData"
|
|
:mainAreaData="mainAreaData"
|
|
:mainAreaData="mainAreaData"
|
|
:turnPageId="20221008155103"
|
|
:turnPageId="20221008155103"
|
|
idname="sa_creditbillid"
|
|
idname="sa_creditbillid"
|
|
:tags="[]"
|
|
:tags="[]"
|
|
|
|
+ :tabs="['企业信息','详细信息']"
|
|
@pageChange="pageChange"
|
|
@pageChange="pageChange"
|
|
delApiId="20221008155403"
|
|
delApiId="20221008155403"
|
|
|
|
+ :statusCheck="[{key:'status',value:'审核'}]"
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
<div slot="tags">
|
|
<div slot="tags">
|
|
<!-- 使用此插槽可不传[tags] -->
|
|
<!-- 使用此插槽可不传[tags] -->
|
|
<!-- :tabs="['经销商团队','代理区域','营销类别','账户余额']" -->
|
|
<!-- :tabs="['经销商团队','代理区域','营销类别','账户余额']" -->
|
|
</div>
|
|
</div>
|
|
<div slot="customOperation">
|
|
<div slot="customOperation">
|
|
- <el-button class="inline-16" size="mini" @click="checkBuill(mainData)" v-if="mainData.status == '新建'">审 核</el-button>
|
|
|
|
|
|
+ <Edit class="inline-16" v-if="tool.checkAuth($route.name,'update') && mainData.status == '新建'" :data="mainData" @onSuccess="queryMainData"/>
|
|
|
|
+ <customBtn
|
|
|
|
+ class="inline-16"
|
|
|
|
+ btnName="审 核"
|
|
|
|
+ message="确定审核当前信用单吗?"
|
|
|
|
+ idName="20221008155303"
|
|
|
|
+ keyName="sa_creditbillid"
|
|
|
|
+ :id="$route.query.id"
|
|
|
|
+ @onSuccess="queryMainData()"
|
|
|
|
+ v-if="mainData.status == '新建' && tool.checkAuth($route.name,'check')"
|
|
|
|
+ />
|
|
<!-- 此区域提供了自定义操作按钮 -->
|
|
<!-- 此区域提供了自定义操作按钮 -->
|
|
</div>
|
|
</div>
|
|
- <!-- <div slot="slot0" class="container normal-panel">
|
|
|
|
- <el-button size="small" type="primary" @click="createAgentAccount" class="normal-margin">创建经销商主账号</el-button>
|
|
|
|
- <tableLayout :layout="tablecols" :data="mainData.hrs" :custom="false" height="300px"></tableLayout>
|
|
|
|
|
|
+ <div slot="slot0" >
|
|
|
|
+ <enterpriseTable ref="enterprise">
|
|
|
|
+ <template v-slot:edit="scope">
|
|
|
|
+ <el-button class="inline-16" v-if="tool.checkAuth($route.name,'enterpriseInfoManage') && mainData.status == '新建'" type="text" size="mini" @click="$refs.enterprise.currentEdit=scope.data,$refs.enterprise.accountSelect(scope.data)">编 辑</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-slot:del="scope">
|
|
|
|
+ <delete-btn v-if="tool.checkAuth($route.name,'enterpriseInfoManage') && mainData.status == '新建'" nameId="20230104101003" nameKey="sa_creditbilldetailids" :id="scope.data.sa_creditbilldetailid" message="确定删除当前数据吗?" @deleteSuccess="$refs.enterprise.listData()"></delete-btn>
|
|
|
|
+ </template>
|
|
|
|
+ <Add slot="add" v-if="tool.checkAuth($route.name,'enterpriseInfoManage') && mainData.status == '新建'" @onSuccess="$refs.enterprise.listData()"></Add>
|
|
|
|
+ </enterpriseTable>
|
|
</div>
|
|
</div>
|
|
- <div slot="slot1" class="container normal-panel">
|
|
|
|
- <salescope :data="mainData"></salescope>
|
|
|
|
|
|
+ <div slot="slot1">
|
|
|
|
+ <base-info v-if="detailInfo" :detailInfo="detailInfo"></base-info>
|
|
</div>
|
|
</div>
|
|
- <div slot="slot2" class="container normal-panel">
|
|
|
|
- <SaleClass :data="mainData"></SaleClass>
|
|
|
|
- </div>
|
|
|
|
- <div slot="slot3" class="container normal-panel">
|
|
|
|
- <accountMoney :mainData="mainData"></accountMoney>
|
|
|
|
- </div> -->
|
|
|
|
</basicDetails>
|
|
</basicDetails>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-// import salescope from './modules/salescope/list'
|
|
|
|
-// import SaleClass from './modules/saleclass/index'
|
|
|
|
-// import accountMoney from './modules/accountMoney/index'
|
|
|
|
|
|
+import BaseInfo from '@/HDrpManagement/projectChange/modules/modules/baseInfo/baseInfo'
|
|
|
|
+import enterpriseTable from './enterpriseTable/index'
|
|
|
|
+import Add from './enterpriseTable/add'
|
|
|
|
+
|
|
|
|
+import Edit from '@/Form/Creditbilladj/edit'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
mainData:{},
|
|
mainData:{},
|
|
mainAreaData:[],
|
|
mainAreaData:[],
|
|
|
|
+ detailInfo:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components:{
|
|
components:{
|
|
- // salescope,
|
|
|
|
- // SaleClass,
|
|
|
|
- // accountMoney
|
|
|
|
|
|
+ enterpriseTable,
|
|
|
|
+ Add,
|
|
|
|
+ Edit,
|
|
|
|
+ BaseInfo
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
async queryMainData (id) {
|
|
async queryMainData (id) {
|
|
@@ -90,20 +106,8 @@ export default {
|
|
value: this.mainData.billno
|
|
value: this.mainData.billno
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- label:'客户名称',
|
|
|
|
- value: this.mainData.enterprisename
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'账户编号',
|
|
|
|
- value: this.mainData.accountno
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'账户类型',
|
|
|
|
- value: this.mainData.accountname
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'信用额度',
|
|
|
|
- value: this.mainData.creditquota
|
|
|
|
|
|
+ label:'单据日期',
|
|
|
|
+ value: this.mainData.createdate
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label:'状态',
|
|
label:'状态',
|
|
@@ -113,36 +117,33 @@ export default {
|
|
label:'备注',
|
|
label:'备注',
|
|
value: this.mainData.remarks
|
|
value: this.mainData.remarks
|
|
},
|
|
},
|
|
- {
|
|
|
|
- label:'状态',
|
|
|
|
- value: this.mainData.status
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'创建人',
|
|
|
|
- value: this.mainData.createby
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'创建时间',
|
|
|
|
- value: this.mainData.createdate
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'最近修改人',
|
|
|
|
- value: this.mainData.changeby
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'修改时间',
|
|
|
|
- value: this.mainData.changedate
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'审核人',
|
|
|
|
- value: this.mainData.checkby
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'审核时间',
|
|
|
|
- value: this.mainData.checkdate
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
]
|
|
]
|
|
|
|
+ this.detailInfo = {
|
|
|
|
+ baseInfo: [
|
|
|
|
+ {
|
|
|
|
+ label:'额度单号',
|
|
|
|
+ value: this.mainData.billno
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'单据日期',
|
|
|
|
+ value: this.mainData.createdate
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'状态',
|
|
|
|
+ value: this.mainData.status
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'备注',
|
|
|
|
+ value: this.mainData.remarks
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ systemInfo: [
|
|
|
|
+ {label:'创建人',value:this.mainData.createby},
|
|
|
|
+ {label:'创建时间',value:this.mainData.createdate},
|
|
|
|
+ {label:'审核人',value:this.mainData.checkby},
|
|
|
|
+ {label:'审核时间',value:this.mainData.checkdate},
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|