Commit 0da9fbda by LJM

add

parent 9ab5f6e0
Showing with 19 additions and 11 deletions
......@@ -11,7 +11,7 @@
</picker>
</view>
<view class="search-bar row bothSide verCenter">
<view class="row verCenter">
<view class="row verCenter" style="width: 100%;">
<text class="iconfont icon-juxing1"></text>
<template v-if="index == 0">
<input class="uni-input" placeholder="请扫描或输入查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.mobile_wait_tally_all_search" @input="handleInput(1, $event)" />
......@@ -20,19 +20,19 @@
<input class="uni-input" placeholder="请输入入仓号" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.stock_in_with_stock_in_items_inhouse" @input="handleInput(2, $event)" maxlength="8" />
</template>
<template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.tracking_no" @input="handleInput(0, $event)" style="width: 400rpx;" />
<input class="uni-input" placeholder="请输入FedEx" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.tracking_no" @input="handleInput(0, $event)" />
</template>
<template v-else-if="index == 3">
<input class="uni-input" placeholder="请输入DigKey" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
<input class="uni-input" placeholder="请输入DigKey" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" 0 />
</template>
<template v-else-if="index == 4">
<input class="uni-input" placeholder="请输入Rochester" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
<input class="uni-input" placeholder="请输入Rochester" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" />
</template>
<template v-else-if="index == 5">
<input class="uni-input" placeholder="请输入TME" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
<input class="uni-input" placeholder="请输入TME" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" />
</template>
<template v-else-if="index == 6">
<input class="uni-input" placeholder="请输入Chip1stop" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" style="width: 400rpx;" />
<input class="uni-input" placeholder="请输入Chip1stop" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.code_type" @input="handleInputChange($event)" />
</template>
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput(1)" v-if="input_flag"></text>
......@@ -567,10 +567,12 @@
});
}
//匹配到内容才开始调接口
if (!result) {
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: result, code_type: code_type }, true).then(res => {
if (result != '') {
this.request(API.analyzeQRCode, 'POST', { data: result, type: 'DigKey' }, true).then(res => {
if (res.code === 0) {
this.searchParams.goods_name = res.data.sn; //赋值检索出来的型号
this.searchParams.goods_name = res.data.model; //赋值检索出来的型号
this.list = [];
this.page = 1;
this.getData();
} else {
uni.showToast({
......
......@@ -2,12 +2,14 @@ const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
const API_BASE = 'http://wms.liexindev.net'; //WMS系统
const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_Queue = 'http://192.168.1.252:16590'; //queue
// const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
// const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
// const API_BASE = 'https://wms.ichunt.net'; //WMS系统
// const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
//const API_BASE_Queue = 'http://queue.ichunt.net'; //queue系统
const API = {
/**
......@@ -354,7 +356,11 @@ const API = {
/**
* 修改理货照片
* */
changeStockTallyImages: API_BASE + '/api/stockIn/tallyReceive/changeStockTallyImages'
changeStockTallyImages: API_BASE + '/api/stockIn/tallyReceive/changeStockTallyImages',
/**
* digikey扫码识别型号
* */
analyzeQRCode: API_BASE_Queue + '/analyzeQRCode'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment