字典功能处理

20231126-yw
yuanwei 1 year ago
parent faa26ca513
commit bbf86a9ed9

@ -7,6 +7,15 @@ export function getBasicUnitMaintains(query) {
params: query
});
}
export function getBasicUnitMaintainsOptimize(query) {
return axios({
url: "/udiwms/basic/unit/maintain/filterOptimize",
method: "get",
params: query
});
}
export function getCorpFilter(query) {
return axios({
url: "/sale/info/company/product/corp/filter",

@ -16,6 +16,14 @@ export function filterCompany(query) {
});
}
export function filterCompanyOptimize(query) {
return axios({
url: "/udiwms/udiinfo/filterCompanyOptimize",
method: "get",
params: query
});
}
export function filterByUuid(query) {
return axios({
url: "/udiwms/udiinfo/local/filterByUuid",

@ -160,6 +160,14 @@ export function sysFilter(query) {
});
}
export function sysFilterOptimize(query) {
return axios({
url: "/udiwms/udirel/thirdSys/filterOptimize",
method: "get",
params: query
});
}
export function spcombie(query) {
return axios({
url: "/udiwms/udiinfo/spcombie",

@ -150,6 +150,14 @@ export function sysFilter(query) {
});
}
export function sysFilterOptimize(query) {
return axios({
url: "/udiwms/udirel/thirdSys/filterOptimize",
method: "get",
params: query
});
}
export function spcombie(query) {
return axios({
url: "/udiwms/udiinfo/spcombie",

@ -38,9 +38,9 @@
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.filterType"
:label="item.sysName"
:value="item.filterType"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
@ -489,7 +489,7 @@
</template>
<script>
import {getUdiInfos, filterCompany} from "@/api/basic/product/udiInfo";
import {getUdiInfos, filterCompanyOptimize} from "@/api/basic/product/udiInfo";
import {superSearch} from "@/api/basic/udiInfo";
import {combineUdi, combineAllUdi, checkExitUdi} from "@/api/basic/product/udiRelevance";
import selectDiDetail from "./SelectDIDetailDialog"
@ -558,7 +558,9 @@ export default {
tableHeader:[],
queryList:[],
fromList:[],
options:[],
options:{
findMethod:[]
},
total: 0,
currentRow: null,
fromOptions: [],
@ -828,18 +830,14 @@ export default {
page: 1,
limit: 10,
};
filterCompany(cQuery)
filterCompanyOptimize(cQuery)
.then((response) => {
_this.options.loading = false;
_this.options = {
findMethod: response.data || []
};
_this.options.findMethod = response.data.list || [];
})
.catch(() => {
_this.options.loading = false;
_this.options = {
findMethod: []
};
_this.options.findMethod = []
});
},
executeFuc(row,number,type,clickFuc,value){

@ -79,9 +79,9 @@
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.filterType"
:label="item.sysName"
:value="item.filterType"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
@ -1705,7 +1705,7 @@ import {
uploadSmp,
thirdSysDetail,
removeRl,
sysFilter,
sysFilterOptimize,
spcombie,
lockStatus,
removeDiRl,
@ -1815,7 +1815,9 @@ export default {
detailList: [],
sysList: [],
filterList: [],
options: {},
options: {
getSysFilter:[]
},
queryList:[],
tableHeader:[],
fromList:[],
@ -2214,18 +2216,14 @@ export default {
},
getSysFilter(_this,query) {
sysFilter()
sysFilterOptimize()
.then((response) => {
_this.loading = false;
_this.options = {
getSysFilter: response.data.list || []
};
_this.options.getSysFilter = response.data.list || []
})
.catch(() => {
_this.loading = false;
_this.options = {
getSysFilter: []
};
_this.options.getSysFilter = []
});
},
singleDiEdit() {

Loading…
Cancel
Save