修改单据功能选取单据类型问题

tagView
zhengmingliang 3 years ago
parent 31fd26645d
commit 695c43125e

@ -472,10 +472,6 @@ export default {
this.getRegistrationList();
},
onSubmit2() {
if(this.currentManufacturer==null){
this.$message.error("请先选中生产企业!");
return
}
this.getRegistrationList();
},
registrationDialog(row) {

@ -116,6 +116,7 @@
<el-col :span="8">
<el-form-item prop="locStorageCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息" clearable
@change="getBusType"
:disabled="corpOrderIdDisabled">
<el-option
@ -329,7 +330,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {parseTime} from "../../filtres/index";
import store from "../../store";
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalBusType, getLocalJoinBusType} from "../../api/basic/busLocalType";
import {getLocalBusType, getLocalJoinBusType,getLocalJoinByUser} from "../../api/basic/busLocalType";
import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl";
import editCodeDialog from "./editCode";
@ -778,8 +779,9 @@ export default {
getBusType() {
let query = {
enabled: true,
invWarehouseCode: this.formData.invWarehouseCode
};
getLocalJoinBusType(query)
getLocalJoinByUser(query)
.then((response) => {
this.busTypes = response.data.list || [];
this.curAction = this.busTypes[0];
@ -933,7 +935,6 @@ export default {
this.formData.fromCorp = store.getters.companyName;// store.getters.customerId === 110 ? '' : store.getters.companyName;
this.formData.fromCorpId = store.getters.customerId;
this.formData.customerId = store.getters.customerId;
this.getBusType();
this.getStorage();
if (this.$isNotBlank(this.idQuery.id)) {
this.formData.actDate = new Date(this.idQuery.actDate);
@ -955,6 +956,7 @@ export default {
this.findSubInvByInv(this.$store.getters.locInvCode);
this.formData.invWarehouseCode = this.$store.getters.locSubInvCode;
this.corpOrderIdDisabled = false;
this.getBusType();
if (JSON.stringify(this.$route.query) === '{}') {
// this.formData.corpOrderId = new Date().getTime() + (Math.ceil(Math.random() * 10 + 10) + '');
let date = new Date();

@ -133,6 +133,7 @@
<el-form-item prop="invWarehouseCode">
<el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息"
:disabled="codeArray.length>0"
@change="getBusType"
clearable>
<el-option
v-for="item in subInvList"
@ -928,7 +929,7 @@ export default {
getBusType() {
let query = {
enabled: true,
code: this.formData.locStorageCode
invWarehouseCode: this.formData.invWarehouseCode
};
getLocalJoinByUser(query)
.then((response) => {
@ -993,7 +994,7 @@ export default {
};
},
created() {
this.getBusType();
this.formData = {};
this.codeArray = [];
this.closeConfirmFunction(false);
@ -1022,6 +1023,7 @@ export default {
}
this.getBusType();
this.findSubInvs();
},
};

Loading…
Cancel
Save