uu
This commit is contained in:
parent
a869b04c3b
commit
8ee8e60f1c
@ -6,10 +6,10 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
<view style="">
|
<view style="">
|
||||||
<u-button type="primary" custom-style="width: 140rpx;margin-left: 20rpx;height: 68rpx;">确定</u-button>
|
<u-button @click="handleScanValChange" type="primary" custom-style="width: 140rpx;margin-left: 20rpx;height: 68rpx;">确定</u-button>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
|
||||||
@ -85,9 +85,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
async handleSubmit(val) {
|
async handleSubmit() {
|
||||||
let extParam = {}
|
let extParam = {}
|
||||||
val && (extParam.billCode = val);
|
|
||||||
let scnParam = getScanParams(scanTypeEnum.daoJian, { ...this.submitParam, ...extParam })
|
let scnParam = getScanParams(scanTypeEnum.daoJian, { ...this.submitParam, ...extParam })
|
||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
let { bl, resItem } = ansScanResponse({ res, title: "到件" })
|
let { bl, resItem } = ansScanResponse({ res, title: "到件" })
|
||||||
@ -97,8 +96,8 @@
|
|||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(){
|
||||||
val && (this.handleSubmit(val))
|
this.handleSubmit()
|
||||||
}),
|
}),
|
||||||
resetForm() {
|
resetForm() {
|
||||||
this.submitParam.billCode = ''
|
this.submitParam.billCode = ''
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;">
|
<u-row custom-style="margin-top:20rpx;">
|
||||||
@ -102,9 +102,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
async handleSubmit(val) {
|
async handleSubmit() {
|
||||||
let extParam = {}
|
let extParam = {}
|
||||||
val && (extParam.billCode = val);
|
|
||||||
await checkParams(this.submitParam, this.submitValidConfig)
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
let scnParam = getScanParams(scanTypeEnum.paiJian, { ...this.submitParam, ...extParam })
|
let scnParam = getScanParams(scanTypeEnum.paiJian, { ...this.submitParam, ...extParam })
|
||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
@ -115,8 +114,8 @@
|
|||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(){
|
||||||
val && (this.handleSubmit(val))
|
this.handleSubmit()
|
||||||
}),
|
}),
|
||||||
resetForm() {
|
resetForm() {
|
||||||
this.submitParam.billCode = ''
|
this.submitParam.billCode = ''
|
||||||
|
|||||||
@ -6,10 +6,10 @@
|
|||||||
<view class="blcok-white">
|
<view class="blcok-white">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="orderNo" @change="handleScanValChange"></tpx-scan-input>
|
<tpx-scan-input v-model:value="billCode" @scanChange="handleScanValChange"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
<view class="pl-10">
|
<view class="pl-10">
|
||||||
<u-button custom-style="height: 74rpx;">确定</u-button>
|
<u-button @click="handleScanValChange" custom-style="height: 74rpx;">确定</u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</u-row>
|
</u-row>
|
||||||
@ -138,8 +138,8 @@
|
|||||||
this.submitParam = res.data
|
this.submitParam = res.data
|
||||||
this.pageLoading = false
|
this.pageLoading = false
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(){
|
||||||
val && ( this.queryOrderDetail({ billCode: val }) )
|
this.queryOrderDetail({ billCode: this.billCode })
|
||||||
}),
|
}),
|
||||||
handleDialogClick(curModal){
|
handleDialogClick(curModal){
|
||||||
curModal.show = true
|
curModal.show = true
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;">
|
<u-row custom-style="margin-top:20rpx;">
|
||||||
@ -92,9 +92,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
async handleSubmit(val) {
|
async handleSubmit() {
|
||||||
let extParam = {}
|
let extParam = {}
|
||||||
val && (extParam.billCode = val);
|
|
||||||
await checkParams(this.submitParam, this.submitValidConfig)
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
let scnParam = getScanParams(scanTypeEnum.qingGuan, { ...this.submitParam, ...extParam })
|
let scnParam = getScanParams(scanTypeEnum.qingGuan, { ...this.submitParam, ...extParam })
|
||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
@ -105,8 +104,8 @@
|
|||||||
this.resetForm()
|
this.resetForm()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(){
|
||||||
val && (this.handleSubmit(val))
|
this.handleSubmit()
|
||||||
}),
|
}),
|
||||||
resetForm() {
|
resetForm() {
|
||||||
this.submitParam.billCode = ''
|
this.submitParam.billCode = ''
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;">
|
<u-row custom-style="margin-top:20rpx;">
|
||||||
@ -94,9 +94,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
async handleSubmit(val) {
|
async handleSubmit() {
|
||||||
let extParam = {}
|
let extParam = {}
|
||||||
val && (extParam.billCode = val);
|
|
||||||
await checkParams(this.submitParam, this.submitValidConfig)
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
let scnParam = getScanParams(scanTypeEnum.baoGUan, { ...this.submitParam, ...extParam })
|
let scnParam = getScanParams(scanTypeEnum.baoGUan, { ...this.submitParam, ...extParam })
|
||||||
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
let res = await apiService.scanRecord({...scnParam, _loading: true})
|
||||||
@ -108,7 +107,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(val){
|
||||||
val && (this.handleSubmit(val))
|
this.handleSubmit()
|
||||||
}),
|
}),
|
||||||
resetForm() {
|
resetForm() {
|
||||||
this.submitParam.billCode = ''
|
this.submitParam.billCode = ''
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;">
|
<u-row custom-style="margin-top:20rpx;">
|
||||||
@ -93,10 +93,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(async function(val){
|
handleScanValChange: debounce(async function(){
|
||||||
if(val) {
|
let preBl = await preCheckScan({ scanType: scanTypeEnum.tiHuo, param: { ...this.submitParam } })
|
||||||
let preBl = await preCheckScan({ scanType: scanTypeEnum.tiHuo, param: { ...this.submitParam, billCode: val } })
|
|
||||||
}
|
|
||||||
}),
|
}),
|
||||||
async handleSubmit() {
|
async handleSubmit() {
|
||||||
await checkParams(this.submitParam, this.submitValidConfig)
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<view style="flex:1;">
|
<view style="flex:1;">
|
||||||
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
<tpx-scan-input v-model:value="submitParam.billCode" placeholder="请输入或扫码"
|
||||||
@change="handleScanValChange" iconPos="left"></tpx-scan-input>
|
@scanChange="handleScanValChange" :showConfirm="true" @confirmClick="handleScanValChange" iconPos="left"></tpx-scan-input>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
<u-row custom-style="margin-top:20rpx;">
|
<u-row custom-style="margin-top:20rpx;">
|
||||||
@ -98,9 +98,8 @@
|
|||||||
initData() {
|
initData() {
|
||||||
this.submitParam.billCode = this.queryOption.billCode
|
this.submitParam.billCode = this.queryOption.billCode
|
||||||
},
|
},
|
||||||
async handleSubmit(val) {
|
async handleSubmit() {
|
||||||
let extParam = {}
|
let extParam = {}
|
||||||
val && (extParam.billCode = val);
|
|
||||||
await checkParams(this.submitParam, this.submitValidConfig)
|
await checkParams(this.submitParam, this.submitValidConfig)
|
||||||
// 转换图片格式
|
// 转换图片格式
|
||||||
extParam.picUrl = this.submitParam.picUrl.join(",")
|
extParam.picUrl = this.submitParam.picUrl.join(",")
|
||||||
@ -114,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleScanValChange: debounce(function(val){
|
handleScanValChange: debounce(function(val){
|
||||||
val && (this.handleSubmit(val))
|
this.handleSubmit()
|
||||||
}),
|
}),
|
||||||
resetForm() {
|
resetForm() {
|
||||||
this.submitParam.billCode = ''
|
this.submitParam.billCode = ''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user