穿轴确认
This commit is contained in:
@@ -95,6 +95,7 @@
|
|||||||
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
|
<button class="submit-button" :class="{'btn-disabled': !val2}" :disabled="disabled2" @tap="_casingWearConfirm">穿轴确认</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">拔轴确认</button>
|
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled1" @tap="_casingOutConfirm">拔轴确认</button>
|
||||||
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button>
|
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val2}" :disabled="disabled" @tap="_casingConfirm">套轴确认</button>
|
||||||
<button class="submit-button" @tap="searchList">查询</button>
|
<button class="submit-button" @tap="searchList">查询</button>
|
||||||
@@ -105,7 +106,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 {queryProductArea, queryDeviceByarea, queryMaterialInfo2, casingConfirm, casingOutConfirm} from '@/utils/getData2.js'
|
import {queryProductArea, queryDeviceByarea, queryMaterialInfo2, casingConfirm, casingOutConfirm, casingWearConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -134,7 +135,8 @@
|
|||||||
totalCount: 0,
|
totalCount: 0,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
disabled1: false
|
disabled1: false,
|
||||||
|
disabled2: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -245,6 +247,29 @@
|
|||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/** 穿轴确认 */
|
||||||
|
async _casingWearConfirm () {
|
||||||
|
this.disabled2 = true
|
||||||
|
if (!this.val2) {
|
||||||
|
this.disabled2 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await casingWearConfirm(this.val2)
|
||||||
|
this.disabled2 = false
|
||||||
|
this.checkArr = []
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.val4 = ''
|
||||||
|
this.searchList()
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled2 = false
|
||||||
|
}
|
||||||
|
},
|
||||||
toCheck (e) {
|
toCheck (e) {
|
||||||
e.checked = !e.checked
|
e.checked = !e.checked
|
||||||
this.checkArr = this.dataList.filter(i => { return i.checked === true })
|
this.checkArr = this.dataList.filter(i => { return i.checked === true })
|
||||||
|
|||||||
@@ -159,6 +159,13 @@ export const casingOutConfirm = (qzz, code) => request({
|
|||||||
point_code: code
|
point_code: code
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// 1.5穿轴确认
|
||||||
|
export const casingWearConfirm = (qzz) => request({
|
||||||
|
url:'api/pda/casing/wearConfirm',
|
||||||
|
data: {
|
||||||
|
qzzno: qzz
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 子卷配送
|
* 子卷配送
|
||||||
|
|||||||
Reference in New Issue
Block a user