overseamom-252 feat 手持增加sto详情页和取消按钮
parent
0023eb9ed6
commit
d55bdfe6ee
@ -0,0 +1,37 @@
|
|||||||
|
/**
|
||||||
|
* 扫描明细表格列
|
||||||
|
*/
|
||||||
|
import vm from '@/main';
|
||||||
|
export const headers = [
|
||||||
|
{
|
||||||
|
label: vm.$t('message.product_BarCode'),
|
||||||
|
key: 'barcode',
|
||||||
|
width: 400,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.pcNo'),
|
||||||
|
key: 'pcNo',
|
||||||
|
width: 400,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.po_MaterielNo'),
|
||||||
|
key: 'matCode',
|
||||||
|
width: 300,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.po_MaterielDes'),
|
||||||
|
key: 'matDesc',
|
||||||
|
width: 400,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.stoOrderNo'),
|
||||||
|
key: 'stoNo',
|
||||||
|
width: 300,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t('message.stoLine'),
|
||||||
|
key: 'stoItem',
|
||||||
|
width: 300,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
@ -0,0 +1,126 @@
|
|||||||
|
|
||||||
|
<template>
|
||||||
|
<view class="page-receipt-detail">
|
||||||
|
<view class="header">
|
||||||
|
<view class="left">
|
||||||
|
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
|
||||||
|
</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%" @onCheck='onCheck' show-left-and-right-border :headers="headers" :contents="model.stoBarcodeList" enable-check='single' :show-vert-border="false"></wyb-table>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="bottom-bar">
|
||||||
|
<u-row class="button-bar">
|
||||||
|
<u-col :span="12">
|
||||||
|
<u-button type="error" @click="Delete">{{ $t('message.product_Delete') }}</u-button>
|
||||||
|
</u-col>
|
||||||
|
</u-row>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
import { Component } from 'vue-property-decorator';
|
||||||
|
import { BasePage } from '@/components/base/page';
|
||||||
|
import model from './model';
|
||||||
|
import { headers } from './config';
|
||||||
|
import { session } from '@/store/modules/session';
|
||||||
|
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class RawReceiptDetail extends BasePage {
|
||||||
|
model = model;
|
||||||
|
headers = headers;
|
||||||
|
seleteData={}
|
||||||
|
onCheck(data){
|
||||||
|
this.seleteData=data.data;
|
||||||
|
}
|
||||||
|
async Delete(){
|
||||||
|
console.log("2222ss",this.seleteData)
|
||||||
|
console.log("1111ss",this.seleteData[0].lineData.barcode)
|
||||||
|
const barcode = this.seleteData[0].lineData.barcode;
|
||||||
|
const stoNo = this.seleteData[0].lineData.stoNo;
|
||||||
|
const stoItem = this.seleteData[0].lineData.stoItem;
|
||||||
|
if (!this.seleteData) {
|
||||||
|
this.customToast(this.$t('message.stoPleaseInput') as any);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const SunmitList = {
|
||||||
|
loginName: session.loginName,
|
||||||
|
factoryCode: session.factoryCode,
|
||||||
|
stoNo: stoNo,
|
||||||
|
stoItem: stoItem,
|
||||||
|
barcode: barcode,
|
||||||
|
};
|
||||||
|
await this.model.deleteBarcode(SunmitList);
|
||||||
|
if (this.model.SubCode == 1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: this.$t('message.success') as string,
|
||||||
|
image: '/static/icons/icon-51.png',
|
||||||
|
});
|
||||||
|
this.seleteData={};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.page-receipt-detail {
|
||||||
|
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
|
||||||
|
background-size: 100% 600rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
min-height: 100%;
|
||||||
|
padding-top: 118rpx;
|
||||||
|
padding-bottom: 162rpx;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
position: fixed;
|
||||||
|
top: 36rpx;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
height: 88rpx;
|
||||||
|
line-height: 88rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
.title {
|
||||||
|
flex: 3;
|
||||||
|
}
|
||||||
|
.left,
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 88rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
background-color: #fff;
|
||||||
|
padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form {
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 40rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
.bottom-bar {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 99;
|
||||||
|
background: #ffffff;
|
||||||
|
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue