Commit c7abfcac authored by jingnan's avatar jingnan 👀

按指令领用指令号接口特殊处理

parent d5acf231
......@@ -76,13 +76,22 @@ export default {
if (this.remoteFlag) {
this.remoteFlag = false
this.tableColumnSelect = true
let requestUrl = 'ExtProcessPlan'
let queryNo = 'serialNumber'
if (this.basicData.useRequestType === 'useAO') {
requestUrl = 'AbsentAO' // 按指令AbsentAO
queryNo = 'aoNo'
} else {
requestUrl = 'ExtProcessPlan'
queryNo = 'serialNumber'
}
const params = {
'pageFrom': 1,
'pageSize': 999,
'searchItems': {
'items': [
{
'fieldName': 'serialNumber',
'fieldName': queryNo,
'operator': 'LIKE',
'value': query || ''
},
......@@ -104,12 +113,12 @@ export default {
}
this.loading = true
this.options = []
this.$api.searchApi('ExtProcessPlan', params).then(res => {
this.$api.searchApi(requestUrl, params).then(res => {
if (res.items && res.items.content.length) {
this.options = res.items.content.map((item) => {
return {
label: item.serialNumber,
value: item.id + ''
label: item[queryNo],
value: item[queryNo]
}
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment