最新代码提交

dev
wj 2 years ago
parent d04ed03e6f
commit ee6deb73c3

@ -53,6 +53,9 @@ service.interceptors.response.use(
}); });
}); });
} }
// else if(data.code!=20000){
// Message.error(data.message)
// }
} }
return data; return data;
}, },

@ -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);

@ -1,6 +1,10 @@
const UselessFile = require('useless-files-webpack-plugin'); const UselessFile = require('useless-files-webpack-plugin');
module.exports = { module.exports = {
devServer:{
port: 8089,
open: true
},
lintOnSave:false, lintOnSave:false,
baseUrl: process.env.NODE_ENV === "production"|| "test" ? "./" : "/", baseUrl: process.env.NODE_ENV === "production"|| "test" ? "./" : "/",
outputDir: process.env.outputDir, outputDir: process.env.outputDir,

Loading…
Cancel
Save