Commit 814380fd by liangjianmin

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

- 在 arrivalRegister 页面中统一了模板中变量的空格格式,提升了代码的可读性
- 修复了 API 基础 URL 的注释格式,确保开发环境配置的清晰性
- 统一了多个方法的参数格式,增强了代码的一致性
parent a9aba3f2
Showing with 27 additions and 27 deletions
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</label> </label>
</radio-group> </radio-group>
</view> </view>
<view class="total-text"><text>{{total}}</text>条数据</view> <view class="total-text"><text>{{ total }}</text>条数据</view>
</view> </view>
<view class="search-all row verCenter bothSide"> <view class="search-all row verCenter bothSide">
<view class="search-all-box row verCenter" style="width: 80%;"> <view class="search-all-box row verCenter" style="width: 80%;">
...@@ -72,11 +72,11 @@ ...@@ -72,11 +72,11 @@
</view> </view>
<view class="preCheck row verCenter" v-if="preCheckList.length > 0"> <view class="preCheck row verCenter" v-if="preCheckList.length > 0">
<text class="t1">该搜索内容有相似预检单任务,</text> <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>
<view class="preCheck row verCenter" v-if="isHasShippingCodeInspectionOrder"> <view class="preCheck row verCenter" v-if="isHasShippingCodeInspectionOrder">
<text class="t1">该搜索内容有相似三方送检单任务,</text> <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>
<!-- 列表数据 --> <!-- 列表数据 -->
<view class="list row bothSide" v-if="list.length > 0"> <view class="list row bothSide" v-if="list.length > 0">
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</view> </view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">采购员:</text> <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>
<view class="bor row"></view> <view class="bor row"></view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
</view> </view>
<view class="text-item row verCenter" v-if="item.upstream_remark"> <view class="text-item row verCenter" v-if="item.upstream_remark">
<text class="label">上游备注:</text> <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>
<view class="btn-box row bothSide"> <view class="btn-box row bothSide">
<view class="row verCenter" style="margin-left: 79rpx;"> <view class="row verCenter" style="margin-left: 79rpx;">
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
</view> </view>
</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"> <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> <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 @@ ...@@ -219,7 +219,7 @@
<text class="t2">{{ item.goods_name }}</text> <text class="t2">{{ item.goods_name }}</text>
</view> </view>
<view class="row verCenter"> <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> <text class="t3">销售员:{{ item.sale_user }}</text>
</view> </view>
</view> </view>
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
<view class="uni-swiper-input row verCenter bothSide"> <view class="uni-swiper-input row verCenter bothSide">
<text class="label required">拣货方式:</text> <text class="label required">拣货方式:</text>
<view class="select-box row verCenter"> <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="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-input row verCenter">{{ saveZyGoodsParams[index].picking_mode == 0 ? '请选择' : pickingModeSet[saveZyGoodsParams[index].picking_mode - 1].name }}</view>
<view class="uni-arrow"></view> <view class="uni-arrow"></view>
...@@ -643,18 +643,18 @@ ...@@ -643,18 +643,18 @@
* @param {Object} e * @param {Object} e
* @param {Object} type * @param {Object} type
*/ */
bindPickerZYChange: function(e, type, index) { bindPickerZYChange: function (e, type, index) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
switch (type) { switch (type) {
//包装方式 //包装方式
case 1: case 1:
this.saveZyGoodsParams[index].packing = this.packingSet[e.detail.value].value; this.saveZyGoodsParams[index].packing = this.packingSet[e.detail.value].value;
break; break;
//拣货方式 //拣货方式
case 2: case 2:
this.saveZyGoodsParams[index].picking_mode = this.pickingModeSet[e.detail.value].value; this.saveZyGoodsParams[index].picking_mode = this.pickingModeSet[e.detail.value].value;
break; break;
//选择标准包装长宽高 //选择标准包装长宽高
case 3: case 3:
this.standardSizeIndex = e.detail.value; this.standardSizeIndex = e.detail.value;
if (this.standardSizeIndex == 1) { if (this.standardSizeIndex == 1) {
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
} }
this.$forceUpdate(); this.$forceUpdate();
break; break;
//选择标标准包净重 //选择标标准包净重
case 5: case 5:
this.netWeightIndex = e.detail.value; this.netWeightIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) { if (this.netWeightSizeIndex == 1) {
...@@ -682,7 +682,7 @@ ...@@ -682,7 +682,7 @@
} }
break; break;
//选择标标准包净重-单位 //选择标标准包净重-单位
case 6: case 6:
this.netWeightSizeIndex = e.detail.value; this.netWeightSizeIndex = e.detail.value;
if (this.netWeightSizeIndex == 1) { if (this.netWeightSizeIndex == 1) {
...@@ -692,7 +692,7 @@ ...@@ -692,7 +692,7 @@
} }
this.$forceUpdate(); this.$forceUpdate();
break; break;
//选择标准包毛重 //选择标准包毛重
case 7: case 7:
this.grossWeightIndex = e.detail.value; this.grossWeightIndex = e.detail.value;
if (this.grossWeightIndex == 1) { if (this.grossWeightIndex == 1) {
...@@ -703,7 +703,7 @@ ...@@ -703,7 +703,7 @@
this.saveZyGoodsParams[index].unit_gross_weight = ''; this.saveZyGoodsParams[index].unit_gross_weight = '';
} }
break; break;
//选择标准包毛重-单位 //选择标准包毛重-单位
case 8: case 8:
this.grossWeightSizeIndex = e.detail.value; this.grossWeightSizeIndex = e.detail.value;
if (this.grossWeightSizeIndex == 1) { if (this.grossWeightSizeIndex == 1) {
...@@ -712,7 +712,7 @@ ...@@ -712,7 +712,7 @@
this.saveZyGoodsParams[index].gross_weight_size = 1; this.saveZyGoodsParams[index].gross_weight_size = 1;
} }
break; break;
//其他属性 //其他属性
case 9: case 9:
this.saveZyGoodsParams[index].picking_other_attr_index = e.detail.value; this.saveZyGoodsParams[index].picking_other_attr_index = e.detail.value;
this.saveZyGoodsParams[index].picking_other_attr = this.otherAttrList[e.detail.value]; this.saveZyGoodsParams[index].picking_other_attr = this.otherAttrList[e.detail.value];
...@@ -725,7 +725,7 @@ ...@@ -725,7 +725,7 @@
* @param {Object} e * @param {Object} e
* @param {Object} type * @param {Object} type
*/ */
bindPickerChange: function(e, type) { bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value); console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) { if (type == 1) {
this.warehouse_id_index = e.detail.value; this.warehouse_id_index = e.detail.value;
...@@ -824,7 +824,7 @@ ...@@ -824,7 +824,7 @@
* 单号搜索 * 单号搜索
* @param {Object} event * @param {Object} event
*/ */
handleInput: debounce(function(type, event) { handleInput: debounce(function (type, event) {
var val = event.target.value; var val = event.target.value;
this.resetChange(); this.resetChange();
this.searchParams.mobile_register_all_search = ''; this.searchParams.mobile_register_all_search = '';
...@@ -906,7 +906,7 @@ ...@@ -906,7 +906,7 @@
this.request(API.getWareHouselist, 'POST', { warehouse_status: 1 }, false).then(res => { this.request(API.getWareHouselist, 'POST', { warehouse_status: 1 }, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.formParams.warehouse_id = res.data.list[0].warehouse_id; 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 { return {
name: item.warehouse_name, name: item.warehouse_name,
value: item.warehouse_id value: item.warehouse_id
......
// const API_BASE_USER = 'http://user.liexindev.net'; //用户系统 const API_BASE_USER = 'http://user.liexindev.net'; //用户系统
// const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统 const API_BASE_PUR = 'http://pur.liexindev.net'; //采购系统
// const API_BASE = 'http://wms.liexindev.net'; //WMS系统 const API_BASE = 'http://wms.liexindev.net'; //WMS系统
// const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统 const API_BASE_OSS = 'http://image.liexindev.net'; //oss系统
const API_BASE_USER = 'https://user.ichunt.net'; //用户系统 // const API_BASE_USER = 'https://user.ichunt.net'; //用户系统
const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统 // const API_BASE_PUR = 'https://purchase.ichunt.net'; //采购系统
const API_BASE = 'https://wms.ichunt.net'; //WMS系统 // const API_BASE = 'https://wms.ichunt.net'; //WMS系统
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统 // const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
const API = { 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