|
@@ -77,24 +77,26 @@ export default {
|
|
getLookUpDatas({ type: 'WAIT_CLEAN_SORT_RULE' }).then(res => {
|
|
getLookUpDatas({ type: 'WAIT_CLEAN_SORT_RULE' }).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
this.list = res.data || []
|
|
this.list = res.data || []
|
|
|
|
+ this.form.orderType = this.defaultParams.orderType ? this.defaultParams.orderType : ''
|
|
|
|
+ if(this.defaultParams.orderType){
|
|
|
|
+ this.list.map((item, index) => {
|
|
|
|
+ if(item.code == this.form.orderType){
|
|
|
|
+ this.orderTypeName = this.list[index].dispName
|
|
|
|
+ this.selectDefault[0] = index
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
this.list = []
|
|
this.list = []
|
|
|
|
+ this.form.orderType = ''
|
|
|
|
+ this.orderTypeName = '请选择'
|
|
|
|
+ this.selectDefault = [0]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 初始化数据
|
|
// 初始化数据
|
|
init(){
|
|
init(){
|
|
this.form.stationName = this.defaultParams.stationName ? this.defaultParams.stationName : ''
|
|
this.form.stationName = this.defaultParams.stationName ? this.defaultParams.stationName : ''
|
|
- this.form.orderType = this.defaultParams.orderType ? this.defaultParams.orderType : ''
|
|
|
|
- if(this.defaultParams.orderType){
|
|
|
|
- this.list.map((item, index) => {
|
|
|
|
- if(item.code == this.form.orderType){
|
|
|
|
- this.orderTypeName = this.list[index].dispName
|
|
|
|
- this.selectDefault[0] = index
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
handleClose() {
|
|
handleClose() {
|