callingEmpty

This commit is contained in:
2023-12-13 09:23:10 +08:00
parent 31b6d7bcb2
commit 7f3cb97f51
2 changed files with 5 additions and 34 deletions

View File

@@ -17,24 +17,10 @@
<zxz-uni-data-select v-model="index2" filterable :localdata="options2" @inputChange="inputChange2" @change="selectChange2"></zxz-uni-data-select> <zxz-uni-data-select v-model="index2" filterable :localdata="options2" @inputChange="inputChange2" @change="selectChange2"></zxz-uni-data-select>
</view> </view>
</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> </view>
<view class="submit-bar"> <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> <button class="submit-button" @tap="toCancle">取消</button>
</view> </view>
</view> </view>
@@ -43,7 +29,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 {queryPoint, outStructOutSave} from '@/utils/getData2.js' import {queryPoint, callingEmpty} from '@/utils/getData2.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -55,9 +41,6 @@
index1: 'TBX1', index1: 'TBX1',
options2: [], options2: [],
index2: '', index2: '',
options3: [{text: '正极板', value: '1'}, {text: '负极板', value: '2'}, {text: '边负极板', value: '3'}],
index3: '',
val1: '',
disabled1: false disabled1: false
}; };
}, },
@@ -83,9 +66,6 @@
this.index2 = e.point_code this.index2 = e.point_code
} }
}, },
selectChange3(e) {
this.index3 = e
},
/** 获取点位状态下拉框 */ /** 获取点位状态下拉框 */
async _queryPoint (e) { async _queryPoint (e) {
let res = await queryPoint(e) let res = await queryPoint(e)
@@ -106,16 +86,8 @@
this.disabled1 = false this.disabled1 = false
return return
} }
if (!this.val1) {
uni.showToast({
title: '载具编码不能为空',
icon: 'none'
})
this.disabled1 = false
return
}
try { try {
let res = await outStructOutSave(this.index2,this.val1, this.index3) let res = await callingEmpty(this.index2)
this.disabled1 = false this.disabled1 = false
this.toCancle() this.toCancle()
uni.showToast({ uni.showToast({
@@ -132,8 +104,6 @@
this.index2 = '' this.index2 = ''
this.options2 = [] this.options2 = []
this._queryPoint('TBX1') this._queryPoint('TBX1')
this.val1 = ''
this.index3 = ''
} }
} }
} }

View File

@@ -27,7 +27,8 @@ export const authority = () => {
sonTree: [ sonTree: [
{menu_id: '1', imgsrc: 'RF01', name: '涂板线下料', path: '/pages/modules/unloading-mater'}, {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: '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 return res