|
|
@ -22,21 +22,26 @@ |
|
|
|
</scroll-view> |
|
|
|
<button class="btn_add" @click="goScan(true)">+去添加</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<div class="btn_bottom"> |
|
|
|
<view class="" style="display: flex;flex-direction: row;"> |
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
|
<view class="uni-flex u-col-center space-between padding_10" |
|
|
|
style="background-color:ghostwhite; width: 100%; "> |
|
|
|
<view class=""> |
|
|
|
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> |
|
|
|
</view> |
|
|
|
<view class=" uni-flex uni-row"> |
|
|
|
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit()">提交</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</div> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<com-message ref="comMessage"></com-message> |
|
|
|
|
|
|
|
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup> |
|
|
|
<win-scan-button v-if='detailSource.length>0' @goScan='openScanDetailPopup'></win-scan-button> |
|
|
|
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> |
|
|
|
</com-scan-issue-pack> |
|
|
|
<com-message ref="comMessage"></com-message> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
@ -182,7 +187,6 @@ |
|
|
|
if (res.data == null) { |
|
|
|
that.showMessage('未获取到推荐信息'); |
|
|
|
} else { |
|
|
|
|
|
|
|
if (res.data.length > 0) { |
|
|
|
that.workShopCode = item.workshopCode; |
|
|
|
res.data.forEach(r => { |
|
|
@ -190,7 +194,8 @@ |
|
|
|
r.productionLineCode = item.productionLineCode; |
|
|
|
r.workStationCode = item.workStationCode; |
|
|
|
// r.itemCode = item.itemCode; |
|
|
|
// r.uom = item.uom; |
|
|
|
r.itemName = item.itemName |
|
|
|
r.uom = item.uom; |
|
|
|
that.subList.push(r); |
|
|
|
}) |
|
|
|
that.detailSource = getDataSource(that.detailSource, that.subList) |
|
|
@ -355,13 +360,12 @@ |
|
|
|
submitJob() { |
|
|
|
var params = this.setParams() |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|
issueRecordSubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成发料记录<br>" + res.data) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败:" + res.msg) |
|
|
|
this.showErrorMessage("提交失败:【" + res.msg+"】") |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading() |
|
|
@ -372,6 +376,7 @@ |
|
|
|
showCommitSuccessMessage(hint) { |
|
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
|
this.clearData(); |
|
|
|
this.$refs.comIssueRequestPopup.initData() |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|