必填
This commit is contained in:
parent
dc1be97e8b
commit
bec67345e3
28
App.vue
28
App.vue
@ -15,6 +15,9 @@
|
|||||||
import {
|
import {
|
||||||
GetNewRiskAreaInfo,
|
GetNewRiskAreaInfo,
|
||||||
} from './services/apply/subPages/SK/SKServices.js'
|
} from './services/apply/subPages/SK/SKServices.js'
|
||||||
|
import {
|
||||||
|
getRequest,
|
||||||
|
} from './services/apply/FOServices/FOServices';
|
||||||
import {
|
import {
|
||||||
getAreaLists
|
getAreaLists
|
||||||
} from './services/apply/HMServices/HMServices'
|
} from './services/apply/HMServices/HMServices'
|
||||||
@ -369,19 +372,24 @@
|
|||||||
uni.setStorageSync('listAreas', listAreas);
|
uni.setStorageSync('listAreas', listAreas);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
var dataParm = {
|
const jsons = initFilter(orgId)
|
||||||
'name': "SKProductionUnit"
|
getRequest(jsons, "/FM/UserProductionUnitSet/OrderPaged").then(res => {
|
||||||
}
|
|
||||||
await getEnum(dataParm).then(res => {
|
|
||||||
if (res != undefined && res.length > 0) {
|
|
||||||
for (let i = 0; i < res.length; i++) {
|
|
||||||
res[i].name = res[i].NAME
|
|
||||||
res[i].code = res[i].ID
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var mineTypeStorage = res
|
var mineTypeStorage = res
|
||||||
uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
||||||
})
|
})
|
||||||
|
// var dataParm = {
|
||||||
|
// 'name': "SKProductionUnit"
|
||||||
|
// }
|
||||||
|
// await getEnum(dataParm).then(res => {
|
||||||
|
// if (res != undefined && res.length > 0) {
|
||||||
|
// for (let i = 0; i < res.length; i++) {
|
||||||
|
// res[i].name = res[i].NAME
|
||||||
|
// res[i].code = res[i].ID
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// var mineTypeStorage = res
|
||||||
|
// uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -279,7 +279,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
stepAdd() {
|
stepAdd() {
|
||||||
if (!this.model.Product_Unit) {
|
if (!this.model.Nav_ProductionUnit||!this.model.Nav_ProductionUnit.NAME) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择生产单元',
|
title: '请选择生产单元',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@ -255,8 +255,8 @@
|
|||||||
onConfirmPicker(e) {
|
onConfirmPicker(e) {
|
||||||
if (!this.isOnline) {
|
if (!this.isOnline) {
|
||||||
var mineTypeStorage = uni.getStorageSync('mineTypeStorage')
|
var mineTypeStorage = uni.getStorageSync('mineTypeStorage')
|
||||||
this.model.Product_Unit = e.value[0].name
|
this.model.Nav_ProductionUnit = e.value[0]
|
||||||
this.model.MineType = mineTypeStorage[e.indexs[0]].code
|
this.model.MineType = e.value[0].ID
|
||||||
} else {
|
} else {
|
||||||
this.model.Nav_ProductionUnit = e.value[0]
|
this.model.Nav_ProductionUnit = e.value[0]
|
||||||
this.model.PRODUCTION_UNIT_ID = e.value[0].ID
|
this.model.PRODUCTION_UNIT_ID = e.value[0].ID
|
||||||
|
|||||||
@ -516,7 +516,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if (!this.model.Product_Unit) {
|
if (!this.model.Nav_ProductionUnit||!this.model.Nav_ProductionUnit.NAME) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择生产单元',
|
title: '请选择生产单元',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@ -112,6 +112,9 @@
|
|||||||
import {
|
import {
|
||||||
getEnum
|
getEnum
|
||||||
} from '../../services/common'
|
} from '../../services/common'
|
||||||
|
import {
|
||||||
|
getRequest,
|
||||||
|
} from '../../services/apply/FOServices/FOServices';
|
||||||
import {
|
import {
|
||||||
GetNewRiskAreaInfo,
|
GetNewRiskAreaInfo,
|
||||||
} from '../../services/apply/subPages/SK/SKServices.js'
|
} from '../../services/apply/subPages/SK/SKServices.js'
|
||||||
@ -249,19 +252,24 @@
|
|||||||
uni.setStorageSync('listAreas', listAreas);
|
uni.setStorageSync('listAreas', listAreas);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
var dataParm = {
|
const jsons = initFilter(orgId)
|
||||||
'name': "SKProductionUnit"
|
getRequest(jsons, "/FM/UserProductionUnitSet/OrderPaged").then(res => {
|
||||||
}
|
|
||||||
await getEnum(dataParm).then(res => {
|
|
||||||
if (res != undefined && res.length > 0) {
|
|
||||||
for (let i = 0; i < res.length; i++) {
|
|
||||||
res[i].name = res[i].NAME
|
|
||||||
res[i].code = res[i].ID
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var mineTypeStorage = res
|
var mineTypeStorage = res
|
||||||
uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
||||||
})
|
})
|
||||||
|
// var dataParm = {
|
||||||
|
// 'name': "SKProductionUnit"
|
||||||
|
// }
|
||||||
|
// await getEnum(dataParm).then(res => {
|
||||||
|
// if (res != undefined && res.length > 0) {
|
||||||
|
// for (let i = 0; i < res.length; i++) {
|
||||||
|
// res[i].name = res[i].NAME
|
||||||
|
// res[i].code = res[i].ID
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// var mineTypeStorage = res
|
||||||
|
// uni.setStorageSync('mineTypeStorage', mineTypeStorage);
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeSwiper(e) {
|
changeSwiper(e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user