|
|
|
@ -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();
|
|
|
|
|