修改bug

ww
郑明梁 3 years ago committed by wangwei
parent 4753486889
commit 89731bff86

@ -645,8 +645,11 @@ export default {
this.query.startTime = null; this.query.startTime = null;
this.query.endTime = null; this.query.endTime = null;
} }
this.query.page=1
this.getList(); this.getList();
//
this.detailQuery.page=1
this.detailTotal=0
if (this.query.status === "202") { if (this.query.status === "202") {
this.haveDistributionVisible = true; this.haveDistributionVisible = true;
} else { } else {

@ -744,11 +744,13 @@ export default {
this.thisData.stockOrderLists = this.codeArray; this.thisData.stockOrderLists = this.codeArray;
this.thisData.formData = this.formData; this.thisData.formData = this.formData;
let item = this.getActionItem(this.formData.billType); let item = this.getActionItem(this.formData.billType);
if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) { if (item.mainAction == 'WareHouseOut' && this.formData.noInvOut != true) {
this.invQueryData = { this.invQueryData = {
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode, invWarehouseCode: this.formData.invWarehouseCode,
}; };
debugger
if (!isBlank(this.formData.unitIdFk) && this.formData.unitIdFk === this.formData.corpId) { if (!isBlank(this.formData.unitIdFk) && this.formData.unitIdFk === this.formData.corpId) {
this.invQueryData.corpId = this.formData.corpId; this.invQueryData.corpId = this.formData.corpId;
} }
@ -761,6 +763,7 @@ export default {
}; };
this.selectInvProductVisible = true; this.selectInvProductVisible = true;
} else { } else {
this.invQueryData.corpId = this.formData.corpId;
this.selectProductVisible = true; this.selectProductVisible = true;
} }
return; return;

@ -307,9 +307,12 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.listQuery.customerId = store.getters.customerId; this.listQuery.customerId = store.getters.customerId;
if( this.data.companyName!=undefined && this.data.companyName!=null ){ if(this.data!=undefined && this.data.companyName!=undefined && this.data.companyName!=null ){
this.listQuery.companyName = this.data.companyName; this.listQuery.companyName = this.data.companyName;
} }
if(this.data.formData!=undefined && this.data.formData.corpName!=undefined && this.data.formData.corpName!=null ){
this.listQuery.companyName = this.data.formData.corpName;
}
if (this.filterType != null && this.filterType === 2) { if (this.filterType != null && this.filterType === 2) {
filterAllProduct(this.listQuery) filterAllProduct(this.listQuery)

@ -136,7 +136,7 @@
> >
<el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true" <el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true"
:disabled="corpOrderIdDisabled" filterable :disabled="corpOrderIdDisabled" @change="getFormCorp" filterable
> >
<el-option <el-option
v-for="item in fromSubStorageOptions" v-for="item in fromSubStorageOptions"
@ -506,7 +506,6 @@ export default {
deleteLoading: false, deleteLoading: false,
orderNo: null, orderNo: null,
fromOptions: [], fromOptions: [],
fromStorageOptions: [],
fromSubStorageOptions: [], fromSubStorageOptions: [],
curAction: { curAction: {
corpType: 0, corpType: 0,
@ -541,7 +540,9 @@ export default {
orderId: this.idQuery.id, orderId: this.idQuery.id,
locStorageCode: this.formData.locStorageCode, locStorageCode: this.formData.locStorageCode,
invWarehouseCode: this.formData.invWarehouseCode, invWarehouseCode: this.formData.invWarehouseCode,
invStorageCode:this.formData.invStorageCode,
fromSubInvCode: this.formData.fromSubInvCode, fromSubInvCode: this.formData.fromSubInvCode,
subInvCode: this.formData.subInvCode,
action: this.formData.action, action: this.formData.action,
fromCorp: this.formData.fromCorp, fromCorp: this.formData.fromCorp,
fromCorpId: this.formData.fromCorpId, fromCorpId: this.formData.fromCorpId,
@ -961,23 +962,10 @@ export default {
} }
, ,
findStorageMethod() {
if (this.formData.locStorageCode == null)
return;
this.fromStorageOptions = [];
let cQuery = {
locInvCode: this.formData.locStorageCode,
};
filterAllByLoc(cQuery)
.then((response) => {
this.fromStorageOptions = response.data || [];
})
.catch(() => {
});
}
,
findSubStorageMethod() { findSubStorageMethod() {
this.formData.invStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.getBusType(); this.getBusType();
let cQuery = { let cQuery = {
code: this.formData.invWarehouseCode, code: this.formData.invWarehouseCode,
@ -991,7 +979,11 @@ export default {
}); });
} }
, ,
getFormCorp(){
this.formData.subInvCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId
this.formData.fromCorp=this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).warehouseName
this.formData.fromCorpId=this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).code
},
findSubInvByInv(invCode) { findSubInvByInv(invCode) {
this.subInvList = []; this.subInvList = [];
@ -1001,9 +993,9 @@ export default {
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
this.subInvList = response.data || []; this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) { if (this.subInvList != null) {
this.formData.invWarehouseCode = this.subInvList[0].code;
this.getBusType(); this.getBusType();
this.findSubStorageMethod();
} }
}) })
.catch(() => { .catch(() => {
@ -1025,16 +1017,6 @@ export default {
this.fromDeptOptions = []; this.fromDeptOptions = [];
}); });
}, },
getStorage(event) {
this.storageList = [];
filterAllByUser()
.then((response) => {
this.storageList = response.data || [];
})
.catch(() => {
});
}
,
getActionName(action) { getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) { for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) { if (this.busTypes[i].action === action) {
@ -1181,7 +1163,7 @@ export default {
this.formData.actDate = new Date(); this.formData.actDate = new Date();
this.codeArray = []; this.codeArray = [];
this.getStorage(this.formData.action);
if (this.$isNotBlank(this.idQuery.id)) { if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate); this.formData.actDate = new Date(this.idQuery.actDate);
@ -1216,17 +1198,10 @@ export default {
// this.getCodeList(); // this.getCodeList();
} }
this.formData.invWarehouseCode = this.$store.getters.locSubInvCode; this.formData.invWarehouseCode = this.$store.getters.locSubInvCode;
this.formData.invStorageCode=this.$store.getters.locInvCode;
this.formData.locStorageCode = this.$store.getters.locInvCode; this.formData.locStorageCode = this.$store.getters.locInvCode;
if (this.$isNotBlank(this.formData.locStorageCode)) {
this.findStorageMethod();
}
} }
this.findSubInvByInv(this.formData.locStorageCode); this.findSubInvByInv(this.formData.locStorageCode);
this.findSubStorageMethod();
if(this.formData.invWarehouseCode!=null){
this.getBusType();
}
// //
selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => { selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {

@ -306,13 +306,13 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="单据数量" label="单据数量"
prop="reCount" prop="erpCount"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="实际数量" label="实际数量"
prop="erpCount" prop="reCount"
width="100" width="100"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>

@ -457,17 +457,20 @@ export default {
/**---------------------------配送产品资质----------------------*/ /**---------------------------配送产品资质----------------------*/
onReset2() { onReset2() {
this.registrationQuery = { //
customerId: null, if(this.currentManufacturer!=null){
manufacturerIdFk: null, this.registrationQuery = {
recordProductName: "", customerId: this.registrationQuery.customerId,
recordCode: "", manufacturerIdFk: this.registrationQuery.manufacturerIdFk,
recordPeopleName: "", recordProductName: "",
auditStatus: null, recordCode: "",
page: 1, recordPeopleName: "",
limit: 20 auditStatus: null,
}; page: 1,
this.getRegistrationList(); limit: 20
};
this.getRegistrationList();
}
}, },
onSubmit2() { onSubmit2() {
if(this.currentManufacturer==null){ if(this.currentManufacturer==null){

@ -469,16 +469,16 @@ export default {
3: "变更未审核", 3: "变更未审核",
6: "未审核", 6: "未审核",
}, },
statusFlag: {
0: "有效",
1: "失效",
},
editTye: 1, editTye: 1,
formName: 1, formName: 1,
formMap: { formMap: {
1: "新增生产企业资质证书", 1: "新增生产企业资质证书",
2: "编辑生产企业资质证书", 2: "编辑生产企业资质证书",
}, },
formMap: {
1: "新增生产企业资质证书",
2: "编辑生产企业资质证书",
},
manufacturerId: null, manufacturerId: null,
customerId: null, customerId: null,
selectCertVisible: false, selectCertVisible: false,
@ -513,20 +513,7 @@ export default {
methods: { methods: {
onModifySubmit(type) { onModifySubmit(type) {
// this.addOrModifyCompany(type);
let query = {
customerId: this.$store.getters.customerId
}
getCompany(query)
.then((response) => {
if(response.data.auditStatus!=1){
this.$message.error("本企业信息还未通过审核!");
return;
}else{
this.addOrModifyCompany(type);
}}).catch(() => {
});
}, },
addOrModifyCompany (type){ addOrModifyCompany (type){
this.$refs["inputQuery"].validate(valid => { this.$refs["inputQuery"].validate(valid => {

@ -479,7 +479,6 @@ export default {
this.findSubStorageMethod(); this.findSubStorageMethod();
}, },
subStorageChange(item) { subStorageChange(item) {
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code
this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName

Loading…
Cancel
Save