callingEmpty
This commit is contained in:
@@ -17,24 +17,10 @@
|
||||
<zxz-uni-data-select v-model="index2" filterable :localdata="options2" @inputChange="inputChange2" @change="selectChange2"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">载具编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
<view class="filter_label_wraper">
|
||||
<span class="filter_label">物料类型</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index3" :localdata="options3" @change="selectChange3"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !index2}" :disabled="disabled1" @tap="toSure">确认</button>
|
||||
<button class="submit-button" @tap="toCancle">取消</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -43,7 +29,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryPoint, outStructOutSave} from '@/utils/getData2.js'
|
||||
import {queryPoint, callingEmpty} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -55,9 +41,6 @@
|
||||
index1: 'TBX1',
|
||||
options2: [],
|
||||
index2: '',
|
||||
options3: [{text: '正极板', value: '1'}, {text: '负极板', value: '2'}, {text: '边负极板', value: '3'}],
|
||||
index3: '',
|
||||
val1: '',
|
||||
disabled1: false
|
||||
};
|
||||
},
|
||||
@@ -83,9 +66,6 @@
|
||||
this.index2 = e.point_code
|
||||
}
|
||||
},
|
||||
selectChange3(e) {
|
||||
this.index3 = e
|
||||
},
|
||||
/** 获取点位状态下拉框 */
|
||||
async _queryPoint (e) {
|
||||
let res = await queryPoint(e)
|
||||
@@ -106,16 +86,8 @@
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
if (!this.val1) {
|
||||
uni.showToast({
|
||||
title: '载具编码不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await outStructOutSave(this.index2,this.val1, this.index3)
|
||||
let res = await callingEmpty(this.index2)
|
||||
this.disabled1 = false
|
||||
this.toCancle()
|
||||
uni.showToast({
|
||||
@@ -132,8 +104,6 @@
|
||||
this.index2 = ''
|
||||
this.options2 = []
|
||||
this._queryPoint('TBX1')
|
||||
this.val1 = ''
|
||||
this.index3 = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,8 @@ export const authority = () => {
|
||||
sonTree: [
|
||||
{menu_id: '1', imgsrc: 'RF01', name: '涂板线下料', path: '/pages/modules/unloading-mater'},
|
||||
{menu_id: '2', imgsrc: 'RF02', name: '清空物料信息', path: '/pages/modules/clean-matter-info'},
|
||||
{menu_id: '3', imgsrc: 'RF03', name: '包片机叫料', path: '/pages/modules/call-mater'}
|
||||
{menu_id: '3', imgsrc: 'RF03', name: '包片机叫料', path: '/pages/modules/call-mater'},
|
||||
{menu_id: '4', imgsrc: 'RF03', name: '涂板线叫空架', path: '/pages/modules/calling-empty'}
|
||||
]
|
||||
}
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user