Commit 814380fd by liangjianmin

refactor: 优化代码格式和可读性

- 在 arrivalRegister 页面中统一了模板中变量的空格格式,提升了代码的可读性
- 修复了 API 基础 URL 的注释格式,确保开发环境配置的清晰性
- 统一了多个方法的参数格式,增强了代码的一致性
parent a9aba3f2
Showing with 27 additions and 27 deletions
......@@ -43,7 +43,7 @@
</label>
</radio-group>
</view>
<view class="total-text"><text>{{total}}</text>条数据</view>
<view class="total-text"><text>{{ total }}</text>条数据</view>
</view>
<view class="search-all row verCenter bothSide">
<view class="search-all-box row verCenter" style="width: 80%;">
......@@ -72,11 +72,11 @@
</view>
<view class="preCheck row verCenter" v-if="preCheckList.length > 0">
<text class="t1">该搜索内容有相似预检单任务,</text>
<navigator class="t2" :url="'/pages/preCheck/list?mobile_search='+searchParams.mobile_register_all_search">点击查看</navigator>
<navigator class="t2" :url="'/pages/preCheck/list?mobile_search=' + searchParams.mobile_register_all_search">点击查看</navigator>
</view>
<view class="preCheck row verCenter" v-if="isHasShippingCodeInspectionOrder">
<text class="t1">该搜索内容有相似三方送检单任务,</text>
<navigator class="t2" :url="'/pages/preCheck/thirdPartyInspectionStatus?batch_search_value='+searchParams.mobile_register_all_search">点击查看</navigator>
<navigator class="t2" :url="'/pages/preCheck/thirdPartyInspectionStatus?batch_search_value=' + searchParams.mobile_register_all_search">点击查看</navigator>
</view>
<!-- 列表数据 -->
<view class="list row bothSide" v-if="list.length > 0">
......@@ -96,7 +96,7 @@
</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>
<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">
......@@ -141,7 +141,7 @@
</view>
<view class="text-item row verCenter" v-if="item.upstream_remark">
<text class="label">上游备注:</text>
<text class="tt" style="color: red;">{{item.upstream_remark}}</text>
<text class="tt" style="color: red;">{{ item.upstream_remark }}</text>
</view>
<view class="btn-box row bothSide">
<view class="row verCenter" style="margin-left: 79rpx;">
......@@ -198,7 +198,7 @@
</view>
</view>
<!-- 货品信息 && 其他信息 -->
<view class="pp" :class="{pt:detail.stock_in_items[0].sku_id > 0}" v-if="detail.stock_in_items">
<view class="pp" :class="{ pt: detail.stock_in_items[0].sku_id > 0 }" v-if="detail.stock_in_items">
<!-- 自营商品才展示 -->
<template v-if="detail.stock_in_items[0].sku_id > 0">
<text v-for="(v, index) in item" :key="index" :class="{ curr: curr == index }" @click="tab(index, detail.stock_in_sn)">{{ v }}</text>
......@@ -219,7 +219,7 @@
<text class="t2">{{ item.goods_name }}</text>
</view>
<view class="row verCenter">
<text class="t3" style="margin-right: 10rpx;" v-if="item.box_sn">箱号:{{ item.box_sn}}</text>
<text class="t3" style="margin-right: 10rpx;" v-if="item.box_sn">箱号:{{ item.box_sn }}</text>
<text class="t3">销售员:{{ item.sale_user }}</text>
</view>
</view>
......@@ -400,7 +400,7 @@
<view class="uni-swiper-input row verCenter bothSide">
<text class="label required">拣货方式:</text>
<view class="select-box row verCenter">
<picker @change="bindPickerZYChange($event, 2,index)" :value="saveZyGoodsParams[index].picking_mode" :range="pickingModeSet" :range-key="'name'" style="width: 100%;height: 100%;">
<picker @change="bindPickerZYChange($event, 2, index)" :value="saveZyGoodsParams[index].picking_mode" :range="pickingModeSet" :range-key="'name'" style="width: 100%;height: 100%;">
<view class="row verCenter bothSide">
<view class="uni-input row verCenter">{{ saveZyGoodsParams[index].picking_mode == 0 ? '请选择' : pickingModeSet[saveZyGoodsParams[index].picking_mode - 1].name }}</view>
<view class="uni-arrow"></view>
......@@ -643,18 +643,18 @@
* @param {Object} e
* @param {Object} type
*/
bindPickerZYChange: function(e, type, index) {
bindPickerZYChange: function (e, type, index) {
console.log('picker发送选择改变,携带值为', e.detail.value);
switch (type) {
//包装方式
case 1:
this.saveZyGoodsParams[index].packing = this.packingSet[e.detail.value].value;
break;
//拣货方式
//拣货方式
case 2:
this.saveZyGoodsParams[index].picking_mode = this.pickingModeSet[e.detail.value].value;
break;
//选择标准包装长宽高
//选择标准包装长宽高
case 3:
this.standardSizeIndex = e.detail.value;
if (this.standardSizeIndex == 1) {
......@@ -670,7 +670,7 @@
}
this.$forceUpdate();
break;
//选择标标准包净重
//选择标标准包净重
case 5:
this.netWeightIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) {
......@@ -682,7 +682,7 @@
}
break;
//选择标标准包净重-单位
//选择标标准包净重-单位
case 6:
this.netWeightSizeIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) {
......@@ -692,7 +692,7 @@
}
this.$forceUpdate();
break;
//选择标准包毛重
//选择标准包毛重
case 7:
this.grossWeightIndex = e.detail.value;
if (this.grossWeightIndex == 1) {
......@@ -703,7 +703,7 @@
this.saveZyGoodsParams[index].unit_gross_weight = '';
}
break;
//选择标准包毛重-单位
//选择标准包毛重-单位
case 8:
this.grossWeightSizeIndex = e.detail.value;
if (this.grossWeightSizeIndex == 1) {
......@@ -712,7 +712,7 @@
this.saveZyGoodsParams[index].gross_weight_size = 1;
}
break;
//其他属性
//其他属性
case 9:
this.saveZyGoodsParams[index].picking_other_attr_index = e.detail.value;
this.saveZyGoodsParams[index].picking_other_attr = this.otherAttrList[e.detail.value];
......@@ -725,7 +725,7 @@
* @param {Object} e
* @param {Object} type
*/
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.warehouse_id_index = e.detail.value;
......@@ -824,7 +824,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(type, event) {
handleInput: debounce(function (type, event) {
var val = event.target.value;
this.resetChange();
this.searchParams.mobile_register_all_search = '';
......@@ -906,7 +906,7 @@
this.request(API.getWareHouselist, 'POST', { warehouse_status: 1 }, false).then(res => {
if (res.code === 0) {
this.formParams.warehouse_id = res.data.list[0].warehouse_id;
this.warehouse_id_data = res.data.list.map(function(item) {
this.warehouse_id_data = res.data.list.map(function (item) {
return {
name: item.warehouse_name,
value: item.warehouse_id
......
// 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