委外细节

master
hou 3 years ago
parent da81d15c42
commit 4899040ab3

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

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

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