|
|
@ -77,14 +77,16 @@
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<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="corpOrderIdDisabled" @change="findSubStorageMethod" filterable>
|
|
|
|
:disabled="corpOrderIdDisabled" @change="findSubStorageMethod" filterable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in subInvList"
|
|
|
|
v-for="item in subInvList"
|
|
|
|
:key="item.name"
|
|
|
|
:key="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.code">
|
|
|
|
:value="item.code">
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
|
|
|
item.warehouseName
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -131,11 +133,9 @@
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
<el-form-item class="query-form-item" prop="fromCorp"
|
|
|
|
v-if="curAction.corpType ==1"
|
|
|
|
v-if="curAction.corpType ==1"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" clearable="true"
|
|
|
|
<el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" clearable="true"
|
|
|
|
:disabled="corpOrderIdDisabled" filterable
|
|
|
|
:disabled="corpOrderIdDisabled" filterable @change="getFormStorageCode"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in fromSubStorageOptions"
|
|
|
|
v-for="item in fromSubStorageOptions"
|
|
|
@ -143,7 +143,9 @@
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.code">
|
|
|
|
:value="item.code">
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
|
|
|
|
|
item.warehouseName
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
|
|
|
|
<!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>-->
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
@ -160,7 +162,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20" v-if="enableDept">
|
|
|
|
<el-row :gutter="20" v-if="enableDept">
|
|
|
@ -574,7 +576,7 @@ export default {
|
|
|
|
this.$message.error('未选择扫码单据类型');
|
|
|
|
this.$message.error('未选择扫码单据类型');
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
@ -683,15 +685,12 @@ export default {
|
|
|
|
this.$message.warning("请选择单据类型!");
|
|
|
|
this.$message.warning("请选择单据类型!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') {
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
this.$message.error('当前分库不能为空');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.$isBlank(this.formData.fromCorp)) {
|
|
|
|
|
|
|
|
this.$message.error('当前往来单位不能为空');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.curAction.corpType == 1) {
|
|
|
|
if (this.curAction.corpType == 1) {
|
|
|
|
if (this.$isBlank(this.formData.fromSubInvCode)) {
|
|
|
|
if (this.$isBlank(this.formData.fromSubInvCode)) {
|
|
|
|
this.$message.error('当前往来分库不能为空');
|
|
|
|
this.$message.error('当前往来分库不能为空');
|
|
|
@ -815,13 +814,14 @@ export default {
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.curRow = row;
|
|
|
|
this.curRow = row;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
storageChange(row) {
|
|
|
|
getFormStorageCode(code) {
|
|
|
|
this.formData.fromSubInvCode = "";
|
|
|
|
var row= this.fromSubStorageOptions.find(item => item.code == code)
|
|
|
|
this.formData.fromCorpId = row.code;
|
|
|
|
this.formData.fromSubInvCode = row.code
|
|
|
|
|
|
|
|
this.formData.fromCorpId = row.parentId;
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteCode(index, row) {
|
|
|
|
deleteCode(index, row) {
|
|
|
|
this.$confirm("是否确定移除一个条码?", "提示", {
|
|
|
|
this.$confirm("是否确定移除一个条码?", "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
@ -888,7 +888,7 @@ export default {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
enabled: true,
|
|
|
|
enabled: true,
|
|
|
|
type:1
|
|
|
|
type: 1
|
|
|
|
};
|
|
|
|
};
|
|
|
|
getLocalJoinByUser(query)
|
|
|
|
getLocalJoinByUser(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -926,11 +926,9 @@ export default {
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
subStorageChange() {
|
|
|
|
|
|
|
|
this.getBusType();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
findMethod(query) {
|
|
|
|
findMethod(query) {
|
|
|
|
|
|
|
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
this.fromOptions = [];
|
|
|
|
let cQuery = {
|
|
|
|
let cQuery = {
|
|
|
|
key: query,
|
|
|
|
key: query,
|
|
|
@ -984,7 +982,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findStorageMethod() {
|
|
|
|
findStorageMethod() {
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
this.fromStorageOptions = [];
|
|
|
|
this.fromStorageOptions = [];
|
|
|
@ -1000,14 +998,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
findSubStorageMethod(val) {
|
|
|
|
findSubStorageMethod(val) {
|
|
|
|
this. getBusType() ;
|
|
|
|
this.getBusType();
|
|
|
|
let cQuery = {
|
|
|
|
let cQuery = {
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
filter: 2,
|
|
|
|
filter: 2,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
filterSubByInv(cQuery)
|
|
|
|
filterSubByInv(cQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
|
|
|
|
this.fromSubStorageOptions = response.data || [];
|
|
|
|
this.fromSubStorageOptions = response.data || [];
|
|
|
|
if (val == 1) {
|
|
|
|
if (val == 1) {
|
|
|
|
|
|
|
|
|
|
|
@ -1020,11 +1018,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findSubInvByInv() {
|
|
|
|
findSubInvByInv() {
|
|
|
|
|
|
|
|
|
|
|
|
this.subInvList = [];
|
|
|
|
this.subInvList = [];
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
filter:3
|
|
|
|
filter: 3
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
filterSubByInv(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
this.subInvList = response.data || [];
|
|
|
@ -1062,7 +1061,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
actionChange(item) {
|
|
|
|
actionChange(item) {
|
|
|
|
|
|
|
|
|
|
|
|
this.curAction = this.getActionItem(item);
|
|
|
|
this.curAction = this.getActionItem(item);
|
|
|
|
this.findMethod();
|
|
|
|
this.findMethod();
|
|
|
|
|
|
|
|
|
|
|
@ -1183,7 +1182,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
|
|
this.formData.code = '';
|
|
|
|
this.formData.code = '';
|
|
|
|
this.formData.actDate = new Date();
|
|
|
|
this.formData.actDate = new Date();
|
|
|
|
this.codeArray = [];
|
|
|
|
this.codeArray = [];
|
|
|
|