下拉框
This commit is contained in:
@@ -528,4 +528,7 @@ uni-button[disabled]:not([type]), uni-button[disabled][type=default] {
|
|||||||
.uni-calendar-item__weeks-box-item {
|
.uni-calendar-item__weeks-box-item {
|
||||||
width: 40px !important;
|
width: 40px !important;
|
||||||
height: 40px !important;
|
height: 40px !important;
|
||||||
|
}
|
||||||
|
.uni-select__selector-empty {
|
||||||
|
color: #fff
|
||||||
}
|
}
|
||||||
@@ -6,11 +6,7 @@
|
|||||||
<view class="zd-col-24 zd-row">
|
<view class="zd-col-24 zd-row">
|
||||||
<view class="zd-col-8"><search-box v-model="val1" /></view>
|
<view class="zd-col-8"><search-box v-model="val1" /></view>
|
||||||
<view class="zd-col-8 select_wraper">
|
<view class="zd-col-8 select_wraper">
|
||||||
<uni-data-select
|
<zxz-uni-data-select placeholder="请选择仓库名称" v-model="value1" filterable :localdata="range1"></zxz-uni-data-select>
|
||||||
placeholder="请选择仓库名称"
|
|
||||||
v-model="value1"
|
|
||||||
:localdata="range1"
|
|
||||||
></uni-data-select>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-7 select_wraper">
|
<view class="zd-col-7 select_wraper">
|
||||||
<uni-data-select
|
<uni-data-select
|
||||||
@@ -179,7 +175,7 @@
|
|||||||
import ScanInput from '@/components/ScanInput.vue'
|
import ScanInput from '@/components/ScanInput.vue'
|
||||||
import Pagination from '@/components/Pagination.vue'
|
import Pagination from '@/components/Pagination.vue'
|
||||||
import GridDetail from '@/components/GridDetail.vue'
|
import GridDetail from '@/components/GridDetail.vue'
|
||||||
import {easOutInBillPage, easOutInBillDetailPage, easOutInBillUpdate, easOutInBillDetailUpdate, queryInventoryInfo} from '@/utils/getData2.js'
|
import {getWarehouseInfo, easOutInBillPage, easOutInBillDetailPage, easOutInBillUpdate, easOutInBillDetailUpdate, queryInventoryInfo} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -226,7 +222,7 @@
|
|||||||
value: '',
|
value: '',
|
||||||
range:[{value: 1, text: '提交'}, {value: 2, text: '审核'}],
|
range:[{value: 1, text: '提交'}, {value: 2, text: '审核'}],
|
||||||
value1: '',
|
value1: '',
|
||||||
range1: [{value: '3.03.013', text: '三期原材料库'}]
|
range1: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -243,9 +239,21 @@
|
|||||||
this.crType = options.type
|
this.crType = options.type
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.toSearch()
|
this._getWarehouseInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 仓库下拉框
|
||||||
|
async _getWarehouseInfo () {
|
||||||
|
let res = await getWarehouseInfo()
|
||||||
|
if (res.code === 1) {
|
||||||
|
this.range1 = [...res.result]
|
||||||
|
this.range1.map(e => {
|
||||||
|
this.$set(e, 'text', e.ckmc)
|
||||||
|
this.$set(e, 'value', e.ckbm)
|
||||||
|
})
|
||||||
|
this.toSearch()
|
||||||
|
}
|
||||||
|
},
|
||||||
// 查询一级表格
|
// 查询一级表格
|
||||||
toSearch () {
|
toSearch () {
|
||||||
this.queryParams1 = {
|
this.queryParams1 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user