穿拔轴初始化

This commit is contained in:
2024-07-18 14:53:45 +08:00
parent cda501ce60
commit c0692529ca
2 changed files with 17 additions and 4 deletions

View File

@@ -10,6 +10,15 @@
<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>
</view> </view>
</view> </view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label filter_label_1"></span>
</view>
<view class="filter_input_wraper filter_input_wraper_1">
<view class="iconfont icon_unchecked" :class="{'icon_checked': isV === '1'}" @tap="isVirtual">&#xe66b;</view>
<view class="filter_input_wraper_inn_text">是否重新套轴</view>
</view>
</view>
</view> </view>
</view> </view>
<view class="zd-row submitbar"> <view class="zd-row submitbar">
@@ -32,7 +41,8 @@
title: '', title: '',
options: [], options: [],
index: '', index: '',
disabled: false disabled: false,
isV: '1'
}; };
}, },
onLoad (options) { onLoad (options) {
@@ -42,6 +52,9 @@
this._getShaftPoint() this._getShaftPoint()
}, },
methods: { methods: {
isVirtual () {
this.isV = this.isV === '0' ? '1' : '0'
},
async _getShaftPoint () { async _getShaftPoint () {
let res = await getShaftPoint() let res = await getShaftPoint()
this.options = [...res] this.options = [...res]
@@ -56,7 +69,7 @@
return return
} }
try { try {
let res = await doInitShaftPoint(this.index) let res = await doInitShaftPoint(this.index, this.isV)
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'

View File

@@ -144,9 +144,9 @@ export const getShaftPoint = () => request({
data: {} data: {}
}) })
// 确定 // 确定
export const doInitShaftPoint = (code) => request({ export const doInitShaftPoint = (code, is) => request({
url:'api/pda/slitter/doInitShaftPoint', url:'api/pda/slitter/doInitShaftPoint',
data: {point_code: code} data: {point_code: code, is_again_tz: is}
}) })
/** /**
* 子卷质检 * 子卷质检