申购仓库修改

20231126-yw
anthonywj 1 year ago
parent 28d2fa74a3
commit 1f7b3a0557

@ -5,7 +5,7 @@ VUE_APP_TITLE = UDI管理系统
ENV = 'development'
# 开发环境
VUE_APP_BASE_API = 'http://192.168.1.11:9991'
VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001"

@ -29,6 +29,9 @@ VUE_APP_BASE_API = 'http://55.55.0.62:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
# 长泰医院
# VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/'
# 应用访问路径 例如使用前缀 /admin/
VUE_APP_CONTEXT_PATH = '/UDI_WMS_NEW/'

@ -9,8 +9,25 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申购仓库:">
<el-select v-model="filterQuery.invCode" placeholder="请选择申购仓库" @change="getInvList"
style="width: 90%">
<el-option
v-for="item in invList"
:key="item.code"
:label="item.name"
:value="item.code"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申购部门:">
<el-form-item label="到货部门:">
<el-select v-model="filterQuery.targetDeptCode" placeholder="请选择申购部门" @change="getInvList"
style="width: 90%">
<el-option
@ -26,10 +43,10 @@
</el-col>
<el-col :span="8">
<el-form-item label="申购仓库:">
<el-form-item label="到货仓库:">
<el-select v-model="filterQuery.targetInvCode" style="width: 90%" clearable placeholder="请选择所属仓库">
<el-option
v-for="item in invList"
v-for="item in targetInvList"
:key="item.name"
:label="item.name"
:value="item.code">
@ -38,9 +55,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="紧急程度:" prop="emergency">
<el-select v-model="filterQuery.emergency" placeholder="请选择紧急程度" style="width: 90%" clearable>
@ -87,8 +101,9 @@
:default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="申购单号" prop="billNo"></el-table-column>
<el-table-column label="申购部门" prop="targetDeptName"></el-table-column>
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
<el-table-column label="到货部门" prop="targetDeptName"></el-table-column>
<el-table-column label="到货仓库" prop="targetInvName"></el-table-column>
<el-table-column label="申购仓库" prop="invName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -204,9 +219,10 @@ export default {
idQuery: {},
total: 0,
thirdSys: [],
invList: {},
invList: [],
targetInvList: [],
deptList: [],
invCodebe: null,
deptList: {},
thirdSysDetail: null,
busTypes: [],
originTypes: [],
@ -323,7 +339,7 @@ export default {
this.filterQuery.endDate = null;
}
this.loading = true;
this.filterQuery.isUser=true
this.filterQuery.isUser = true
console.log(this.filterQuery)
listApply(this.filterQuery)
.then((response) => {
@ -430,6 +446,20 @@ export default {
this.formName = "add";
this.newSpDistributionVisible = true;
},
getCurInvCode() {
},
getCurInvList() {
getInvListByUser()
.then((response) => {
this.invList = response.data || [];
})
.catch(() => {
});
},
getInvList() {
var query = {
parentId: this.filterQuery.targetDeptCode,
@ -438,7 +468,7 @@ export default {
this.filterQuery.targetInvCode = null
this.$forceUpdate()
filterGroupBySpuse(query).then((res) => {
this.invList = res.data || [];
this.targetInvList = res.data || [];
})
},
getDeptList() {
@ -485,6 +515,7 @@ export default {
,
created() {
this.initActDateRange()
this.getCurInvList();
this.getDeptList();
}
,

@ -40,9 +40,22 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="到货仓库">
<el-select v-model="filterQuery.targetInvCode" @change="getList" style="width: 90%" clearable
placeholder="请选择到货仓库">
<el-option
v-for="item in targetInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="紧急程度:" prop="emergency">
<el-select v-model="filterQuery.emergency" placeholder="请选择紧急程度" style="width: 90%" clearable>
@ -88,6 +101,7 @@
<el-table-column label="申购单号" prop="billNo"></el-table-column>
<el-table-column label="申购部门" prop="deptName"></el-table-column>
<el-table-column label="申购仓库" prop="invName"></el-table-column>
<el-table-column label="到货仓库" prop="targetInvName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -159,7 +173,7 @@ import pureApplyDetail from "./pureApplyDetailDialog";
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
import {filterAll, getInvListByUser} from "@/api/system/invWarehouse";
import {getDeptListByUser} from "@/api/auth/authDept";
import {filterSubAll} from "@/api/system/invSubWarehouse";
import {filterGroupBySpuse, filterSubAll} from "@/api/system/invSubWarehouse";
export default {
data() {
@ -207,8 +221,9 @@ export default {
thirdSysDetail: null,
busTypes: [],
originTypes: [],
invList: {},
deptList: {},
invList: [],
targetInvList: [],
deptList: [],
list: [],
detailList: [],
loading: false,
@ -302,8 +317,8 @@ export default {
this.filterQuery.endDate = null;
}
this.loading = true;
this.filterQuery.status=2
this.filterQuery.isInvCode=true
this.filterQuery.status = 2
this.filterQuery.isInvCode = true
auditListApply(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
@ -423,6 +438,16 @@ export default {
this.getList();
});
},
getCurInvList() {
var query = {
spUse: true,
}
this.filterQuery.targetInvCode = null
this.$forceUpdate()
filterGroupBySpuse(query).then((res) => {
this.targetInvList = res.data || [];
})
},
}
,
components: {
@ -450,6 +475,7 @@ export default {
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.actDateRange = [start, end];
this.getDeptList();
this.getCurInvList();
}
,
}

@ -10,8 +10,25 @@
</el-col>
<el-col :span="8">
<el-form-item label="申购部门">
<el-select v-model="filterQuery.targetDeptCode" clearable @change="getInvList" placeholder="请选择申购部门" style="width: 90%">
<el-form-item label="申购仓库:">
<el-select v-model="filterQuery.invCode" placeholder="请选择申购仓库" @change="getInvList"
style="width: 90%">
<el-option
v-for="item in invList"
:key="item.code"
:label="item.name"
:value="item.code"
>
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="到货部门">
<el-select v-model="filterQuery.targetDeptCode" clearable @change="getInvList" placeholder="请选择申购部门"
style="width: 90%">
<el-option
v-for="item in deptList"
:key="item.code"
@ -24,10 +41,10 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="申购仓库">
<el-form-item label="到货仓库">
<el-select v-model="filterQuery.targetInvCode" style="width: 90%" clearable placeholder="请选择所属仓库">
<el-option
v-for="item in invList"
v-for="item in targetInvList"
:key="item.name"
:label="item.name"
:value="item.code">
@ -36,9 +53,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="紧急程度:" prop="emergency">
<el-select v-model="filterQuery.emergency" placeholder="请选择紧急程度" style="width: 90%" clearable>
@ -97,8 +111,9 @@
:default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="申购单号" prop="billNo"></el-table-column>
<el-table-column label="申购部门" prop="targetDeptName"></el-table-column>
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
<el-table-column label="到货部门" prop="targetDeptName"></el-table-column>
<el-table-column label="到货仓库" prop="targetInvName"></el-table-column>
<el-table-column label="申购仓库" prop="invName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -217,8 +232,9 @@ export default {
thirdSysDetail: null,
busTypes: [],
originTypes: [],
invList: {},
deptList: {},
invList: [],
targetInvList: [],
deptList: [],
list: [],
detailList: [],
loading: false,
@ -355,7 +371,7 @@ export default {
}
this.loading = true;
this.filterQuery.status = 3;
this.filterQuery.isUser=true
this.filterQuery.isUser = true
listApply(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
@ -442,7 +458,14 @@ export default {
this.getList();
this.detailList = [];
},
getCurInvList() {
getInvListByUser()
.then((response) => {
this.invList = response.data || [];
})
.catch(() => {
});
},
newDistributionForm(index, row) {
this.idQuery.id = '';
@ -459,7 +482,7 @@ export default {
parentId: this.filterQuery.targetDeptCode
}
filterSubAll(query).then((res) => {
this.invList = res.data || [];
this.targetInvList = res.data || [];
})
},
getDeptList() {
@ -499,6 +522,7 @@ export default {
,
created() {
this.getDeptList();
this.getCurInvList();
}
,
}

@ -11,7 +11,8 @@
<el-col :span="8">
<el-form-item label="申购部门:">
<el-select v-model="filterQuery.deptCode" clearable @change="getInvList" placeholder="请选择申购部门" style="width: 90%">
<el-select v-model="filterQuery.deptCode" clearable @change="getInvList" placeholder="请选择申购部门"
style="width: 90%">
<el-option
v-for="item in deptList"
:key="item.code"
@ -36,9 +37,20 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="到货仓库">
<el-select v-model="filterQuery.targetInvCode" @change="getList" style="width: 90%" clearable
placeholder="请选择到货仓库">
<el-option
v-for="item in targetInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="紧急程度:" prop="emergency">
<el-select v-model="filterQuery.emergency" placeholder="请选择紧急程度" style="width: 90%" clearable>
@ -51,15 +63,15 @@
<el-col :span="8">
<el-form-item label="创建时间:">
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
style="width: 90%"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
style="width: 90%"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
@ -97,8 +109,9 @@
:default-sort="defaultSort" @sort-change="handleSortChange">
<el-table-column label="序号" type="index" width="60"></el-table-column>
<el-table-column label="申购单号" prop="billNo"></el-table-column>
<el-table-column label="申购部门" prop="targetDeptName"></el-table-column>
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
<el-table-column label="到货部门" prop="targetDeptName"></el-table-column>
<el-table-column label="到货仓库" prop="targetInvName"></el-table-column>
<el-table-column label="申购仓库" prop="invName"></el-table-column>
<el-table-column label="紧急程度" prop="emergency">
<template slot-scope="scope">
{{ emergencyMap[scope.row.emergency] }}
@ -172,7 +185,7 @@ import pureApplyDetail from "./pureApplyDetailDialog";
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
import {filterAll, getInvListByUser} from "@/api/system/invWarehouse";
import {getDeptListByUser} from "@/api/auth/authDept";
import {filterSubAll} from "@/api/system/invSubWarehouse";
import {filterGroupBySpuse, filterSubAll} from "@/api/system/invSubWarehouse";
export default {
data() {
@ -217,8 +230,9 @@ export default {
thirdSysDetail: null,
busTypes: [],
originTypes: [],
invList: {},
deptList: {},
invList: [],
targetInvList: [],
deptList: [],
list: [],
detailList: [],
loading: false,
@ -355,7 +369,7 @@ export default {
}
this.loading = true;
this.filterQuery.status = 12;
this.filterQuery.isInvCode=true
this.filterQuery.isInvCode = true
auditListApply(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
@ -474,6 +488,16 @@ export default {
this.getInvList();
});
},
getCurInvList() {
var query = {
spUse: true,
}
this.filterQuery.targetInvCode = null
this.$forceUpdate()
filterGroupBySpuse(query).then((res) => {
this.targetInvList = res.data || [];
})
},
}
,
components: {
@ -497,6 +521,8 @@ export default {
,
created() {
this.getDeptList();
this.getCurInvList();
}
,
}

Loading…
Cancel
Save