区域锁定修改
This commit is contained in:
@@ -32,7 +32,10 @@
|
||||
</view> -->
|
||||
<view v-show="dataList.length > 0" class="zd_wrapper grid-wraper">
|
||||
<view class="zd-row point-wraper">
|
||||
<view class="zd-row point-item" v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.checked}">{{e.point_name}}</view>
|
||||
<view class="zd-row point-item" v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'point-item_n5': index === 'QTJGSLZCQ', 'cgreen': e.point_status === '0', 'cyellow': e.point_status === '1'}">
|
||||
<text>{{e.point_name}}</text>
|
||||
<uni-icons class="item-checked" type="checkbox-filled" size="22" :color="e.checked ? '#4e6ef2' : 'transparent'"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -51,8 +54,8 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
// import {regionList, selectPointByRegion} from '@/utils/mork2.js'
|
||||
import {regionList, selectPointByRegion, handheldLock} from '@/utils/getData2.js'
|
||||
// import {selectPointByRegion} from '@/utils/mork2.js'
|
||||
import {selectPointByRegion, handheldLock} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -61,7 +64,7 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options: [],
|
||||
options: [{value: 'NBJGZCQ', text: '内部加工暂存区'}, {value: 'QTJGSLZCQ', text: '其他加工送料暂存区'}, {value: 'WXJGZCQ', text: '外协加工暂存区'}],
|
||||
index: '',
|
||||
multiple: true,
|
||||
disabled: false,
|
||||
@@ -73,16 +76,8 @@
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this._regionList()
|
||||
},
|
||||
methods: {
|
||||
async _regionList () {
|
||||
let res = await regionList()
|
||||
this.options = [...res.content]
|
||||
this.options.map(el => {
|
||||
this.$set(el, 'text', el.label)
|
||||
})
|
||||
},
|
||||
selectChange (e) {
|
||||
if (e) {
|
||||
this._selectPointByRegion(e)
|
||||
|
||||
Reference in New Issue
Block a user