guoshuang 3 years ago
commit 07ec266d02

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

@ -189,6 +189,7 @@ export default {
return_OperatorName: 'Return by',
return_Type: 'Return type',
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_Tip3: 'Qty cannot be empty',
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) => {
num += parseFloat(item.nowAmount);
});
this.every.receiptAmount = num;
this.every.receiptAmount += num;
}
}
</script>

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

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

@ -30,7 +30,7 @@
</view>
<view class="library-right">
<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>
<!-- 添加 -->

@ -152,6 +152,18 @@ export default class RawReceiptDetail extends BasePage {
this.wlCode = e.pickerName;
}
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.some = data[0].lineData;
this.model.proOrderResultList[this.someIndex].wlList = [];

@ -140,6 +140,17 @@ export default class RawReceiptDetail extends BasePage {
}
//
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.some = data[0].lineData;
this.model.aggregateList[this.someIndex].wlList = [];

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

@ -60,7 +60,7 @@
</u-row>
<!-- 工位退料人 -->
<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 :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);
padding: 20rpx;
}
.button-bar {
}
}
</style>

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

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

Loading…
Cancel
Save