字典功能处理

20231126-yw
yuanwei 1 year ago
parent faa26ca513
commit bbf86a9ed9

@ -7,6 +7,15 @@ export function getBasicUnitMaintains(query) {
params: query params: query
}); });
} }
export function getBasicUnitMaintainsOptimize(query) {
return axios({
url: "/udiwms/basic/unit/maintain/filterOptimize",
method: "get",
params: query
});
}
export function getCorpFilter(query) { export function getCorpFilter(query) {
return axios({ return axios({
url: "/sale/info/company/product/corp/filter", 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) { export function filterByUuid(query) {
return axios({ return axios({
url: "/udiwms/udiinfo/local/filterByUuid", 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) { export function spcombie(query) {
return axios({ return axios({
url: "/udiwms/udiinfo/spcombie", 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) { export function spcombie(query) {
return axios({ return axios({
url: "/udiwms/udiinfo/spcombie", url: "/udiwms/udiinfo/spcombie",

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

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

Loading…
Cancel
Save