|
|
|
@ -59,13 +59,6 @@
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="handleLinkClick(scope.row)"
|
|
|
|
|
>关联自助平台
|
|
|
|
|
</el-button
|
|
|
|
|
>-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
@ -92,7 +85,7 @@
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="editQuery" ref="editQuery" :rules="rules">
|
|
|
|
|
<el-form :model="editQuery" ref="editQuery">
|
|
|
|
|
<el-row :gutter="20" class="el-row">
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<div class="text item">
|
|
|
|
@ -114,7 +107,7 @@
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>企业自定义ID </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-form-item prop="erpId">
|
|
|
|
|
<el-form-item prop="thirdId">
|
|
|
|
|
<el-input v-model="editQuery.thirdId" style="width: 80%" auto-complete="off"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -194,7 +187,7 @@
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>拼音码 </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-form-item prop="spell">
|
|
|
|
|
<el-form-item prop="pinyinCode">
|
|
|
|
|
<el-input v-model="editQuery.pinyinCode" auto-complete="off"
|
|
|
|
|
style="width: 80%"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -205,102 +198,13 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="cancelDialog" size="small">取消</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click.native="formSubmit()"
|
|
|
|
|
<el-button @click="cancelDialog" size="small">取消</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="formSubmit()"
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="editTypeMap[editType]"
|
|
|
|
|
:visible.sync="editLoginVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
width="40%"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="editLogin" ref="editLogin" :rules="platformRules">
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="15" class="el-col" type="flex">
|
|
|
|
|
<div class="edit-text">
|
|
|
|
|
<el-form-item label="自助平台名称:" prop="platformId">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="editLogin.platformId"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
@change="intentPlatform"
|
|
|
|
|
placeholder="请选择自助平台"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in platformList"
|
|
|
|
|
:key="item.platformId"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="15" class="el-col" type="flex">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<el-form-item label="账号:" prop="platformUsername">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="editLogin.platformUsername"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
@input="change()"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="15" class="el-col" type="flex">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<el-form-item label="密码:" prop="platformPassword">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="editLogin.platformPassword"
|
|
|
|
|
style="width: 80%"
|
|
|
|
|
size="small"
|
|
|
|
|
@input="change()"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native.stop="cancelDialog" size="small">取消</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click.native="linkSubmit()"
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog title="选择自助平台" :visible.sync="platformVisible" width="35%">
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
@row-click="intentPlatform"
|
|
|
|
|
:data="platformList"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="80"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="自助平台名称"
|
|
|
|
|
prop="name"
|
|
|
|
|
width="140"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -330,13 +234,11 @@ export default {
|
|
|
|
|
unitId: null,
|
|
|
|
|
thirdId: null,
|
|
|
|
|
name: null,
|
|
|
|
|
spell: null,
|
|
|
|
|
creditNo: null,
|
|
|
|
|
pinyinCode: null,
|
|
|
|
|
contact: null,
|
|
|
|
|
mobile: null,
|
|
|
|
|
corpType: null,
|
|
|
|
|
outType: null
|
|
|
|
|
corpType: null
|
|
|
|
|
},
|
|
|
|
|
editLogin: {
|
|
|
|
|
platformId: null,
|
|
|
|
@ -353,27 +255,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
spellUpdate: true,
|
|
|
|
|
platformVisible: false,
|
|
|
|
|
editLoginVisible: false,
|
|
|
|
|
checked: false,
|
|
|
|
|
editDialogVisible: false,
|
|
|
|
|
list: [],
|
|
|
|
|
platformList: [],
|
|
|
|
|
total: 0,
|
|
|
|
|
multipleSelection: [],
|
|
|
|
|
rules: {
|
|
|
|
|
name: [
|
|
|
|
|
{required: true, message: "请输入往来单位名称", trigger: "change"}
|
|
|
|
|
],
|
|
|
|
|
creditNo: [
|
|
|
|
|
{required: true, message: "请输入社会信用号", trigger: "change"}
|
|
|
|
|
],
|
|
|
|
|
corpType: [
|
|
|
|
|
{required: true, message: "请选择往来单位类型", trigger: "change"}
|
|
|
|
|
],
|
|
|
|
|
pinyinCode: [
|
|
|
|
|
{required: true, message: "请输入拼音码", trigger: "change"}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
editType: 0,
|
|
|
|
|
editTypeMap: {
|
|
|
|
|
0: "新增往来单位",
|
|
|
|
@ -415,6 +302,12 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
// 刷新表单
|
|
|
|
|
resetForm() {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['editQuery'].resetFields();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.query.page = 1;
|
|
|
|
|
this.getList();
|
|
|
|
@ -468,7 +361,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.editDialogVisible = false;
|
|
|
|
|
this.editLoginVisible = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleModifyClick(row) {
|
|
|
|
@ -476,35 +369,10 @@ export default {
|
|
|
|
|
this.editDialogVisible = true;
|
|
|
|
|
this.editQuery = row;
|
|
|
|
|
},
|
|
|
|
|
handleLinkClick(row) {
|
|
|
|
|
if (row.platformId != null) {
|
|
|
|
|
//已经绑定过
|
|
|
|
|
this.$confirm("是否需要重新关联自助平台?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning"
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.editType = 2;
|
|
|
|
|
this.editLoginVisible = true;
|
|
|
|
|
this.editLogin = row;
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.editType = 2;
|
|
|
|
|
this.editLoginVisible = true;
|
|
|
|
|
this.editLogin = row;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleAddClick() {
|
|
|
|
|
this.editType = 0;
|
|
|
|
|
this.editDialogVisible = true;
|
|
|
|
|
this.editQuery = {
|
|
|
|
|
unitId: null,
|
|
|
|
|
thirdId: null,
|
|
|
|
|
name: null,
|
|
|
|
|
spell: null,
|
|
|
|
|
creditNo: null
|
|
|
|
|
};
|
|
|
|
|
this.resetForm();
|
|
|
|
|
var timestamp3 = new Date().getTime();
|
|
|
|
|
this.editQuery.unitId = timestamp3;
|
|
|
|
|
},
|
|
|
|
@ -576,36 +444,9 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
linkSubmit() {
|
|
|
|
|
this.$refs["editLogin"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
linkPlatform(this.editLogin)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "关联成功"
|
|
|
|
|
});
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
exportTxt() {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
this.multipleSelection = val;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
this.query.page = val;
|
|
|
|
|
this.getList();
|
|
|
|
|