|
|
@ -182,7 +182,8 @@
|
|
|
|
<el-select v-model="editLogin.invCode"
|
|
|
|
<el-select v-model="editLogin.invCode"
|
|
|
|
style="width: 35%;"
|
|
|
|
style="width: 35%;"
|
|
|
|
:disabled="targetPlatformEdit"
|
|
|
|
:disabled="targetPlatformEdit"
|
|
|
|
placeholder="目标仓库信息" @change="locInvChange"
|
|
|
|
placeholder="目标仓库信息"
|
|
|
|
|
|
|
|
@change="locInvChange"
|
|
|
|
clearable>
|
|
|
|
clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in targetInvs"
|
|
|
|
v-for="item in targetInvs"
|
|
|
@ -197,7 +198,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<el-col :span="20" class="el-col" type="flex">
|
|
|
|
<el-col :span="20" class="el-col" type="flex">
|
|
|
|
<div class="text item">
|
|
|
|
<div class="text item">
|
|
|
|
<el-form-item label="目标分库" prop="invSubCode">
|
|
|
|
<el-form-item label="目标分库" prop="invSubCode">
|
|
|
@ -217,7 +218,7 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row> -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<el-col :span="15" class="el-col" type="flex">
|
|
|
|
<el-col :span="15" class="el-col" type="flex">
|
|
|
@ -329,11 +330,11 @@ export default {
|
|
|
|
{required: true, message: "请选择自助平台", trigger: "change"}
|
|
|
|
{required: true, message: "请选择自助平台", trigger: "change"}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
invCode: [
|
|
|
|
invCode: [
|
|
|
|
{required: true, message: "请选择目标分库", trigger: "change"}
|
|
|
|
{required: true, message: "请选择目标仓库", trigger: "change"}
|
|
|
|
],
|
|
|
|
|
|
|
|
invSubCode: [
|
|
|
|
|
|
|
|
{required: true, message: "请选择目标分库", trigger: 'change'}
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
// invSubCode: [
|
|
|
|
|
|
|
|
// {required: true, message: "请选择目标分库", trigger: 'change'}
|
|
|
|
|
|
|
|
// ],
|
|
|
|
platformUsername: [
|
|
|
|
platformUsername: [
|
|
|
|
{required: true, message: "请输入账号", trigger: "change"}
|
|
|
|
{required: true, message: "请输入账号", trigger: "change"}
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -422,8 +423,8 @@ export default {
|
|
|
|
this.curPlatformId = row.platformId;
|
|
|
|
this.curPlatformId = row.platformId;
|
|
|
|
this.getTargetInv();
|
|
|
|
this.getTargetInv();
|
|
|
|
|
|
|
|
|
|
|
|
this.getTargetSubInv();
|
|
|
|
// this.getTargetSubInv();
|
|
|
|
this.getTargetActions();
|
|
|
|
// this.getTargetActions();
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -484,6 +485,9 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
this.platformList = [];
|
|
|
|
this.platformList = [];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
change(){
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
unitChange(value) {
|
|
|
|
unitChange(value) {
|
|
|
|
this.editLogin.unitId = value;
|
|
|
|
this.editLogin.unitId = value;
|
|
|
@ -493,7 +497,7 @@ export default {
|
|
|
|
this.curPlatformId = value;
|
|
|
|
this.curPlatformId = value;
|
|
|
|
this.targetPlatformEdit = true;
|
|
|
|
this.targetPlatformEdit = true;
|
|
|
|
//拉取对应平台的单据类型
|
|
|
|
//拉取对应平台的单据类型
|
|
|
|
this.getTargetInv(value);
|
|
|
|
// this.getTargetInv(value);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getTargetActions() {
|
|
|
|
getTargetActions() {
|
|
|
@ -638,7 +642,13 @@ export default {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
locInvChange() {
|
|
|
|
locInvChange() {
|
|
|
|
this.getTargetSubInv();
|
|
|
|
this.targetAction = null
|
|
|
|
|
|
|
|
let index = this.targetInvs.findIndex(i=>i.code==this.editLogin.invCode);
|
|
|
|
|
|
|
|
if(index!=-1){
|
|
|
|
|
|
|
|
this.targetActions = this.targetInvs[index].bussinessTypeList||[]
|
|
|
|
|
|
|
|
this.editLogin.invSubCode = this.targetInvs[index].deptCode||''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.getTargetSubInv();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
locSubInvChange() {
|
|
|
|
locSubInvChange() {
|
|
|
@ -647,15 +657,15 @@ export default {
|
|
|
|
testUserInfo() {
|
|
|
|
testUserInfo() {
|
|
|
|
if (isBlank(this.editLogin.platformId)) {
|
|
|
|
if (isBlank(this.editLogin.platformId)) {
|
|
|
|
this.$message.error("请选择自助平台");
|
|
|
|
this.$message.error("请选择自助平台");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isBlank(this.editLogin.platformUsername)) {
|
|
|
|
if (isBlank(this.editLogin.platformUsername)) {
|
|
|
|
this.$message.error("请输入用户名");
|
|
|
|
this.$message.error("请输入用户名");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isBlank(this.editLogin.platformPassword)) {
|
|
|
|
if (isBlank(this.editLogin.platformPassword)) {
|
|
|
|
this.$message.error("请输入密码");
|
|
|
|
this.$message.error("请输入密码");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let data = {
|
|
|
|
let data = {
|
|
|
|
platformId: this.editLogin.platformId,
|
|
|
|
platformId: this.editLogin.platformId,
|
|
|
@ -665,6 +675,18 @@ export default {
|
|
|
|
testUserInfo(data).then((res) => {
|
|
|
|
testUserInfo(data).then((res) => {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
this.targetPlatformEdit = false;
|
|
|
|
this.targetPlatformEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.targetInvs = res.data?res.data.invList || []:[];
|
|
|
|
|
|
|
|
if(this.editLogin.invCode){
|
|
|
|
|
|
|
|
let index = this.targetInvs.findIndex(i=>i.code==this.editLogin.invCode);
|
|
|
|
|
|
|
|
if(index!=-1){
|
|
|
|
|
|
|
|
this.targetActions = this.targetInvs[index].bussinessTypeList||[]
|
|
|
|
|
|
|
|
this.editLogin.invSubCode = this.targetInvs[index].deptCode||''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.editLogin.appid = res.data.license.appid
|
|
|
|
|
|
|
|
this.editLogin.appKey = res.data.license.appKey
|
|
|
|
|
|
|
|
this.editLogin.sceretKey = res.data.license.sceretKey
|
|
|
|
this.$message.success("验证成功");
|
|
|
|
this.$message.success("验证成功");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message);
|
|
|
|
this.$message.error(res.message);
|
|
|
|