|
|
@ -324,6 +324,13 @@ |
|
|
searchFunctionButtonList, |
|
|
searchFunctionButtonList, |
|
|
|
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
} from "@/api/sysLanguage.js" |
|
|
|
|
|
import { |
|
|
|
|
|
saveTableDefaultList, |
|
|
|
|
|
getTableDefaultListLanguage, |
|
|
|
|
|
getTableUserListLanguage, |
|
|
|
|
|
removerDefault, |
|
|
|
|
|
removerUser |
|
|
|
|
|
} from "@/api/table.js" |
|
|
var functionId='102001002'; |
|
|
var functionId='102001002'; |
|
|
export default { |
|
|
export default { |
|
|
//查询-SAP采购订单 |
|
|
//查询-SAP采购订单 |
|
|
@ -342,10 +349,24 @@ |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tagNo:'', |
|
|
|
|
|
|
|
|
visible: false, |
|
|
|
|
|
queryTable: { |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: "mainTable", |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
}, |
|
|
|
|
|
// 用户table 查询参数 |
|
|
|
|
|
queryTableUser: { |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: "mainTable", |
|
|
|
|
|
status: true, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
}, |
|
|
|
|
|
tagNo: '', |
|
|
// 导出 start |
|
|
// 导出 start |
|
|
exportData: [], |
|
|
exportData: [], |
|
|
exportName: "SAP采购订单"+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
|
|
|
|
|
exportName: "SAP采购订单" + this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
exportHeader: ["SAP采购订单"], |
|
|
exportHeader: ["SAP采购订单"], |
|
|
exportFooter: [], |
|
|
exportFooter: [], |
|
|
// 导出 end |
|
|
// 导出 end |
|
|
@ -364,9 +385,9 @@ |
|
|
user: this.$store.state.user.name |
|
|
user: this.$store.state.user.name |
|
|
}, |
|
|
}, |
|
|
saveData: { |
|
|
saveData: { |
|
|
site:'', |
|
|
|
|
|
rollNo:'', |
|
|
|
|
|
suppRollNo:'', |
|
|
|
|
|
|
|
|
site: '', |
|
|
|
|
|
rollNo: '', |
|
|
|
|
|
suppRollNo: '', |
|
|
}, |
|
|
}, |
|
|
dataForm: { |
|
|
dataForm: { |
|
|
site: '', |
|
|
site: '', |
|
|
@ -386,10 +407,10 @@ |
|
|
fGPartNo: '', |
|
|
fGPartNo: '', |
|
|
referencePartDesc: '', |
|
|
referencePartDesc: '', |
|
|
checked: true, |
|
|
checked: true, |
|
|
referenceSupplierID:'', |
|
|
|
|
|
referenceSupplierName:'', |
|
|
|
|
|
|
|
|
referenceSupplierID: '', |
|
|
|
|
|
referenceSupplierName: '', |
|
|
XX: '', |
|
|
XX: '', |
|
|
suppRollNo:'', |
|
|
|
|
|
|
|
|
suppRollNo: '', |
|
|
}, |
|
|
}, |
|
|
sum1: '', |
|
|
sum1: '', |
|
|
sum2: '', |
|
|
sum2: '', |
|
|
@ -403,9 +424,9 @@ |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableOrderNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableOrderNo', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "orderNo", |
|
|
columnProp: "orderNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -421,9 +442,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableOrderDate', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableOrderDate', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "orderDate", |
|
|
columnProp: "orderDate", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -439,9 +460,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TablePlanReceiptDate', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TablePlanReceiptDate', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "planReceiptDate", |
|
|
columnProp: "planReceiptDate", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -457,9 +478,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableSupplierID', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableSupplierID', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "supplierID", |
|
|
columnProp: "supplierID", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -475,9 +496,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableStatus', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableStatus', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "status", |
|
|
columnProp: "status", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -493,9 +514,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableSupplierName', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableSupplierName', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "supplierName", |
|
|
columnProp: "supplierName", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -511,9 +532,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableOrderItemNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableOrderItemNo', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "orderItemNo", |
|
|
columnProp: "orderItemNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -529,9 +550,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TablePartNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TablePartNo', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "partNo", |
|
|
columnProp: "partNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -547,9 +568,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TablePartDescription', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TablePartDescription', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "partDescription", |
|
|
columnProp: "partDescription", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -565,9 +586,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableQuantity', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableQuantity', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "quantity", |
|
|
columnProp: "quantity", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -583,9 +604,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableCancelledFlag', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableCancelledFlag', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "cancelledFlag", |
|
|
columnProp: "cancelledFlag", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -601,9 +622,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableSAPOrderNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableSAPOrderNo', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "sAPOrderNo", |
|
|
columnProp: "sAPOrderNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -619,9 +640,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032TableSite', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002TableSite', |
|
|
|
|
|
tableId: "102001002Table", |
|
|
tableName: "查询SAP采购订单表", |
|
|
tableName: "查询SAP采购订单表", |
|
|
columnProp: "site", |
|
|
columnProp: "site", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -639,9 +660,9 @@ |
|
|
columnList1: [ |
|
|
columnList1: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table1Number', |
|
|
|
|
|
tableId: "6032Table1", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table1Number', |
|
|
|
|
|
tableId: "102001002Table1", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
columnProp: "number", |
|
|
columnProp: "number", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -657,9 +678,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table1RollQty', |
|
|
|
|
|
tableId: "6032Table1", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table1RollQty', |
|
|
|
|
|
tableId: "102001002Table1", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
columnProp: "rollQty", |
|
|
columnProp: "rollQty", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -675,9 +696,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table1RollNumber', |
|
|
|
|
|
tableId: "6032Table1", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table1RollNumber', |
|
|
|
|
|
tableId: "102001002Table1", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
columnProp: "rollNumber", |
|
|
columnProp: "rollNumber", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -693,9 +714,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table1ALLRollQty', |
|
|
|
|
|
tableId: "6032Table1", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table1ALLRollQty', |
|
|
|
|
|
tableId: "102001002Table1", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
tableName: "查询SAP采购订单待分卷左表", |
|
|
columnProp: "allRollQty", |
|
|
columnProp: "allRollQty", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -713,9 +734,9 @@ |
|
|
columnList2: [ |
|
|
columnList2: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table2PartNo', |
|
|
|
|
|
tableId: "6032Table2", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table2PartNo', |
|
|
|
|
|
tableId: "102001002Table2", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
columnProp: "partNo", |
|
|
columnProp: "partNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -731,9 +752,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table2PartDescription', |
|
|
|
|
|
tableId: "6032Table2", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table2PartDescription', |
|
|
|
|
|
tableId: "102001002Table2", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
columnProp: "partDescription", |
|
|
columnProp: "partDescription", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -749,9 +770,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table2OrderItemNo', |
|
|
|
|
|
tableId: "6032Table2", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table2OrderItemNo', |
|
|
|
|
|
tableId: "102001002Table2", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
columnProp: "orderItemNo", |
|
|
columnProp: "orderItemNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -767,9 +788,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table2Quantity', |
|
|
|
|
|
tableId: "6032Table2", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table2Quantity', |
|
|
|
|
|
tableId: "102001002Table2", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
tableName: "查询SAP采购订单待分卷右表", |
|
|
columnProp: "quantity", |
|
|
columnProp: "quantity", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -787,9 +808,9 @@ |
|
|
columnList3: [ |
|
|
columnList3: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3RollNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3RollNo', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "rollNo", |
|
|
columnProp: "rollNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -805,9 +826,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3RollQty', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3RollQty', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "rollQty", |
|
|
columnProp: "rollQty", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -823,9 +844,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3SuppDeliveryNote', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3SuppDeliveryNote', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "suppDeliveryNote", |
|
|
columnProp: "suppDeliveryNote", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -841,9 +862,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3RollDate', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3RollDate', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "rollDate", |
|
|
columnProp: "rollDate", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -859,9 +880,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3CreatedDate', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3CreatedDate', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "createdDate", |
|
|
columnProp: "createdDate", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -877,9 +898,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3CreatedBy', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3CreatedBy', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "createdBy", |
|
|
columnProp: "createdBy", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -895,9 +916,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3SuppRollNoFlag', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3SuppRollNoFlag', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "suppRollNoFlag", |
|
|
columnProp: "suppRollNoFlag", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -913,9 +934,9 @@ |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 6032, |
|
|
|
|
|
serialNumber: '6032Table3SuppRollNo', |
|
|
|
|
|
tableId: "6032Table", |
|
|
|
|
|
|
|
|
functionId: 102001002, |
|
|
|
|
|
serialNumber: '102001002Table3SuppRollNo', |
|
|
|
|
|
tableId: "102001002Table3", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
tableName: "查询SAP采购订单已分卷表", |
|
|
columnProp: "suppRollNo", |
|
|
columnProp: "suppRollNo", |
|
|
headerAlign: "center", |
|
|
headerAlign: "center", |
|
|
@ -936,74 +957,74 @@ |
|
|
menuId: this.$route.meta.menuId, |
|
|
menuId: this.$route.meta.menuId, |
|
|
//this.labels |
|
|
//this.labels |
|
|
labels: { |
|
|
labels: { |
|
|
site:'工厂编码:', |
|
|
|
|
|
coNo:'采购订单号:', |
|
|
|
|
|
orderDate:'订单日期', |
|
|
|
|
|
to:'至', |
|
|
|
|
|
isRolls:'是否分卷', |
|
|
|
|
|
yes:'是', |
|
|
|
|
|
no:'否', |
|
|
|
|
|
orderRef1:'关联单号1:', |
|
|
|
|
|
orderRef3:'关联单号3:', |
|
|
|
|
|
supplierID:'供应商编码:', |
|
|
|
|
|
supplierName:'供应商名称:', |
|
|
|
|
|
partNo:'物料编码:', |
|
|
|
|
|
partDescription:'物料名称:', |
|
|
|
|
|
spec:'规格型号:', |
|
|
|
|
|
receive:'接收日期:', |
|
|
|
|
|
suppRollNo:'供应商批次号:', |
|
|
|
|
|
suppDeliveryNote:'送货单号:', |
|
|
|
|
|
quantity:'订单数量', |
|
|
|
|
|
rollQty:'每卷数量:', |
|
|
|
|
|
rollNumber:'卷数:', |
|
|
|
|
|
customerID:'客户编号:', |
|
|
|
|
|
fGPartNo:'产品编码:', |
|
|
|
|
|
C_No:'材料编码', |
|
|
|
|
|
referencePartDesc:'参照名称:', |
|
|
|
|
|
referenceSupplierID:'供应商编码:', |
|
|
|
|
|
referenceSupplierName:'供应商名称:', |
|
|
|
|
|
case:'操作', |
|
|
|
|
|
toRoll:'待分卷', |
|
|
|
|
|
hasRoll:'已分卷', |
|
|
|
|
|
deleteRoll:'删除卷', |
|
|
|
|
|
sumQty:'合计:卷数', |
|
|
|
|
|
allQty:'总数量', |
|
|
|
|
|
supplierBatchIn:'供应商批号录入', |
|
|
|
|
|
rollNo:'卷号', |
|
|
|
|
|
orderNoAsk:'请输入采购订单号!', |
|
|
|
|
|
supplierIDAsk:'请输入供应商编码!', |
|
|
|
|
|
partNoAsk:'请输入材料编码!', |
|
|
|
|
|
suppDeliveryNoteAsk:'请输入送货单号!', |
|
|
|
|
|
rollQtyAsk:'请输入正确的每卷数量!', |
|
|
|
|
|
rollNumberAsk:'请输入正确的卷数!', |
|
|
|
|
|
deleteComfirm:'确认删除记录吗?', |
|
|
|
|
|
printBug:'打印机连接失败!', |
|
|
|
|
|
noToRoll:'没有待分卷信息!', |
|
|
|
|
|
success:'操作成功', |
|
|
|
|
|
customerIDBug:'该客户编码不存在或不可用', |
|
|
|
|
|
partNoBug:'该物料编码不存在或不可用', |
|
|
|
|
|
supplierIDBug:'该供应商不存在或不可用', |
|
|
|
|
|
siteAsk:'请输入工厂编码!', |
|
|
|
|
|
rollNoAsk:'请输入卷号!', |
|
|
|
|
|
suppRollNoAsk:'请输入供应商批号!', |
|
|
|
|
|
rollNoBug:'该卷号不存在,请重新输入!', |
|
|
|
|
|
suppRollNoConfirm:'该卷已经录入供应商批号,确认要重新录入吗?', |
|
|
|
|
|
sumRollQtySmallConfirm:'累计分切数量小于订单数量,是否继续?', |
|
|
|
|
|
sumRollQtyBigConfirm:'累计分切数量小于订单数量,是否继续?', |
|
|
|
|
|
changeRollConfirm:'切换订单将会清空待分卷信息,是否继续?', |
|
|
|
|
|
|
|
|
site: '工厂编码:', |
|
|
|
|
|
coNo: '采购订单号:', |
|
|
|
|
|
orderDate: '订单日期', |
|
|
|
|
|
to: '至', |
|
|
|
|
|
isRolls: '是否分卷', |
|
|
|
|
|
yes: '是', |
|
|
|
|
|
no: '否', |
|
|
|
|
|
orderRef1: '关联单号1:', |
|
|
|
|
|
orderRef3: '关联单号3:', |
|
|
|
|
|
supplierID: '供应商编码:', |
|
|
|
|
|
supplierName: '供应商名称:', |
|
|
|
|
|
partNo: '物料编码:', |
|
|
|
|
|
partDescription: '物料名称:', |
|
|
|
|
|
spec: '规格型号:', |
|
|
|
|
|
receive: '接收日期:', |
|
|
|
|
|
suppRollNo: '供应商批次号:', |
|
|
|
|
|
suppDeliveryNote: '送货单号:', |
|
|
|
|
|
quantity: '订单数量', |
|
|
|
|
|
rollQty: '每卷数量:', |
|
|
|
|
|
rollNumber: '卷数:', |
|
|
|
|
|
customerID: '客户编号:', |
|
|
|
|
|
fGPartNo: '产品编码:', |
|
|
|
|
|
C_No: '材料编码', |
|
|
|
|
|
referencePartDesc: '参照名称:', |
|
|
|
|
|
referenceSupplierID: '供应商编码:', |
|
|
|
|
|
referenceSupplierName: '供应商名称:', |
|
|
|
|
|
case: '操作', |
|
|
|
|
|
toRoll: '待分卷', |
|
|
|
|
|
hasRoll: '已分卷', |
|
|
|
|
|
deleteRoll: '删除卷', |
|
|
|
|
|
sumQty: '合计:卷数', |
|
|
|
|
|
allQty: '总数量', |
|
|
|
|
|
supplierBatchIn: '供应商批号录入', |
|
|
|
|
|
rollNo: '卷号', |
|
|
|
|
|
orderNoAsk: '请输入采购订单号!', |
|
|
|
|
|
supplierIDAsk: '请输入供应商编码!', |
|
|
|
|
|
partNoAsk: '请输入材料编码!', |
|
|
|
|
|
suppDeliveryNoteAsk: '请输入送货单号!', |
|
|
|
|
|
rollQtyAsk: '请输入正确的每卷数量!', |
|
|
|
|
|
rollNumberAsk: '请输入正确的卷数!', |
|
|
|
|
|
deleteComfirm: '确认删除记录吗?', |
|
|
|
|
|
printBug: '打印机连接失败!', |
|
|
|
|
|
noToRoll: '没有待分卷信息!', |
|
|
|
|
|
success: '操作成功', |
|
|
|
|
|
customerIDBug: '该客户编码不存在或不可用', |
|
|
|
|
|
partNoBug: '该物料编码不存在或不可用', |
|
|
|
|
|
supplierIDBug: '该供应商不存在或不可用', |
|
|
|
|
|
siteAsk: '请输入工厂编码!', |
|
|
|
|
|
rollNoAsk: '请输入卷号!', |
|
|
|
|
|
suppRollNoAsk: '请输入供应商批号!', |
|
|
|
|
|
rollNoBug: '该卷号不存在,请重新输入!', |
|
|
|
|
|
suppRollNoConfirm: '该卷已经录入供应商批号,确认要重新录入吗?', |
|
|
|
|
|
sumRollQtySmallConfirm: '累计分切数量小于订单数量,是否继续?', |
|
|
|
|
|
sumRollQtyBigConfirm: '累计分切数量小于订单数量,是否继续?', |
|
|
|
|
|
changeRollConfirm: '切换订单将会清空待分卷信息,是否继续?', |
|
|
}, |
|
|
}, |
|
|
//this.buttons |
|
|
//this.buttons |
|
|
buttons:{ |
|
|
|
|
|
addRoll:'创建分卷', |
|
|
|
|
|
supplierBatchIn:'供应商批号录入', |
|
|
|
|
|
insert:'插入', |
|
|
|
|
|
autoPrint:'自动打印标签', |
|
|
|
|
|
close:'关闭', |
|
|
|
|
|
yes:'确定', |
|
|
|
|
|
cancel:'取消', |
|
|
|
|
|
search:'查询', |
|
|
|
|
|
download:'导出', |
|
|
|
|
|
save:'保存', |
|
|
|
|
|
|
|
|
buttons: { |
|
|
|
|
|
addRoll: '创建分卷', |
|
|
|
|
|
supplierBatchIn: '供应商批号录入', |
|
|
|
|
|
insert: '插入', |
|
|
|
|
|
autoPrint: '自动打印标签', |
|
|
|
|
|
close: '关闭', |
|
|
|
|
|
yes: '确定', |
|
|
|
|
|
cancel: '取消', |
|
|
|
|
|
search: '查询', |
|
|
|
|
|
download: '导出', |
|
|
|
|
|
save: '保存', |
|
|
}, |
|
|
}, |
|
|
queryButton: { |
|
|
queryButton: { |
|
|
functionId: functionId, |
|
|
functionId: functionId, |
|
|
@ -1026,28 +1047,28 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
getBaseData(val){ |
|
|
|
|
|
if (this.tagNo === 92){ |
|
|
|
|
|
|
|
|
getBaseData(val) { |
|
|
|
|
|
if (this.tagNo === 92) { |
|
|
this.dataForm.customerID = val.ConfigurationTemplateID |
|
|
this.dataForm.customerID = val.ConfigurationTemplateID |
|
|
this.getReferenceData(); |
|
|
this.getReferenceData(); |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 5){ |
|
|
|
|
|
|
|
|
if (this.tagNo === 5) { |
|
|
this.dataForm.fGPartNo = val.PartNo; |
|
|
this.dataForm.fGPartNo = val.PartNo; |
|
|
this.getReferenceData(); |
|
|
this.getReferenceData(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 获取基础数据列表 |
|
|
// 获取基础数据列表 |
|
|
getBaseList(val){ |
|
|
|
|
|
|
|
|
getBaseList(val) { |
|
|
this.tagNo = val |
|
|
this.tagNo = val |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
let strVal = ""; |
|
|
let strVal = ""; |
|
|
if (val === 5){ |
|
|
|
|
|
|
|
|
if (val === 5) { |
|
|
strVal = this.dataForm.fGPartNo |
|
|
strVal = this.dataForm.fGPartNo |
|
|
} |
|
|
} |
|
|
if (val === 92){ |
|
|
|
|
|
|
|
|
if (val === 92) { |
|
|
strVal = this.dataForm.customerID |
|
|
strVal = this.dataForm.customerID |
|
|
} |
|
|
} |
|
|
this.$refs.baseList.init(val,strVal) |
|
|
|
|
|
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
showModel(row) { |
|
|
showModel(row) { |
|
|
@ -1057,7 +1078,7 @@ |
|
|
this.sum3 = 0; |
|
|
this.sum3 = 0; |
|
|
this.sum4 = 0; |
|
|
this.sum4 = 0; |
|
|
// this.dataForm = JSON.parse(JSON.stringify(row)) |
|
|
// this.dataForm = JSON.parse(JSON.stringify(row)) |
|
|
this.dataForm={ |
|
|
|
|
|
|
|
|
this.dataForm = { |
|
|
site: row.site, |
|
|
site: row.site, |
|
|
orderNo: row.orderNo, |
|
|
orderNo: row.orderNo, |
|
|
orderItemNo: row.orderItemNo, |
|
|
orderItemNo: row.orderItemNo, |
|
|
@ -1073,7 +1094,7 @@ |
|
|
rollNumber: row.rollNumber, |
|
|
rollNumber: row.rollNumber, |
|
|
customerID: '无', |
|
|
customerID: '无', |
|
|
fGPartNo: '无', |
|
|
fGPartNo: '无', |
|
|
referencePartDesc:'', |
|
|
|
|
|
|
|
|
referencePartDesc: '', |
|
|
checked: true, |
|
|
checked: true, |
|
|
XX: '', |
|
|
XX: '', |
|
|
}; |
|
|
}; |
|
|
@ -1121,19 +1142,19 @@ |
|
|
insertData() { |
|
|
insertData() { |
|
|
if (this.dataForm.suppDeliveryNote == '' || this.dataForm.suppDeliveryNote == null) { |
|
|
if (this.dataForm.suppDeliveryNote == '' || this.dataForm.suppDeliveryNote == null) { |
|
|
this.$alert(this.labels.suppDeliveryNoteAsk, '错误', { |
|
|
this.$alert(this.labels.suppDeliveryNoteAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.dataForm.rollQty == '' || this.dataForm.rollQty == null || this.dataForm.rollQty <= 0) { |
|
|
if (this.dataForm.rollQty == '' || this.dataForm.rollQty == null || this.dataForm.rollQty <= 0) { |
|
|
this.$alert(this.labels.rollQtyAsk, '错误', { |
|
|
this.$alert(this.labels.rollQtyAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.dataForm.rollNumber == '' || this.dataForm.rollQty == null || this.dataForm.rollNumber <= 0) { |
|
|
if (this.dataForm.rollNumber == '' || this.dataForm.rollQty == null || this.dataForm.rollNumber <= 0) { |
|
|
this.$alert(this.labels.rollNumberAsk, '错误', { |
|
|
this.$alert(this.labels.rollNumberAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
@ -1161,22 +1182,22 @@ |
|
|
parttypeFlag: 'R', |
|
|
parttypeFlag: 'R', |
|
|
customerID: this.dataForm.customerID, |
|
|
customerID: this.dataForm.customerID, |
|
|
fGPartNo: this.dataForm.fGPartNo, |
|
|
fGPartNo: this.dataForm.fGPartNo, |
|
|
refSupplierID:this.dataForm.referenceSupplierID, |
|
|
|
|
|
referencePartDesc:this.dataForm.referencePartDesc |
|
|
|
|
|
|
|
|
refSupplierID: this.dataForm.referenceSupplierID, |
|
|
|
|
|
referencePartDesc: this.dataForm.referencePartDesc |
|
|
} |
|
|
} |
|
|
this.dataList1.push(newDate) |
|
|
this.dataList1.push(newDate) |
|
|
this.sum1 = Number(this.sum1)+ Number(newDate.rollNumber); |
|
|
|
|
|
this.sum2 = Number(this.sum2)+ Number(newDate.allRollQty); |
|
|
|
|
|
|
|
|
this.sum1 = Number(this.sum1) + Number(newDate.rollNumber); |
|
|
|
|
|
this.sum2 = Number(this.sum2) + Number(newDate.allRollQty); |
|
|
}, |
|
|
}, |
|
|
remove(row){ |
|
|
|
|
|
|
|
|
remove(row) { |
|
|
this.$confirm(this.labels.deleteComfirm, '提示', { |
|
|
this.$confirm(this.labels.deleteComfirm, '提示', { |
|
|
confirmButtonText:this.buttons.yes, |
|
|
|
|
|
cancelButtonText:this.buttons.cancel, |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes, |
|
|
|
|
|
cancelButtonText: this.buttons.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.sum1 = Number(this.sum1) - Number(row.rollNumber); |
|
|
this.sum1 = Number(this.sum1) - Number(row.rollNumber); |
|
|
this.sum2 = Number(this.sum2) - Number(row.allRollQty); |
|
|
this.sum2 = Number(this.sum2) - Number(row.allRollQty); |
|
|
this.dataList1 = this.dataList1.filter(item => item.number!=row.number) |
|
|
|
|
|
|
|
|
this.dataList1 = this.dataList1.filter(item => item.number != row.number) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
@ -1186,23 +1207,23 @@ |
|
|
partNo: this.dataForm.fGPartNo |
|
|
partNo: this.dataForm.fGPartNo |
|
|
} |
|
|
} |
|
|
getPartNoDetail(inData).then(({data}) => { |
|
|
getPartNoDetail(inData).then(({data}) => { |
|
|
if (data.total > 0||this.dataForm.fGPartNo=='无') { |
|
|
|
|
|
|
|
|
if (data.total > 0 || this.dataForm.fGPartNo == '无') { |
|
|
let inData2 = { |
|
|
let inData2 = { |
|
|
site: this.dataForm.site, |
|
|
site: this.dataForm.site, |
|
|
configurationTemplateID: this.dataForm.customerID, |
|
|
configurationTemplateID: this.dataForm.customerID, |
|
|
} |
|
|
} |
|
|
checkCustomerID(inData2).then(({data}) => { |
|
|
checkCustomerID(inData2).then(({data}) => { |
|
|
if (data.total > 0||this.dataForm.customerID=='无') { |
|
|
|
|
|
|
|
|
if (data.total > 0 || this.dataForm.customerID == '无') { |
|
|
if (this.dataList1.length == 0) { |
|
|
if (this.dataList1.length == 0) { |
|
|
this.$alert(this.labels.noToRoll, '错误', { |
|
|
this.$alert(this.labels.noToRoll, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.sum2 + this.sum4 < this.dataForm.quantity) { |
|
|
if (this.sum2 + this.sum4 < this.dataForm.quantity) { |
|
|
this.$confirm(this.labels.sumRollQtySmallConfirm, '提示', { |
|
|
this.$confirm(this.labels.sumRollQtySmallConfirm, '提示', { |
|
|
confirmButtonText:this.buttons.yes, |
|
|
|
|
|
cancelButtonText:this.buttons.cancel, |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes, |
|
|
|
|
|
cancelButtonText: this.buttons.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.doSaveCRoll() |
|
|
this.doSaveCRoll() |
|
|
@ -1211,28 +1232,28 @@ |
|
|
|
|
|
|
|
|
if (this.sum2 + this.sum4 > this.dataForm.quantity) { |
|
|
if (this.sum2 + this.sum4 > this.dataForm.quantity) { |
|
|
this.$confirm(this.labels.sumRollQtyBigConfirm, '提示', { |
|
|
this.$confirm(this.labels.sumRollQtyBigConfirm, '提示', { |
|
|
confirmButtonText:this.buttons.yes, |
|
|
|
|
|
cancelButtonText:this.buttons.cancel, |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes, |
|
|
|
|
|
cancelButtonText: this.buttons.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.doSaveCRoll() |
|
|
this.doSaveCRoll() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
if (this.sum2 + this.sum4 === this.dataForm.quantity){ |
|
|
|
|
|
|
|
|
if (this.sum2 + this.sum4 === this.dataForm.quantity) { |
|
|
this.doSaveCRoll() |
|
|
this.doSaveCRoll() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.$alert(this.labels.customerIDBug, '错误', { |
|
|
this.$alert(this.labels.customerIDBug, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(this.labels.partNoBug, '错误', { |
|
|
this.$alert(this.labels.partNoBug, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
@ -1257,18 +1278,18 @@ |
|
|
searchCRollInfoDetail(inData).then(({data}) => { |
|
|
searchCRollInfoDetail(inData).then(({data}) => { |
|
|
this.dataList3 = data.rows |
|
|
this.dataList3 = data.rows |
|
|
for (let i = 0; i < data.total; i++) { |
|
|
for (let i = 0; i < data.total; i++) { |
|
|
this.sum4 = Number(this.sum4)+ Number(this.dataList3[i].rollQty); |
|
|
|
|
|
|
|
|
this.sum4 = Number(this.sum4) + Number(this.dataList3[i].rollQty); |
|
|
} |
|
|
} |
|
|
this.sum3 = data.total; |
|
|
this.sum3 = data.total; |
|
|
}) |
|
|
}) |
|
|
this.$message.success( this.labels.success); |
|
|
|
|
|
|
|
|
this.$message.success(this.labels.success); |
|
|
//打印材料卷标签 |
|
|
//打印材料卷标签 |
|
|
let printList = data.obj; |
|
|
let printList = data.obj; |
|
|
//打印标签 |
|
|
//打印标签 |
|
|
printMaterialLabel(printList); |
|
|
printMaterialLabel(printList); |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1279,12 +1300,12 @@ |
|
|
partNo: this.dataForm.fGPartNo |
|
|
partNo: this.dataForm.fGPartNo |
|
|
} |
|
|
} |
|
|
getPartNoDetail(inData).then(({data}) => { |
|
|
getPartNoDetail(inData).then(({data}) => { |
|
|
if (data.total > 0||this.dataForm.fGPartNo=='无') { |
|
|
|
|
|
|
|
|
if (data.total > 0 || this.dataForm.fGPartNo == '无') { |
|
|
} else { |
|
|
} else { |
|
|
this.dataForm.fGPartNo = ''; |
|
|
this.dataForm.fGPartNo = ''; |
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataForm)); |
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataForm)); |
|
|
this.$alert(this.labels.partNoBug, '错误', { |
|
|
this.$alert(this.labels.partNoBug, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1295,12 +1316,12 @@ |
|
|
configurationTemplateID: this.dataForm.customerID, |
|
|
configurationTemplateID: this.dataForm.customerID, |
|
|
} |
|
|
} |
|
|
checkCustomerID(inData).then(({data}) => { |
|
|
checkCustomerID(inData).then(({data}) => { |
|
|
if (data.total > 0||this.dataForm.customerID=='无') { |
|
|
|
|
|
|
|
|
if (data.total > 0 || this.dataForm.customerID == '无') { |
|
|
} else { |
|
|
} else { |
|
|
this.dataForm.customerID = ''; |
|
|
this.dataForm.customerID = ''; |
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataForm)); |
|
|
this.dataForm = JSON.parse(JSON.stringify(this.dataForm)); |
|
|
this.$alert(this.labels.customerIDBug, '错误', { |
|
|
this.$alert(this.labels.customerIDBug, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1318,8 +1339,8 @@ |
|
|
changeData(row) { |
|
|
changeData(row) { |
|
|
if (this.dataList1.length > 0) { |
|
|
if (this.dataList1.length > 0) { |
|
|
this.$confirm(this.labels.changeRollConfirm, '提示', { |
|
|
this.$confirm(this.labels.changeRollConfirm, '提示', { |
|
|
confirmButtonText:this.buttons.yes, |
|
|
|
|
|
cancelButtonText:this.buttons.cancel, |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes, |
|
|
|
|
|
cancelButtonText: this.buttons.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.sum1 = 0; |
|
|
this.sum1 = 0; |
|
|
@ -1357,7 +1378,7 @@ |
|
|
searchCRollInfoDetail(inData).then(({data}) => { |
|
|
searchCRollInfoDetail(inData).then(({data}) => { |
|
|
this.dataList3 = data.rows |
|
|
this.dataList3 = data.rows |
|
|
for (let i = 0; i < data.total; i++) { |
|
|
for (let i = 0; i < data.total; i++) { |
|
|
this.sum4 = Number(this.sum4) +Number(this.dataList3[i].rollQty); |
|
|
|
|
|
|
|
|
this.sum4 = Number(this.sum4) + Number(this.dataList3[i].rollQty); |
|
|
} |
|
|
} |
|
|
this.sum3 = data.total; |
|
|
this.sum3 = data.total; |
|
|
}) |
|
|
}) |
|
|
@ -1407,42 +1428,42 @@ |
|
|
//供应商批号录入 |
|
|
//供应商批号录入 |
|
|
getSaveModel() { |
|
|
getSaveModel() { |
|
|
this.saveData = { |
|
|
this.saveData = { |
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
rollNo:'', |
|
|
|
|
|
suppRollNo:'' |
|
|
|
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
rollNo: '', |
|
|
|
|
|
suppRollNo: '' |
|
|
}; |
|
|
}; |
|
|
this.modelFlag2 = true; |
|
|
this.modelFlag2 = true; |
|
|
}, |
|
|
}, |
|
|
goSaveSuppRollNo() { |
|
|
goSaveSuppRollNo() { |
|
|
if (this.saveData.site == '' || this.saveData.site == null) { |
|
|
if (this.saveData.site == '' || this.saveData.site == null) { |
|
|
this.$alert(this.labels.siteAsk, '错误', { |
|
|
this.$alert(this.labels.siteAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.saveData.rollNo == '' || this.saveData.rollNo == null) { |
|
|
if (this.saveData.rollNo == '' || this.saveData.rollNo == null) { |
|
|
this.$alert(this.labels.rollNoAsk, '错误', { |
|
|
this.$alert(this.labels.rollNoAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.saveData.suppRollNo == '' || this.saveData.suppRollNo == null) { |
|
|
if (this.saveData.suppRollNo == '' || this.saveData.suppRollNo == null) { |
|
|
this.$alert(this.labels.suppRollNoAsk, '错误', { |
|
|
this.$alert(this.labels.suppRollNoAsk, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
saveSuppRollNo(this.saveData).then(({data}) => { |
|
|
saveSuppRollNo(this.saveData).then(({data}) => { |
|
|
if (data.rows == null) { |
|
|
if (data.rows == null) { |
|
|
this.$alert(this.labels.rollNoBug, '错误', { |
|
|
this.$alert(this.labels.rollNoBug, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
return false; |
|
|
return false; |
|
|
} else { |
|
|
} else { |
|
|
if (data.rows.suppRollNoFlag == 'Y') { |
|
|
if (data.rows.suppRollNoFlag == 'Y') { |
|
|
this.$confirm(this.labels.suppRollNoConfirm, '提示', { |
|
|
this.$confirm(this.labels.suppRollNoConfirm, '提示', { |
|
|
confirmButtonText:this.buttons.yes, |
|
|
|
|
|
cancelButtonText:this.buttons.cancel, |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes, |
|
|
|
|
|
cancelButtonText: this.buttons.cancel, |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
|
|
|
|
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
@ -1458,12 +1479,12 @@ |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
doSaveSuppRollNo(this.saveData).then(({data}) => { |
|
|
doSaveSuppRollNo(this.saveData).then(({data}) => { |
|
|
if (data && data.code == 200) { |
|
|
if (data && data.code == 200) { |
|
|
this.modelFlag2 = false |
|
|
this.modelFlag2 = false |
|
|
@ -1476,7 +1497,7 @@ |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText:this.buttons.yes |
|
|
|
|
|
|
|
|
confirmButtonText: this.buttons.yes |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1495,6 +1516,16 @@ |
|
|
// this.exportData = this.dataList |
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
//获取按钮的权限数据 |
|
|
|
|
|
getButtonAuthData() { |
|
|
|
|
|
let updateFlag = this.isAuth(this.menuId + ":revise"); |
|
|
|
|
|
let fullControFlag = this.isAuth(this.menuId + ":fullContro"); |
|
|
|
|
|
let deleteFlag = this.isAuth(this.menuId + ":remove"); |
|
|
|
|
|
//处理页面的权限数据 |
|
|
|
|
|
this.authEdit = !updateFlag || !fullControFlag; |
|
|
|
|
|
this.authAdd = !fullControFlag; |
|
|
|
|
|
this.authDelete = !deleteFlag; |
|
|
|
|
|
}, |
|
|
finishDownload() { |
|
|
finishDownload() { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
@ -1512,8 +1543,25 @@ |
|
|
|
|
|
|
|
|
return s |
|
|
return s |
|
|
}, |
|
|
}, |
|
|
|
|
|
getMultiLanguageList() { |
|
|
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.buttons = data.data |
|
|
|
|
|
} else { |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
//其次查询当前标签的多语言 |
|
|
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.labels = data.data |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
// 导出 end |
|
|
// 导出 end |
|
|
getReferenceData(){ |
|
|
|
|
|
|
|
|
getReferenceData() { |
|
|
let inData = { |
|
|
let inData = { |
|
|
site: this.dataForm.site, |
|
|
site: this.dataForm.site, |
|
|
partNo: this.dataForm.partNo, |
|
|
partNo: this.dataForm.partNo, |
|
|
@ -1532,44 +1580,71 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//获取按钮的权限数据 |
|
|
|
|
|
getButtonAuthData(){ |
|
|
|
|
|
let updateFlag = this.isAuth(this.menuId+":revise"); |
|
|
|
|
|
let fullControFlag = this.isAuth(this.menuId+":fullContro"); |
|
|
|
|
|
let deleteFlag = this.isAuth(this.menuId+":remove"); |
|
|
|
|
|
//处理页面的权限数据 |
|
|
|
|
|
this.authEdit = !updateFlag ||!fullControFlag; |
|
|
|
|
|
this.authAdd = !fullControFlag; |
|
|
|
|
|
this.authDelete = !deleteFlag; |
|
|
|
|
|
}, |
|
|
|
|
|
//多语言 |
|
|
|
|
|
getMultiLanguageList() { |
|
|
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.buttons = data.data |
|
|
|
|
|
|
|
|
// 获取 用户保存的 格式列 |
|
|
|
|
|
async getTableUserColumn(tableId, columnId) { |
|
|
|
|
|
this.queryTableUser.tableId = tableId |
|
|
|
|
|
await getTableUserListLanguage(this.queryTableUser).then(({data}) => { |
|
|
|
|
|
if (data.rows.length > 0) { |
|
|
|
|
|
//this.columnList = [] |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
this.columnList1 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
this.columnList2 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
this.columnList3 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
this.getColumnList(tableId, columnId) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 获取 tableDefault 列 |
|
|
|
|
|
async getColumnList(tableId, columnId) { |
|
|
|
|
|
this.queryTable.tableId = tableId |
|
|
|
|
|
await getTableDefaultListLanguage(this.queryTable).then(({data}) => { |
|
|
|
|
|
if (!data.rows.length == 0) { |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
this.columnList1 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
this.columnList2 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
this.columnList3 = data.rows |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
//其次查询当前标签的多语言 |
|
|
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.labels = data.data |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
// this.showDefault = true |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getMultiLanguageList()//刷新按钮 |
|
|
this.getMultiLanguageList()//刷新按钮 |
|
|
//获取按钮的权限 |
|
|
//获取按钮的权限 |
|
|
this.getButtonAuthData(); |
|
|
this.getButtonAuthData(); |
|
|
|
|
|
this.getTableUserColumn('102001002Table',1); |
|
|
|
|
|
this.getTableUserColumn('102001002Table1',2); |
|
|
|
|
|
this.getTableUserColumn('102001002Table2',3); |
|
|
|
|
|
this.getTableUserColumn('102001002Table3',4); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped > |
|
|
<style scoped > |
|
|
|