fix:修改无来源问题
This commit is contained in:
parent
c1dc838916
commit
d4e7149213
@ -195,6 +195,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="vue-element-page-table">
|
<div class="vue-element-page-table">
|
||||||
<el-row class="page-search" align="middle" :gutter="20">
|
<el-row class="page-search" align="middle" :gutter="20">
|
||||||
|
<el-col :span="4" style="padding-top: 12px">
|
||||||
|
<el-form-item label="目的组织" prop="ERPFACTORY">
|
||||||
|
<el-select
|
||||||
|
filterable
|
||||||
|
v-model="queryParams.params.ERPFACTORY"
|
||||||
|
placeholder="下拉选择组织"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spcERPFactoryList"
|
||||||
|
:key="item.ERPFACTORY"
|
||||||
|
:label="item.DESCRIPTION"
|
||||||
|
:value="item.ERPFACTORY"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="4" style="padding-top: 12px">
|
<el-col :span="4" style="padding-top: 12px">
|
||||||
<el-form-item label="目的仓库" prop="ERPLOCATION">
|
<el-form-item label="目的仓库" prop="ERPLOCATION">
|
||||||
<el-select
|
<el-select
|
||||||
@ -310,6 +327,7 @@ const state = reactive({
|
|||||||
ERPFactoryList: [] as any, // 组织
|
ERPFactoryList: [] as any, // 组织
|
||||||
ERPLocationList: [] as any, //仓库
|
ERPLocationList: [] as any, //仓库
|
||||||
LocationList: [] as any, //货位
|
LocationList: [] as any, //货位
|
||||||
|
spcERPFactoryList: [] as any,
|
||||||
rsa: '',
|
rsa: '',
|
||||||
Button_state: false,
|
Button_state: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
@ -324,6 +342,7 @@ const state = reactive({
|
|||||||
StorageSelectList: [] as any,
|
StorageSelectList: [] as any,
|
||||||
locDecList1: [] as any,
|
locDecList1: [] as any,
|
||||||
locDecList2: [] as any,
|
locDecList2: [] as any,
|
||||||
|
orgNo:"",
|
||||||
queryParams: {
|
queryParams: {
|
||||||
queryId: '',
|
queryId: '',
|
||||||
version: '',
|
version: '',
|
||||||
@ -465,7 +484,8 @@ const {
|
|||||||
column1,
|
column1,
|
||||||
column2,
|
column2,
|
||||||
locDecList1,
|
locDecList1,
|
||||||
locDecList2
|
locDecList2,
|
||||||
|
orgNo
|
||||||
} = toRefs(state)
|
} = toRefs(state)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -498,7 +518,11 @@ onMounted(() => {
|
|||||||
{ header: '备注', field: 'REMARK', hide: false }
|
{ header: '备注', field: 'REMARK', hide: false }
|
||||||
]
|
]
|
||||||
let pwd: any = localStorage.getItem('remeberPwd')
|
let pwd: any = localStorage.getItem('remeberPwd')
|
||||||
// state.orgNo = JSON.parse(pwd).orgNo;
|
if(pwd) {
|
||||||
|
state.orgNo = JSON.parse(pwd).orgNo;
|
||||||
|
state.queryParams.params.ERPFACTORY = state.orgNo
|
||||||
|
}
|
||||||
|
|
||||||
// state.queryParams.params.ERPFACTORY = JSON.parse(pwd).orgNo;
|
// state.queryParams.params.ERPFACTORY = JSON.parse(pwd).orgNo;
|
||||||
// state.queryParamsERPLocation.params.ERPFACTORYNAME = JSON.parse(pwd).orgNo;
|
// state.queryParamsERPLocation.params.ERPFACTORYNAME = JSON.parse(pwd).orgNo;
|
||||||
ERPFactoryQuery()
|
ERPFactoryQuery()
|
||||||
@ -601,10 +625,16 @@ async function Storage2List(firstLocation: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function changeFac(e: any) {
|
function changeFac(e: any) {
|
||||||
// console.log(e)
|
console.log(e)
|
||||||
state.queryParams.params.ERPLOCATION = ''
|
state.queryParams.params.ERPLOCATION = ''
|
||||||
state.queryParamsERPLocation.params.ERPFACTORYNAME = e
|
state.queryParamsERPLocation.params.ERPFACTORYNAME = e
|
||||||
ERPLocationQuery()
|
ERPLocationQuery()
|
||||||
|
if(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") {
|
||||||
|
state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) =>
|
||||||
|
(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020")
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
function changeERPLocation(e: any) {
|
function changeERPLocation(e: any) {
|
||||||
// console.log(e)
|
// console.log(e)
|
||||||
@ -651,6 +681,12 @@ const updateList = (col: any) => {
|
|||||||
}
|
}
|
||||||
function queryInfo() {
|
function queryInfo() {
|
||||||
state.queryParams.pageNum = 1
|
state.queryParams.pageNum = 1
|
||||||
|
if(!state.queryParams.params.ERPFACTORY) {
|
||||||
|
ElMessageBox.alert('请选择库存组织!', '提醒框', {
|
||||||
|
confirmButtonText: 'OK'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
handleQuery()
|
handleQuery()
|
||||||
}
|
}
|
||||||
async function handleQuery() {
|
async function handleQuery() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user