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