Browse Source

修改成品发货申请

wms3.0_pda
niexiting 11 months ago
parent
commit
8f3527642a
  1. 42
      pages/deliver/coms/comDeliverRequestCreator.vue
  2. 55
      pages/deliver/request/deliverRequestCreate.vue
  3. 1
      pages/productPutaway/request/putawayRequestCreate.vue
  4. 1
      pages/putaway/request/putawayRequestCreate.vue

42
pages/deliver/coms/comDeliverRequestCreator.vue

@ -1,61 +1,33 @@
<template> <template>
<view class=""> <view class="">
<uni-collapse ref="collapse"> <uni-collapse ref="collapse">
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<view class="" style="font-size: 32rpx;"> <view class="page-header" style="font-size: 32rpx;">
<view class="" > <view class="page-item">
客户 : {{dataContent.customerName}} ({{dataContent.customerCode}}) {{dataContent.customerCode }} ({{dataContent.customerName}})
</view>
<view class="">
总数量 : {{dataContent.totalQty}}
</view> </view>
</view> </view>
</template> </template>
<u-line />
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<view v-for="(item, index) in dataContent.subList" :key="index"> <view v-for="(item, index) in dataContent.subList" :key="index">
<uni-swipe-action-item> <uni-swipe-action-item>
<view class="" style="font-size: 32rpx;margin: 10rpx;"> <item-qty :dataContent="item"></item-qty>
<view class="">
物品代码 : {{item.itemCode}}
</view>
<view class="">
物品名称 : {{item.itemName}}
</view>
<view class="uni-flex uni-row uni-center">
<view class="">
数量 : {{item.qty}} 单位 :
</view>
<view class="">
<uom :uom="item.uom"></uom>
</view>
</view>
</view>
</uni-swipe-action-item> </uni-swipe-action-item>
<u-line />
</view> </view>
</uni-swipe-action> </uni-swipe-action>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
</view> </view>
</template> </template>
<script> <script>
import uom from '@/mycomponents/qty/uom.vue' import uom from '@/mycomponents/qty/uom.vue'
import itemQty from '@/mycomponents/item/itemQty.vue'
export default { export default {
components: { components: {
uom uom,
itemQty
}, },
data() { data() {
return { return {

55
pages/deliver/request/deliverRequestCreate.vue

@ -153,53 +153,28 @@
var params = this.setRequestParams() var params = this.setRequestParams()
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
// deliverRequestSubmit(params).then(res => { deliverRequestSubmit(params).then(res => {
// uni.hideLoading() uni.hideLoading()
// if (res.data) { if (res.data) {
// this.showCommitSuccessMessage("<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()
// this.showErrorMessage(error) this.showErrorMessage(error)
// }) })
}, },
setRequestParams() { setRequestParams() {
let requestContent = {};
requestContent.customerCode = this.detailSource.customerCode;
var subList = [] var subList = []
this.detailSource.subList.forEach(detail => { this.detailSource.subList.forEach(detail => {
detail.soNumber = detail.package.soNumber;
detail.soLine = detail.package.soLine;
detail.remark = ""
// soNumber: 926926926,
// soLine: 926,
// itemCode: THILDD0A691AG,
// remark: ,
// qty: 2,
// uom: EA
subList.push(detail) subList.push(detail)
}) })
requestContent.subList = subList;
this.detailSource.subList = subList return requestContent;
this.detailSource.deliverPlanNumber = "DP20231130-0001"
this.detailSource.customerCode = this.detailSource.customerCode
this.detailSource.customerDockCode = ""
this.detailSource.carrierCode = ""
this.detailSource.transferMode = ""
this.detailSource.vehiclePlateNumber = ""
this.detailSource.remark = ""
this.detailSource.dueTime = ""
this.detailSource.departmentCode = "研发部门"
this.detailSource.status = 1
this.detailSource.autoCommit = "FALSE"
this.detailSource.autoAgree = "FALSE"
this.detailSource.autoExecute = "FALSE"
this.detailSource.directCreateRecord = "FALSE"
return this.detailSource;
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {

1
pages/productPutaway/request/putawayRequestCreate.vue

@ -304,6 +304,7 @@
var subItem = {}; var subItem = {};
Object.assign(subItem, detail) Object.assign(subItem, detail)
subItem.fromLocationCode = detail.locationCode; subItem.fromLocationCode = detail.locationCode;
subItem.qty = detail.handleQty;
subItem.package = null; subItem.package = null;
subList.push(subItem) subList.push(subItem)
} }

1
pages/putaway/request/putawayRequestCreate.vue

@ -311,6 +311,7 @@
var subItem = {}; var subItem = {};
Object.assign(subItem, detail) Object.assign(subItem, detail)
subItem.fromLocationCode = detail.locationCode; subItem.fromLocationCode = detail.locationCode;
subItem.qty=detail.handleQty;
subItem.package = null; subItem.package = null;
subList.push(subItem) subList.push(subItem)
} }

Loading…
Cancel
Save