1
This commit is contained in:
@@ -103,6 +103,15 @@ namespace NX.ERP.U8.Finance
|
|||||||
left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode
|
left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode
|
||||||
left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode
|
left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode
|
||||||
where a.IssQty < a.Qty*(b.QualifiedInQty/b.qty)
|
where a.IssQty < a.Qty*(b.QualifiedInQty/b.qty)
|
||||||
|
|
||||||
|
|
||||||
|
union all
|
||||||
|
select c.MoCode,b.SortSeq,b.InvCode,d.cInvName,a.InvCode as InvCode1, t.cInvName as cInvName1,t.cInvStd,a.Qty , a.IssQty ,'无应领' as error from mom_moallocate a WITH (NOLOCK)
|
||||||
|
left join mom_orderdetail b WITH (NOLOCK) on a.MoDId= b.MoDId
|
||||||
|
left join mom_order c WITH (NOLOCK) on b.MoId= c.MoId
|
||||||
|
left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode
|
||||||
|
left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode
|
||||||
|
where a.Qty=0 and b.QualifiedInQty>0
|
||||||
) mm
|
) mm
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|||||||
@@ -11,27 +11,14 @@
|
|||||||
<label>异常类型:</label>
|
<label>异常类型:</label>
|
||||||
<div>
|
<div>
|
||||||
<Select v-model="filter.by_finish" multiple>
|
<Select v-model="filter.by_finish" multiple>
|
||||||
<Option
|
<Option v-for="item in stateList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
||||||
v-for="item in stateList"
|
|
||||||
:value="item.value"
|
|
||||||
:key="item.value"
|
|
||||||
>{{ item.label }}</Option
|
|
||||||
>
|
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
<Col span="4">
|
<Col span="4">
|
||||||
<Button
|
<Button size="large" type="primary" icon="ios-search" @click="handleClick">查询</Button>
|
||||||
size="large"
|
<Button size="large" type="success" @click="handelExport">导出</Button>
|
||||||
type="primary"
|
|
||||||
icon="ios-search"
|
|
||||||
@click="handleClick"
|
|
||||||
>查询</Button
|
|
||||||
>
|
|
||||||
<Button size="large" type="success" @click="handelExport"
|
|
||||||
>导出</Button
|
|
||||||
>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,37 +36,26 @@
|
|||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
<div id="tb">
|
<div id="tb">
|
||||||
<Table
|
<Table style="margin-top: 20px" :loading="loading" size="small" border :columns="columns" :data="pagedData">
|
||||||
style="margin-top: 20px"
|
|
||||||
:loading="loading"
|
|
||||||
size="small"
|
|
||||||
border
|
|
||||||
:columns="columns"
|
|
||||||
:data="pagedData"
|
|
||||||
>
|
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
<Page
|
<Page style="margin-top: 20px" :current="pageNo" :page-size="pageSize" :total="total" :page-size-opts="PageSizeOpts"
|
||||||
style="margin-top: 20px"
|
@on-change="handlePagechange" @on-page-size-change="handlePageSize" show-elevator show-sizer show-total
|
||||||
:current="pageNo"
|
size="small" />
|
||||||
: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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Voucherror } from "@/api/Finance";
|
import {
|
||||||
//import vUpLoad from "@/bill/PrintView";
|
Voucherror
|
||||||
import { pageingData, export_col_to_excel, sortByKey } from "@/libs/tools";
|
} from "@/api/Finance";
|
||||||
export default {
|
//import vUpLoad from "@/bill/PrintView";
|
||||||
|
import {
|
||||||
|
pageingData,
|
||||||
|
export_col_to_excel,
|
||||||
|
sortByKey
|
||||||
|
} from "@/libs/tools";
|
||||||
|
export default {
|
||||||
//components:{vUpLoad},
|
//components:{vUpLoad},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -93,8 +69,7 @@ export default {
|
|||||||
pageSize: 15,
|
pageSize: 15,
|
||||||
datas: [],
|
datas: [],
|
||||||
ccode: "",
|
ccode: "",
|
||||||
stateList: [
|
stateList: [{
|
||||||
{
|
|
||||||
value: "超领",
|
value: "超领",
|
||||||
label: "超领",
|
label: "超领",
|
||||||
},
|
},
|
||||||
@@ -102,6 +77,10 @@ export default {
|
|||||||
value: "缺领",
|
value: "缺领",
|
||||||
label: "缺领",
|
label: "缺领",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: "无应领",
|
||||||
|
label: "无应领",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
filter: {
|
filter: {
|
||||||
@@ -111,8 +90,7 @@ export default {
|
|||||||
mo_codes: "",
|
mo_codes: "",
|
||||||
},
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [{
|
||||||
{
|
|
||||||
title: "生产订单号",
|
title: "生产订单号",
|
||||||
align: "center",
|
align: "center",
|
||||||
key: "MoCode",
|
key: "MoCode",
|
||||||
@@ -172,14 +150,20 @@ export default {
|
|||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.error === "超领") {
|
if (params.row.error === "超领") {
|
||||||
return h(
|
return h(
|
||||||
"span",
|
"span", {
|
||||||
{ style: { color: "#ff6600" } },
|
style: {
|
||||||
|
color: "#ff6600"
|
||||||
|
}
|
||||||
|
},
|
||||||
params.row.error
|
params.row.error
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return h(
|
return h(
|
||||||
"span",
|
"span", {
|
||||||
{ style: { color: "#2db7f5" } },
|
style: {
|
||||||
|
color: "#2db7f5"
|
||||||
|
}
|
||||||
|
},
|
||||||
params.row.error
|
params.row.error
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -209,10 +193,9 @@ export default {
|
|||||||
async loadData() {
|
async loadData() {
|
||||||
try {
|
try {
|
||||||
let _filert = {
|
let _filert = {
|
||||||
ccode:
|
ccode: this.filter.mo_codes !== "" ?
|
||||||
this.filter.mo_codes !== ""
|
this.filter.mo_codes.split(/[,\s\n,]/) :
|
||||||
? this.filter.mo_codes.split(/[,\s\n,]/)
|
null,
|
||||||
: null,
|
|
||||||
error: this.filter.by_finish,
|
error: this.filter.by_finish,
|
||||||
};
|
};
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@@ -220,8 +203,7 @@ export default {
|
|||||||
this.pageNo = 1;
|
this.pageNo = 1;
|
||||||
this.datas = sortByKey(resp.data.data, "MoCode");
|
this.datas = sortByKey(resp.data.data, "MoCode");
|
||||||
// this.datas = resp.data.data;
|
// this.datas = resp.data.data;
|
||||||
} catch (error) {
|
} catch (error) {} finally {
|
||||||
} finally {
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -232,52 +214,59 @@ export default {
|
|||||||
this.pageSize = pageSize;
|
this.pageSize = pageSize;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
<style >
|
<style>
|
||||||
h3 {
|
h3 {
|
||||||
margin: 40px 0 0;
|
margin: 40px 0 0;
|
||||||
}
|
}
|
||||||
ul {
|
|
||||||
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
li {
|
|
||||||
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
a {
|
|
||||||
color: #42b983;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ivu-table .demo-table-info-row td {
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table .demo-table-info-row td {
|
||||||
background-color: #2db7f5;
|
background-color: #2db7f5;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.ivu-table .demo-table-error-row td {
|
|
||||||
|
.ivu-table .demo-table-error-row td {
|
||||||
background-color: #ff6600;
|
background-color: #ff6600;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ivu-table td.demo-table-info-old {
|
.ivu-table td.demo-table-info-old {
|
||||||
color: #2db7f5;
|
color: #2db7f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ivu-table td.demo-table-info-new {
|
.ivu-table td.demo-table-info-new {
|
||||||
color: #ff6600;
|
color: #ff6600;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.ivu-table td.demo-table-info-nom {
|
|
||||||
|
.ivu-table td.demo-table-info-nom {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
.ivu-table td.demo-table-info-ex {
|
|
||||||
|
.ivu-table td.demo-table-info-ex {
|
||||||
color: #187;
|
color: #187;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
body {
|
|
||||||
|
body {
|
||||||
padding: 10px 1;
|
padding: 10px 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user