Commit f4e35121 by liangjianmin

fix: 修复API基础URL配置和代码格式问题

- 恢复开发环境API基础URL配置
- 统一picker事件参数格式,添加空格提高可读性
- 修复模板中变量显示格式,统一添加空格
- 调整方法定义格式,统一函数声明风格
parent a13bdd40
......@@ -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,1)" :value="status_index" :range="status" :range-key="'name'">
<picker @change="bindPickerChange($event, 1)" :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>
......@@ -38,18 +38,18 @@
</view>
<view class="input-box row verCenter curr">
<text class="label">送检单号:</text>
<text class="tt">{{ item.inspection_order_sn }}</text>
<text class="tt">{{ item.inspection_order_sn }}</text>
</view>
<view class="input-box row verCenter curr">
<text class="label">送检单状态:</text>
<text class="tt">{{ item.status_cn }}</text>
<text class="tt">{{ item.status_cn }}</text>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
<text class="label">检后寄回物流:</text>
<view class="tt">
{{ item.back_shipping_name }}
<text v-if="item.back_shipping_name"></text>
{{item.back_shipment_number}}
{{ item.back_shipment_number }}
</view>
</view>
<view class="input-box row verCenter curr" style="flex: 0 0 100%;">
......@@ -57,7 +57,7 @@
<view class="tt">
{{ item.inspection_shipping_name }}
<text v-if="item.inspection_shipping_name"></text>
{{item.inspection_shipment_number}}
{{ item.inspection_shipment_number }}
</view>
</view>
<view class="input-box row verCenter">
......@@ -98,7 +98,7 @@
</view>
<view class="input-box row verCenter" style="flex: 0 0 100%;">
<text class="label">收货备注:</text>
<text class="text" style="color: red;">{{ item.qc_delivery_remark }}</text>
<text class="text" style="color: red;">{{ item.qc_delivery_remark }}</text>
</view>
<view class="btn-box row">
<view class="btn2 row rowCenter verCenter" @click="receiveAfterInspectionClick(item.inspection_order_id)" v-if="item.status == 2">检后收货</view>
......@@ -267,7 +267,7 @@
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
bindPickerChange: function(e, type) {
bindPickerChange: function (e, type) {
console.log('picker发送选择改变,携带值为', e.detail.value);
if (type == 1) {
this.resetChange();
......@@ -285,7 +285,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.inspection_order_id;
});
} else {
......@@ -327,7 +327,7 @@
* 全量搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
var val = event.target.value;
this.resetChange();
if (val) {
......
// 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