|
|
|
@ -11,38 +11,38 @@
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="show = !show">{{ $t('message.Warehouse_Tip6') }}</u-button>
|
|
|
|
|
<u-button type="primary" @click="propoWindow">{{ $t('message.Warehouse_Tip6') }}</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material">
|
|
|
|
|
<view class="material-right">
|
|
|
|
|
<view class="material-right-title">{{ $t('message.Production') }}:</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.materialDesc }}</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.prdOrder }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material">
|
|
|
|
|
<view class="material-right">
|
|
|
|
|
<view class="material-right-title">{{ $t('message.Pi_materielNo') }}:</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.materialDesc }}</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.materialCode }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material">
|
|
|
|
|
<view class="material-right">
|
|
|
|
|
<view class="material-right-title">{{ $t('message.materialName') }}:</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.totalFillAmount }}</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.materialDesc }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material">
|
|
|
|
|
<view class="material-right">
|
|
|
|
|
<view class="material-right-title">{{ $t('message.Pi_unit') }}:</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.amount }}</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.unit }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 库位 -->
|
|
|
|
|
<view class="library">
|
|
|
|
|
<view class="library-left">
|
|
|
|
|
<view>{{ $t('message.receiveAStation') }}:</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.amount }}</view>
|
|
|
|
|
<view class="material-right-code" style="overflow: hidden">{{ some.sendSpot }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="library">
|
|
|
|
@ -56,25 +56,31 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 表格 -->
|
|
|
|
|
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="detailHeader" :contents="LocationList" :show-vert-border="false" @onCellClick="deleteItem($event)"></wyb-table>
|
|
|
|
|
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="detailHeader" :contents="List" :show-vert-border="false" @onCellClick="deleteItem($event)"></wyb-table>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 弹窗 -->
|
|
|
|
|
<u-popup v-model="show" mode="center" closeable width="95%" height="90%" border-radius="14">
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-left">
|
|
|
|
|
<view>{{ $t('message.po_MaterielNo') }}</view>
|
|
|
|
|
<u-search :placeholder="$t('message.materialCode')" v-model.trim="form.documentNo" @search="query" :show-action="false"></u-search>
|
|
|
|
|
<view>{{ $t('message.Production') }}</view>
|
|
|
|
|
<u-search :placeholder="$t('message.Commission_tips1')" v-model.trim="prdOrder" :show-action="false"> </u-search>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
</view>
|
|
|
|
|
<view class="singles">
|
|
|
|
|
<view class="single-lefts">
|
|
|
|
|
<view>{{ $t('message.po_MaterielNo') }}</view>
|
|
|
|
|
<u-search :placeholder="$t('message.materialCode')" v-model.trim="materialCode" :show-action="false"> </u-search>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-rights">
|
|
|
|
|
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view scroll-y="true" style="height: 480px; padding-top: 20px; overflow-x: auto">
|
|
|
|
|
<view>
|
|
|
|
|
<wyb-table class="table" ref="table" enable-check="multiple" show-left-and-right-border width="100%" :headers="PropoHeader" :contents="LocationList" :show-vert-border="false"></wyb-table>
|
|
|
|
|
<scroll-view scroll-y="true" scroll-x="true" style="height: 440px; padding-top: 20px; white-space: nowrap">
|
|
|
|
|
<view style="display: inline-block">
|
|
|
|
|
<wyb-table class="table" ref="table" enable-check="single" show-left-and-right-border width="100%" :headers="PropoHeader" @onCheck="selectItem($event)" :contents="model.MaterialList" :show-vert-border="false"></wyb-table>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
<u-button type="primary">{{ $t('message.workArea_Confirm') }}</u-button>
|
|
|
|
|
<u-button type="primary" @click="onOk">{{ $t('message.workArea_Confirm') }}</u-button>
|
|
|
|
|
</u-popup>
|
|
|
|
|
<view class="bottom-bar">
|
|
|
|
|
<div class="container">
|
|
|
|
@ -96,298 +102,142 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { Component, Ref } from 'vue-property-decorator';
|
|
|
|
|
import { Component } from 'vue-property-decorator';
|
|
|
|
|
import { BasePage } from '@/components/base/page';
|
|
|
|
|
import model from './model';
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
|
import { VForm, VFormRules } from 'vue/types/form';
|
|
|
|
|
import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
|
import { detailHeader, PropoHeader } from './config';
|
|
|
|
|
import { auth } from '@/store/modules/auth';
|
|
|
|
|
import { CreteListHeader, PropoHeader } from './config';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
jPicker,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
/**
|
|
|
|
|
* 表单引用
|
|
|
|
|
*/
|
|
|
|
|
@Ref('form') readonly $form!: VForm;
|
|
|
|
|
@Ref('submitForm') readonly $submitForm!: VForm;
|
|
|
|
|
@Ref('form2') readonly $form2!: VForm;
|
|
|
|
|
submitForm = {
|
|
|
|
|
receiver: '',
|
|
|
|
|
receiverName: '',
|
|
|
|
|
password: '',
|
|
|
|
|
};
|
|
|
|
|
detailHeader = CreteListHeader;
|
|
|
|
|
PropoHeader = PropoHeader;
|
|
|
|
|
model = model;
|
|
|
|
|
show = false;
|
|
|
|
|
materialList: any = [];
|
|
|
|
|
type = 'text';
|
|
|
|
|
wlCode: any = '';
|
|
|
|
|
border = true;
|
|
|
|
|
operatorName = '';
|
|
|
|
|
//添加库位和数量的列表
|
|
|
|
|
LocationList: any = [];
|
|
|
|
|
//库位
|
|
|
|
|
Location: any = [];
|
|
|
|
|
someIndex = 0;
|
|
|
|
|
show = false;
|
|
|
|
|
List: any = [];
|
|
|
|
|
some: any = {};
|
|
|
|
|
qty: any = '';
|
|
|
|
|
form: any = {
|
|
|
|
|
documentNo: '',
|
|
|
|
|
amount: null,
|
|
|
|
|
};
|
|
|
|
|
form2 = {
|
|
|
|
|
operatorPass: '', // 接收人
|
|
|
|
|
rfPwd: '',
|
|
|
|
|
};
|
|
|
|
|
rules: VFormRules<any> = {
|
|
|
|
|
amount: [{ required: true, message: this.$t('message.Pi_tip1') as string }],
|
|
|
|
|
};
|
|
|
|
|
detailHeader = detailHeader;
|
|
|
|
|
PropoHeader = PropoHeader;
|
|
|
|
|
empty() {
|
|
|
|
|
this.some = {};
|
|
|
|
|
this.someIndex = 0;
|
|
|
|
|
this.qty = '';
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.wlCode = '';
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
this.model.blDetailList.length = 0;
|
|
|
|
|
}
|
|
|
|
|
LocEmpty() {
|
|
|
|
|
this.some = {};
|
|
|
|
|
this.someIndex = 0;
|
|
|
|
|
this.qty = '';
|
|
|
|
|
this.wlCode = '';
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
this.model.blDetailList.length = 0;
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
//生产订单号
|
|
|
|
|
prdOrder: any = '';
|
|
|
|
|
//物料号
|
|
|
|
|
materialCode: any = '';
|
|
|
|
|
async propoWindow() {
|
|
|
|
|
this.show = !this.show;
|
|
|
|
|
await this.query();
|
|
|
|
|
}
|
|
|
|
|
async query() {
|
|
|
|
|
if (this.form.documentNo == '') {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
|
}
|
|
|
|
|
this.LocEmpty();
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
let inPrdOrderList = this.form.documentNo.split(',');
|
|
|
|
|
let params = {
|
|
|
|
|
inPrdOrderList,
|
|
|
|
|
prdOrder: this.prdOrder,
|
|
|
|
|
materialCode: this.materialCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.queryBlDetailList(params).then(() => {
|
|
|
|
|
this.model.blDetailList.forEach((item: any) => {
|
|
|
|
|
let arr = {
|
|
|
|
|
label: item.materialCode,
|
|
|
|
|
value: item.materialCode,
|
|
|
|
|
sapSupplyId: item.sapSupplyId,
|
|
|
|
|
};
|
|
|
|
|
this.materialList.push(arr);
|
|
|
|
|
item.wlList = [];
|
|
|
|
|
});
|
|
|
|
|
this.some = this.model.blDetailList[0];
|
|
|
|
|
this.someIndex = 0;
|
|
|
|
|
});
|
|
|
|
|
await this.model.queryItemLoc({
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
materialCode: this.some.materialCode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
});
|
|
|
|
|
if (this.model.LocList.length != 0) {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
} else {
|
|
|
|
|
console.log('1');
|
|
|
|
|
}
|
|
|
|
|
await this.model.queryMaterialList(params);
|
|
|
|
|
}
|
|
|
|
|
async materialChoice(e: any) {
|
|
|
|
|
this.model.blDetailList.forEach((item: any, index: any) => {
|
|
|
|
|
if (item.sapSupplyId == e.pickerName.sapSupplyId) {
|
|
|
|
|
selectItem(e: any) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
this.model.MaterialList.forEach((item: any) => {
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
this.some = item;
|
|
|
|
|
this.someIndex = index;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
await this.model.queryItemLoc({
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
materialCode: this.some.materialCode,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
}
|
|
|
|
|
onOk() {
|
|
|
|
|
let flag = false;
|
|
|
|
|
this.model.MaterialList.forEach((item: any) => {
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (this.model.LocList.length != 0) {
|
|
|
|
|
this.Location = [];
|
|
|
|
|
this.Location = this.model.LocList;
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
} else {
|
|
|
|
|
console.log('1');
|
|
|
|
|
}
|
|
|
|
|
this.qty = '';
|
|
|
|
|
}
|
|
|
|
|
LocationChoice(e: any) {
|
|
|
|
|
this.wlCode = e.pickerName;
|
|
|
|
|
}
|
|
|
|
|
async onOperatorConfirm(loginName: string) {
|
|
|
|
|
try {
|
|
|
|
|
const { userName } = await auth.getUserInfo({ loginName });
|
|
|
|
|
this.form2.operatorPass = loginName;
|
|
|
|
|
this.operatorName = userName;
|
|
|
|
|
} catch {
|
|
|
|
|
this.form2.operatorPass = '';
|
|
|
|
|
this.operatorName = '';
|
|
|
|
|
if (flag == false) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.Commission_tips6') as any,
|
|
|
|
|
image: '/static/icons/icon-52.png',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.show = !this.show;
|
|
|
|
|
this.model.MaterialList.length = 0;
|
|
|
|
|
this.prdOrder = '';
|
|
|
|
|
this.materialCode = '';
|
|
|
|
|
}
|
|
|
|
|
Add() {
|
|
|
|
|
if (this.qty == '' || this.wlCode == '') {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel1') as string);
|
|
|
|
|
if (this.some == {}) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.Commission_tips6') as any,
|
|
|
|
|
image: '/static/icons/icon-52.png',
|
|
|
|
|
});
|
|
|
|
|
this.qty = '';
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (parseFloat(this.qty) <= 0) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel2') as string);
|
|
|
|
|
if (this.qty == '') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.Summary_PleaseInputNumber') as any,
|
|
|
|
|
image: '/static/icons/icon-52.png',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (parseFloat(this.qty) > model.blDetailList[this.someIndex].amount) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel3') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let num = parseFloat(this.qty);
|
|
|
|
|
this.model.blDetailList[this.someIndex].wlList.forEach((item: any) => {
|
|
|
|
|
num += parseFloat(item.qty);
|
|
|
|
|
});
|
|
|
|
|
if (num > this.model.blDetailList[this.someIndex].amount) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel3') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let isTrue = true;
|
|
|
|
|
if (this.LocationList.length != 0) {
|
|
|
|
|
this.model.blDetailList[this.someIndex].wlList.forEach((item: any) => {
|
|
|
|
|
if (this.wlCode.sendSpot != item.Code) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel4') as string);
|
|
|
|
|
return (isTrue = false);
|
|
|
|
|
if (this.List.length != 0) {
|
|
|
|
|
let next = true;
|
|
|
|
|
this.List.forEach((item: any) => {
|
|
|
|
|
if (item.prdOrder == this.some.prdOrder && item.materialCode == this.some.materialCode && item.mrpCode == this.some.mrpCode && item.sendSpot == this.some.sendSpot) {
|
|
|
|
|
return (next = false);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (this.some == {}) {
|
|
|
|
|
this.customToast(this.$t('message.AppendMateriel5') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (isTrue == true) {
|
|
|
|
|
let arr = {
|
|
|
|
|
wlCode: this.wlCode.label,
|
|
|
|
|
qty: this.qty,
|
|
|
|
|
Code: this.wlCode.sendSpot,
|
|
|
|
|
...this.some,
|
|
|
|
|
};
|
|
|
|
|
this.LocationList.push(arr);
|
|
|
|
|
this.model.blDetailList[this.someIndex].wlList.push(arr);
|
|
|
|
|
if (next) {
|
|
|
|
|
this.some.amount = this.qty;
|
|
|
|
|
this.List.push(this.some);
|
|
|
|
|
this.qty = '';
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.repeatedly') as any,
|
|
|
|
|
image: '/static/icons/icon-52.png',
|
|
|
|
|
});
|
|
|
|
|
this.qty = '';
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.some.amount = this.qty;
|
|
|
|
|
this.List.push(this.some);
|
|
|
|
|
this.qty = '';
|
|
|
|
|
this.business();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
deleteItem(e: any) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: this.$t('message.product_Delete') as string,
|
|
|
|
|
cancelText: this.$t('message.Cancel') as string,
|
|
|
|
|
confirmText: this.$t('message.workArea_Confirm') as string,
|
|
|
|
|
success: (res) => {
|
|
|
|
|
title: this.$t('message.product_Delete') as any,
|
|
|
|
|
success: (res: any) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
let lineData = e.lineData;
|
|
|
|
|
let i: any;
|
|
|
|
|
this.model.blDetailList.forEach((item: any, index: any) => {
|
|
|
|
|
if (item.materialCode == lineData.materialCode && item.sendSpot == lineData.sendSpot) {
|
|
|
|
|
i = index;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let NextIndex: any;
|
|
|
|
|
this.model.blDetailList[i].wlList.forEach((item: any, index: any) => {
|
|
|
|
|
if (item.wlCode == lineData.wlCode && item.qty == lineData.qty) {
|
|
|
|
|
NextIndex = index;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.model.blDetailList[i].wlList.splice(NextIndex, 1);
|
|
|
|
|
this.LocationList.splice(e.contentIndex, 1);
|
|
|
|
|
let num: any = 0;
|
|
|
|
|
this.model.blDetailList[i].wlList.forEach((item: any) => {
|
|
|
|
|
num += parseFloat(item.qty);
|
|
|
|
|
});
|
|
|
|
|
this.model.blDetailList[i].fillAmount = num;
|
|
|
|
|
console.log('this.model.blDetailList', this.model.blDetailList);
|
|
|
|
|
this.List.splice(e.contentIndex, 1);
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
business() {
|
|
|
|
|
let num = 0;
|
|
|
|
|
this.model.blDetailList[this.someIndex].wlList.forEach((item: any) => {
|
|
|
|
|
num += parseFloat(item.qty);
|
|
|
|
|
});
|
|
|
|
|
this.model.blDetailList[this.someIndex].fillAmount = num;
|
|
|
|
|
this.some.fillAmount = num;
|
|
|
|
|
console.log('this.model.blDetailList', this.model.blDetailList);
|
|
|
|
|
}
|
|
|
|
|
async onReady() {
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
sendSpot: null,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
workArea: session.workareaCode,
|
|
|
|
|
};
|
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
|
console.log('res>>>>>>>>>>>>>>>>>>>>>>', res);
|
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
|
pickerName.sendSpot = item.sendSpot;
|
|
|
|
|
this.Location.push(pickerName);
|
|
|
|
|
});
|
|
|
|
|
this.model.blDetailList.forEach((item: any) => {
|
|
|
|
|
item.receiptAmount = 0;
|
|
|
|
|
item.wlQTyList = [];
|
|
|
|
|
});
|
|
|
|
|
this.model.blDetailList.length = 0;
|
|
|
|
|
this.wlCode = this.Location[0];
|
|
|
|
|
}
|
|
|
|
|
async bill() {
|
|
|
|
|
if (this.some == {} || this.some.prdOrder == null) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
// title: this.$t('message.Commission_tips6') as string,
|
|
|
|
|
// });
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips6') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let person = JSON.parse(uni.getStorageSync('__GWMS_APP_STATE_DATA__') as any);
|
|
|
|
|
let content = {
|
|
|
|
|
loginName: person.session.user.loginName,
|
|
|
|
|
prdOrder: this.some.prdOrder,
|
|
|
|
|
};
|
|
|
|
|
await this.model.querydetaildlist(content);
|
|
|
|
|
this.redirectTo(this.page.raw.handover.feeding.Local);
|
|
|
|
|
}
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
this.model.blDetailList.forEach((item: any) => {
|
|
|
|
|
item.wlList.forEach((item: any) => {
|
|
|
|
|
item.wlList = null;
|
|
|
|
|
this.List.forEach((item: any) => {
|
|
|
|
|
item.factoryCode = this.session.factoryCode;
|
|
|
|
|
item.loginName = this.session.loginName;
|
|
|
|
|
});
|
|
|
|
|
await this.model.submitList(this.List);
|
|
|
|
|
console.log('submitListCode', this.model.submitListCode);
|
|
|
|
|
if (this.model.submitListCode) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.Warehouse_Tip9') as any,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
let dataList = this.model.blDetailList;
|
|
|
|
|
const params = {
|
|
|
|
|
dataList,
|
|
|
|
|
...this.form2,
|
|
|
|
|
factoryCode: this.session.factoryCode,
|
|
|
|
|
loginName: this.session.loginName,
|
|
|
|
|
};
|
|
|
|
|
await this.model.saveBlDetailUpload(params).then(() => {
|
|
|
|
|
this.qty = '';
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
this.query();
|
|
|
|
|
});
|
|
|
|
|
this.empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
empty() {
|
|
|
|
|
this.List = [];
|
|
|
|
|
this.some = {};
|
|
|
|
|
this.qty = '';
|
|
|
|
|
this.prdOrder = '';
|
|
|
|
|
this.materialCode = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -398,23 +248,28 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
background-size: 100% 600rpx;
|
|
|
|
|
padding: 118rpx 30rpx 162rpx;
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
|
|
|
|
|
.uni-scroll-view-content {
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
|
|
|
|
|
.single {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-top: 50px;
|
|
|
|
|
padding-top: 30px;
|
|
|
|
|
|
|
|
|
|
.single-left {
|
|
|
|
|
width: 80%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 60px;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 110rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-right {
|
|
|
|
|
button {
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
@ -423,7 +278,35 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.singles {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 50px;
|
|
|
|
|
// height: 100px;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.single-lefts {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 60px;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 110rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-rights {
|
|
|
|
|
button {
|
|
|
|
|
margin-top: 15rpx;
|
|
|
|
|
width: 150rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 36rpx;
|
|
|
|
@ -437,13 +320,16 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
flex: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left,
|
|
|
|
|
.right {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
@ -452,41 +338,50 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
height: 88rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: white;
|
|
|
|
|
border-radius: 15rpx;
|
|
|
|
|
padding: 10rpx;
|
|
|
|
|
|
|
|
|
|
.material {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.material-left {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 145rpx;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search {
|
|
|
|
|
padding-left: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.material {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.material-right {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.material-right-title {
|
|
|
|
|
width: 145rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.material-right-code {
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 100%;
|
|
|
|
@ -497,18 +392,22 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.number {
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.number-left {
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.number-left-title {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.input {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
@ -516,16 +415,19 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.number-right {
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.number-right-title {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.input {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
@ -534,32 +436,39 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.library {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
|
|
|
|
|
.library-left {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
// display: flex;
|
|
|
|
|
|
|
|
|
|
view {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
.search {
|
|
|
|
|
padding-left: 19px;
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
|
|
.material-right-code {
|
|
|
|
|
width: 200px;
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.library-right {
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.library-right-title {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
// text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.input {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
@ -567,10 +476,12 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
margin-left: 15rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.add {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10rpx;
|
|
|
|
@ -579,6 +490,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bottom-bar {
|
|
|
|
|
z-index: 21;
|
|
|
|
|
position: fixed;
|
|
|
|
|