Commit dd1af12b authored by honghy's avatar honghy Committed by wux

bug306(仓库pda)【海运入仓-修改储位】修改储位界面屏蔽<完成入仓>按钮,新增<返回>按钮

parent 03c1e926
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
}); });
} else if (res.confirm) { } else if (res.confirm) {
uni.navigateTo({ uni.navigateTo({
url: './warehousing-confirm?orderId=' + data.orderId url: './warehousing-confirm?orderId=' + data.orderId + '&showSave=false'
}); });
} }
} }
......
...@@ -208,7 +208,8 @@ ...@@ -208,7 +208,8 @@
</view> </view>
<view class="foot-btn"> <view class="foot-btn">
<button class="mini-btn" type="primary" size="mini" @tap="showAddPopup">{{$t('转异')}}</button> <button class="mini-btn" type="primary" size="mini" @tap="showAddPopup">{{$t('转异')}}</button>
<button class="mini-btn" style="color: #007aff" size="mini" @tap="save">{{$t('完成入仓')}}</button> <button class="mini-btn" style="color: #007aff" size="mini" @tap="save" v-if="showSave===true">{{$t('完成入仓')}}</button>
<button class="mini-btn" style="color: #007aff" size="mini" @tap="back" v-else>{{$t('返回')}}</button>
</view> </view>
<view class="add-popup"> <view class="add-popup">
<uni-popup ref="popup" background-color="#fff"> <uni-popup ref="popup" background-color="#fff">
...@@ -301,6 +302,7 @@ export default { ...@@ -301,6 +302,7 @@ export default {
currencyData: [], currencyData: [],
orderItemList:[], orderItemList:[],
adjust:{}, adjust:{},
showSave: false,
showWarehouseInItemId: null, // 查询入仓详情的商品ID showWarehouseInItemId: null, // 查询入仓详情的商品ID
} }
}, },
...@@ -329,6 +331,9 @@ export default { ...@@ -329,6 +331,9 @@ export default {
if ('target' in option) { if ('target' in option) {
this.target = option.target this.target = option.target
} }
if ('showSave' in option) {
this.showSave = option.showSave
}
const list = this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS) const list = this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)
getSpecialListByOrderId({ orderId: this.orderId }).then(data => { getSpecialListByOrderId({ orderId: this.orderId }).then(data => {
this.texuList = data.map(v => { this.texuList = data.map(v => {
...@@ -349,6 +354,9 @@ export default { ...@@ -349,6 +354,9 @@ export default {
this.getWarehousePictureList() this.getWarehousePictureList()
}, },
methods: { methods: {
back(){
uni.navigateBack()
},
// 根据入仓记录修改储位,供储位选择页面回调用 // 根据入仓记录修改储位,供储位选择页面回调用
updateWarehouseInLocation(locationList, extra = null){ updateWarehouseInLocation(locationList, extra = null){
if(extra && typeof extra == 'string'){ if(extra && typeof extra == 'string'){
......
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
}); });
} else if (res.confirm) { } else if (res.confirm) {
uni.navigateTo({ uni.navigateTo({
url: './warehousing-confirm?orderId=' + data.orderId url: './warehousing-confirm?orderId=' + data.orderId + '&showSave=false'
}); });
} }
} }
......
...@@ -208,7 +208,8 @@ ...@@ -208,7 +208,8 @@
</view> </view>
<view class="foot-btn"> <view class="foot-btn">
<button class="mini-btn" type="primary" size="mini" @tap="showAddPopup">{{$t('转异')}}</button> <button class="mini-btn" type="primary" size="mini" @tap="showAddPopup">{{$t('转异')}}</button>
<button class="mini-btn" style="color: #007aff" size="mini" @tap="save">{{$t('完成入仓')}}</button> <button class="mini-btn" style="color: #007aff" size="mini" @tap="save" v-if="showSave===true">{{$t('完成入仓')}}</button>
<button class="mini-btn" style="color: #007aff" size="mini" @tap="back" v-else>{{$t('返回')}}</button>
</view> </view>
<view class="add-popup"> <view class="add-popup">
<uni-popup ref="popup" background-color="#fff"> <uni-popup ref="popup" background-color="#fff">
...@@ -298,6 +299,7 @@ export default { ...@@ -298,6 +299,7 @@ export default {
descZh: '', descZh: '',
exceptionList: [], exceptionList: [],
labelList: [{start: 1, end: ''}], labelList: [{start: 1, end: ''}],
showSave: false,
currencyData: [], currencyData: [],
orderItemList:[], orderItemList:[],
adjust:{}, adjust:{},
...@@ -329,6 +331,9 @@ export default { ...@@ -329,6 +331,9 @@ export default {
if ('target' in option) { if ('target' in option) {
this.target = option.target this.target = option.target
} }
if ('showSave' in option) {
this.showSave = option.showSave
}
const list = this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS) const list = this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)
getSpecialListByOrderId({ orderId: this.orderId }).then(data => { getSpecialListByOrderId({ orderId: this.orderId }).then(data => {
this.texuList = data.map(v => { this.texuList = data.map(v => {
...@@ -349,6 +354,9 @@ export default { ...@@ -349,6 +354,9 @@ export default {
this.getWarehousePictureList() this.getWarehousePictureList()
}, },
methods: { methods: {
back(){
uni.navigateBack()
},
// 根据入仓记录修改储位,供储位选择页面回调用 // 根据入仓记录修改储位,供储位选择页面回调用
updateWarehouseInLocation(locationList, extra = null){ updateWarehouseInLocation(locationList, extra = null){
if(extra && typeof extra == 'string'){ if(extra && typeof extra == 'string'){
......
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 to comment