Commit 3999b2e4 by liangjianmin

优化代码格式,统一函数参数空格,提升可读性

parent be75e7ae
Showing with 7 additions and 7 deletions
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
</view> </view>
<view class="item row verCenter" v-if="detail.sku_id > 0"> <view class="item row verCenter" v-if="detail.sku_id > 0">
<text class="label">包装:</text> <text class="label">包装:</text>
<text class="tt">{{detail.packing_cn}} - {{detail.mpq}}</text> <text class="tt">{{ detail.packing_cn }} - {{ detail.mpq }}</text>
</view> </view>
<view class="item row verCenter"> <view class="item row verCenter">
<text class="label">销售员:</text> <text class="label">销售员:</text>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</view> </view>
<view class="item row verCenter"> <view class="item row verCenter">
<text class="label">采购员:</text> <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>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">客户:</text> <text class="label">客户:</text>
...@@ -472,7 +472,7 @@ ...@@ -472,7 +472,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.useOptionIndex = e.detail.value; this.useOptionIndex = e.detail.value;
...@@ -503,7 +503,7 @@ ...@@ -503,7 +503,7 @@
/** /**
* 监听理货数量 * 监听理货数量
*/ */
handleInputNumber: debounce(function(event, wait_tally_qty) { handleInputNumber: debounce(function (event, wait_tally_qty) {
var wait_tally_qty = Number(wait_tally_qty); var wait_tally_qty = Number(wait_tally_qty);
var val = event.target.value * 1; var val = event.target.value * 1;
if (val > wait_tally_qty) { if (val > wait_tally_qty) {
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,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;
if (val) { if (val) {
if (type == 1) { if (type == 1) {
...@@ -726,11 +726,11 @@ ...@@ -726,11 +726,11 @@
this.request(API.getTallyContainer, 'GET', {}, false).then(res => { this.request(API.getTallyContainer, 'GET', {}, false).then(res => {
if (res.code === 0) { if (res.code === 0) {
var name = this.searchParams.container_name; 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; return obj.name === name;
}); });
if (this.is_submit) { if (this.is_submit) {
var id = res.data.list.filter(function(item) { var id = res.data.list.filter(function (item) {
if (item.name == name) { if (item.name == name) {
return { return {
id: item.id id: item.id
......
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