修改
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
:value="value"
|
:value="value"
|
||||||
:focus="focusState"
|
:focus="focusState"
|
||||||
@blur="handleBlur($event)"
|
@blur="handleBlur($event)"
|
||||||
@input="handleChange($event)">
|
@confirm="handleChange($event)">
|
||||||
<view class="zd-row buttons_wraper">
|
<view class="zd-row buttons_wraper">
|
||||||
<!-- <uni-icons @tap="toDel" type="closeempty" size="20" color="#4e6ef2"></uni-icons> -->
|
<!-- <uni-icons @tap="toDel" type="closeempty" size="20" color="#4e6ef2"></uni-icons> -->
|
||||||
<uni-icons class="pdr10" @tap="toScan" type="scan" size="20" :color="focusState ? '#ff6a00' : '#4e6ef2'"></uni-icons>
|
<uni-icons class="pdr10" @tap="toScan" type="scan" size="20" :color="focusState ? '#ff6a00' : '#4e6ef2'"></uni-icons>
|
||||||
<uni-icons @tap="toPhone" type="camera" size="26" color="#4e6ef2"></uni-icons>
|
<!-- <uni-icons @tap="toPhone" type="camera" size="26" color="#4e6ef2"></uni-icons> -->
|
||||||
<uni-icons v-show="seaShow" @tap="toSearch" type="search" size="20" color="#4e6ef2"></uni-icons>
|
<uni-icons v-show="seaShow" @tap="toSearch" type="search" size="20" color="#4e6ef2"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<view class="zd_wrapper">
|
<view class="zd_wrapper">
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">载具编码</span>
|
<span class="filter_label">起点点位</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
@@ -16,25 +16,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">起点点位</span>
|
<span class="filter_label">终点点位</span>
|
||||||
</view>
|
|
||||||
<view class="zd-col-17">
|
|
||||||
<search-box
|
|
||||||
v-model="val3"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="zd-row border-bottom">
|
|
||||||
<view class="zd-col-7">
|
|
||||||
<span class="filter_label">站点类型</span>
|
|
||||||
</view>
|
|
||||||
<view class="zd-col-24 filter_select">
|
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="zd-row border-bottom" v-show="index !== '2'">
|
|
||||||
<view class="zd-col-7">
|
|
||||||
<span class="filter_label">终点站点</span>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
@@ -42,19 +24,11 @@
|
|||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom" v-show="index == '2'">
|
|
||||||
<view class="zd-col-7">
|
|
||||||
<span class="filter_label">目标区域</span>
|
|
||||||
</view>
|
|
||||||
<view class="zd-col-24 filter_select">
|
|
||||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !index}" :disabled="disabled" @tap="_transferConfirm">确认</button>
|
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2}" :disabled="disabled" @tap="_transferConfirm">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -62,7 +36,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {getSect, getRegion, transferConfirm} from '@/utils/getData.js'
|
import {transferConfirm} from '@/utils/getData.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -72,71 +46,34 @@
|
|||||||
return {
|
return {
|
||||||
title: '',
|
title: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
val3: '',
|
|
||||||
val2: '',
|
val2: '',
|
||||||
options: [{text:'站点', value:'1'},{text:'区域',value: '2'}],
|
|
||||||
index: '2',
|
|
||||||
// options2: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
|
|
||||||
options2: [],
|
|
||||||
index2: '',
|
|
||||||
disabled: false,
|
disabled: false,
|
||||||
currentData: {},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
created () {
|
|
||||||
this._getRegion()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async _getRegion () {
|
|
||||||
try {
|
|
||||||
let res = await getRegion()
|
|
||||||
if (res) {
|
|
||||||
this.options2 = res
|
|
||||||
this.index2 = res[4].value
|
|
||||||
} else {
|
|
||||||
this.options2 =[]
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.options2 = []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
selectChange (e) {
|
|
||||||
this.index = e
|
|
||||||
},
|
|
||||||
selectChange2 (e) {
|
|
||||||
this.index2 = e
|
|
||||||
},
|
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val3 = ''
|
this.val2 = ''
|
||||||
this.index2 = ''
|
|
||||||
this.disabled = false
|
|
||||||
this.kwData = {}
|
|
||||||
},
|
},
|
||||||
async _transferConfirm () {
|
async _transferConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val3 || !this.val1 || !this.index) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await transferConfirm(this.val3, this.val1, this.val2, this.index2)
|
let res = await transferConfirm(this.val1, this.val2)
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.message,
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
|
this.disabled = false
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val2"
|
v-model="val2"
|
||||||
|
:seaShow="true"
|
||||||
@handleChange="handleChange"
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
@@ -22,13 +23,14 @@
|
|||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
|
:seaShow="true"
|
||||||
@handleChange="handleChange"
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">仓库名称</span>
|
<span class="filter_label">入库库区</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24 filter_select">
|
<view class="zd-col-24 filter_select">
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
@@ -66,14 +68,6 @@
|
|||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.qty" disabled>
|
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.qty" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
|
||||||
<view class="zd-col-7">
|
|
||||||
<span class="filter_label filter_input_disabled">物料批次</span>
|
|
||||||
</view>
|
|
||||||
<view class="zd-col-17">
|
|
||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.pcsn" disabled>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ export const groupPlate = (mid, pcsn, qty, vcode, ecode, siteCode) => request({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 定点确认
|
// 定点确认
|
||||||
export const transferConfirm = (pointCode, scode, siteCode, rcode) => request({
|
export const transferConfirm = (scode, ecode) => request({
|
||||||
url:'api/pda/iosOut/transferConfirm',
|
url:'api/pda/iosOut/transferConfirm',
|
||||||
data: {pointCode: pointCode, storagevehicle_code: scode, siteCode: siteCode, region_code: rcode}
|
data: {start_point_code: scode, end_point_code: ecode}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 组盘入库
|
// 组盘入库
|
||||||
|
|||||||
Reference in New Issue
Block a user