|
@ -5,7 +5,7 @@ |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-receipt-detail-card :dataContent="item" :index="index" :settingParam="jobContent" |
|
|
<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> |
|
|
</com-receipt-detail-card> |
|
|
</view> |
|
|
</view> |
|
|
<u-line /> |
|
|
<u-line /> |
|
@ -35,7 +35,6 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
purchaseReceiptJobSubmit, |
|
|
purchaseReceiptJobSubmit, |
|
|
getPurchaseReceiptJobDetail, |
|
|
getPurchaseReceiptJobDetail, |
|
@ -47,6 +46,7 @@ |
|
|
goHome, |
|
|
goHome, |
|
|
getCurrDateTime, |
|
|
getCurrDateTime, |
|
|
getPackingNumberAndBatch, |
|
|
getPackingNumberAndBatch, |
|
|
|
|
|
updateTitle |
|
|
} from '@/common/basic.js'; |
|
|
} from '@/common/basic.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -107,6 +107,7 @@ |
|
|
} else { |
|
|
} else { |
|
|
this.getDetail(); |
|
|
this.getDetail(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//返回首页 |
|
|
//返回首页 |
|
@ -180,6 +181,7 @@ |
|
|
} else { |
|
|
} else { |
|
|
that.showMessage('列表数据为0'); |
|
|
that.showMessage('列表数据为0'); |
|
|
} |
|
|
} |
|
|
|
|
|
updateTitle(that.jobContent.number); |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
@ -246,7 +248,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
scanLocationCode(location, code) { |
|
|
scanLocationCode(location, code) { |
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位["+code+"]", res => { |
|
|
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => { |
|
|
this.toLocationCode = code |
|
|
this.toLocationCode = code |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
@ -258,7 +260,7 @@ |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
this.scanCount = this.getScanCount(); |
|
|
this.scanCount = this.getScanCount(); |
|
|
if( this.scanCount==0){ |
|
|
if (this.scanCount == 0) { |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -313,7 +315,7 @@ |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data, ) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data, ) |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败"+res.msg) |
|
|
this.showErrorMessage("提交失败" + res.msg) |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|