|
|
@@ -14,7 +14,6 @@
|
|
|
clearable>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
-
|
|
|
<div style="margin-top: 20px">
|
|
|
<tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true" :height="tableHieght" >
|
|
|
<template v-slot:customcol="scope">
|
|
|
@@ -25,38 +24,11 @@
|
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
|
<edit class="inline-16" v-if="tool.checkAuth($route.name,'update')" :data="scope.data" @updateSuccess="onSuccess"></edit>
|
|
|
+ <set_customer_type class="inline-16" :data="scope.data" @setSuccess="onSuccess"></set_customer_type>
|
|
|
<to_del class="inline-16" :data="scope.data" @toDelSuccess="onSuccess"></to_del>
|
|
|
-<!-- <toVoid v-if="tool.checkAuth($route.name,'toVoid')" :data="scope.data" @toVoidSuccess="onSuccess"></toVoid>-->
|
|
|
</template>
|
|
|
</tableLayout>
|
|
|
</div>
|
|
|
-
|
|
|
-<!-- <basicLayout
|
|
|
- ref="basicLayout"
|
|
|
- formPath="projectChange/andEnterprise"
|
|
|
- tableName="andEnterpriseTable"
|
|
|
- idName="sa_project_partiesid"
|
|
|
- :apiId="{query:20221027143702,del:20221027143802}"
|
|
|
- :options="options"
|
|
|
- @listCreate="list"
|
|
|
- customTitle="缔约信息">
|
|
|
- <div slot="custom"></div>
|
|
|
- <template v-slot:tbList="scope">
|
|
|
- <div v-if="!scope.data.column.data[scope.data.column.columnname]">
|
|
|
- --
|
|
|
- </div>
|
|
|
- <div v-else-if="scope.data.column.columnname == 'province'">
|
|
|
- {{`${scope.data.column.data['province']}、${scope.data.column.data['city']}、${scope.data.column.data['county']}`}}
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- {{scope.data.column.data[[scope.data.column.columnname]]}}
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-slot:opreation="scope">
|
|
|
-<!– <edit v-if="tool.checkAuth($route.name,'update')" :data="scope.data" @updateSuccess="onSuccess"></edit>
|
|
|
- <toVoid v-if="tool.checkAuth($route.name,'toVoid')" :data="scope.data" @toVoidSuccess="onSuccess"></toVoid>–>
|
|
|
- </template>
|
|
|
- </basicLayout>-->
|
|
|
<div style="margin-top:16px;text-align:right">
|
|
|
<el-pagination
|
|
|
background
|
|
|
@@ -77,12 +49,14 @@
|
|
|
import add from './components/add'
|
|
|
import edit from './components/edit'
|
|
|
import to_del from './components/toDel'
|
|
|
+import set_customer_type from './components/setCustomerType'
|
|
|
export default {
|
|
|
- components:{add,edit,to_del},
|
|
|
+ components:{add,edit,to_del,set_customer_type},
|
|
|
name: "index",
|
|
|
props:["rowData"],
|
|
|
data() {
|
|
|
return {
|
|
|
+ enterpriseTypeList:'',
|
|
|
tableHieght:"600px",
|
|
|
tablecols:[],
|
|
|
list:[],
|
|
|
@@ -102,6 +76,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ provide(){
|
|
|
+ return {
|
|
|
+ enterpriseType:() => this.enterpriseTypeList
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
/*list (param) {
|
|
|
param.content.sa_projectid = this.$route.query.id
|
|
|
@@ -136,6 +115,22 @@ export default {
|
|
|
queryClick(){
|
|
|
this.params.content.where.condition = this.search
|
|
|
this.listData()
|
|
|
+ },
|
|
|
+ /*获取客户类型*/
|
|
|
+ async enterpriseType(){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
+ "method": "optiontypeselect",
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "typename": "customertypemx",
|
|
|
+ "parameter": {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.enterpriseTypeList = res.data
|
|
|
+ console.log(this.enterpriseTypeList,"客户类型")
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -143,6 +138,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.tablecols = this.tool.tabelCol(this.$route.name).andEnterpriseTable.tablecols
|
|
|
+ this.enterpriseType()
|
|
|
},
|
|
|
}
|
|
|
</script>
|