guoshuang 3 years ago
commit 07ec266d02

@ -66,6 +66,7 @@ export default {
po_Supplier: '供应商', po_Supplier: '供应商',
po_OrderType: '订单类型', po_OrderType: '订单类型',
po_Location: '库存地点', po_Location: '库存地点',
SAPLocation:'所选物料没有SAP库位请重新选择',
po_PleaseScan: '请扫描PO单号', po_PleaseScan: '请扫描PO单号',
po_PleaseScanMATcode: '请扫描物料条码', po_PleaseScanMATcode: '请扫描物料条码',
PleaseScan: '请扫描', PleaseScan: '请扫描',

@ -189,6 +189,7 @@ export default {
return_OperatorName: 'Return by', return_OperatorName: 'Return by',
return_Type: 'Return type', return_Type: 'Return type',
return_Tip1: 'Return by cannot be empty', return_Tip1: 'Return by cannot be empty',
SAPLocation: 'There is no SAP location for the selected material, please select again',
return_Tip2: 'Factory code cannot be empty', return_Tip2: 'Factory code cannot be empty',
return_Tip3: 'Qty cannot be empty', return_Tip3: 'Qty cannot be empty',
return_Tip4: 'Return Qty cannot be greater than total Qty', return_Tip4: 'Return Qty cannot be greater than total Qty',

@ -253,7 +253,7 @@ export default class dnReceiptDom extends BasePage {
this.list.forEach((item: any) => { this.list.forEach((item: any) => {
num += parseFloat(item.nowAmount); num += parseFloat(item.nowAmount);
}); });
this.every.receiptAmount = num; this.every.receiptAmount += num;
} }
} }
</script> </script>

@ -4,27 +4,19 @@
<view class="left"> <view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" /> <u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
</view> </view>
<view class="title">{{ $t("message.Pi_QueryResults") }}</view> <view class="title">{{ $t('message.Pi_QueryResults') }}</view>
<view class="right"></view> <view class="right"></view>
</view> </view>
<view class="table-wrapper"> <view class="table-wrapper">
<wyb-table <wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="headers" :contents="model.detailedList" :show-vert-border="false"></wyb-table>
class="table"
ref="table"
width="100%"
show-left-and-right-border
:headers="headers"
:contents="model.detailedList"
:show-vert-border="false"
></wyb-table>
</view> </view>
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Component } from "vue-property-decorator"; import { Component } from 'vue-property-decorator';
import { BasePage } from "@/components/base/page"; import { BasePage } from '@/components/base/page';
import { headers } from "./config"; import { headers } from './config';
import model from "./model"; import model from './model';
@Component @Component
export default class RawReceiptDetail extends BasePage { export default class RawReceiptDetail extends BasePage {
@ -34,8 +26,7 @@ export default class RawReceiptDetail extends BasePage {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-receipt-detail { .page-receipt-detail {
background: #f2f2f2 background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
background-size: 100% 600rpx; background-size: 100% 600rpx;
padding: 30rpx; padding: 30rpx;
min-height: 100%; min-height: 100%;

@ -51,7 +51,7 @@
</view> </view>
<view class="library-right"> <view class="library-right">
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view> <view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view>
<u-input :placeholder="$t('message.po_PleaseInput')" v-model="nowAmount" :type="type" :border="border" class="input" /> <u-input :placeholder="$t('message.po_PleaseInput')" v-model="nowAmount" type="number" :border="border" class="input" />
</view> </view>
</view> </view>
<!-- 添加 --> <!-- 添加 -->
@ -142,8 +142,17 @@ export default class dnReceiptDom extends BasePage {
this.Location.push(pickerName); this.Location.push(pickerName);
}); });
} }
empty() {
this.list = [];
this.wlCode = '';
this.nowAmount = '';
this.every = '';
this.materialList = [];
this.Location = [];
}
// //
async query() { async query() {
this.empty();
if (this.form.documentNo == '') { if (this.form.documentNo == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -243,11 +252,7 @@ export default class dnReceiptDom extends BasePage {
list: this.list, list: this.list,
}; };
await this.model.submitOutsourcing(upload); await this.model.submitOutsourcing(upload);
this.list = []; this.empty();
this.wlCode = '';
this.nowAmount = '';
this.every = '';
this.materialList = [];
} }
async bill() { async bill() {
if (this.form.documentNo == '') { if (this.form.documentNo == '') {
@ -272,7 +277,7 @@ export default class dnReceiptDom extends BasePage {
this.list.forEach((item: any) => { this.list.forEach((item: any) => {
num += parseFloat(item.nowAmount); num += parseFloat(item.nowAmount);
}); });
this.every.outAmount = num; this.every.outAmount += num;
} }
} }
</script> </script>

@ -30,7 +30,7 @@
</view> </view>
<view class="library-right"> <view class="library-right">
<view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view> <view class="library-right-title">{{ $t('message.CommissionedThisNumber') }}</view>
<u-input v-model="qty" :type="type" :border="border" class="input" /> <u-input v-model="qty" :type="type" :border="border" class="input" :placeholder="$t('message.Summary_PleaseInputNumber')" />
</view> </view>
</view> </view>
<!-- 添加 --> <!-- 添加 -->

@ -152,6 +152,18 @@ export default class RawReceiptDetail extends BasePage {
this.wlCode = e.pickerName; this.wlCode = e.pickerName;
} }
handleRow({ data }: any) { handleRow({ data }: any) {
console.log('data[0]', data[0]);
if (!this.model.proOrderResultList[data[0].index].sendSpot) {
uni.showModal({
content: this.$t('message.SAPLocation') as any,
success: (res) => {
if (res.confirm) {
this.model.proOrderResultList[data[0].index].checked = false;
}
},
});
return;
}
this.someIndex = data[0].index; this.someIndex = data[0].index;
this.some = data[0].lineData; this.some = data[0].lineData;
this.model.proOrderResultList[this.someIndex].wlList = []; this.model.proOrderResultList[this.someIndex].wlList = [];

@ -140,6 +140,17 @@ export default class RawReceiptDetail extends BasePage {
} }
// //
handleRow({ data }: any) { handleRow({ data }: any) {
if (!this.model.aggregateList[data[0].index].sendSpot) {
uni.showModal({
content: this.$t('message.SAPLocation') as any,
success: (res) => {
if (res.confirm) {
this.model.aggregateList[data[0].index].checked = false;
}
},
});
return;
}
this.someIndex = data[0].index; this.someIndex = data[0].index;
this.some = data[0].lineData; this.some = data[0].lineData;
this.model.aggregateList[this.someIndex].wlList = []; this.model.aggregateList[this.someIndex].wlList = [];

@ -167,7 +167,8 @@ export const orderHeaders = [
{ {
label: vm.$t('message.po_Location'), label: vm.$t('message.po_Location'),
// key: 'currentWkposCode', // key: 'currentWkposCode',
key: 'wkposCode', //key: 'wkposCode',
key: 'sendSpot',
}, },
{ {
label: vm.$t('message.po_MaterielDes'), label: vm.$t('message.po_MaterielDes'),
@ -189,7 +190,8 @@ export const orderHeaders = [
}, },
{ {
label: vm.$t('message.Pi_Station'), label: vm.$t('message.Pi_Station'),
key: 'sendSpot', //key: 'sendSpot',
key: 'wkposCode',
}, },
{ {
label: vm.$t('message.Pi_OrderNo'), label: vm.$t('message.Pi_OrderNo'),

@ -60,7 +60,7 @@
</u-row> </u-row>
<!-- 工位退料人 --> <!-- 工位退料人 -->
<u-form-item :required="true" :label="$t('message.return_OperatorName')" prop="operator"> <u-form-item :required="true" :label="$t('message.return_OperatorName')" prop="operator">
<u-input v-model="operatorName" @confirm="onOperatorConfirm" :placeholder="$t('message.po_PleaseInput')" /> <u-input v-model="form.operator" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item> </u-form-item>
<!-- 口令 --> <!-- 口令 -->
<u-form-item :label="$t('message.Summary_Password')"> <u-form-item :label="$t('message.Summary_Password')">
@ -322,8 +322,5 @@ export default class returningDom extends BasePage {
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2); box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx; padding: 20rpx;
} }
.button-bar {
}
} }
</style> </style>

@ -320,8 +320,8 @@ export default class dnReceiptDom extends BasePage {
}); });
} }
// //
resetForm() { async resetForm() {
this.form.documentNo = ''; // this.form.documentNo = '';
// add table // add table
this.LocationList = []; this.LocationList = [];
// //
@ -339,6 +339,7 @@ export default class dnReceiptDom extends BasePage {
this.materialList = []; this.materialList = [];
// //
this.receiptAmount = null; this.receiptAmount = null;
await this.query();
} }
async onSubmit() { async onSubmit() {
if (this.LocationList.length === 0) { if (this.LocationList.length === 0) {

@ -145,6 +145,7 @@ export default class dnReceiptDom extends BasePage {
// //
// //
async initLocation(condition): Promise<LocationDetail[]> { async initLocation(condition): Promise<LocationDetail[]> {
console.log('condition>>>>>>>>>>>>>>>>>>.', condition);
// //
let list: Array<LocationDetail> = []; let list: Array<LocationDetail> = [];
let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any); let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
@ -314,8 +315,8 @@ export default class dnReceiptDom extends BasePage {
}); });
} }
// //
resetForm() { async resetForm() {
this.form.documentNo = ''; // this.form.documentNo = '';
// add table // add table
this.LocationList = []; this.LocationList = [];
// //
@ -335,6 +336,7 @@ export default class dnReceiptDom extends BasePage {
// //
this.receiptAmount = null; this.receiptAmount = null;
await this.query();
} }
async onSubmit() { async onSubmit() {
if (this.LocationList.length === 0) { if (this.LocationList.length === 0) {

Loading…
Cancel
Save