no message

This commit is contained in:
2025-02-15 19:09:31 +08:00
parent 5bcf7cfc2c
commit 0e494ceb5f
2 changed files with 10 additions and 10 deletions

View File

@@ -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({