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

tagView
zhengmingliang 3 years ago
parent 31fd26645d
commit 695c43125e

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

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

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

Loading…
Cancel
Save