单据相关bug修改

prod
anthonywj 2 years ago
parent e9d39a0c6c
commit 83a7a5d09c

@ -35,7 +35,10 @@
<el-checkbox v-model="inputQuery.advanceType" style="width: 200px" border>寄售类型单据
</el-checkbox>
<el-checkbox v-model="inputQuery.preIn" style="width: 200px" border>预验收
<el-checkbox v-model="inputQuery.preIn"
:disabled="inputQuery.corpType!='2'"
style="width: 200px" border>预验收
</el-checkbox>
<el-checkbox v-model="inputQuery.spUse" style="width: 200px;" border>

@ -186,21 +186,24 @@ export default {
return;
}
var idster = [];
if(this.codeArray.length>0){
for(var i=0;i<this.codeArray.length;i++){
idster.push(this.codeArray[i].relIdFk);
if(this.codeArray != null || this.codeArray!=undefined ){
if(this.codeArray.length>0){
for(var i=0;i<this.codeArray.length;i++){
idster.push(this.codeArray[i].relIdFk);
}
}
}
if(idster.length>0){
for(var i=0;i<idster.length;i++){
if(idster.length>0){
for(var i=0;i<idster.length;i++){
for(var j=0;j<selection.length;j++){
if(idster[i]==selection[j].relIdFk){
this.$message.error("该产品已录入!");
return
}
}
}
}
}
var ids = [];
selection.forEach((obj, index) => {
let data = {

@ -375,6 +375,10 @@ export default {
},
saveChange(row) {
if(row.batchNo ==''){
row.batchNo =null;
}
updateBizProduct(row)
.then((response) => {
this.loading = false;

Loading…
Cancel
Save