委外细节

master
hou 4 years ago
parent da81d15c42
commit 4899040ab3

@ -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>
<!-- 添加 --> <!-- 添加 -->

@ -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')">

@ -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