diff --git a/src/views/purchase/approve/PurchaseRequestList.vue b/src/views/purchase/approve/PurchaseRequestList.vue index 185e31c..7e98bd5 100644 --- a/src/views/purchase/approve/PurchaseRequestList.vue +++ b/src/views/purchase/approve/PurchaseRequestList.vue @@ -47,10 +47,17 @@ - - 通过 - - 不通过 + + 通过 + 不通过 +
+ 通过 + + 不通过 +
+
+ + 已被接单,不可修改 @@ -58,6 +65,9 @@ + + + @@ -85,6 +95,7 @@ export default { description: '采购表管理页面', // 表头 see: false, + noPassSee: false, columns: [ { title: '审批状态', @@ -173,20 +184,31 @@ export default { { name: '', number: '', + unit: '', }, ], contentColumns: [ { - title: '物品名称', + title: '名称', dataIndex: 'name', - key: 'name' + key: 'name', + width: 200 }, { - title: '物品数量', + title: '数量', dataIndex: 'number', - key: 'number' + key: 'number', + width: 80 + }, + { + title: '单位', + dataIndex: 'unit', + key: 'unit', + width: 80 } ], + //暂存表单 + tempRecord: {}, } }, created() { @@ -200,6 +222,30 @@ export default { methods: { initDictConfig() { }, + openNoPassModal(record) { + this.noPassSee = true + this.tempRecord = Object.assign({}, record); + this.tempRecord.auditResults = ''; + }, + noPassOk() { + this.noPassSee = false + //保存的逻辑 + let record = Object.assign({}, this.tempRecord); + record.demandStatus = 3; + record.approvedBy = Vue.ls.get(USER_INFO).username; + record.auditResults = this.tempRecord.auditResults; + postAction(this.url.edit, record).then(res => { + if (res.success) { + this.$message.success('重新审批成功'); + this.loadData(); + } else { + this.$message.error(res.message); + } + }) + }, + noPassCancel() { + this.noPassSee = false + }, handleOk() { this.see = false }, @@ -209,6 +255,7 @@ export default { this.content = { name: '', number: '', + unit: '', } } else { this.content = JSON.parse(record.procurementContent) @@ -234,18 +281,7 @@ export default { pass(record) { record.demandStatus = 2; record.approvedBy = Vue.ls.get(USER_INFO).username; - postAction(this.url.edit, record).then(res => { - if (res.success) { - this.$message.success('重新提交成功'); - this.loadData(); - } else { - this.$message.error(res.message); - } - }) - }, - NoPass(record) { - record.demandStatus = 3; - record.approvedBy = Vue.ls.get(USER_INFO).username; + record.auditResults = '通过'; postAction(this.url.edit, record).then(res => { if (res.success) { this.$message.success('重新提交成功'); diff --git a/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue b/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue new file mode 100644 index 0000000..31ee1f8 --- /dev/null +++ b/src/views/purchase/receiving/PurchaseOrderConfirmationList.vue @@ -0,0 +1,118 @@ + + + \ No newline at end of file diff --git a/src/views/purchase/request/PurchaseRequestList.vue b/src/views/purchase/request/PurchaseRequestList.vue index 75a5162..fc646c3 100644 --- a/src/views/purchase/request/PurchaseRequestList.vue +++ b/src/views/purchase/request/PurchaseRequestList.vue @@ -66,8 +66,7 @@ 下载 - - + 编辑 @@ -76,6 +75,12 @@ 重新提交 + + 已通过申请不可修改 + + + 审核中不可修改 + @@ -199,14 +204,22 @@ export default { ], contentColumns: [ { - title: '物品名称', + title: '名称', dataIndex: 'name', - key: 'name' + key: 'name', + width: 200 }, { - title: '物品数量', + title: '数量', dataIndex: 'number', - key: 'number' + key: 'number', + width: 80 + }, + { + title: '单位', + dataIndex: 'unit', + key: 'unit', + width: 80 } ], dictOptions: {}, diff --git a/src/views/purchase/request/modules/PurchaseRequestForm.vue b/src/views/purchase/request/modules/PurchaseRequestForm.vue index 971be3b..382d2c0 100644 --- a/src/views/purchase/request/modules/PurchaseRequestForm.vue +++ b/src/views/purchase/request/modules/PurchaseRequestForm.vue @@ -19,11 +19,14 @@
- + - - + + + + + @@ -119,6 +122,7 @@ export default { { name: '', number: '', + unit: '', }, ] } @@ -140,6 +144,7 @@ export default { this.content.splice(index + 1, 0, { name: '', number: '', + unit: '', }); }, // 移除指定索引位置的行