Commit a0d9972f by liangjianmin

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

parent 1255634e
Showing with 4 additions and 4 deletions
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
* @param {Object} e * @param {Object} e
* @param {Object} type 1(货品编码,sku_id) 2(入库批次号,旧标签) * @param {Object} type 1(货品编码,sku_id) 2(入库批次号,旧标签)
*/ */
bindPickerChange: function(e, type) { bindPickerChange: function (e, type) {
if (type == 1) { if (type == 1) {
//货品编码&自营货品ID //货品编码&自营货品ID
this.index = e.detail.value; this.index = e.detail.value;
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
* 单号搜索 * 单号搜索
* @param {Object} event * @param {Object} event
*/ */
handleInput: debounce(function(type, val) { handleInput: debounce(function (type, val) {
if (val) { if (val) {
if (type == 1) { if (type == 1) {
this.input_goods_sn = true; this.input_goods_sn = true;
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
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
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
if (res.code === 0) { if (res.code === 0) {
var position_code = this.formParams.position_code; var position_code = this.formParams.position_code;
//匹配是否正确的库位 //匹配是否正确的库位
this.is_submit = res.data.list.some(function(obj) { this.is_submit = res.data.list.some(function (obj) {
return obj.position_code === position_code; return obj.position_code === position_code;
}); });
} else { } else {
......
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