修改
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
"name" : "华祥",
|
||||
"appid" : "__UNI__FE8E170",
|
||||
"description" : "华祥手持系统",
|
||||
"versionName" : "1.0.1",
|
||||
"versionCode" : 101,
|
||||
"versionName" : "1.0.2",
|
||||
"versionCode" : 102,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{title: '任务管理', icon: 'RF06', path: '/pages/manage/task-manage'},
|
||||
{title: '指令管理', icon: 'RF05', path: '/pages/manage/inst-manage'},
|
||||
{title: '混碾搬运', icon: 'RF01', path: '/pages/manage/hnby'},
|
||||
{title: '扫码出入库', icon: 'RF11', path: '/pages/manage/smck'},
|
||||
{title: '扫码入库', icon: 'RF11', path: '/pages/manage/smck'},
|
||||
{title: '压制满料搬运', icon: 'RF02', path: '/pages/manage/yzmlby'},
|
||||
{title: '半成品解绑', icon: 'RF08', path: '/pages/manage/bcpjb'},
|
||||
{title: '混碾料罐绑定', icon: 'RF10', path: '/pages/manage/hnlgbd'},
|
||||
|
||||
@@ -3,14 +3,6 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">起点</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">终点</span>
|
||||
@@ -33,7 +25,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !index2 || !val1}" :disabled="disabled1" @tap="_pdaHnby">混碾搬运</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2 || !val1}" :disabled="disabled1" @tap="_pdaHnby">混碾搬运</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -50,8 +42,6 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: this.generateArray('HNJ', 'DJW', '混碾机', '', 8),
|
||||
index1: '',
|
||||
options2: this.generateArray('YJ', 'SLW01', '压机', '号上料位', 10),
|
||||
index2: '',
|
||||
val1: null,
|
||||
@@ -73,19 +63,18 @@
|
||||
return array
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.val1 = null
|
||||
this.disabled1 = false
|
||||
},
|
||||
async _pdaHnby () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.index2 || !this.val1) {
|
||||
if (!this.index2 || !this.val1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await pdaHnby(this.index1, this.index2, this.val1)
|
||||
let res = await pdaHnby(this.index2, this.val1)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="toSure1">入库</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled2" @tap="toSure2">出库</button>
|
||||
<button class="zd-col-6 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="toSure1">入库</button>
|
||||
<!-- <button class="zd-col-8 button-primary" :class="{'button-info': !val1}" :disabled="disabled2" @tap="toSure2">出库</button> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -24,10 +24,9 @@ export const handLogin = (user, password) => request({
|
||||
/**
|
||||
* 混碾搬运
|
||||
*/
|
||||
export const pdaHnby = (sp, ep, code) => request({
|
||||
export const pdaHnby = (ep, code) => request({
|
||||
url:'api/pda/hnby',
|
||||
data: {
|
||||
startPoint: sp,
|
||||
endPoint: ep,
|
||||
barCode: code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user