Commit 96e9174a by liangjianmin

优化代码格式,统一空格使用,提升可读性

parent 8c8aa43f
Showing with 20 additions and 20 deletions
......@@ -62,7 +62,7 @@
<text class="tt">{{ item.stock_out_sn }}</text>
</view>
<view class="input-box row verCenter">
<text class="label">{{item.stock_out_type_val}}</text>
<text class="label">{{ item.stock_out_type_val }}</text>
<text class="tt">{{ item.stock_out_status_val }}</text>
</view>
<view class="bor" style="flex: 0 0 100%;"></view>
......@@ -120,7 +120,7 @@
<template v-if="item.sign_pic_ids.length > 0">
<view class="img_list" v-for="(v, i) in item.sign_pic_ids" :key="i">
<image :src="v.small_image_url" mode="aspectFill" @click="previewChange(item.sign_pic_ids, i)"></image>
<text class="iconfont icon-a-juxing11" @click="deletePic(index,i)" v-if="v.id_del"></text>
<text class="iconfont icon-a-juxing11" @click="deletePic(index, i)" v-if="v.id_del"></text>
</view>
</template>
<view class="default row rowCenter verCenter" @click="chooseImageChange(index)" v-if="item.sign_pic_ids.length < maxNum"><text class="iconfont icon-a-juxing3"></text></view>
......@@ -234,7 +234,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>
......@@ -440,7 +440,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;
......@@ -616,7 +616,7 @@
* 单号搜索
* @param {Object} event
*/
handleInput: debounce(function(event) {
handleInput: debounce(function (event) {
this.resetChange();
var val = event.target.value;
if (val) {
......@@ -821,21 +821,21 @@
}
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,
box_num: this.formParams.box_num,
select_box_type: this.formParams.select_box_type
},
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,
box_num: this.formParams.box_num,
select_box_type: this.formParams.select_box_type
},
true
).then(res => {
if (res.code === 0) {
......
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