This commit is contained in:
杰 朱
2022-04-11 13:33:53 +08:00
parent f4b34807a9
commit 480efb7334
2 changed files with 239 additions and 241 deletions

View File

@@ -103,6 +103,15 @@ namespace NX.ERP.U8.Finance
left join Inventory d WITH (NOLOCK) on b.InvCode= d.cInvCode
left join Inventory t WITH (NOLOCK) on a.InvCode= t.cInvCode
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
";

View File

@@ -11,27 +11,14 @@
<label>异常类型:</label>
<div>
<Select v-model="filter.by_finish" multiple>
<Option
v-for="item in stateList"
:value="item.value"
:key="item.value"
>{{ item.label }}</Option
>
<Option v-for="item in stateList" :value="item.value" :key="item.value">{{ item.label }}</Option>
</Select>
</div>
</Col>
<Col span="4">
<Button
size="large"
type="primary"
icon="ios-search"
@click="handleClick"
>查询</Button
>
<Button size="large" type="success" @click="handelExport"
>导出</Button
>
<Button size="large" type="primary" icon="ios-search" @click="handleClick">查询</Button>
<Button size="large" type="success" @click="handelExport">导出</Button>
</Col>
</Row>
</div>
@@ -49,36 +36,25 @@
</Row>
</div>
<div id="tb">
<Table
style="margin-top: 20px"
:loading="loading"
size="small"
border
:columns="columns"
:data="pagedData"
>
<Table style="margin-top: 20px" :loading="loading" size="small" border :columns="columns" :data="pagedData">
</Table>
</div>
<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"
/>
<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 { Voucherror } from "@/api/Finance";
import {
Voucherror
} from "@/api/Finance";
//import vUpLoad from "@/bill/PrintView";
import { pageingData, export_col_to_excel, sortByKey } from "@/libs/tools";
import {
pageingData,
export_col_to_excel,
sortByKey
} from "@/libs/tools";
export default {
//components:{vUpLoad},
data() {
@@ -93,8 +69,7 @@ export default {
pageSize: 15,
datas: [],
ccode: "",
stateList: [
{
stateList: [{
value: "超领",
label: "超领",
},
@@ -102,6 +77,10 @@ export default {
value: "缺领",
label: "缺领",
},
{
value: "无应领",
label: "无应领",
},
],
filter: {
@@ -111,8 +90,7 @@ export default {
mo_codes: "",
},
columns: [
{
columns: [{
title: "生产订单号",
align: "center",
key: "MoCode",
@@ -172,14 +150,20 @@ export default {
render: (h, params) => {
if (params.row.error === "超领") {
return h(
"span",
{ style: { color: "#ff6600" } },
"span", {
style: {
color: "#ff6600"
}
},
params.row.error
);
} else {
return h(
"span",
{ style: { color: "#2db7f5" } },
"span", {
style: {
color: "#2db7f5"
}
},
params.row.error
);
}
@@ -209,10 +193,9 @@ export default {
async loadData() {
try {
let _filert = {
ccode:
this.filter.mo_codes !== ""
? this.filter.mo_codes.split(/[,\s\n,]/)
: null,
ccode: this.filter.mo_codes !== "" ?
this.filter.mo_codes.split(/[,\s\n,]/) :
null,
error: this.filter.by_finish,
};
this.loading = true;
@@ -220,8 +203,7 @@ export default {
this.pageNo = 1;
this.datas = sortByKey(resp.data.data, "MoCode");
// this.datas = resp.data.data;
} catch (error) {
} finally {
} catch (error) {} finally {
this.loading = false;
}
},
@@ -241,14 +223,17 @@ export default {
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
@@ -257,6 +242,7 @@ a {
background-color: #2db7f5;
color: #fff;
}
.ivu-table .demo-table-error-row td {
background-color: #ff6600;
color: #fff;
@@ -270,13 +256,16 @@ a {
color: #ff6600;
font-size: 12px;
}
.ivu-table td.demo-table-info-nom {
font-size: 11px;
}
.ivu-table td.demo-table-info-ex {
color: #187;
font-weight: 600;
}
body {
padding: 10px 1;
}