|
|
@ -4,34 +4,96 @@
|
|
|
|
<el-row type="flex">
|
|
|
|
<el-row type="flex">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item label="单据类型名称" prop="originName">
|
|
|
|
<el-form-item label="单据类型名称" prop="originName">
|
|
|
|
<el-input v-model="inputQuery.originName" :disabled="!isAdd" size="small" placeholder="请输入内容" style="width: 90%"></el-input>
|
|
|
|
<el-input v-model="inputQuery.originName" :disabled="!isAdd" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
style="width: 90%"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item label="单据类型代码" prop="originAction">
|
|
|
|
<el-form-item label="单据类型代码" prop="originAction">
|
|
|
|
<el-input v-model="inputQuery.originAction" :disabled="!isAdd" size="small" placeholder="请输入内容" style="width: 90%"></el-input>
|
|
|
|
<el-input v-model="inputQuery.originAction" :disabled="!isAdd" size="small" placeholder="请输入内容"
|
|
|
|
|
|
|
|
style="width: 90%"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
<el-row type="flex">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item label="目标单据类型" prop="targetAction">
|
|
|
|
<el-form-item label="目标出入库单" prop="targetIoAction">
|
|
|
|
<el-select v-model="inputQuery.targetAction" placeholder="请选择" clearable size="small" style="width: 90%">
|
|
|
|
<el-select v-model="inputQuery.targetAction" placeholder="请选择" clearable size="small" style="width: 90%">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in busTypes"
|
|
|
|
v-for="item in targetTypes"
|
|
|
|
:key="item.action"
|
|
|
|
:key="item.action"
|
|
|
|
:label="item.name"
|
|
|
|
:label="item.name"
|
|
|
|
:value="item.action">
|
|
|
|
:value="item.action">
|
|
|
|
<span style="float: left"> {{item.name}}</span>
|
|
|
|
<span style="float: left"> {{ item.name }}</span>
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{item.action}}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="目标业务单" prop="targetBusAction">
|
|
|
|
|
|
|
|
<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 style="float: left"> {{ item.originName }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="时间间隔(h)" prop="beforeTime">
|
|
|
|
|
|
|
|
<el-input style="width: 90%"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
type="number"
|
|
|
|
|
|
|
|
placeholder="请输入出入库单时间间隔"
|
|
|
|
|
|
|
|
v-model="inputQuery.beforeTime"
|
|
|
|
|
|
|
|
onkeyup="this.value=this.value.replace(/\D/g,'')"
|
|
|
|
|
|
|
|
onafterpaste="this.value=this.value.replace(/\D/g,'')"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
|
|
|
<el-form-item label="时间间隔(h)" prop="busBeforeTime">
|
|
|
|
|
|
|
|
<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="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item label="启用状态" prop="enable">
|
|
|
|
<el-form-item label="启用状态" prop="enable">
|
|
|
|
<el-select v-model="inputQuery.enable"
|
|
|
|
<el-select v-model="inputQuery.enable"
|
|
|
@ -39,15 +101,12 @@
|
|
|
|
placeholder="启用状态"
|
|
|
|
placeholder="启用状态"
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 90%"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option label="启用" :value="true"></el-option>
|
|
|
|
<el-option label="启用" :value="true"></el-option>
|
|
|
|
<el-option label="禁用" :value="false"></el-option>
|
|
|
|
<el-option label="禁用" :value="false"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row type="flex">
|
|
|
|
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item label="类型">
|
|
|
|
<el-form-item label="类型">
|
|
|
|
<el-select v-model="inputQuery.type"
|
|
|
|
<el-select v-model="inputQuery.type"
|
|
|
@ -59,6 +118,7 @@
|
|
|
|
<el-option label="耗材领用" :value="1"></el-option>
|
|
|
|
<el-option label="耗材领用" :value="1"></el-option>
|
|
|
|
<el-option label="产品申购" :value="2"></el-option>
|
|
|
|
<el-option label="产品申购" :value="2"></el-option>
|
|
|
|
<el-option label="采购计划" :value="3"></el-option>
|
|
|
|
<el-option label="采购计划" :value="3"></el-option>
|
|
|
|
|
|
|
|
<el-option label="采购订单" :value="5"></el-option>
|
|
|
|
<el-option label="盘点转单" :value="4"></el-option>
|
|
|
|
<el-option label="盘点转单" :value="4"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -81,7 +141,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
import {getBusTypeList} from "@/api/basic/busType";
|
|
|
|
import {getBusTypeList, getBusTypeListByUser} from "@/api/basic/busType";
|
|
|
|
|
|
|
|
import {getBusTypeChangeList} from "@/api/basic/busTypeChange";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "BusTypePreModify",
|
|
|
|
name: "BusTypePreModify",
|
|
|
@ -98,7 +159,8 @@ export default {
|
|
|
|
enabled: true,
|
|
|
|
enabled: true,
|
|
|
|
isBuType: true,
|
|
|
|
isBuType: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
busTypes: [],
|
|
|
|
targetTypes: [],
|
|
|
|
|
|
|
|
targetBusTypes: [],
|
|
|
|
isAdd: false,
|
|
|
|
isAdd: false,
|
|
|
|
formRules: {
|
|
|
|
formRules: {
|
|
|
|
originName: [
|
|
|
|
originName: [
|
|
|
@ -152,17 +214,30 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
getBusTypeList(params).then((res) => {
|
|
|
|
getBusTypeList(params).then((res) => {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
if (res.code === 20000) {
|
|
|
|
this.busTypes = res.data.list || [];
|
|
|
|
this.targetTypes = res.data.list || [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
getTargetBusType() {
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
|
|
|
enable: true
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
getBusTypeChangeList(query).then((res) => {
|
|
|
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
|
|
|
this.targetBusTypes = res.data.list || [];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
if (this.inputQuery.originAction == null) {
|
|
|
|
if (this.inputQuery.originAction == null) {
|
|
|
|
this.isAdd = true;
|
|
|
|
this.isAdd = true;
|
|
|
|
|
|
|
|
this.inputQuery.auditStatus = 2;
|
|
|
|
|
|
|
|
this.inputQuery.busAuditStatus = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getBusType();
|
|
|
|
this.getBusType();
|
|
|
|
|
|
|
|
this.getTargetBusType();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|