Commit 9cc3339f by liangjianmin

refactor(record): 移除容器编辑功能及相关代码

- 删除容器信息展示和编辑弹窗的实现,简化页面结构
- 清理不再使用的容器相关方法,提升代码可读性和维护性
parent cf427505
Showing with 0 additions and 50 deletions
......@@ -203,11 +203,6 @@
<text class="label">物流单号:</text>
<text class="text">{{ detail.tracking_no }}</text>
</view>
<view class="item row verCenter">
<text class="label">容 器:</text>
<text class="tt">{{ detail.container_sn }}</text>
<text class="iconfont icon-bianji" @click="inputDialogToggle(detail)"></text>
</view>
</view>
<view class="bor"></view>
<view class="item-tit">
......@@ -429,10 +424,6 @@
</view>
</view>
</uni-drawer>
<!-- 修改容器 -->
<uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog before-close="true" ref="inputClose" mode="input" :title="'当前容器:' + detail.container_sn" placeholder="请输入目的容器" @close="closeChange" @confirm="dialogInputConfirm"></uni-popup-dialog>
</uni-popup>
</view>
</template>
......@@ -469,7 +460,6 @@
create_time_end: '', //结束日期
mobile_have_tally_all_search: '', //全量搜索
stock_in_with_stock_in_items_inhouse: '', //入仓单号
container_id: '', //容器,
tally_status: 0, //默认显示已理货
stock_tally_with_stock_in_stock_in_type_in: '', //入库类型
watch_all: 0, //1查看所有,0查看自己
......@@ -592,46 +582,6 @@
}
},
/**
* 容器编辑弹窗
* @param {Object} detail
*/
inputDialogToggle(detail) {
this.$refs.inputDialog.open();
},
closeChange() {
this.$refs.inputDialog.close();
},
/**
* 修改容器提交
* @param {Object} e
*/
dialogInputConfirm(e) {
if (!e) {
uni.showToast({
title: '请输入目的容器',
icon: 'none'
});
return false;
}
this.request(API.changeTallyContainer, 'GET', { tally_id: this.detail.tally_id, container_sn: e }, true).then(res => {
if (res.code === 0) {
uni.showToast({
title: '修改成功',
icon: 'success'
});
setTimeout(() => {
this.detail.container_sn = e;
this.closeChange();
}, 2000);
} else {
uni.showToast({
title: res.msg,
icon: 'none'
});
}
});
},
/**
* 找出false对应的下标
* @param {Object} arr
* @param {Object} target
......
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