|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<!-- 头部 -->
|
|
|
|
|
<view class="header" :style="{ backgroundColor: `rgba(23, 83, 234, ${scrollTop / 100})` }">
|
|
|
|
|
<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 class="title">{{ $t('message.SemiFinished_SO') }}</view>
|
|
|
|
|
<view class="right"></view>
|
|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-left">
|
|
|
|
|
<view>{{ $t('message.product_barCode') }}:</view>
|
|
|
|
|
<u-search :placeholder="$t('message.PleaseScan')" style="z-index: 10000" v-model="Barcode" @search="searchBarcode" :show-action="false"></u-search>
|
|
|
|
|
<u-search :placeholder="$t('message.PleaseScan')" :focus="isfocus" style="z-index: 10000" v-model="Barcode" @search="searchBarcode" :show-action="false"></u-search>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
|
|
|
|
@ -61,7 +61,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="number" :disabled="disabled" :border="border" class="input" />
|
|
|
|
|
<u-input :placeholder="$t('message.po_PleaseInput')" v-model="nowAmount" type="number" :border="border" class="input" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 添加 -->
|
|
|
|
@ -81,7 +81,7 @@
|
|
|
|
|
<u-button type="primary" @click="onSubmit">{{ $t('message.product_Upload') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="4">
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</view>
|
|
|
|
@ -103,6 +103,7 @@ export default class SemiFinishedSO extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
detailHeader = detailHeader;
|
|
|
|
|
disabled = false;
|
|
|
|
|
isfocus = true;
|
|
|
|
|
form: any = {
|
|
|
|
|
documentNo: '',
|
|
|
|
|
};
|
|
|
|
@ -197,7 +198,7 @@ export default class SemiFinishedSO extends BasePage {
|
|
|
|
|
this.Loc = [];
|
|
|
|
|
this.Container = '';
|
|
|
|
|
this.nowAmount = '';
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
//this.disabled = false;
|
|
|
|
|
let params = {
|
|
|
|
|
productCode: this.every.materialCode,
|
|
|
|
|
barcode: this.Barcode,
|
|
|
|
@ -212,14 +213,18 @@ export default class SemiFinishedSO extends BasePage {
|
|
|
|
|
// this.nowAmount = 1;
|
|
|
|
|
if (this.Container.cpRef4 == null) {
|
|
|
|
|
this.nowAmount = parseFloat(this.Container.qty);
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
//this.disabled = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.nowAmount = parseFloat(this.Container.qty) - parseFloat(this.Container.cpRef4);
|
|
|
|
|
this.disabled = true;
|
|
|
|
|
//this.disabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//点击添加
|
|
|
|
|
Add() {
|
|
|
|
|
this.isfocus = false;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.isfocus = true;
|
|
|
|
|
});
|
|
|
|
|
if (this.Container == '') {
|
|
|
|
|
this.customToast(this.$t('message.scanningContainer') as any);
|
|
|
|
|
return;
|
|
|
|
@ -285,7 +290,7 @@ export default class SemiFinishedSO extends BasePage {
|
|
|
|
|
this.nowAmount = '';
|
|
|
|
|
this.Barcode = '';
|
|
|
|
|
this.Container = '';
|
|
|
|
|
this.disabled = false;
|
|
|
|
|
//this.disabled = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
deleteItem(e: any) {
|
|
|
|
|