临时表
@@ -632,6 +636,8 @@ export default {
tableData5: [],
tableData6: [],
tableDataWB: [],
+ BasicGroup: [],
+ PurchaseGroup: [],
// pageCurrent: 1,
// pageSize: 10,
// pageCurrent1: 1,
@@ -758,13 +764,25 @@ export default {
})
})
},
+ handleSelectionChange(val) {
+ this.BasicGroup = []
+ for (let i = 0; i < val.length; i++) {
+ this.BasicGroup.push(val[i].基本件流水号)
+ }
+ },
+ handleSelectionChange1(val) {
+ this.PurchaseGroup = []
+ for (let i = 0; i < val.length; i++) {
+ this.PurchaseGroup.push(val[i].标准件和外购件流水号)
+ }
+ },
alldelete() {
this.$confirm('此操作将永久删除所有数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- alldelete(this.groupValue).then(res => {
+ alldelete(this.BasicGroup).then(res => {
if (res.data[0].result === '1') {
this.$message.success('删除成功')
this.getTableData()
@@ -783,7 +801,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- alldeleteWB(this.groupValue).then(res => {
+ alldeleteWB(this.PurchaseGroup).then(res => {
if (res.data[0].result === '1') {
this.$message.success('删除成功')
this.getTableData()
diff --git a/src/views/ManufacturingCenter/AntonMonitoring/index.vue b/src/views/ManufacturingCenter/AntonMonitoring/index.vue
index 208a4cb7..40e404b2 100644
--- a/src/views/ManufacturingCenter/AntonMonitoring/index.vue
+++ b/src/views/ManufacturingCenter/AntonMonitoring/index.vue
@@ -15,8 +15,8 @@
查询
-
-
+
+
{{ scope.row.工位号 }}
@@ -31,7 +31,7 @@
{{ scope.row.编号描述 }}
-
+
{{ scope.row.安东明细描述 }}
@@ -46,7 +46,7 @@
{{ scope.row.解除时间 }}
-
+
{{ scope.row.处理时长 }}
@@ -78,7 +78,9 @@ export default {
loading: false,
total1: 0,
pageCurrent1: 1,
- pageSize1: 50
+ pageSize1: 50,
+ order: '',
+ partName: ''
}
},
created() {
@@ -87,12 +89,29 @@ export default {
this.searchTable()
},
methods: {
+ sortChange(column, prop, order) {
+ if (column.prop === '工位号') {
+ this.partName = 1
+ } else if (column.prop === '安东明细描述') {
+ this.partName = 2
+ } else if (column.prop === '处理时长') {
+ this.partName = 3
+ } else {
+ this.partName = ''
+ }
+ if (column.order === 'ascending') {
+ this.order = 1
+ } else if (column.order === 'descending') { this.order = 2 } else {
+ this.order = ''
+ }
+ this.searchTable()
+ },
searchTable() {
this.loading = true
this.tableData = []
var check1
this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '')
- searchTable(check1, this.dateRange[0], this.dateRange[1], this.pageCurrent1, this.pageSize1).then(response => {
+ searchTable(check1, this.dateRange[0], this.dateRange[1], this.order, this.partName, this.pageCurrent1, this.pageSize1).then(response => {
this.tableData = response.data.rows
this.total1 = response.data.total
this.loading = false
diff --git a/src/views/ManufacturingCenter/QualityInspectionQueryMetalworking/index.vue b/src/views/ManufacturingCenter/QualityInspectionQueryMetalworking/index.vue
new file mode 100644
index 00000000..b9dd542f
--- /dev/null
+++ b/src/views/ManufacturingCenter/QualityInspectionQueryMetalworking/index.vue
@@ -0,0 +1,416 @@
+
+
+
+
+
+
+ 查询
+ 导出
+
+
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料型号 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+
+ {{ scope.row.货位存量 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index 5f557e88..8a06db60 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -279,7 +279,7 @@ export default {
} else {
sums[index] = 'N/A'
}
- } else if (index === 12) {
+ } else if (index === 13) {
const values = data.map(item => Number(parseFloat(item['未税总额'])))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
diff --git a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
index 825f1d35..e02092f3 100644
--- a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
+++ b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
@@ -87,7 +87,7 @@
{{ scope.row.申请时间 ? scope.row.申请时间.split(' ')[0] : '—' }}
-
+
{{ scope.row.审批1结果 }}
@@ -97,12 +97,12 @@
{{ scope.row.审批1未过原因 ? scope.row.审批1未过原因 : '—' }}
-
+
{{ scope.row.审批1时间 ? scope.row.审批1时间.split(' ')[0] : '—' }}
-
+
{{ scope.row.审批4结果 }}
@@ -117,7 +117,7 @@
{{ scope.row.审批4时间 ? scope.row.审批4时间.split(' ')[0] : '—' }}
-
+
{{ scope.row.审批3结果 }}
diff --git a/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
index 5883be48..496d4f03 100644
--- a/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
+++ b/src/views/PurchasingCenter/InvoiceSettlementApprove/index.vue
@@ -75,7 +75,7 @@
- {{ scope.row.审批人1姓名 ? scope.row.审批人1姓名 : '未审批' }}
+ {{ scope.row.审批人1结果 }}
@@ -85,7 +85,7 @@
- {{ scope.row.审批人4姓名 ? scope.row.审批人4姓名 : '未审批' }}
+ {{ scope.row.审批人4结果 }}
@@ -95,7 +95,7 @@
- {{ scope.row.审批人3姓名 ? scope.row.审批人3姓名 : '未审批' }}
+ {{ scope.row.审批人3结果 }}
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 6fd0ea20..61acc24f 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -812,12 +812,13 @@ export default {
totalPrice: 0, // 合同总额
tableData4: [], // 合同模板
stipulateArrivalTime: '', // 规定到货时间
- 离线合同状态: '',
+ 离线合同状态: true,
numbers: [],
numbers1: [],
paramRow: '', // 参数row
disable: true, // 其他的禁用
tabName: '标准件',
+ tongguo: '',
total22: 0,
pageCurrent22: 1,
pageSize22: 20
@@ -1067,7 +1068,8 @@ export default {
this.supplierName0 ? this.check4 = 1 : this.check4 = 0
this.loading3 = true
this.tableData3 = []
- searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0).then(response => {
+ console.log(this.id, 'id')
+ searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0, this.id).then(response => {
console.log(response.data.rows, 99)
this.tableData2 = response.data.rows
this.total2 = response.data.total
@@ -1283,6 +1285,7 @@ export default {
!v.单价 ? v.单价 = v.参考价格 : v.单价
this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
})
+ console.log(this.tableData3, 'tableData31')
this.loading4 = false
console.log(response.data.length, 1231231233)
})
@@ -1439,8 +1442,17 @@ export default {
// })
},
doneOfflineContact() { // 生成离线合同
+ this.tongguo = true
+ console.log(this.tableData3, 'tableData3')
+ for (let i = 0; i < this.tableData3.length; i++) {
+ if (this.tableData3[i].数量 === '0' || this.tableData3[i].数量 === null || this.tableData3[i].数量 === '' || this.tableData3[i].单价 === '0' || this.tableData3[i].单价 === null || this.tableData3[i].单价 === '') {
+ this.tongguo = false
+ }
+ }
if (this.tableData3.length === 0) {
this.$message.error('无法生成空合同,请先选入物料!')
+ } else if (this.tongguo === false) {
+ this.$message.error('请完善单价或数量信息!')
} else {
let judge = true
this.tableData3.map(v => {
diff --git a/src/views/PurchasingCenter/OfflineContractSearch/index.vue b/src/views/PurchasingCenter/OfflineContractSearch/index.vue
index 869f3372..8d3507d8 100644
--- a/src/views/PurchasingCenter/OfflineContractSearch/index.vue
+++ b/src/views/PurchasingCenter/OfflineContractSearch/index.vue
@@ -68,12 +68,17 @@
{{ scope.row.离线合同编号 }}
+
+
+ {{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : '-' }}
+
+
-
+
{{ Number(scope.row.合同总额).toFixed(2) }}
@@ -98,9 +103,9 @@
{{ scope.row.采购员 }}
-
+
- {{ scope.row.创建日期.split(' ')[0] }}
+ {{ scope.row.提交日期 ? scope.row.提交日期.split(' ')[0] : '-' }}
@@ -168,6 +173,7 @@ export default {
name: 'OfflineContractSearch',
data() {
return {
+ row1: '',
dateRange: '',
contractNumber: '',
supplierName: '',
@@ -272,26 +278,31 @@ export default {
this.searchTable1()
},
back() {
- this.$confirm('确定打回合同?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- if (this.number) {
- back(this.number).then(response => {
- if (response.data[0].result !== '0') {
- this.$message.success('打回成功')
- this.searchTable1()
- } else {
- this.$message.success('打回失败')
- }
- })
- } else {
- this.$message.warning('请选择要打回的合同')
- }
- })
+ if (this.row1.到货金额 !== '0') {
+ this.$message.error('已有到货信息,无法打回!!!')
+ } else {
+ this.$confirm('确定打回合同?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ if (this.number) {
+ back(this.number).then(response => {
+ if (response.data[0].result !== '0') {
+ this.$message.success('打回成功')
+ this.searchTable1()
+ } else {
+ this.$message.success('打回失败')
+ }
+ })
+ } else {
+ this.$message.warning('请选择要打回的合同')
+ }
+ })
+ }
},
searchTable2(row) {
+ this.row1 = row
this.number = row.离线合同流水号
searchOfflineContractContent(row.离线合同流水号).then(response => {
this.contractDetail = response.data
diff --git a/src/views/PurchasingCenter/OfflinePartsQuery/index.vue b/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
index 0f86ee23..207b5559 100644
--- a/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
+++ b/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
@@ -42,12 +42,22 @@
{{ scope.row.到货数量 }}
+
+
+ {{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
+
+
+
+
+ {{ scope.row.到货金额 }}
+
+
{{ scope.row.离线合同编号 }}
-
+
{{ scope.row.供应商名称 }}
diff --git a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
index 703f3003..85adcc32 100644
--- a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
+++ b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
@@ -470,7 +470,7 @@ export default {
this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '')
this.supplierValue ? check2 = 1 : check2 = 0
this.searchAll === false ? check3 = 1 : check3 = 0
- searchRequestFund(this.pageCurrent1, this.pageSize1, check1, this.dateRange[0], this.dateRange[1], check2, this.supplierValue, check3).then(response => {
+ searchRequestFund(this.pageCurrent1, this.pageSize1, check1, this.dateRange[0], this.dateRange[1], check2, this.supplierValue, check3, this.id).then(response => {
this.tableData1 = response.data.rows
this.total1 = response.data.total
})
diff --git a/src/views/WorkshopProcurement/AccountingPrice/index.vue b/src/views/WorkshopProcurement/AccountingPrice/index.vue
index d7bdb195..2502e935 100644
--- a/src/views/WorkshopProcurement/AccountingPrice/index.vue
+++ b/src/views/WorkshopProcurement/AccountingPrice/index.vue
@@ -42,12 +42,12 @@
{{ scope.row.数量 }}
-
+
-
+
-
+
{{ scope.row.金额 }}
diff --git a/src/views/WorkshopProcurement/ArrivalStateSearch/index.vue b/src/views/WorkshopProcurement/ArrivalStateSearch/index.vue
index 5b52da8a..241a13f2 100644
--- a/src/views/WorkshopProcurement/ArrivalStateSearch/index.vue
+++ b/src/views/WorkshopProcurement/ArrivalStateSearch/index.vue
@@ -26,7 +26,7 @@
-
+
{{ scope.row.采购合同编号 }}
@@ -67,6 +67,11 @@
{{ scope.row.已到货数量 }}
+
+
+ {{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
+
+
到票结算申请单
-
+
@@ -141,7 +141,7 @@
到票号:
追加入库记录
-
+
{{ scope.row.采购物料名称 || scope.row.离线物料名称 || scope.row.采购零件名称 }}
@@ -716,10 +716,7 @@ export default {
addTable2(this.applyOrderNum, group1, group2, 1).then(response => {
if (response.data[0].result === '1') {
this.$message.success('追加成功')
- this.dialogVisible2 = false
- searchTable2(this.applyOrderNum).then(response => {
- this.tableData2 = response.data
- })
+ this.searchTable01()
} else { this.$message.error('追加失败') }
})
} else if (this.contractType === '离线合同') {
diff --git a/src/views/WorkshopProcurement/InvoiceSettlementApprove1/index.vue b/src/views/WorkshopProcurement/InvoiceSettlementApprove1/index.vue
index 8cba4496..9a3cb3e8 100644
--- a/src/views/WorkshopProcurement/InvoiceSettlementApprove1/index.vue
+++ b/src/views/WorkshopProcurement/InvoiceSettlementApprove1/index.vue
@@ -8,7 +8,7 @@
到票结算申请单
-
+
@@ -41,7 +41,7 @@
-
+
{{ scope.row.供应商名称 }}
@@ -73,7 +73,7 @@
- {{ scope.row.审批3时间 ? scope.row.审批3时间 : '—' }}
+ {{ scope.row.审批3时间 ? scope.row.审批3时间.split(' ')[0] : '—' }}
@@ -83,7 +83,7 @@
- {{ scope.row.审批4时间 ? scope.row.审批4时间 : '—' }}
+ {{ scope.row.审批4时间 ? scope.row.审批4时间.split(' ')[0] : '—' }}
@@ -110,7 +110,7 @@
到结算申请单明细
到票号:
-
+
{{ scope.row.采购物料名称 || scope.row.离线物料名称 || scope.row.采购零件名称 }}
@@ -126,7 +126,7 @@
{{ scope.row.采购物料规格 || scope.row.离线物料规格 || scope.row.采购零件规格 }}
-
+
{{ scope.row.供应商名称 }}
diff --git a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
index cdd4c080..d51054a4 100644
--- a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
+++ b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
@@ -12,8 +12,6 @@
{{ item.name }}
- 采购员:
-
供应商:
+
+
+ {{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '' }}
+
+
{{ scope.row.含税总金额 }}
@@ -476,6 +479,7 @@ export default {
}
this.tableData1 = response.data.rows
this.total1 = response.data.total
+ this.type = 0
})
},
Open(row) {
diff --git a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue
index 553cd2a4..50c9e608 100644
--- a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue
+++ b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue
@@ -55,6 +55,11 @@
{{ scope.row.请款金额 }}
+
+
+ {{ scope.row.审批时间 ? scope.row.审批时间.split(' ')[0] : '' }}
+
+
@@ -68,6 +73,11 @@
{{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
+
+
+ {{ scope.row.付款时间 ? scope.row.付款时间.split(' ')[0] : '' }}
+
+
未操作
@@ -112,7 +122,7 @@
-
+