优化
This commit is contained in:
@@ -116,16 +116,15 @@
|
||||
id: '',
|
||||
code: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
// dataList: [],
|
||||
dataList: [
|
||||
{site_code: 's01', vehicle_code: 'v01', checked: false},
|
||||
{site_code: 's02', vehicle_code: 'v02', checked: false},
|
||||
{site_code: 's03', vehicle_code: 'v03', checked: false},
|
||||
{site_code: 's04', vehicle_code: 'v04', checked: false}
|
||||
],
|
||||
dataList: [],
|
||||
// dataList: [
|
||||
// {site_code: 's01', vehicle_code: 'v01', checked: false},
|
||||
// {site_code: 's02', vehicle_code: 'v02', checked: false},
|
||||
// {site_code: 's03', vehicle_code: 'v03', checked: false},
|
||||
// {site_code: 's04', vehicle_code: 'v04', checked: false}
|
||||
// ],
|
||||
checkedArr: [],
|
||||
pkId: '',
|
||||
currentData: {},
|
||||
@@ -146,7 +145,7 @@
|
||||
}
|
||||
},
|
||||
handleAdd () {
|
||||
if (!this.val1 || !this.val2) {
|
||||
if (!this.val1) {
|
||||
return
|
||||
}
|
||||
this.dataList.map(el => {
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">料桶号</span>
|
||||
<span class="filter_label">料桶号</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.storagevehicle_code" @tap="toJump">
|
||||
<input type="text" class="filter_input" v-model="currentData.storagevehicle_code" @tap="toJump">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
@@ -140,7 +140,7 @@
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ftdl/wl-list?title=查询物料§code=' + this.index
|
||||
url: '/pages/zw/wl-list?title=查询物料§code=' + this.index
|
||||
})
|
||||
},
|
||||
async _getPdaCallMaterialSect () {
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
}
|
||||
},
|
||||
toJump () {
|
||||
this.getMaterialSuppByVehicleCode()
|
||||
this._getMaterialSuppByVehicleCode()
|
||||
},
|
||||
selectChange4 (e) {
|
||||
this.index4 = e
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<view class="zd-col-17">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
@handleChange="handleChange"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -84,9 +85,14 @@
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
// this.seachList()
|
||||
this.seachList()
|
||||
},
|
||||
methods: {
|
||||
handleChange (e) {
|
||||
if (e) {
|
||||
this.seachList()
|
||||
}
|
||||
},
|
||||
seachList () {
|
||||
this.dataList = []
|
||||
this._getInBillPointList()
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this.sectcode = options.sectcode
|
||||
// this.searchList()
|
||||
this.searchList()
|
||||
},
|
||||
methods: {
|
||||
searchList () {
|
||||
|
||||
Reference in New Issue
Block a user