Commit a9aba3f2 by liangjianmin

refactor: 统一picker事件参数格式,添加空格提高可读性

- 统一了多个页面中picker事件的参数格式,确保一致性
- 在模板中添加空格以提高可读性,增强代码整洁性
- 修正了部分变量显示格式,确保一致性
parent 1878ffe0
......@@ -43,8 +43,8 @@
<view class="row bothSide verCente" style="margin: 15rpx 0;">
<view style="color: red;font-size: 16rpx;" v-show="contains_american_products">该包裹含有美产货物,请优先处理! </view>
<view class="total-text row" v-if="list.length > 0">
<view class="row"><text>{{total}}</text>条数据</view>
<view class="row" style="margin-left: 15rpx;"><text>{{erp_order_sn_num}}</text>个入仓号</view>
<view class="row"><text>{{ total }}</text>条数据</view>
<view class="row" style="margin-left: 15rpx;"><text>{{ erp_order_sn_num }}</text>个入仓号</view>
</view>
</view>
<!-- 列表数据 -->
......@@ -53,17 +53,17 @@
<view class="check-box-icon"></view>
<view class="wrap row verCenter bothSide">
<view class="row verCenter">
<text class="t1">{{index+1}}.</text>
<text class="t2">{{item.warehouse_receipt_sn}}</text>
<text class="t3">{{item.shipping_name}}:{{item.shipment_number}}</text>
<text class="t1">{{ index + 1 }}.</text>
<text class="t2">{{ item.warehouse_receipt_sn }}</text>
<text class="t3">{{ item.shipping_name }}:{{ item.shipment_number }}</text>
</view>
<text class="t4">{{item.purchase_name}}/{{item.department}}</text>
<text class="t4">{{ item.purchase_name }}/{{ item.department }}</text>
</view>
<view class="wrap row verCente" style="margin-left: 24rpx;margin-top: 15rpx;">
<text class="t3" style="width: 228rpx;">{{item.goods_name}}</text>
<text class="t3" style="width: 150rpx">{{item.brand_name}}</text>
<text class="t3" :style="item.origin === '美国' ? 'width: 100rpx; color: red;' : 'width: 100rpx'">{{item.origin}}</text>
<text class="t3" style="width: 100rpx">{{item.goods_num}}PCS</text>
<text class="t3" style="width: 228rpx;">{{ item.goods_name }}</text>
<text class="t3" style="width: 150rpx">{{ item.brand_name }}</text>
<text class="t3" :style="item.origin === '美国' ? 'width: 100rpx; color: red;' : 'width: 100rpx'">{{ item.origin }}</text>
<text class="t3" style="width: 100rpx">{{ item.goods_num }}PCS</text>
</view>
</view>
<view class="row rowCenter verCenter" v-if="!hasMoreData && page > 1" style="color: #999;font-size: 16rpx;padding: 10px 0;flex: 0 0 100%;font-weight: normal;">--&nbsp;已经到底了&nbsp;--</view>
......@@ -95,7 +95,7 @@
<view style="color: red;font-size: 16rpx;font-weight: bold;" v-show="contains_american_products">该包裹含有美产货物,请优先处理! </view>
</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,1)" :value="warehouse_index" :range="warehouse_arr" :range-key="'name'" style="width: 100%;">
<picker @change="bindPickerChange($event, 1)" :value="warehouse_index" :range="warehouse_arr" :range-key="'name'" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ warehouse_index == -1 ? '请选择仓库' : warehouse_arr[warehouse_index].name }}</view>
<view class="uni-arrow"></view>
......@@ -112,7 +112,7 @@
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>类型:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,2)" :value="register_type_index" :range="register_type" style="width: 100%;">
<picker @change="bindPickerChange($event, 2)" :value="register_type_index" :range="register_type" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ register_type_index == -1 ? '请选择类型' : register_type[register_type_index] }}</view>
<view class="uni-arrow"></view>
......@@ -123,7 +123,7 @@
<view class="input-wrap column" style="margin-top: 8rpx;">
<view class="label-title"><text style="color: red;">*</text>物流公司:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,3)" :value="logistics_company_index" :range="logistics_company" style="width: 100%;">
<picker @change="bindPickerChange($event, 3)" :value="logistics_company_index" :range="logistics_company" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ logistics_company_index == -1 ? '请选择物流公司' : logistics_company[logistics_company_index] }}</view>
<view class="uni-arrow"></view>
......@@ -199,16 +199,16 @@
<view class="print-text row bothSide verCenter">
<view class="row verCenter">
<text class="t1">您选中</text>
<text class="t2">{{filter_id.length}}</text>
<text class="t2">{{ filter_id.length }}</text>
<text class="t1">条数据,共计</text>
<text class="t2">{{erp_order_sn_arr.length}}</text>
<text class="t2">{{ erp_order_sn_arr.length }}</text>
<text class="t1">个入仓号</text>
</view>
<view class="copy" @click="copy()">复制入仓号</view>
</view>
<scroll-view scroll-y="true" style="max-height: 440rpx;">
<view class="print-content row">
<view class="box row verCenter rowCenter" v-for="(item,index) in erp_order_sn_arr" :key="index">{{item}}</view>
<view class="box row verCenter rowCenter" v-for="(item, index) in erp_order_sn_arr" :key="index">{{ item }}</view>
</view>
</scroll-view>
</view>
......@@ -387,7 +387,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.warehouse_receipt_sn;
});
} else {
......@@ -415,7 +415,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
var val = event.target.value;
this.searchParams.shipment_number = '';
this.searchParams.goods_name = '';
......@@ -464,7 +464,7 @@
* 处理物流单号 批量输入
* @param {Object} event
*/
handleInputTextArea: debounce(function(event) {
handleInputTextArea: debounce(function (event) {
var value = event.target.value;
if (value) {
this.textarea_flag = true;
......@@ -527,7 +527,7 @@
* @param {Object} type
* @param {Object} event
*/
handleInputTime: debounce(function(type, event) {
handleInputTime: debounce(function (type, event) {
var val = event.target.value;
this.searchParams.shipment_number = '';
this.searchParams.goods_name = '';
......@@ -837,7 +837,7 @@
uni.showModal({
content: `${companyText}`,
showCancel: false,
success: function(res) {
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
}
......
......@@ -3,7 +3,7 @@
<!-- 搜索参数 -->
<view class="search-box row bothSide verCenter">
<view class="sn row rowCenter verCenter">
<picker @change="bindPickerChange($event,1)" :value="index" :range="array">
<picker @change="bindPickerChange($event, 1)" :value="index" :range="array">
<view class="row verCenter">
<view class="uni-input">{{ array[index] }}</view>
<view class="uni-arrow"></view>
......@@ -20,7 +20,7 @@
</view>
<view class="search-params row bothSide verCenter">
<view class="sn row rowCenter verCenter" style="width: 30%;">
<picker @change="bindPickerChange($event,4)" :value="logistics_company_index" :range="logistics_company" :range-key="'name'">
<picker @change="bindPickerChange($event, 4)" :value="logistics_company_index" :range="logistics_company" :range-key="'name'">
<view class="row verCenter">
<view class="uni-input">{{ logistics_company_index === -1 ? '请选择物流公司' : logistics_company[logistics_company_index].name }}</view>
<view class="uni-arrow"></view>
......@@ -45,10 +45,10 @@
<text class="label">到货时间:</text>
<text class="text">{{ item.register_time_cn }}</text>
<template v-if="item.stock_in_separate_register_status == 3">
<text class="tt" style="margin-left: 50px;width: 100rpx;color: red;">{{item.stock_in_separate_register_status_cn}}</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;color: red;">{{ item.stock_in_separate_register_status_cn }}</text>
</template>
<template v-else>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{item.stock_in_separate_register_status_cn}}</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{ item.stock_in_separate_register_status_cn }}</text>
</template>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
......@@ -76,7 +76,7 @@
<view class="pick_img_list row">
<template v-if="item.register_pic">
<view class="img_list" v-for="(v, i) in item.register_pic.split(',')" :key="i">
<image :src="v" mode="aspectFill" @click="previewChange(item.register_pic.split(','),i)"></image>
<image :src="v" mode="aspectFill" @click="previewChange(item.register_pic.split(','), i)"></image>
</view>
</template>
</view>
......@@ -172,7 +172,7 @@
this.resetChange();
this.getData();
},
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.index = e.detail.value;
......@@ -199,7 +199,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.id;
});
} else {
......@@ -242,7 +242,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
this.searchParams.logistics_sn = val;
......
......@@ -233,7 +233,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -293,15 +293,15 @@
if (res.code === 0) {
uni.downloadFile({
url: res.data.oss_file_url,
success: function(res) {
success: function (res) {
const filePath = res.tempFilePath;
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
success: function (res) {
console.log('打开文档成功');
},
fail: function() {
fail: function () {
uni.showModal({
title: '提示',
content: '暂不支持该文件类型预览',
......@@ -365,7 +365,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
this.resetChange();
var val = event.target.value;
this.searchParams.container_sn = '';
......
......@@ -16,7 +16,7 @@
<checkbox value="1" style="transform:scale(0.7)" iconColor="#1969f9" color="#1969f9" />补打标签
</label>
</checkbox-group>
<view class="num"><text>{{count}}</text>条数据</view>
<view class="num"><text>{{ count }}</text>条数据</view>
</view>
<!-- 列表 -->
<view class="list" v-if="list.length > 0">
......@@ -116,7 +116,7 @@
</template>
<!-- 非自营仓 -->
<template v-else>
<picker @change="bindPickerChange($event,1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<picker @change="bindPickerChange($event, 1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<view class="row rowCenter verCenter">
<view class="uni-input">{{ print_language[print_language_index] }}</view>
<view class="iconfont icon-sanjiaoxing"></view>
......@@ -206,7 +206,7 @@
* @param {Object} e
* @param {Object} type
*/
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
if (type == 1) {
//非自营仓
this.print_language_index = e.detail.value;
......@@ -254,7 +254,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.id;
});
} else {
......
......@@ -2,7 +2,7 @@
<view class="index">
<view class="head row bothSide">
<view class="column">
<text class="t1">{{org_name}}</text>
<text class="t1">{{ org_name }}</text>
<view class="row verCenter" v-if="info.user_info">
<text class="iconfont icon-juxing"></text>
<text class="t2">{{ info.user_info.name }}</text>
......
......@@ -23,11 +23,11 @@
<view class="check-update row verCenter bothSide" @click="checkUpdate(1)">
<view class="local_version row verCenter">
<text class="tip">本地版本</text>
<text class="version">{{local_version || '0.0.0'}}</text>
<text class="version">{{ local_version || '0.0.0' }}</text>
</view>
<view class="online_version row verCenter" :class="{curr:active}">
<view class="online_version row verCenter" :class="{ curr: active }">
<text class="tip">最新版本</text>
<text class="version">{{online_version}}</text>
<text class="version">{{ online_version }}</text>
</view>
</view>
<text class="copyright">© 深圳市猎芯科技有限公司</text>
......@@ -84,7 +84,7 @@
this.disabled = false;
}
},
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
this.org_id = this.array[e.detail.value].value;
......
......@@ -109,7 +109,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -165,7 +165,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
// 重置搜索参数
this.resetSearchParams();
this.resetChange();
......
......@@ -63,12 +63,12 @@
<!-- 出库单状态为全部锁库,则显示【释放】、【选择】按钮 -->
<template v-if="item.stock_out_status == 3">
<view class="btn1 row rowCenter verCenter" @click="cancelTake(item.stock_out_id)">释放</view>
<navigator :url="'/pages/picking/sort?stock_out_id=' + item.stock_out_id + '&stock_out_sn=' + item.stock_out_sn+'&warehouse_id='+item.warehouse_id" hover-class="none" class="btn3 row rowCenter verCenter">选择</navigator>
<navigator :url="'/pages/picking/sort?stock_out_id=' + item.stock_out_id + '&stock_out_sn=' + item.stock_out_sn + '&warehouse_id=' + item.warehouse_id" hover-class="none" class="btn3 row rowCenter verCenter">选择</navigator>
</template>
<!--出库单状态为部分拣货-->
<template v-if="item.stock_out_status == 4">
<navigator :url="'/pages/picking/sort?stock_out_id=' + item.stock_out_id + '&stock_out_sn=' + item.stock_out_sn+'&warehouse_id='+item.warehouse_id" hover-class="none" class="btn3 row rowCenter verCenter">选择</navigator>
<navigator :url="'/pages/picking/sort?stock_out_id=' + item.stock_out_id + '&stock_out_sn=' + item.stock_out_sn + '&warehouse_id=' + item.warehouse_id" hover-class="none" class="btn3 row rowCenter verCenter">选择</navigator>
</template>
<!--出库单状态为全部拣货-->
......@@ -126,7 +126,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -144,7 +144,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
// 重置搜索参数
this.resetSearchParams();
this.resetChange();
......
......@@ -110,7 +110,7 @@
<template v-if="item.pick_img_list.length > 0">
<view class="img_list" v-for="(v, i) in item.pick_img_list" :key="i">
<image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.pick_img_list, i)"></image>
<text class="iconfont icon-a-juxing11" @click="deletePic(index,i)"></text>
<text class="iconfont icon-a-juxing11" @click="deletePic(index, i)"></text>
</view>
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="item.pick_img_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
......@@ -179,7 +179,7 @@
}
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
this.clearInputAndFocus();
......@@ -191,7 +191,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.id;
});
} else {
......@@ -234,7 +234,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......
......@@ -24,7 +24,7 @@
<view class="title rpw">入库批次号:</view>
<view class="row verCenter rowCenter">
<template v-if="warehouse_id == 9">
<switch @change="switchChange($event,1)" :checked="old_Label" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
<switch @change="switchChange($event, 1)" :checked="old_Label" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
<text style="font-size: 18rpx;white-space: nowrap;">旧标签</text>
</template>
<switch @change="switchChange" :checked="is_batch" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
......@@ -164,7 +164,7 @@
</template>
<!-- 非自营仓 -->
<template v-else>
<picker @change="bindPickerChange($event,1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<picker @change="bindPickerChange($event, 1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<view class="uni-input">{{ print_language[print_language_index] }}</view>
</picker>
</template>
......@@ -371,7 +371,7 @@
</template>
<!-- 非自营仓 -->
<template v-else>
<picker @change="bindPickerChange($event,1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<picker @change="bindPickerChange($event, 1)" :value="print_language_index" :range="print_language" class="row rowCenter verCenter">
<view class="row rowCenter verCenter">
<view class="uni-input">{{ print_language[print_language_index] }}</view>
<view class="uni-arrow"></view>
......@@ -533,9 +533,9 @@
您已选中
<text style="color: #1969f9;font-size: 13rpx;font-weight: bold;padding: 0 5rpx;">{{ filter_id.length || 0 }}</text>
个拣货任务,其中
<text style="color: #1969f9;font-size: 13rpx;font-weight: bold;padding: 0 5rpx;">{{demolish_num}}</text>
<text style="color: #1969f9;font-size: 13rpx;font-weight: bold;padding: 0 5rpx;">{{ demolish_num }}</text>
个需拆货,共打印
<text style="color: #1969f9;font-size: 13rpx;font-weight: bold;padding: 0 5rpx;">{{goods_num}}</text>
<text style="color: #1969f9;font-size: 13rpx;font-weight: bold;padding: 0 5rpx;">{{ goods_num }}</text>
张货品标签
</view>
</view>
......@@ -584,7 +584,7 @@
</template>
<!-- 非自营仓 -->
<template v-else>
<picker @change="bindPickerChange($event,1)" :value="print_language_index" :range="print_language">
<picker @change="bindPickerChange($event, 1)" :value="print_language_index" :range="print_language">
<view class="row verCenter wrap-box">
<view class="uni-input">{{ print_language[print_language_index] }}</view>
<text class="uni-arrow"></text>
......@@ -604,22 +604,22 @@
<view class="batchNotification column rowCenter verCente" v-if="pick_data.length > 0">
<view class="title">拆货提醒</view>
<text class="pick_type_val row rowCenter verCenter"></text>
<view class="p1">{{pick_data[0].stock_in_batch_sn}}</view>
<view class="p1">{{ pick_data[0].stock_in_batch_sn }}</view>
<view class="text row verCente">
<text class="t1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</text>
<text class="t2">{{pick_data[0].goods_name}}</text>
<text class="t2">{{ pick_data[0].goods_name }}</text>
</view>
<view class="text row verCente">
<text class="t1">标准品牌:</text>
<text class="t2">{{pick_data[0].brand_name}}</text>
<text class="t2">{{ pick_data[0].brand_name }}</text>
</view>
<view class="text row verCente">
<text class="t1">库存数量:</text>
<text class="t2">{{pick_data[0].stock_num}}</text>
<text class="t2">{{ pick_data[0].stock_num }}</text>
</view>
<view class="text row verCente">
<text class="t1">应拣数量:</text>
<text class="t3">{{pick_data[0].lock_qty - pick_data[0].pick_qty}}</text>
<text class="t3">{{ pick_data[0].lock_qty - pick_data[0].pick_qty }}</text>
</view>
<view class="desc">该货品需拆出部分拣货并重贴标签,建议单个拣货!</view>
<view class="button-group">
......@@ -632,27 +632,27 @@
<view class="batchNotification column rowCenter verCente" style="padding: 20rpx 20rpx 0 20rpx;">
<view class="text row verCente">
<text class="t1">入库批次号:</text>
<text class="t2">{{stockInfoByBatchSn.stock_in_batch_sn}}</text>
<text class="t2">{{ stockInfoByBatchSn.stock_in_batch_sn }}</text>
</view>
<view class="text row verCente">
<text class="t1">货品名称:</text>
<text class="t2">{{stockInfoByBatchSn.goods_name}}</text>
<text class="t2">{{ stockInfoByBatchSn.goods_name }}</text>
</view>
<view class="text row verCente">
<text class="t1">标准品牌:</text>
<text class="t2">{{stockInfoByBatchSn.brand_name}}</text>
<text class="t2">{{ stockInfoByBatchSn.brand_name }}</text>
</view>
<view class="text row verCente">
<text class="t1">库存总数:</text>
<text class="t2">{{stockInfoByBatchSn.total_qty}}</text>
<text class="t2">{{ stockInfoByBatchSn.total_qty }}</text>
</view>
<view class="text row verCente">
<text class="t1">可用数量:</text>
<text class="t2">{{stockInfoByBatchSn.useable_qty}}</text>
<text class="t2">{{ stockInfoByBatchSn.useable_qty }}</text>
</view>
<view class="text row verCente">
<text class="t1">锁库数量:</text>
<text class="t2">{{stockInfoByBatchSn.lock_qty}}</text>
<text class="t2">{{ stockInfoByBatchSn.lock_qty }}</text>
</view>
<view class="button-group" style="position: static;">
<view class="button-left" @click="close()">关闭</view>
......@@ -773,7 +773,7 @@
* @param {Object} e
* @param {Object} type
*/
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
if (type == 1) {
//非自营仓
this.print_language_index = e.detail.value;
......@@ -818,7 +818,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, val) {
handleInput: debounce(function (type, val) {
if (val) {
if (type == 1) {
this.input_flag_position_name = true;
......@@ -976,7 +976,7 @@
this.detailContainer = data;
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.lock_ids = data.list.map(function(item) {
this.lock_ids = data.list.map(function (item) {
return item.lock_id;
});
} else if (type == 3) {
......@@ -1206,7 +1206,7 @@
/**
* 监听拣货数量
*/
handleInputNumber: debounce(function(event, num) {
handleInputNumber: debounce(function (event, num) {
var num = Number(num);
var val = event.target.value * 1;
if (val > num) {
......@@ -1499,14 +1499,14 @@
copy() {
uni.setClipboardData({
data: this.stock_out_sn,
success: function() {
success: function () {
console.log('复制成功');
uni.showToast({
title: '复制成功',
icon: 'success'
});
},
fail: function() {
fail: function () {
console.log('复制失败');
uni.showToast({
title: '复制失败',
......
......@@ -3,7 +3,7 @@
<!-- 搜索参数 -->
<view class="search-box row bothSide verCenter">
<view class="sn row rowCenter verCenter">
<picker @change="bindPickerChange($event,1)" :value="index" :range="array">
<picker @change="bindPickerChange($event, 1)" :value="index" :range="array">
<view class="row verCenter">
<view class="uni-input">{{ array[index] }}</view>
<view class="uni-arrow"></view>
......@@ -20,7 +20,7 @@
</view>
<view class="search-params row bothSide verCenter">
<view class="sn row rowCenter verCenter">
<picker @change="bindPickerChange($event,3)" :value="status_index" :range="status" :range-key="'name'">
<picker @change="bindPickerChange($event, 3)" :value="status_index" :range="status" :range-key="'name'">
<view class="row verCenter">
<view class="uni-input">{{ status_index === -1 ? '预检单状态' : status[status_index].name }}</view>
<view class="uni-arrow"></view>
......@@ -28,7 +28,7 @@
</picker>
</view>
<view class="sn row rowCenter verCenter">
<picker @change="bindPickerChange($event,4)" :value="qc_status_index" :range="qc_status" :range-key="'name'">
<picker @change="bindPickerChange($event, 4)" :value="qc_status_index" :range="qc_status" :range-key="'name'">
<view class="row verCenter">
<view class="uni-input">{{ qc_status_index === -1 ? '质检状态' : qc_status[qc_status_index].name }}</view>
<view class="uni-arrow"></view>
......@@ -47,15 +47,15 @@
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
<text class="label">预检单号:</text>
<text class="tt">{{ item.precheck_sn }}</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{item.status_str}}</text>
<text class="tt">{{item.qc_status_str}}</text>
<text class="tt" style="margin-left: 50px;width: 100rpx;">{{ item.status_str }}</text>
<text class="tt">{{ item.qc_status_str }}</text>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
<text class="label">来货物流:</text>
<view class="tt">
{{ item.from_shipping_name }}
<text v-if="item.from_shipping_name"></text>
{{item.from_shipment_number}}
{{ item.from_shipment_number }}
</view>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
......@@ -63,7 +63,7 @@
<view class="text">
{{ item.to_shipping_name }}
<text v-if="item.to_shipping_name"></text>
{{item.to_shipment_number}}
{{ item.to_shipment_number }}
</view>
</view>
<view class="input-box row verCenter">
......@@ -72,7 +72,7 @@
</view>
<view class="input-box row verCenter" v-if="item.pack_requeire">
<text class="label">包装要求:</text>
<text class="text" style="color: red;">{{ item.pack_requeire }}</text>
<text class="text" style="color: red;">{{ item.pack_requeire }}</text>
</view>
<view class="input-box row verCenter" v-if="item.is_need_three_qc == 2">
<text class="label">三方送检:</text>
......@@ -111,7 +111,7 @@
<view class="pick_img_list row">
<template v-if="item.precheck_images">
<view class="img_list" v-for="(v, i) in item.precheck_images.split(',')" :key="i">
<image :src="v" mode="aspectFill" @click="previewChange(item.precheck_images.split(','),i)"></image>
<image :src="v" mode="aspectFill" @click="previewChange(item.precheck_images.split(','), i)"></image>
</view>
</template>
</view>
......@@ -123,9 +123,9 @@
</template>
<template v-if="item.status == 1 || item.status == 2 || item.status == 4 || item.status == 10">
<!-- 针对需求状态为新创建 -->
<view class="btn2 row rowCenter verCenter" @click="showDrawer(index,1)">理货</view>
<view class="btn2 row rowCenter verCenter" @click="showDrawer(index, 1)">理货</view>
</template>
<view class="btn2 row rowCenter verCenter" @click="showDrawer(index,2)" style="margin-left: 10rpx;" v-if="item.status != 1">补打标签</view>
<view class="btn2 row rowCenter verCenter" @click="showDrawer(index, 2)" style="margin-left: 10rpx;" v-if="item.status != 1">补打标签</view>
</view>
</view>
</view>
......@@ -174,7 +174,7 @@
<text class="label-title">理货数量:</text>
</view>
<view class="input-box">
<template v-if="detail.status ==1">
<template v-if="detail.status == 1">
<input type="text" class="uni-input" placeholder-style="color:#919399" placeholder="请输入理货数量" v-model="stockPreCheckTallyParams.tally_num" />
</template>
<template v-else>
......@@ -272,7 +272,7 @@
<view class="input-wrap column" style="margin-top: 20rpx;">
<view class="label-title"><text style="color: red;">*</text>发货快递:</view>
<view class="select-box row">
<picker @change="bindPickerChange($event,2)" :value="to_shipping_index" :range="to_shipping" :range-key="'name'" style="width: 100%;">
<picker @change="bindPickerChange($event, 2)" :value="to_shipping_index" :range="to_shipping" :range-key="'name'" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ to_shipping_index === -1 ? '请选择发货快递' : (to_shipping[to_shipping_index] ? to_shipping[to_shipping_index].name : '请选择') }}</view>
<view class="uni-arrow"></view>
......@@ -313,10 +313,10 @@
</view>
</view>
<view class="print-list">
<view class="print-box row verCenter bothSide" v-for="(item,index) in print_json" :key="index">
<view class="print-box row verCenter bothSide" v-for="(item, index) in print_json" :key="index">
<view class="row verCente">
<view class="input-box row verCenter">
<text class="title">数量{{index+1}}:</text>
<text class="title">数量{{ index + 1 }}:</text>
<input type="number" class="uni-input" placeholder-style="color:#919399" placeholder=" " v-model="item.qty" />
</view>
<view class="input-box row verCenter">
......@@ -455,7 +455,7 @@
this.stockPreCheckTallyParams.is_print_label = 0;
}
},
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.index = e.detail.value;
......@@ -482,7 +482,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.id;
});
} else {
......@@ -526,7 +526,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
this.searchParams.mobile_search = val;
......
......@@ -206,7 +206,7 @@
computed: {
hasEmptyBackShipmentNumber() {
// 检查选中的项目中是否存在back_shipment_number为空的情况
return this.list.some(item =>
return this.list.some(item =>
this.filter_id.includes(item.inspection_order_id) && !item.back_shipment_number
);
}
......
......@@ -44,7 +44,7 @@
<view class="text-item row verCenter">
<text class="label">入仓号:</text>
<text class="t1">{{ item.inhouse }}</text>
<text class="t1" style="width: auto;color: #1969f9;margin-left: 18rpx;" v-if="item.watch_status == 1">{{item.watch_status_cn}}</text>
<text class="t1" style="width: auto;color: #1969f9;margin-left: 18rpx;" v-if="item.watch_status == 1">{{ item.watch_status_cn }}</text>
</view>
<view class="text-item row verCenter">
<text class="label">仓库:</text>
......@@ -109,7 +109,7 @@
<view class="fix-btn row verCenter">
<view class="btn1 row rowCenter verCenter" @click="allChnage()">
<text class="check-box-icon" :class="{ curr: filter_list.length > 0 && filter_list.length == filter_id.length }"></text>
<text class="text row rowCenter verCenter">{{ filter_id.length == 0 ? totalText : filter_id.length }}</text>
<text class="text row rowCenter verCenter">{{ filter_id.length == 0 ? totalText : filter_id.length }}</text>
</view>
<view class="btn3 row rowCenter verCenter" @click="watchStatusAct()">已看货</view>
<view class="btn2 row rowCenter verCenter" @click="showDrawer()">一键上架</view>
......@@ -217,7 +217,7 @@
* @param {Object} type
* 搜索切换
*/
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.indexPosition = e.detail.value;
......@@ -371,7 +371,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.tally_id;
});
} else {
......@@ -395,7 +395,7 @@
* 入库批次号 和 全量搜索函数监听
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
let val = event.target.value;
this.searchParams.search_keyword = '';
if (val) {
......@@ -492,7 +492,7 @@
/**
* 监听库位编码
*/
inputPositionCodeChange: debounce(function(event) {
inputPositionCodeChange: debounce(function (event) {
this.getWhPositionList();
}, 500),
/**
......@@ -526,7 +526,7 @@
this.request(API.getWhPositionList, 'POST', { warehouse_id: this.warehouse_id, stock_in_type: this.stock_in_type }, false).then(res => {
if (res.code === 0) {
var position_code = this.formParams.position_code;
this.is_submit = res.data.list.some(function(obj) {
this.is_submit = res.data.list.some(function (obj) {
return obj.position_code === position_code;
});
} else {
......
......@@ -94,7 +94,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -112,7 +112,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
var val = event.target.value;
this.resetChange();
if (val) {
......
......@@ -294,7 +294,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
var val = event.target.value;
if (val) {
if (type == 1) {
......@@ -337,7 +337,7 @@
this.request(API.getWhPositionList, 'POST', { warehouse_id: warehouse_id, stock_in_type: stock_in_type }, false).then(res => {
var position_code = this.searchParams.position_code;
if (res.code === 0) {
this.is_submit = res.data.list.some(function(obj) {
this.is_submit = res.data.list.some(function (obj) {
return obj.position_code === position_code;
});
} else {
......@@ -378,7 +378,7 @@
return false;
}
var tally_ids = this.list.map(function(item) {
var tally_ids = this.list.map(function (item) {
return item.tally_id;
});
this.request(API.oneKeyPutawayAction, 'POST', { position_code: this.searchParams.position_code, tally_ids: tally_ids.join(',') }, true).then(res => {
......
......@@ -63,7 +63,7 @@
<text>提交</text>
</label>
</radio-group>
<view class="total-text" v-if="list.length > 0"><text class="tt">{{total}}</text>条数据</view>
<view class="total-text" v-if="list.length > 0"><text class="tt">{{ total }}</text>条数据</view>
</view>
<!-- 列表 -->
<view class="list row bothSide" v-if="list.length > 0">
......@@ -322,7 +322,7 @@
this.resetChange();
this.getData();
},
radioChange: debounce(function(e, type) {
radioChange: debounce(function (e, type) {
this.resetChange();
if (type == 1) {
this.searchParams.stock_in_type = e.detail.value;
......@@ -331,7 +331,7 @@
}
this.getData();
}, 500),
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
this.searchParams.search_type = parseInt(this.index) + 1;
......@@ -382,7 +382,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.id;
});
} else {
......@@ -403,7 +403,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......
......@@ -246,7 +246,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
var val = event.target.value;
if (val) {
this.input_flag = true;
......@@ -268,7 +268,7 @@
/**
* 监听上架数量
*/
inputNumChange: debounce(function(event, pending_shelf_qty) {
inputNumChange: debounce(function (event, pending_shelf_qty) {
//如果是退货入库就不请求推荐规则
if (this.formParams.position_code && this.formParams.qty_on_shelf && this.detail.stock_in_type != 2 && this.detail.quality == 1) {
this.getWorkingRuleList();
......@@ -282,14 +282,14 @@
/**
* 监听库位编码
*/
inputPositionCodeChange: debounce(function(event) {
inputPositionCodeChange: debounce(function (event) {
this.getWhPositionList();
//如果是退货入库就不请求推荐规则
if (this.formParams.position_code && this.formParams.qty_on_shelf && this.detail.stock_in_type != 2 && this.detail.quality == 1) {
this.getWorkingRuleList();
}
}, 500),
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -335,7 +335,7 @@
this.workingRule = res.data.list.map(item => item.position_code).join(',');
} else {
var position_code = this.formParams.position_code;
this.is_submit = res.data.list.some(function(obj) {
this.is_submit = res.data.list.some(function (obj) {
return obj.position_code === position_code;
});
}
......
......@@ -202,7 +202,7 @@
}
},
methods: {
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
if (type == 1) {
//标签版本切换
this.print_language_index = e.detail.value;
......@@ -226,7 +226,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, val) {
handleInput: debounce(function (type, val) {
if (val) {
if (type == 1) {
//入库标签
......
......@@ -135,7 +135,7 @@
this.searchParams.stock_out_status = e.detail.value.join(',');
this.getData();
},
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -175,7 +175,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
// 重置搜索参数
this.resetSearchParams();
this.resetChange();
......
......@@ -172,7 +172,7 @@
<view class="select-box row">
<picker @change="bindPickerChange(4, $event)" :value="shipping_payment_type_index" :range="shipping_payment_type_data" :range-key="'name'" style="width: 100%;">
<view class="row verCenter bothSide wrap">
<view class="uni-input">{{ shipping_payment_type_index === -1 ? '请选择' : (shipping_payment_type_data[shipping_payment_type_index] ? shipping_payment_type_data[shipping_payment_type_index].name : '请选择') }}</view>
<view class="uni-input">{{ shipping_payment_type_index === -1 ? '请选择' : (shipping_payment_type_data[shipping_payment_type_index] ? shipping_payment_type_data[shipping_payment_type_index].name : '请选择') }}</view>
<view class="uni-arrow"></view>
</view>
</picker>
......@@ -341,7 +341,7 @@
* @param {Object} type 1:交货方式 2:物流公司 3:物流模式 4:物流付费
* @param {Object} e
*/
bindPickerChange: function(type, e) {
bindPickerChange: function (type, e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.real_shipping_type_index = e.detail.value;
......@@ -445,7 +445,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......@@ -521,7 +521,7 @@
this.real_shipping_mode_data = shippingMode.map(item => ({
name: item.shipping_mode_name,
value: item.id,
is_default:item.is_default
is_default: item.is_default
}));
// 如果有传入物流模式,则选中对应的值
......@@ -645,19 +645,19 @@
this.request(
API.updateDeliveryInfo,
'POST', {
stock_out_id: stock_out_id,
real_shipping_type: this.formParams.real_shipping_type,
real_shipping_id: this.formParams.real_shipping_id,
real_shipping_mode: this.formParams.real_shipping_mode,
shipping_code: this.formParams.shipping_code,
shipping_payment_type: this.formParams.shipping_payment_type,
consignee: this.formParams.consignee,
mobile: this.formParams.mobile,
province: this.formParams.province,
city: this.formParams.city,
district: this.formParams.district,
address: this.formParams.address
},
stock_out_id: stock_out_id,
real_shipping_type: this.formParams.real_shipping_type,
real_shipping_id: this.formParams.real_shipping_id,
real_shipping_mode: this.formParams.real_shipping_mode,
shipping_code: this.formParams.shipping_code,
shipping_payment_type: this.formParams.shipping_payment_type,
consignee: this.formParams.consignee,
mobile: this.formParams.mobile,
province: this.formParams.province,
city: this.formParams.city,
district: this.formParams.district,
address: this.formParams.address
},
true
).then(res => {
if (res.code === 0) {
......
......@@ -112,7 +112,7 @@
<template v-if="item.recheck_img_list.length > 0">
<view class="img_list" v-for="(v, i) in item.recheck_img_list" :key="i">
<image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.recheck_img_list, i)"></image>
<text class="iconfont icon-a-juxing11" @click="deletePic(index,i)"></text>
<text class="iconfont icon-a-juxing11" @click="deletePic(index, i)"></text>
</view>
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="item.recheck_img_list.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
......@@ -187,7 +187,7 @@
}
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
this.clearInputAndFocus(); //再次获取焦点
......@@ -206,7 +206,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......@@ -247,7 +247,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.recheck_item_id;
});
} else {
......
......@@ -30,7 +30,7 @@
<view class="title">入库批次号:</view>
<view class="row verCenter">
<template v-if="warehouse_id == 9">
<switch @change="switchChange($event,1)" :checked="old_Label" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
<switch @change="switchChange($event, 1)" :checked="old_Label" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
<text style="font-size: 18rpx;white-space: nowrap;">旧标签</text>
</template>
<switch @change="switchChange" :checked="is_batch" color="#1969f9" :class="isApp ? 'android-switch' : 'custom-switch'" />
......@@ -610,7 +610,7 @@
<view class="box-title row bothSide verCenter">
<view class="row verCenter">
<text class="t1">打包箱号:</text>
<input type="text" placeholder="箱号" placeholder-style="color:#919399" class="uni-input" v-model="packList[i].box_name" style="width: 78rpx;height: 25rpx;" @input="validateInput($event,i)" />
<input type="text" placeholder="箱号" placeholder-style="color:#919399" class="uni-input" v-model="packList[i].box_name" style="width: 78rpx;height: 25rpx;" @input="validateInput($event, i)" />
</view>
<view>
<picker @change="bindPickerBoxChange($event, i)" :value="index" :range="packConfigList" :range-key="'name'">
......@@ -797,11 +797,11 @@
* @param {Object} e
*/
bindPickerChange: function(e) {
bindPickerChange: function (e) {
this.print_style_index = e.detail.value;
this.rePrintTagParams.print_type = e.detail.value;
},
bindPickerBoxChange: function(e, index) {
bindPickerBoxChange: function (e, index) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
var packConfigList = this.packConfigList[e.detail.value];
......@@ -868,7 +868,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.stock_out_item_id;
});
} else {
......@@ -1094,7 +1094,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, val) {
handleInput: debounce(function (type, val) {
if (val) {
if (type == 1) {
//箱号
......@@ -1451,7 +1451,7 @@
this.detailContainer = data;
this.image_list = []; //清空图片列表
this.server_image_list = []; //清空服务器图片列表
this.stock_out_item_ids = data.list.map(function(item) {
this.stock_out_item_ids = data.list.map(function (item) {
return item.stock_out_item_id;
});
} else if (type == 0) {
......@@ -1490,14 +1490,14 @@
copy() {
uni.setClipboardData({
data: this.stock_out_sn,
success: function() {
success: function () {
console.log('复制成功');
uni.showToast({
title: '复制成功',
icon: 'success'
});
},
fail: function() {
fail: function () {
console.log('复制失败');
uni.showToast({
title: '复制失败',
......
......@@ -89,7 +89,7 @@
}
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -128,7 +128,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......
......@@ -445,7 +445,7 @@
this.$refs.showRightPosition.close();
this.$refs.showRightPrintLabel.close();
},
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
//库位
......@@ -489,7 +489,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.stocktake_items_id;
});
} else {
......@@ -523,7 +523,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event, type) {
handleInput: debounce(function (event, type) {
this.resetChange();
var val = event.target.value;
if (type == 1) {
......
......@@ -14,13 +14,13 @@
<view class="row verCenter">
<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.keyword" @input="handleInput($event,1)" />
<input class="uni-input" placeholder="请输入查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.keyword" @input="handleInput($event, 1)" />
</template>
<template v-else-if="index == 1">
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.keyword" @input="handleInput($event,1)" maxlength="8" />
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.keyword" @input="handleInput($event, 1)" maxlength="8" />
</template>
<template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入货品名称" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.goods_name" @input="handleInput($event,2)" />
<input class="uni-input" placeholder="请输入货品名称" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.goods_name" @input="handleInput($event, 2)" />
</template>
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
......@@ -100,7 +100,7 @@
</view>
<view class="input-box row">
<text class="label">盘点备注:</text>
<text class="desc">{{ item.remark}}</text>
<text class="desc">{{ item.remark }}</text>
</view>
<view class="input-box row">
<text class="label">盘点人:</text>
......@@ -436,7 +436,7 @@
this.$refs.showRight.close();
this.$refs.showRightPrintLabel.close();
},
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
//全量搜索
......@@ -473,7 +473,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.stocktake_items_id;
});
} else {
......@@ -495,7 +495,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event, type) {
handleInput: debounce(function (event, type) {
this.resetChange();
var val = event.target.value;
this.searchParams.goods_name = '';
......
......@@ -110,7 +110,7 @@
</view>
<view class="text-item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ item.purchase_user }}/{{item.purchase_department_name}}</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 @@
<text class="label">待理货数量:</text>
<text class="ttt">{{ item.wait_tally_qty }}</text>
</view>
<navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id + '&stock_in_id=' + item.stock_in_id + '&container_id=' + searchParams.container_id + '&container_name=' + searchParams.container_name+'&flag='+fastParams.flag+'&qty='+fastParams.qty+'&batch='+fastParams.batch+'&origin='+fastParams.origin" hover-class="none">
<navigator class="btn-box row" :url="'/pages/tallyReceive/operate?stock_in_item_id=' + item.stock_in_item_id + '&stock_in_id=' + item.stock_in_id + '&container_id=' + searchParams.container_id + '&container_name=' + searchParams.container_name + '&flag=' + fastParams.flag + '&qty=' + fastParams.qty + '&batch=' + fastParams.batch + '&origin=' + fastParams.origin" hover-class="none">
<view class="btn row rowCenter verCenter">理货</view>
</navigator>
</view>
......@@ -325,7 +325,7 @@
}
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
uni.setStorageSync('tallyReceiveIndex', this.index);
......@@ -373,11 +373,11 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.stock_in_item_id;
});
let is_watch_arr = this.list.map(function(item) {
let is_watch_arr = this.list.map(function (item) {
return item.is_watch;
});
this.is_watch = is_watch_arr.includes(1);
......@@ -458,7 +458,7 @@
* @param {Object} event
* 单号搜索
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
var val = event.target.value;
if (val) {
if (type == 1) {
......@@ -542,7 +542,7 @@
* @param {Object} event
*
*/
handleInputChange: debounce(function(event) {
handleInputChange: debounce(function (event) {
var val = event.target.value;
if (val) {
this.resetChange(); //先清空数据
......@@ -687,7 +687,7 @@
if (res.code === 0) {
let checked_id = res.data.checked_id;
let list = res.data.list;
let filter_arr = list.filter(function(item) {
let filter_arr = list.filter(function (item) {
if (item.id == checked_id) {
return item;
}
......@@ -711,12 +711,12 @@
if (res.code === 0) {
var name = this.searchParams.container_name; //输入的容器名字
//验证容器是否输入正取
this.is_submit = res.data.list.some(function(obj) {
this.is_submit = res.data.list.some(function (obj) {
return obj.name === name;
});
if (this.is_submit) {
//筛选出匹配正确的那条容器
var id = res.data.list.filter(function(item) {
var id = res.data.list.filter(function (item) {
if (item.name == name) {
return {
id: item.id
......
......@@ -46,19 +46,19 @@
<!-- 采购类型筛选 -->
<view class="radio-wrap row verCenter" style="padding-bottom: 0;">
<radio-group name="radio1" @change="radioChange($event, 1)">
<label @click="updatePurchaseTypeFilter(0,1)">
<label @click="updatePurchaseTypeFilter(0, 1)">
<radio value="1" style="transform:scale(0.7)" color="#1969f9" :checked="purchase_type_filter[0]" />
<text>采购入库</text>
</label>
<label @click="updatePurchaseTypeFilter(1,1)">
<label @click="updatePurchaseTypeFilter(1, 1)">
<radio value="4" style="transform:scale(0.7)" color="#1969f9" :checked="purchase_type_filter[1]" />
<text>委托入库</text>
</label>
<label @click="updatePurchaseTypeFilter(2,1)">
<label @click="updatePurchaseTypeFilter(2, 1)">
<radio value="2" style="transform:scale(0.7)" color="#1969f9" :checked="purchase_type_filter[2]" />
<text>退货入库</text>
</label>
<label @click="updatePurchaseTypeFilter(3,1)">
<label @click="updatePurchaseTypeFilter(3, 1)">
<radio value="8" style="transform:scale(0.7)" color="#1969f9" :checked="purchase_type_filter[3]" />
<text>寄售入库</text>
</label>
......@@ -83,7 +83,7 @@
</radio-group>
</view>
<view class="pick-filter">
<picker @change="bindPickerChange($event,1)" :value="watch_all_index" :range="watch_all_arr">
<picker @change="bindPickerChange($event, 1)" :value="watch_all_index" :range="watch_all_arr">
<view class="row verCenter">
<view class="uni-input row verCenter">{{ watch_all_arr[watch_all_index] }}</view>
<view class="iconfont icon-xialajiantou"></view>
......@@ -274,7 +274,7 @@
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}/{{detail.purchase_department_name}}</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>
......@@ -313,7 +313,7 @@
</view>
<view class="item row verCenter" v-if="detail.sku_id > 0">
<text class="label">包装:</text>
<text class="tt">{{detail.packing_cn}} - {{detail.mpq}}</text>
<text class="tt">{{ detail.packing_cn }} - {{ detail.mpq }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">理货备注:</text>
......@@ -398,7 +398,7 @@
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}/{{detail.purchase_department_name}}</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>
......@@ -567,7 +567,7 @@
* @param {Object} e 默认全量搜索
* @param {Object} type 1 我的理货,全部理货选择
*/
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type) {
//我的理货,全部理货筛选
......@@ -650,7 +650,7 @@
this.all_flag = !this.all_flag;
this.filter_list = createArray(this.list.length, this.all_flag);
if (this.all_flag) {
this.filter_id = this.list.map(function(item) {
this.filter_id = this.list.map(function (item) {
return item.tally_id;
});
} else {
......@@ -685,7 +685,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
this.resetChange();
var val = event.target.value;
this.searchParams.mobile_have_tally_all_search = '';
......
......@@ -86,7 +86,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -114,7 +114,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......
......@@ -290,7 +290,7 @@
}
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
},
......@@ -364,7 +364,7 @@
* @param {Object} event
* @param {Object} type 1 目标移位 不传就是搜索filter
*/
handleInput: debounce(function(event, type) {
handleInput: debounce(function (event, type) {
var val = event.target.value;
if (val) {
if (type == 1) {
......
......@@ -41,10 +41,10 @@
<input class="uni-input" placeholder="请输入旧标签查询" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.search_val" @input="handleInput" maxlength="8" />
</template>
<template v-else-if="index == 2">
<input class="uni-input" placeholder="请输入源库位" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.from_position_code" @input="handleInput($event,1)" />
<input class="uni-input" placeholder="请输入源库位" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.from_position_code" @input="handleInput($event, 1)" />
</template>
<template v-else-if="index == 3">
<input class="uni-input" placeholder="请输入目的库位" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.to_position_code" @input="handleInput($event,2)" />
<input class="uni-input" placeholder="请输入目的库位" placeholder-style="color:#919399" :focus="is_focus" v-model="searchParams.to_position_code" @input="handleInput($event, 2)" />
</template>
</view>
<text class="iconfont icon-a-juxing11" @click="clearInput()" v-if="input_flag"></text>
......@@ -214,7 +214,7 @@
this.getData();
},
methods: {
bindPickerChange: function(e) {
bindPickerChange: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value);
this.index = e.detail.value;
this.clearInputAndFocus(); //再次获取焦点
......@@ -273,7 +273,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event, type) {
handleInput: debounce(function (event, type) {
var val = event.target.value;
this.resetChange();
this.searchParams.search_val = '';
......
......@@ -342,7 +342,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, val) {
handleInput: debounce(function (type, val) {
if (val) {
if (type == 1) {
this.input_flag_origin_pos_code = true;
......@@ -370,7 +370,7 @@
/**
* 监听库位编码
*/
inputPositionCodeChange: debounce(function(event) {
inputPositionCodeChange: debounce(function (event) {
this.getWhPositionList();
}, 500),
/**
......@@ -381,7 +381,7 @@
this.request(API.getWhPositionList, 'POST', { warehouse_id: this.warehouse_id, stock_in_type: 1 }, false).then(res => {
if (res.code === 0) {
var position_code = this.formParams.position_code;
this.is_submit = res.data.list.some(function(obj) {
this.is_submit = res.data.list.some(function (obj) {
return obj.position_code === position_code;
});
} else {
......
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