涂线板
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<td class="fontcol1">{{e.workorder_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td><view class="fontbg" :class="'fontbg' + e.workorder_status">{{textState(e.workorder_status)}}</view></td>
|
||||
<td>{{e.workorder_status}}</td>
|
||||
<td>{{e.operator}}</td>
|
||||
<td>{{e.create_name}}</td>
|
||||
<!-- <td><input class="td_input" type="number" v-model="e.plan_qty"></td> -->
|
||||
@@ -60,22 +60,6 @@
|
||||
this._manualSortingOrders()
|
||||
},
|
||||
methods: {
|
||||
textState (e) {
|
||||
switch (e) {
|
||||
case '1':
|
||||
return '未生产'
|
||||
break
|
||||
case '3':
|
||||
return '生产中'
|
||||
break
|
||||
case '4':
|
||||
return '暂停'
|
||||
break
|
||||
default:
|
||||
return ''
|
||||
break
|
||||
}
|
||||
},
|
||||
/** grid查询 */
|
||||
async _manualSortingOrders () {
|
||||
let res = await manualSortingOrders()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">点位编码</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
@@ -41,27 +41,29 @@
|
||||
<view class="zd-row submit-bar_new">
|
||||
<button class="zd-col-5 submit-button_c" @tap="toClear">清空</button>
|
||||
<button class="zd-col-5 submit-button_c" @tap="_coatedWireIntoStorageTaskShow">刷新</button>
|
||||
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_coatedWireIntoStorageTask">确认</button>
|
||||
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !index1 || !val2}" :disabled="disabled" @tap="_coatedWireIntoStorageTask">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {coatedWireIntoStorageTaskShow, coatedWireIntoStorageTask} from '@/utils/getData2.js'
|
||||
import {getPointList, coatedWireIntoStorageTaskShow, coatedWireIntoStorageTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options1: [],
|
||||
index1: '',
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
val1: '',
|
||||
val2: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._getPointList()
|
||||
this._coatedWireIntoStorageTaskShow()
|
||||
},
|
||||
methods: {
|
||||
@@ -84,23 +86,36 @@
|
||||
break
|
||||
}
|
||||
},
|
||||
selectChange1 (e) {
|
||||
this.index1 = e
|
||||
},
|
||||
/** 下拉框查询 */
|
||||
async _getPointList () {
|
||||
let res = await getPointList()
|
||||
res.map(el => {
|
||||
this.$set(el, 'value', el.point_code)
|
||||
this.$set(el, 'text', el.point_name)
|
||||
})
|
||||
this.options1 = [...res]
|
||||
console.log(this.options1)
|
||||
},
|
||||
/** grid查询 */
|
||||
async _coatedWireIntoStorageTaskShow () {
|
||||
let res = await coatedWireIntoStorageTaskShow()
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toClear () {
|
||||
this.val1 = ''
|
||||
this.index1 = ''
|
||||
this.val2 = ''
|
||||
},
|
||||
async _coatedWireIntoStorageTask () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
if (!this.index1 || !this.val2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await coatedWireIntoStorageTask(this.val1, this.val2)
|
||||
let res = await coatedWireIntoStorageTask(this.index1, this.val2)
|
||||
this.disabled = false
|
||||
this._coatedWireIntoStorageTaskShow()
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user