修改bug已经去除采购管理的仓库

zhairh
郑明梁 3 years ago
parent 20f161e327
commit 5867c1386d

@ -1,6 +1,6 @@
{
"BASE_URL": "http://192.168.0.109:9906",
"SERVER_IP": "http://192.168.0.109:9906",
"BASE_URL": "http://192.168.0.41:9996",
"SERVER_IP": "http://192.168.0.41:9996",
"hosp_name": "福建省XX市医院"
}

@ -216,7 +216,8 @@ export default {
findSubInvByInv() {
this.subInvList = [];
let query = {
pcode: this.inputQuery.curInv
pcode: this.inputQuery.curInv,
filter:3
};
filterSubByInv(query)
.then((response) => {

@ -398,22 +398,7 @@ export default {
this.company = response.data;
});
},
getStorage() {
this.storageList = [];
filterAllByUser()
.then((response) => {
if (response.code == 20000) {
this.storageList = response.data || [];
if (this.storageList != null && this.storageList.length == 1) {
this.userInfo.locInvCode = this.storageList[0].code;
}
this.findSubInvByInv();
}
})
.catch(() => {
});
},
locCHange() {
@ -425,8 +410,10 @@ export default {
findSubInvByInv() {
this.subInvList = [];
filterSubByInv()
let query = {
filter:3
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
@ -459,7 +446,7 @@ export default {
this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locSubInvName);
}
this.getStorage();
}
})
.catch(() => {
@ -550,6 +537,7 @@ export default {
},
},
created() {
this.getBreadcrumb();
this.getCompanyData();
// this.getStorage();

@ -62,18 +62,8 @@
<el-col :span="7">
<el-form-item prop="locStorageCode">
<el-select v-model="formData.locStorageCode" placeholder="采购仓库信息" @change="locInChange"
style="width: 50%" :disabled="true"
clearable>
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
<el-select v-model="formData.invWarehouseCode" placeholder="采购分库信息" style="width: 50%"
<el-select v-model="formData.invWarehouseCode" placeholder="采购分库信息" style="width: 100%"
:disabled="true" clearable>
<el-option
v-for="item in subInvList"

@ -104,7 +104,8 @@ export default {
findSubInvByInv() {
this.subInvList = [];
let query = {
pcode: this.userInfo.locInvCode
pcode: this.userInfo.locInvCode,
filter:3
};
filterSubByInv(query)
.then((response) => {

@ -320,7 +320,8 @@ export default {
findSubInvByInv(invCode) {
this.subInvList = [];
let query = {
pcode: invCode
pcode: invCode,
filter:3
};
filterSubByInv(query)
.then((response) => {

@ -1000,6 +1000,7 @@ export default {
},
findSubStorageMethod(val) {
this. getBusType() ;
let cQuery = {
code: this.formData.invWarehouseCode,
filter: 2,
@ -1018,11 +1019,11 @@ export default {
},
findSubInvByInv(invCode) {
findSubInvByInv() {
this.subInvList = [];
let query = {
filter:3
};
filterSubByInv(query)
.then((response) => {
@ -1222,7 +1223,7 @@ export default {
this.findStorageMethod();
}
}
this.findSubInvByInv(this.formData.locStorageCode);
this.findSubInvByInv();
this.findSubStorageMethod();
this.getBusType();

@ -764,7 +764,7 @@ export default {
this.formData.vailInv = this.curAction.vailInv;
this.formData.codeFillCheck = this.curAction.codeFillCheck;
}
this.getStorage(this.formData.billType);
})
.catch(() => {
});
@ -773,7 +773,7 @@ export default {
findSubInvByInv(invCode) {
this.subInvList = [];
let query = {
pcode: invCode
filter:3
};
filterSubByInv(query)
.then((response) => {

@ -116,9 +116,7 @@
</el-form-item>
<el-form-item class="query-form-item" prop="fromCorp"
v-if="curAction.corpType ==1">
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" filterable clearable="true"
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" @change="setCorpName" filterable clearable="true"
:disabled="codeArray.length>0"
>
<el-option
@ -619,16 +617,7 @@ export default {
this.findSubStorageMethod();
},
getStorage(event) {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
})
.catch(() => {
});
},
getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) {
@ -687,9 +676,11 @@ export default {
},
findSubInvByInv(invCode) {
this.subInvList = [];
let query = {
pcode: invCode
pcode: invCode,
filter:3
};
filterSubByInv(query)
.then((response) => {
@ -769,8 +760,16 @@ export default {
}
if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.corpName) || this.$isBlank(this.formData.billType)) {
this.$message.error("往来信息和单据类型不能为空!")
if ( this.$isBlank(this.formData.billType)) {
this.$message.error("单据类型不能为空!")
return;
}
if(this.curAction.corpType==1 && this.$isBlank(this.formData.fromSubInvCode)){
this.$message.error("往来单位不能不能为空!")
return;
}
if(this.curAction.corpType!=1 && this.$isBlank(this.formData.corpName)){
this.$message.error("往来单位不能不能为空!")
return;
}
if (this.$isBlank(this.formData.invWarehouseCode)) {
@ -1079,6 +1078,10 @@ export default {
});
},
setCorpName(code){
this.formData.corpId=code
this.formData.corpName= this.fromSubStorageOptions.find(item => item.code == code).name
},
copyDetail(row) {
this.$confirm("是否复制该记录?", "提示", {
confirmButtonText: "确定",
@ -1265,7 +1268,7 @@ export default {
findSubInvs() {
this.subInvList = [];
let query = {
pcode: this.formData.locStorageCode
filter:3
};
filterSubByInv(query)
.then((response) => {
@ -1318,7 +1321,6 @@ export default {
}
this.findMethod();
this.getBusType();
this.getStorage();
this.findSubInvByInv();
this.findSubStorageMethod();
this.codeArray = [];

@ -62,7 +62,7 @@
</el-col>
<el-col :span="7">
<el-form-item prop="corpName">
<el-input v-model="formData.corpName" auto-complete="off" :disabled="true"></el-input>
<el-input v-if="formData.fromSubInvName ==null" v-model="formData.corpName" auto-complete="off" :disabled="true"></el-input>
<el-input v-if="formData.fromSubInvName !=null" v-model="formData.fromSubInvName"
auto-complete="off" :disabled="true"></el-input>
</el-form-item>
@ -546,7 +546,7 @@ export default {
}
if (this.$isBlank(event)) {
if (this.$isBlank(this.formData.corpName) || this.$isBlank(this.formData.billType)) {
if (this.$isBlank(this.formData.corpName) && this.$isBlank(this.formData.fromSubInvName ==null) || this.$isBlank(this.formData.billType)) {
this.$message.error("往来信息和单据类型不能为空!")
return;
}

@ -72,7 +72,7 @@
</el-col>
<el-col :span="7">
<el-form-item prop="billType">
<el-select v-model="formData.billType" placeholder="请选择业务类型" @change="getStorage"
<el-select v-model="formData.billType" placeholder="请选择业务类型"
:disabled="codeArray.length>0"
clearable>
<el-option
@ -905,15 +905,18 @@ export default {
},
getBusType() {
this.formData.billType=null;
if(this.$isBlank(this.query.orderIdFk)){
this.formData.billType=null;
}
let query = {
enabled: true,
invWarehouseCode: this.formData.invWarehouseCode
};
getLocalJoinByUser(query)
.then((response) => {
this.busTypes = response.data.list || [];
this.getStorage(this.formData.billType);
})
.catch(() => {
});
@ -1002,6 +1005,7 @@ export default {
}
if(this.formData.invWarehouseCode!=null){
this.getBusType();
}

Loading…
Cancel
Save