不良品问题单据 和入库单 加到货日期
This commit is contained in:
@@ -89,7 +89,7 @@ select a.id AS ArrivalId,a.cCode as ArrivalCode,a.cpersoncode,a.cpersonname,A.c
|
|||||||
|
|
||||||
public IEnumerable<object> QmError()
|
public IEnumerable<object> QmError()
|
||||||
{
|
{
|
||||||
string sql = @" select isnull(a.CINVCODE,'') as qminvcode,a.CINVNAME,isnull(b.cInvCode,'') as poinvcode,a.CREJECTCODE,d.cCode,f.cCode
|
string sql = @" select isnull(a.CINVCODE,'') as qminvcode,a.CINVNAME,isnull(b.cInvCode,'') as poinvcode,a.CREJECTCODE,d.cCode,f.cCode as rkcCode
|
||||||
from QM_QPERREJECTLIST a WITH (NOLOCK) left join PO_Podetails b WITH (NOLOCK) on a.IPUPODID=b.id
|
from QM_QPERREJECTLIST a WITH (NOLOCK) left join PO_Podetails b WITH (NOLOCK) on a.IPUPODID=b.id
|
||||||
left join PU_ArrivalVouchs c WITH (NOLOCK) on a.id=c.irejectautoid
|
left join PU_ArrivalVouchs c WITH (NOLOCK) on a.id=c.irejectautoid
|
||||||
left join PU_ArrivalVouch d WITH (NOLOCK) on c.id=d.id
|
left join PU_ArrivalVouch d WITH (NOLOCK) on c.id=d.id
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ namespace NX.ERP.U8.Store
|
|||||||
bodyXml.setAttribute("cbatch", detail.Batch);
|
bodyXml.setAttribute("cbatch", detail.Batch);
|
||||||
bodyXml.setAttribute("cposition", detail.Position);
|
bodyXml.setAttribute("cposition", detail.Position);
|
||||||
bodyXml.setAttribute("cbarvcode", Arrival.ArrivalNo);
|
bodyXml.setAttribute("cbarvcode", Arrival.ArrivalNo);
|
||||||
|
bodyXml.setAttribute("dbarvdate", Arrival.ArrivalDate);
|
||||||
bodyXml.setAttribute("ipurarriveid", Arrival.ArrivalId);
|
bodyXml.setAttribute("ipurarriveid", Arrival.ArrivalId);
|
||||||
bodyXml.setAttribute("iarrsid", detail.SorceDetailId);
|
bodyXml.setAttribute("iarrsid", detail.SorceDetailId);
|
||||||
bodyXml.setAttribute("darvdate", DateTime.Today.ToShortDateString());
|
bodyXml.setAttribute("darvdate", DateTime.Today.ToShortDateString());
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
<MenuItem to="/inventoryerror" name="4-3">异常单据查询</MenuItem>
|
<MenuItem to="/inventoryerror" name="4-3">异常单据查询</MenuItem>
|
||||||
<MenuItem to="/inventoryMaterialAppVouch" name="4-4">领料单查询</MenuItem>
|
<MenuItem to="/inventoryMaterialAppVouch" name="4-4">领料单查询</MenuItem>
|
||||||
<MenuItem to="/inventorypick" name="4-5">生产领料需求查询</MenuItem>
|
<MenuItem to="/inventorypick" name="4-5">生产领料需求查询</MenuItem>
|
||||||
|
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
|
||||||
</MenuGroup>
|
</MenuGroup>
|
||||||
</Submenu>
|
</Submenu>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
@@ -20,4 +20,7 @@ export const getInventorypo=(info)=>{
|
|||||||
export const getPick=(info)=>{
|
export const getPick=(info)=>{
|
||||||
return axios.post('/api/ProductOrder/Pick',info)
|
return axios.post('/api/ProductOrder/Pick',info)
|
||||||
}
|
}
|
||||||
|
export const QmError=(info)=>{
|
||||||
|
return axios.post('/api/Whreport/QmError',info)
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import inventoryrrival from '@/bill/inventory-arrival.vue'
|
|||||||
import inventoryerror from '@/bill/inventory-error.vue'
|
import inventoryerror from '@/bill/inventory-error.vue'
|
||||||
import inventoryMaterialAppVouch from '@/views/inventory-materialAppVouch.vue'
|
import inventoryMaterialAppVouch from '@/views/inventory-materialAppVouch.vue'
|
||||||
import inventorypick from '@/views/inventory-pick.vue'
|
import inventorypick from '@/views/inventory-pick.vue'
|
||||||
|
import inventoryQmerror from '@/views/inventory-Qmerror.vue'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
@@ -33,4 +34,5 @@ export default [
|
|||||||
{ path: '/inventoryerror', component: inventoryerror },
|
{ path: '/inventoryerror', component: inventoryerror },
|
||||||
{ path: '/inventoryMaterialAppVouch', component: inventoryMaterialAppVouch },
|
{ path: '/inventoryMaterialAppVouch', component: inventoryMaterialAppVouch },
|
||||||
{ path: '/inventorypick', component: inventorypick },
|
{ path: '/inventorypick', component: inventorypick },
|
||||||
|
{ path: '/inventoryQmerror', component: inventoryQmerror },
|
||||||
]
|
]
|
||||||
|
|||||||
160
NX.ERP.Webapp/src/views/inventory-Qmerror.vue
Normal file
160
NX.ERP.Webapp/src/views/inventory-Qmerror.vue
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<h4>不良品处理问题单据</h4>
|
||||||
|
<Table style="margin-top: 20px" size="small" border :columns="columns" :data="pagedData"> </Table>
|
||||||
|
|
||||||
|
<Page
|
||||||
|
style="margin-top: 20px"
|
||||||
|
:current="pageNo"
|
||||||
|
:page-size="pageSize"
|
||||||
|
:total="total"
|
||||||
|
:page-size-opts="PageSizeOpts"
|
||||||
|
@on-change="handlePagechange"
|
||||||
|
@on-page-size-change="handlePageSize"
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
show-total
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { QmError } from '@/api/pmc'
|
||||||
|
import { pageingData, export_col_to_excel, dateFormatFull, dateFormat, sortByKey } from '@/libs/tools'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
PageSizeOpts: [10, 15, 20, 30],
|
||||||
|
pageNo: 1,
|
||||||
|
strfilter: '',
|
||||||
|
multiple: false,
|
||||||
|
pageSize: 15,
|
||||||
|
datas: [],
|
||||||
|
filter: {
|
||||||
|
inv_codes: '',
|
||||||
|
inv_std: '',
|
||||||
|
so_code: '',
|
||||||
|
dates: [],
|
||||||
|
by_finish: false
|
||||||
|
},
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: '应退存货编码',
|
||||||
|
align: 'center',
|
||||||
|
key: 'qminvcode',
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '存货名称',
|
||||||
|
align: 'center',
|
||||||
|
key: 'CINVNAME',
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
title: '被错误关联存货',
|
||||||
|
align: 'center',
|
||||||
|
key: 'poinvcode',
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '不良品处理单',
|
||||||
|
align: 'center',
|
||||||
|
key: 'CREJECTCODE'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '退货单号',
|
||||||
|
align: 'center',
|
||||||
|
key: 'cCode',
|
||||||
|
className: 'demo-table-info-new'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '红字入库单号',
|
||||||
|
align: 'center',
|
||||||
|
key: 'rkcCode'
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
total() {
|
||||||
|
return this.datas.length
|
||||||
|
},
|
||||||
|
pagedData() {
|
||||||
|
return pageingData(this.datas, this.pageSize, this.pageNo)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
this.loadData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handelExport() {
|
||||||
|
export_col_to_excel(this.columns, this.datas)
|
||||||
|
},
|
||||||
|
handleClick() {
|
||||||
|
this.loadData()
|
||||||
|
},
|
||||||
|
async loadData() {
|
||||||
|
|
||||||
|
let resp = await QmError({})
|
||||||
|
this.pageNo = 1
|
||||||
|
this.datas = resp.data.data
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
handlePagechange(page) {
|
||||||
|
this.pageNo = page
|
||||||
|
},
|
||||||
|
handlePageSize(pageSize) {
|
||||||
|
this.pageSize = pageSize
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
|
<style >
|
||||||
|
h3 {
|
||||||
|
margin: 40px 0 0;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table .demo-table-info-row td {
|
||||||
|
background-color: #2db7f5;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.ivu-table .demo-table-error-row td {
|
||||||
|
background-color: #ff6600;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table td.demo-table-info-old {
|
||||||
|
color: #2db7f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table td.demo-table-info-new {
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
.ivu-table td.demo-table-info-ex {
|
||||||
|
color: #187;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
padding: 10px 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user