Commit 3999b2e4 by liangjianmin

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

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