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