bug修改,单据类型与仓库联动问题

fengcang
anthonyywj2 3 years ago
parent 37c5637c08
commit 66990e1ae5

@ -42,6 +42,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -255,7 +256,8 @@
</el-col>
<el-col :span="7">
<el-form-item prop="count">
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true" type="number"></el-input>
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true"
type="number"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
@ -763,6 +765,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -818,6 +821,10 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
submitUploadDetail() {
this.$refs["dataForm"].validate(valid => {
if (valid) {

@ -42,6 +42,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -798,6 +799,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -875,6 +877,10 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
supplementOrder(row) {
this.$confirm('是否确认补单?', '提示', {
confirmButtonText: '确定',
@ -890,7 +896,16 @@ export default {
let orderQuery = {
billNo: row.billNo
}
supplementOrder(orderQuery);
this.loading = true;
supplementOrder(orderQuery).then((response) => {
this.loading = false;
if (response.code == 20000) {
this.getList();
}
})
.catch(() => {
this.loading = false;
});
}).catch(() => {
this.$message({
type: 'info',

@ -41,6 +41,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -369,7 +370,8 @@
</el-col>
<el-col :span="7">
<el-form-item prop="count">
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true" type="number"></el-input>
<el-input v-model="detailFormData.count" auto-complete="off" :disabled="true"
type="number"></el-input>
</el-form-item>
</el-col>
<el-col :span="3">
@ -876,6 +878,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -981,6 +984,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
},
components: {
draggable,

@ -43,6 +43,7 @@
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -877,6 +878,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -953,6 +955,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
},
components: {
@ -1000,7 +1005,7 @@ export default {
/**
解决el-input输入框 type=number时输入中文光标上移问题
*/
.el-input__inner{
.el-input__inner {
line-height: 1px !important;
}

@ -197,6 +197,7 @@
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
:disabled="codeArray.length>0"
@change="subStorageChange"
clearable>
<el-option
v-for="item in subInvList"
@ -689,6 +690,7 @@ export default {
this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code;
this.getBusType();
}
})
.catch(() => {
@ -1154,6 +1156,7 @@ export default {
},
getBusType() {
let query = {
code: this.formData.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -1161,6 +1164,11 @@ export default {
this.busTypes = response.data.list || [];
if (this.$isNotBlank(this.formData.billType)) {
this.curAction = this.getActionItem(this.formData.billType);
if (this.curAction != null) {
} else {
this.curAction = {corpType:0,genUnit: false,changeEnable:false,};
this.formData.billType = null;
}
}
})
.catch(() => {
@ -1220,15 +1228,18 @@ export default {
actionChange(item) {
this.curAction = this.getActionItem(item);
this.formData.corpName = '';
this.locInChange();
this.findMethod();
// this.locInChange();
// this.findMethod();
},
locInChange() {
this.$forceUpdate();
this.getBusType();
// this.getBusType();
this.invChange();
this.findStorageMethod();
},
subStorageChange() {
this.getBusType();
},
invChange() {
if (this.$isNotBlank(this.formData.invWarehouseCode))
@ -1246,6 +1257,7 @@ export default {
this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0].code;
this.getBusType();
}
})
.catch(() => {

@ -42,6 +42,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -904,6 +905,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -956,7 +958,9 @@ export default {
});
},
subInvChange() {
this.getBusType();
},
submitUploadDetail() {
this.$refs["dataForm"].validate(valid => {
if (valid) {

@ -42,6 +42,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -762,6 +763,7 @@ export default {
},
getBusType() {
let query = {
code: this.query.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -816,6 +818,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
submitUploadDetail() {
this.$refs["dataForm"].validate(valid => {
if (valid) {

@ -187,7 +187,7 @@
<el-col :span="8">
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
:disabled="corpOrderIdDisabled">
:disabled="corpOrderIdDisabled" @change="subStorageChange">
<el-option
v-for="item in subInvList"
:key="item.name"
@ -872,32 +872,38 @@ export default {
},
getBusType() {
let query = {
code: this.formData.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
.then((response) => {
this.busTypes = response.data.list || [];
if (this.formData.action != null) {
this.curAction = this.getActionItem(this.formData.action);
if (this.curAction != null) {
this.formData.vailInv = this.curAction.vailInv;
this.formData.codeFillCheck = this.curAction.codeFillCheck;
this.busTypes = response.data.list || [];
if (this.formData.action != null) {
this.curAction = this.getActionItem(this.formData.action);
if (this.curAction != null) {
this.formData.vailInv = this.curAction.vailInv;
this.formData.codeFillCheck = this.curAction.codeFillCheck;
}
} else {
this.curAction = {corpType: 0, genUnit: false, changeEnable: false,};
this.formData.action = null;
}
}
})
)
.catch(() => {
});
},
subStorageChange() {
this.getBusType();
},
geActionName(action) {
this.busTypes.forEach((obj) => {
if (obj.action == action) {
return obj.name;
}
});
},
}
,
locCHange() {
if (this.$isNotBlank(this.formData.invWarehouseCode)) {
@ -905,7 +911,8 @@ export default {
}
this.findStorageMethod();
this.findSubInvByInv(this.formData.locStorageCode);
},
}
,
findMethod(query) {
console.log(query);
this.fromOptions = [];
@ -942,7 +949,8 @@ export default {
.catch(() => {
this.loading = false;
});
},
}
,
findStorageMethod() {
if (this.formData.locStorageCode == null)
@ -957,7 +965,8 @@ export default {
})
.catch(() => {
});
},
}
,
findSubStorageMethod() {
let cQuery = {
@ -970,7 +979,8 @@ export default {
})
.catch(() => {
});
},
}
,
findSubInvByInv(invCode) {
@ -982,12 +992,14 @@ export default {
.then((response) => {
this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
// this.formData.invWarehouseCode = this.subInvList[0].code;
this.formData.invWarehouseCode = this.subInvList[0].code;
this.getBusType();
}
})
.catch(() => {
});
},
}
,
getStorage(event) {
@ -998,14 +1010,16 @@ export default {
})
.catch(() => {
});
},
}
,
getActionName(action) {
for (let i = 0; i < this.busTypes.length; i++) {
if (this.busTypes[i].action === action) {
return this.busTypes[i].advanceType;
}
}
},
}
,
getActionItem(action) {
console.log("-----")
for (let i = 0; i < this.busTypes.length; i++) {
@ -1014,7 +1028,8 @@ export default {
return this.busTypes[i];
}
}
},
}
,
actionChange(item) {
this.curAction = this.getActionItem(item);
this.findMethod();
@ -1024,19 +1039,22 @@ export default {
this.$set(this.formData, "outChangeEnable", this.curAction.ullageFill);
this.$set(this.formData, "codeFillCheck", this.curAction.codeFillCheck);
},
}
,
//
//
bindRl(val) {
console.log("curRow.erpId = " + val.id);
this.curRow = val;
this.selectRlVisible = true;
},
}
,
handleUnitClick(row) {
console.log("curRow.erpId = " + row.id);
this.curRow = row;
this.dialogTableVisible = true;
},
}
,
selectSupUnit(row) {
let query = {
id: this.curRow.id,
@ -1054,7 +1072,8 @@ export default {
}).catch(() => {
});
},
}
,
selectBindRl(row) {
@ -1082,12 +1101,14 @@ export default {
}).catch(() => {
});
},
}
,
closeBindDialog(val) {
console.log("closeBindDialog" + val);
this.selectRlVisible = false;
this.dialogTableVisible = false;
},
}
,
rowStyle({row, rowIndex}) {
let rowBackground = {};
@ -1097,12 +1118,14 @@ export default {
}
return rowBackground;
},
}
,
},
filters: {},
filters: {}
,
mounted() {
document.body.ondrop = function (event) {
event.preventDefault();
@ -1134,7 +1157,8 @@ export default {
};
inputer.focus();
},
}
,
created() {
this.formData.code = '';
this.formData.actDate = new Date();
@ -1183,8 +1207,10 @@ export default {
}
},
};
}
,
}
;
</script>

@ -48,6 +48,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -254,7 +255,6 @@
</el-table>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
@ -1033,6 +1033,7 @@ export default {
},
getBusType() {
let query = {
code: this.filterQuery.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -1112,6 +1113,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
},
filters: {
statusFilterType(status) {

@ -48,6 +48,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -828,6 +829,7 @@ export default {
},
getBusType() {
let query = {
code: this.filterQuery.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -872,6 +874,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
},
filters: {
statusFilterType(status) {

@ -49,6 +49,7 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
@change="subInvChange"
size="mini">
<el-option
v-for="item in subInvList"
@ -881,6 +882,7 @@ export default {
},
getBusType() {
let query = {
code: this.filterQuery.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -912,6 +914,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
}
,
filters: {

@ -43,7 +43,9 @@
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
size="mini">
size="mini"
@change="subInvChange"
>
<el-option
v-for="item in subInvList"
:key="item.name"
@ -415,6 +417,7 @@ export default {
},
getBusType() {
let query = {
code: this.filterQuery.invWarehouseCode,
enabled: true,
};
getLocalJoinByUser(query)
@ -671,6 +674,9 @@ export default {
.catch(() => {
});
},
subInvChange() {
this.getBusType();
},
init() {
axios.get("./config.json").then(res => {
//

Loading…
Cancel
Save