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({
|
||||
|
||||
Reference in New Issue
Block a user