Commit 4092497c by LJM

add

parent ef0fd978
......@@ -92,7 +92,7 @@
</view>
<view class="text-item row verCenter">
<text class="label">采购员:</text>
<text class="t1">{{ item.stock_in_items[0].purchase_user }}</text>
<text class="t1">{{ item.stock_in_items[0].purchase_user }}/{{item.purchase_department_name}}</text>
</view>
<view class="bor row"></view>
<view class="text-item row verCenter">
......
......@@ -41,6 +41,10 @@
<text class="label">物流单号:</text>
<text class="t1">{{ item.tracking_no }}</text>
</view>
<view class="text-item row verCenter">
<text class="label">采购员:</text>
<text class="t1">{{ item.stock_in_items[0].purchase_user }}/{{item.purchase_department_name}}</text>
</view>
<view class="bor row"></view>
<view class="text-item row verCenter">
<text class="label">入仓号:</text>
......
......@@ -30,7 +30,7 @@
</template>
<!-- 货品名称 -->
<template v-if="index == 1">
<input class="uni-input" placeholder="请输入货品名称" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.goods_name" @input="handleInput(2, $event)" maxlength="-1" />
<input class="uni-input" placeholder="请输入货品名称" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.goods_name" @input="handleInputTime(1, $event)" maxlength="-1" />
</template>
<!-- fedex -->
<template v-else-if="index == 2">
......@@ -135,7 +135,7 @@
<text class="label-title">物流单号:</text>
</view>
<view class="input-box">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入物流单号" v-model="formParams.logistics_sn" />
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入物流单号" v-model="formParams.logistics_sn" @input="handleInput(4, $event)" />
</view>
</view>
<view class="input-wrap column" style="margin-top: 20rpx;">
......@@ -347,9 +347,11 @@
if (type == 1) {
//全量搜索
this.searchParams.shipment_number = val;
this.input_flag = true;
} else if (type == 2) {
//货品名称
this.searchParams.goods_name = val;
this.input_flag = true;
} else if (type == 3) {
//FedEx
if (val.length > 22) {
......@@ -358,14 +360,45 @@
} else {
this.searchParams.shipment_number = val;
}
}
this.input_flag = true;
} else if (type == 4) {
//物流单号
if (this.formParams.logistics_company == '联邦快递') {
if (val.length > 22) {
let last22 = val.slice(22); // 截取后22位
this.formParams.logistics_sn = last22;
} else {
this.formParams.logistics_sn = val;
}
}
}
} else {
this.input_flag = false;
}
this.getData();
}, 500),
/**
* 货品查询特殊处理
* @param {Object} type
* @param {Object} event
*/
handleInputTime: debounce(function(type, event) {
var val = event.target.value;
this.searchParams.shipment_number = '';
this.searchParams.goods_name = '';
this.resetChange();
if (val) {
if (type == 1) {
//货品名称
this.searchParams.goods_name = val;
this.input_flag = true;
}
} else {
this.input_flag = false;
}
this.getData();
}, 1000),
/**
* 获取列表数据
*/
getData() {
......
......@@ -102,7 +102,7 @@
</view>
<view class="text-item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ item.purchase_user }}</text>
<text class="tt">{{ item.purchase_user }}/{{item.purchase_department_name}}</text>
</view>
<view class="text-item row">
<text class="label">客户:</text>
......
......@@ -144,7 +144,7 @@
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}</text>
<text class="tt">{{ detail.purchase_user }}/{{detail.purchase_department_name}}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">客户:</text>
......
......@@ -258,7 +258,7 @@
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}</text>
<text class="tt">{{ detail.purchase_user }}/{{detail.purchase_department_name}}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">供应商:</text>
......@@ -382,7 +382,7 @@
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}</text>
<text class="tt">{{ detail.purchase_user }}/{{detail.purchase_department_name}}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">客户:</text>
......
// 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_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_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_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 = {
......
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