跟单加默认查询

This commit is contained in:
杰 朱
2021-05-18 14:52:39 +08:00
parent e5774f9b86
commit 674688f0f1
9 changed files with 451 additions and 104 deletions

View File

@@ -19,6 +19,13 @@ export const numberFormat = (data) => {
return ''
}
}
export const numberFormat2 = (data) => {
if (data != null) {
return data.Number(num.toString().match(/^\d+(?:\.\d{0,2})?/));
} else {
return ''
}
}
export const edit2 = (k, data) => {
var aa = axios.post('/api/erp/wmsgz1', { date: k, duration: data })

View File

@@ -25,6 +25,7 @@
<Table
style="margin-top: 20px"
size="small"
:loading="loading"
border
:columns="columns"
:data="pagedData"
@@ -53,6 +54,7 @@ import { pageingData, export_col_to_excel,sortByKey,numberFormat } from "@/libs/
export default {
data() {
return {
loading: false,
PageSizeOpts: [10, 15, 20, 30],
pageNo: 1,
strfilter: "",
@@ -77,15 +79,15 @@ export default {
{
title: "行号",
align: "center",
key: "SortSeq",
key: "sort_seq",
fixed:"left",
width: 80,
className: "demo-table-info-new",
},
{
title: "产品编码",
align: "center",
key: "InvCode",
key: "inv_code",
width: 100,
fixed:"left",
className: "demo-table-info-new",
@@ -93,7 +95,7 @@ export default {
{
title: "产品名称",
align: "center",
key: "cInvName",
key: "c_inv_name",
width: 150,
fixed:"left",
className: "demo-table-info-new",
@@ -101,34 +103,34 @@ export default {
{
title: "产品规格",
align: "center",
key: "cInvStd",
key: "c_inv_std",
width: 180,
fixed:"left",
className: "demo-table-info-new",
},
{
title: "产品单位",
align: "center",
key: "cComUnitName",
key: "c_com_unit_name",
fixed:"left",
width: 100,
className: "demo-table-info-new",
},
{
title: "投产量",
align: "center",
key: "Qty",
key: "qty",
fixed:"left",
width: 80,
className: "demo-table-info-new",
},
{
title: "未完成",
align: "center",
key: "QualifiedInQty",
key: "qualified_in_qty",
fixed:"left",
width: 80,
className: "demo-table-info-new",
},
{
title: "子件编码",
@@ -136,6 +138,7 @@ export default {
width: 100,
key: "invcode1",
className: "demo-table-info-old",
fixed:"left",
},
{
title: "子件名称",
@@ -143,27 +146,29 @@ export default {
width: 150,
key: "cinvname1",
className: "demo-table-info-old",
fixed:"left",
},
{
title: "子件规格",
width: 200,
align: "center",
key: "cinvstd1",
className: "demo-table-info-old",
fixed:"left",
},
{
title: "子件单位",
width: 100,
align: "center",
key: "cComUnitName1",
className: "demo-table-info-old",
key: "c_com_unit_name1",
},
{
title: "子件属性",
align: "center",
key: "std",
width: 100,
className: "demo-table-info-old",
},
{
title: "单行需求",
@@ -176,6 +181,7 @@ export default {
align: "center",
key: "issqty",
width: 110,
},
{
title: "单行未领",
@@ -275,13 +281,14 @@ export default {
this.filter.inv_codes !== ""
? this.filter.inv_codes.split(/[,\s\n,]/)
: [];
this.loading=true;
let resp = await getInventorymom(_filetr);
this.pageNo = 1;
this.datas = resp.data.data;
} catch (error) {}
finally{this.loading=false;}
},
handlePagechange(page) {
this.pageNo = page;

View File

@@ -129,7 +129,12 @@ export default {
key: 'iQuantity'
},
{
title: '发货时间',
title: '预计发货日期',
align: 'center',
key: 'dPreDate'
},
{
title: '发货日期',
align: 'center',
key: 'fhdDate',
render: (h, params) => {
@@ -155,7 +160,7 @@ export default {
title: '在制量',
align: 'center',
key: 'momqty'
}
}
]
}
},