This commit is contained in:
2024-07-01 17:08:12 +08:00
parent cd8cf51179
commit c70acc617f
2 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,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 {boxinfogetBoxInfo, saveBoxInfo} from '@/utils/getData3.js' import {getBoxInfo, saveBoxInfo} from '@/utils/getData3.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -53,14 +53,14 @@
}, },
methods: { methods: {
handleChange (e) { handleChange (e) {
this._boxinfogetBoxInfo(e) this._getBoxInfo(e)
}, },
/** 查询 */ /** 查询 */
async _boxinfogetBoxInfo (e) { async _getBoxInfo (e) {
if (!e) { if (!e) {
return return
} }
let res = await boxinfogetBoxInfo(e) let res = await getBoxInfo(e)
this.val1 = res.box_no this.val1 = res.box_no
this.val2 = res.box_weight this.val2 = res.box_weight
this.disabled1 = false this.disabled1 = false

View File

@@ -179,8 +179,8 @@ export const toCleanCutCacheInventory = (code) => request({
/** /**
* 木箱称重 * 木箱称重
*/ */
export const boxinfogetBoxInfo = (code) => request({ export const getBoxInfo = (code) => request({
url:'api/boxinfogetBoxInfo', url:'api/boxinfo/getBoxInfo',
data: {box_no: code} data: {box_no: code}
}) })
export const saveBoxInfo = (code, weight) => request({ export const saveBoxInfo = (code, weight) => request({