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 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
|
||||
";
|
||||
|
||||
|
||||
@@ -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,37 +36,26 @@
|
||||
</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 vUpLoad from "@/bill/PrintView";
|
||||
import { pageingData, export_col_to_excel, sortByKey } from "@/libs/tools";
|
||||
export default {
|
||||
import {
|
||||
Voucherror
|
||||
} from "@/api/Finance";
|
||||
//import vUpLoad from "@/bill/PrintView";
|
||||
import {
|
||||
pageingData,
|
||||
export_col_to_excel,
|
||||
sortByKey
|
||||
} from "@/libs/tools";
|
||||
export default {
|
||||
//components:{vUpLoad},
|
||||
data() {
|
||||
return {
|
||||
@@ -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;
|
||||
}
|
||||
},
|
||||
@@ -232,52 +214,59 @@ export default {
|
||||
this.pageSize = pageSize;
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style >
|
||||
h3 {
|
||||
<style>
|
||||
h3 {
|
||||
margin: 40px 0 0;
|
||||
}
|
||||
ul {
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
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;
|
||||
color: #fff;
|
||||
}
|
||||
.ivu-table .demo-table-error-row td {
|
||||
}
|
||||
|
||||
.ivu-table .demo-table-error-row td {
|
||||
background-color: #ff6600;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.ivu-table td.demo-table-info-old {
|
||||
.ivu-table td.demo-table-info-old {
|
||||
color: #2db7f5;
|
||||
}
|
||||
}
|
||||
|
||||
.ivu-table td.demo-table-info-new {
|
||||
.ivu-table td.demo-table-info-new {
|
||||
color: #ff6600;
|
||||
font-size: 12px;
|
||||
}
|
||||
.ivu-table td.demo-table-info-nom {
|
||||
}
|
||||
|
||||
.ivu-table td.demo-table-info-nom {
|
||||
font-size: 11px;
|
||||
}
|
||||
.ivu-table td.demo-table-info-ex {
|
||||
}
|
||||
|
||||
.ivu-table td.demo-table-info-ex {
|
||||
color: #187;
|
||||
font-weight: 600;
|
||||
}
|
||||
body {
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 10px 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user