|
|
@@ -8,7 +8,7 @@
|
|
|
</el-button>
|
|
|
<h4 style="margin: 0">往来单位</h4>
|
|
|
<dev>
|
|
|
- <!-- <el-button v-if="formData.id" type="warning" @click="merge">合并客户</el-button> -->
|
|
|
+ <el-button v-if="formData.id" type="warning" @click="merge">合并客户</el-button>
|
|
|
<el-button v-if="formData.id" type="success" @click="fix">修改资料</el-button>
|
|
|
<el-button type="primary" @click="submitForm">保存</el-button>
|
|
|
</dev>
|
|
|
@@ -868,7 +868,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'客户联系人')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '客户联系人')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
<el-button v-if="scope.row.userId == 0" type="text" size="small" @click="createUser(scope)">创建用户</el-button>
|
|
|
</template>
|
|
|
@@ -903,7 +903,7 @@
|
|
|
<el-table-column prop="remarks" label="备注" width="180" />
|
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'银行信息')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '银行信息')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -938,7 +938,7 @@
|
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="openPreview(scope.row)">查看</el-button>
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'附件')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '附件')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -962,7 +962,7 @@
|
|
|
<el-table-column prop="remarks" label="备注" />
|
|
|
<el-table-column fixed="right" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'更名记录')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '更名记录')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -1003,7 +1003,7 @@
|
|
|
<el-table-column prop="remarks" label="备注" width="180" />
|
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'发票抬头')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '发票抬头')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -1030,7 +1030,7 @@
|
|
|
<el-table-column prop="remarks" label="备注" />
|
|
|
<el-table-column fixed="right" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" @click="corpsAttnHandle(scope,'不良记录')">编辑</el-button>
|
|
|
+ <el-button type="text" size="small" @click="corpsAttnHandle(scope, '不良记录')">编辑</el-button>
|
|
|
<el-button type="text" size="small" @click="corpsAttnDelete(scope)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -1348,7 +1348,7 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<dictbiz-dialog ref="dictbiz" title="添加客户来源" code="corp_Source" parentId="1866359762266894337" @closed="getAllWorkDicts"> </dictbiz-dialog>
|
|
|
- <merge-customers ref="merge"></merge-customers>
|
|
|
+ <merge-customers ref="merge" @importData="getBcorpsDetailfun(formData.id)"></merge-customers>
|
|
|
</dev>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -1385,7 +1385,7 @@ import blines from "@/views/iosBasicData/blines/index.vue";
|
|
|
import { selectListLos, selectListLos2 } from "@/api/approval/processConfig";
|
|
|
import losaudit from "@/views/wel/components/losAssembly/losaudit.vue";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
-import mergeCustomers from "./components/mergeCustomers.vue"
|
|
|
+import mergeCustomers from "./components/mergeCustomers.vue";
|
|
|
export default {
|
|
|
components: {
|
|
|
SearchQuery,
|
|
|
@@ -1738,8 +1738,8 @@ export default {
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
- merge(){
|
|
|
- this.$refs.merge.openDialog()
|
|
|
+ merge() {
|
|
|
+ this.$refs.merge.openDialog(this.formData);
|
|
|
},
|
|
|
fix() {
|
|
|
this.$DialogForm.show({
|
|
|
@@ -1945,11 +1945,21 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
getBcorpsDetailfun(id) {
|
|
|
- getBcorpsDetail(id).then(res => {
|
|
|
- this.formData = res.data.data;
|
|
|
- this.formData.corpTypeList = res.data.data.corpType.split(",");
|
|
|
- this.$set(this.formData, "adminProfilesList", res.data.data.adminProfiles.split(","));
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "加载中",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
+ getBcorpsDetail(id)
|
|
|
+ .then(res => {
|
|
|
+ this.formData = res.data.data;
|
|
|
+ this.formData.corpTypeList = res.data.data.corpType.split(",");
|
|
|
+ this.$set(this.formData, "adminProfilesList", res.data.data.adminProfiles.split(","));
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
},
|
|
|
// ps 规则下拉
|
|
|
psRateChange(value, name) {
|
|
|
@@ -2303,8 +2313,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 编辑
|
|
|
- corpsAttnHandle(scope,name) {
|
|
|
- this.dialogTitle=name?name:'窗口'
|
|
|
+ corpsAttnHandle(scope, name) {
|
|
|
+ this.dialogTitle = name ? name : "窗口";
|
|
|
this.corpsAttnDialogIndex = scope.$index;
|
|
|
this.corpsAttnForm = scope.row;
|
|
|
this.corpsAttnDialogVisible = true;
|