no message
This commit is contained in:
@@ -67,7 +67,8 @@
|
|||||||
<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 {queryWorks, handConfirm, queryZDDevice, confirmZZDevice} from '@/utils/getData2.js'
|
// import {queryWorks, queryZDDevice, confirmZZDevice} from '@/utils/mork2.js'
|
||||||
|
import {queryWorks, queryZDDevice, confirmZZDevice, handConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -89,12 +90,9 @@
|
|||||||
this.title = options.title
|
this.title = options.title
|
||||||
this._queryWorks()
|
this._queryWorks()
|
||||||
},
|
},
|
||||||
created () {
|
|
||||||
this._queryZDDevice()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async _queryZDDevice () {
|
async _queryZDDevice (code) {
|
||||||
let res = await queryZDDevice()
|
let res = await queryZDDevice(code)
|
||||||
this.options1 = [...res]
|
this.options1 = [...res]
|
||||||
this.options1.map(el => {
|
this.options1.map(el => {
|
||||||
this.$set(el, 'text', el.device_name)
|
this.$set(el, 'text', el.device_name)
|
||||||
@@ -117,6 +115,8 @@
|
|||||||
this.pkId = this.pkId === e.work_code ? '' : e.work_code
|
this.pkId = this.pkId === e.work_code ? '' : e.work_code
|
||||||
},
|
},
|
||||||
updateCode (e) {
|
updateCode (e) {
|
||||||
|
this.options1 = []
|
||||||
|
this._queryZDDevice(e.mfg_order_name)
|
||||||
this.show = true
|
this.show = true
|
||||||
this.pkObj = e
|
this.pkObj = e
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await handConfirm()
|
let res = await handConfirm(this.pkId)
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
this._queryWorks()
|
this._queryWorks()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -26,14 +26,14 @@ export const queryWorks = () => request({
|
|||||||
data: {}
|
data: {}
|
||||||
})
|
})
|
||||||
// 确认配料作业
|
// 确认配料作业
|
||||||
export const handConfirm = () => request({
|
export const handConfirm = (code) => request({
|
||||||
url:'api/hand/confirm',
|
url:'api/hand/confirm',
|
||||||
data: {work_code: code}
|
data: {work_code: code}
|
||||||
})
|
})
|
||||||
// 查询终点
|
// 查询终点
|
||||||
export const queryZDDevice = () => request({
|
export const queryZDDevice = (code) => request({
|
||||||
url:'api/hand/queryZDDevice',
|
url:'api/hand/queryZDDevice',
|
||||||
data: {}
|
data: {mfg_order_name: code}
|
||||||
})
|
})
|
||||||
// 修改终点
|
// 修改终点
|
||||||
export const confirmZZDevice = (code, work, ncode) => request({
|
export const confirmZZDevice = (code, work, ncode) => request({
|
||||||
|
|||||||
Reference in New Issue
Block a user