|
@@ -52,7 +52,7 @@
|
|
|
import { getRoomPlans, getSelectList } from "@/api/api";
|
|
import { getRoomPlans, getSelectList } from "@/api/api";
|
|
|
import { httpAction, getAction } from "@/api/manage";
|
|
import { httpAction, getAction } from "@/api/manage";
|
|
|
import { validateDuplicateValue } from "@/utils/util";
|
|
import { validateDuplicateValue } from "@/utils/util";
|
|
|
-import { tree } from '@/api/good'
|
|
|
|
|
|
|
+import { tree, getPosTypeList } from '@/api/good'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "BusMarketMemberForm",
|
|
name: "BusMarketMemberForm",
|
|
@@ -176,6 +176,16 @@ export default {
|
|
|
this.selectData = res.result;
|
|
this.selectData = res.result;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ getPosTypeList().then(res=>{
|
|
|
|
|
+ if (res.success) {
|
|
|
|
|
+ this.posOptions = res.result.records.map(item=>{
|
|
|
|
|
+ return {
|
|
|
|
|
+ label:item.name,
|
|
|
|
|
+ value:item.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 选择器选中时
|
|
* 选择器选中时
|
|
@@ -200,7 +210,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- onCheckAllChangePos(e) {
|
|
|
|
|
|
|
+ onCheckAllChangePos(e) {
|
|
|
this.model.posType = e.target.checked ? this.posOptions.map(v => v.value) : []
|
|
this.model.posType = e.target.checked ? this.posOptions.map(v => v.value) : []
|
|
|
this.indeterminatePos = false
|
|
this.indeterminatePos = false
|
|
|
this.posCheckAll = e.target.checked
|
|
this.posCheckAll = e.target.checked
|