This commit is contained in:
2022-10-28 10:46:22 +08:00
parent e9ee7922f6
commit 622a0f92be
5 changed files with 23 additions and 23 deletions

View File

@@ -34,7 +34,8 @@
methods: {
handleChange ($event) {
this.cur = $event.target.value
this.$emit('input', this.cur)
this.$emit('input', this.cur)
this.$emit('handleChange', this.cur)
},
toSearch () {
this.$emit('toSearch', this.cur)

View File

@@ -10,6 +10,7 @@
<view class="filter_input_wraper">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -61,7 +62,6 @@
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_stPrint">补码</button>
<button class="submit-button" @tap="_boxQuery">查询</button>
</view>
</view>
</template>
@@ -87,17 +87,17 @@
disabled1: false
};
},
created () {
this._boxQuery()
},
methods: {
/** 虚拟库 */
isVirtual () {
this.isV = this.isV === '0' ? '1' : '0'
},
handleChange (e) {
this._boxQuery(e)
},
/** 初始化查询 */
async _boxQuery () {
let res = await boxQuery(this.val1, this.val2, '2')
let res = await boxQuery(e, '2')
this.dataList = [...res.data]
},
/** 确认 */
@@ -116,7 +116,7 @@
this.pkId = ''
this.pkObj = {}
this.disabled = false
this._boxQuery()
this._boxQuery(this.val1)
} catch (e) {
this.disabled = false

View File

@@ -10,6 +10,7 @@
<view class="filter_input_wraper">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -66,7 +67,6 @@
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
<button class="submit-button" @tap="_boxQuery">查询</button>
</view>
</view>
</template>
@@ -92,17 +92,17 @@
disabled: false
};
},
created () {
this._boxQuery()
},
methods: {
/** 虚拟库 */
isVirtual () {
this.isV = this.isV === '0' ? '1' : '0'
},
handleChange (e) {
this._boxQuery(e)
},
/** 初始化查询 */
async _boxQuery () {
let res = await boxQuery(this.val1, this.val2, '3')
async _boxQuery (e) {
let res = await boxQuery(e, '3')
this.dataList = [...res.data]
},
/** 确认 */
@@ -121,7 +121,7 @@
this.pkId = ''
this.pkObj = {}
this.disabled = false
this._boxQuery()
this._boxQuery(this.val1)
} catch (e) {
this.disabled = false

View File

@@ -10,6 +10,7 @@
<view class="filter_input_wraper">
<search-box
v-model="val1"
@handleChange="handleChange"
/>
</view>
</view>
@@ -60,7 +61,6 @@
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_stConfirm">入库确认</button>
<button class="submit-button" @tap="_boxQuery">查询</button>
</view>
</view>
</template>
@@ -85,17 +85,17 @@
disabled: false
};
},
created () {
this._boxQuery()
},
methods: {
/** 虚拟库 */
isVirtual () {
this.isV = this.isV === '0' ? '1' : '0'
},
handleChange (e) {
this._boxQuery(e)
},
/** 初始化查询 */
async _boxQuery () {
let res = await boxQuery(this.val1, this.val2, '1')
async _boxQuery (e) {
let res = await boxQuery(e, '1')
this.dataList = [...res.data]
},
/** 确认 */
@@ -114,7 +114,7 @@
this.pkId = ''
this.pkObj = {}
this.disabled = false
this._boxQuery()
this._boxQuery(this.val1)
} catch (e) {
this.disabled = false

View File

@@ -142,8 +142,7 @@ export const boxQuery = (no, option, code) => request({
url:'api/pda/st/boxQuery',
data: {
box_no: no,
option: option,
point_code: code
option: option
}
})
// 1.2确认入库