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