|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<el-form :model="inputQuery" :rules="formRules" ref="dataForm" label-width="120px" border>
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="原单据类型" prop="originAction">
|
|
|
|
|
<el-form-item label="出入库单" prop="originAction">
|
|
|
|
|
<el-select v-model="inputQuery.originAction" placeholder="原单据类型" clearable size="small"
|
|
|
|
|
style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
@ -19,22 +19,17 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="目标单据类型" prop="action">
|
|
|
|
|
<el-select v-model="inputQuery.action" placeholder="目标单据类型" clearable size="small" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in targetBusTypes"
|
|
|
|
|
:key="item.action"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.action">
|
|
|
|
|
<span style="float: left"> {{ item.name }}</span>
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="流转方式" prop="supplementAll">
|
|
|
|
|
<el-select v-model="inputQuery.supplementAll" placeholder="流转方式" clearable size="small"
|
|
|
|
|
style="width: 90%">
|
|
|
|
|
<el-option label="全量补单" :value="true"></el-option>
|
|
|
|
|
<el-option label="自动补单" :value="false"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="目标所在仓库" prop="invCode">
|
|
|
|
@ -69,9 +64,46 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="目标出入库单" prop="action">
|
|
|
|
|
<el-select v-model="inputQuery.action" placeholder="目标出入库单" clearable size="small" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in targetTypes"
|
|
|
|
|
:key="item.action"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.action">
|
|
|
|
|
<span> {{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="目标业务单" prop="action">
|
|
|
|
|
<el-select v-model="inputQuery.targetBusAction" placeholder="目标业务单" clearable size="small"
|
|
|
|
|
style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in targetBusTypes"
|
|
|
|
|
:key="item.originAction"
|
|
|
|
|
:label="item.originName"
|
|
|
|
|
:value="item.originAction">
|
|
|
|
|
<span> {{ item.originName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="推移时间(小时)" prop="beforeTime">
|
|
|
|
|
<el-form-item label="时间间隔(h)" prop="beforeTime">
|
|
|
|
|
<el-input style="width: 90%"
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
@ -84,16 +116,42 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="流转方式" prop="supplementAll">
|
|
|
|
|
<el-select v-model="inputQuery.supplementAll" placeholder="流转方式" clearable size="small"
|
|
|
|
|
style="width: 90%">
|
|
|
|
|
<el-option label="全量补单" :value="true"></el-option>
|
|
|
|
|
<el-option label="自动补单" :value="false"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-form-item label="时间间隔(h)" prop="beforeTime">
|
|
|
|
|
<el-input style="width: 90%"
|
|
|
|
|
size="small"
|
|
|
|
|
type="number"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
v-model="inputQuery.busBeforeTime"
|
|
|
|
|
onkeyup="this.value=this.value.replace(/\D/g,'')"
|
|
|
|
|
onafterpaste="this.value=this.value.replace(/\D/g,'')"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="出入库单审核状态" prop="auditStatus" class="query-form-item">
|
|
|
|
|
<el-radio-group v-model="inputQuery.auditStatus">
|
|
|
|
|
<el-radio :label="1">草稿</el-radio>
|
|
|
|
|
<el-radio :label="2">待审核</el-radio>
|
|
|
|
|
<el-radio :label="3">已审核</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="业务单审核状态" prop="busAuditStatus" class="query-form-item">
|
|
|
|
|
<el-radio-group v-model="inputQuery.busAuditStatus">
|
|
|
|
|
<el-radio :label="1">草稿</el-radio>
|
|
|
|
|
<el-radio :label="2">待审核</el-radio>
|
|
|
|
|
<el-radio :label="3">已审核</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
<el-col :span="23" type="flex">
|
|
|
|
|
<el-form-item prop="intro">
|
|
|
|
@ -113,6 +171,7 @@
|
|
|
|
|
import {getBusTypeList, getBusTypeListByUser} from "@/api/basic/busType";
|
|
|
|
|
import {filterSubAll, findByFrom} from "@/api/system/invSubWarehouse";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
import {getBusTypeChangeList} from "@/api/basic/busTypeChange";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "BusTypePreModify",
|
|
|
|
@ -130,6 +189,7 @@ export default {
|
|
|
|
|
isBuType: true,
|
|
|
|
|
},
|
|
|
|
|
originBusTypes: [],
|
|
|
|
|
targetTypes: [],
|
|
|
|
|
targetBusTypes: [],
|
|
|
|
|
locInvs: [],
|
|
|
|
|
fromInvs: [],
|
|
|
|
@ -194,6 +254,18 @@ export default {
|
|
|
|
|
enable: true
|
|
|
|
|
};
|
|
|
|
|
getBusTypeListByUser(query).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.targetTypes = res.data.list || [];
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTargetChangeType() {
|
|
|
|
|
let query = {
|
|
|
|
|
enable: true
|
|
|
|
|
};
|
|
|
|
|
getBusTypeChangeList(query).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.targetBusTypes = res.data.list || [];
|
|
|
|
|
}
|
|
|
|
@ -227,7 +299,7 @@ export default {
|
|
|
|
|
this.getTargetBusType();
|
|
|
|
|
} else {
|
|
|
|
|
this.inputQuery.action = null;
|
|
|
|
|
this.targetBusTypes = [];
|
|
|
|
|
this.targetTypes = [];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -235,9 +307,14 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
if (this.inputQuery.originAction == null) {
|
|
|
|
|
this.isAdd = true;
|
|
|
|
|
this.inputQuery.auditStatus = 2;
|
|
|
|
|
this.inputQuery.busAuditStatus = 2;
|
|
|
|
|
} else {
|
|
|
|
|
this.getTargetBusType();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.getTargetChangeType();
|
|
|
|
|
|
|
|
|
|
this.getOriginBusType();
|
|
|
|
|
this.getLocInv();
|
|
|
|
|
this.getFromInv();
|
|
|
|
|