|
@@ -2539,7 +2539,8 @@ import {
|
|
|
ExecDataByConfig,
|
|
|
checkButtons,
|
|
|
failproccess,
|
|
|
- GetAccount
|
|
|
+ GetAccount,
|
|
|
+ getPartsListSGList
|
|
|
} from '@/api/common'
|
|
|
import waves from '@/directive/waves' // waves directive
|
|
|
import { parseTime, sortChange, json2excel } from '@/utils/index.js'
|
|
@@ -3376,19 +3377,32 @@ export default {
|
|
|
this.createTemp.providerName
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
this.requestSparePart.parammaps['partCode'] = queryString
|
|
|
// this.createTemp.partCode = queryString
|
|
|
this.$set(this.requestSparePart.parammaps, 'partCode', queryString)
|
|
|
this.$set(this.requestSparePart.parammaps, 'pastureId', this.createTemp.pastureId )
|
|
|
this.$set(this.createTemp, 'partCode', queryString)
|
|
|
- GetDataByName(this.requestSparePart).then((response) => {
|
|
|
- console.log('备件模糊查询搜索data', response.data.list)
|
|
|
- if (response.data.list == null) {
|
|
|
- cb([])
|
|
|
- } else {
|
|
|
- cb(response.data.list)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.requestSparePart.name == 'getPartsListSG') {
|
|
|
+ getPartsListSGList(this.requestSparePart).then((response) => {
|
|
|
+ console.log('111', response.data.list)
|
|
|
+ if (response.data.list == null) {
|
|
|
+ cb([])
|
|
|
+ } else {
|
|
|
+ cb(response.data.list)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ GetDataByName(this.requestSparePart).then((response) => {
|
|
|
+ console.log('备件模糊查询搜索data', response.data.list)
|
|
|
+ if (response.data.list == null) {
|
|
|
+ cb([])
|
|
|
+ } else {
|
|
|
+ cb(response.data.list)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
brandSearch(queryString, cb) {
|
|
|
console.log('品牌模糊查询输入值', queryString)
|