Commit c7abfcac authored by jingnan's avatar jingnan 👀

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

parent d5acf231
...@@ -76,13 +76,22 @@ export default { ...@@ -76,13 +76,22 @@ export default {
if (this.remoteFlag) { if (this.remoteFlag) {
this.remoteFlag = false this.remoteFlag = false
this.tableColumnSelect = true 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 = { const params = {
'pageFrom': 1, 'pageFrom': 1,
'pageSize': 999, 'pageSize': 999,
'searchItems': { 'searchItems': {
'items': [ 'items': [
{ {
'fieldName': 'serialNumber', 'fieldName': queryNo,
'operator': 'LIKE', 'operator': 'LIKE',
'value': query || '' 'value': query || ''
}, },
...@@ -104,12 +113,12 @@ export default { ...@@ -104,12 +113,12 @@ export default {
} }
this.loading = true this.loading = true
this.options = [] this.options = []
this.$api.searchApi('ExtProcessPlan', params).then(res => { this.$api.searchApi(requestUrl, params).then(res => {
if (res.items && res.items.content.length) { if (res.items && res.items.content.length) {
this.options = res.items.content.map((item) => { this.options = res.items.content.map((item) => {
return { return {
label: item.serialNumber, label: item[queryNo],
value: item.id + '' value: item[queryNo]
} }
}) })
} else { } 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