|
|
@ -5,7 +5,7 @@ |
|
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
|
<view class=""> |
|
|
|
<com-receipt-detail-card :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
|
@remove="updateData" @updateData="updateData" :locationTypeList ='locationTypeList'> |
|
|
|
@remove="updateData" @updateData="updateData" :locationTypeList='locationTypeList'> |
|
|
|
</com-receipt-detail-card> |
|
|
|
</view> |
|
|
|
<u-line /> |
|
|
@ -13,14 +13,15 @@ |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<required-location ref="requiredLocation" title="默认收货库位" :locationCode="toLocationCode" |
|
|
|
:isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode' |
|
|
|
:locationTypeList="locationTypeList"></required-location> |
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<required-location ref="requiredLocation" title="默认收货库位" :locationCode="toLocationCode" |
|
|
|
:isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode' |
|
|
|
:locationTypeList="locationTypeList"></required-location> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> |
|
|
@ -35,7 +36,6 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import { |
|
|
|
purchaseReceiptJobSubmit, |
|
|
|
getPurchaseReceiptJobDetail, |
|
|
@ -47,6 +47,7 @@ |
|
|
|
goHome, |
|
|
|
getCurrDateTime, |
|
|
|
getPackingNumberAndBatch, |
|
|
|
updateTitle |
|
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
import { |
|
|
@ -108,6 +109,7 @@ |
|
|
|
} else { |
|
|
|
this.getDetail(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
//返回首页 |
|
|
@ -181,6 +183,7 @@ |
|
|
|
} else { |
|
|
|
that.showMessage('列表数据为0'); |
|
|
|
} |
|
|
|
updateTitle(that.jobContent.number); |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
@ -237,7 +240,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位["+code+"]", res => { |
|
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
|
this.toLocationCode = code |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
@ -282,7 +285,7 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
submitJob() { |
|
|
|
submitJob() { |
|
|
|
uni.showLoading({ |
|
|
|
title: "提交中....", |
|
|
|
mask: true |
|
|
@ -304,7 +307,7 @@ |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败"+res.msg) |
|
|
|
this.showErrorMessage("提交失败" + res.msg) |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
|