|
@@ -69,6 +69,9 @@
|
|
|
<DepartPopup ref="departPopup"></DepartPopup>
|
|
|
<DepartProvePopup ref="departProvePopup"></DepartProvePopup>
|
|
|
<ProjectRecordsForm ref="projectRecordsForm"></ProjectRecordsForm>
|
|
|
+ <CwInvoiceForm ref="cwInvoiceForm"></CwInvoiceForm>
|
|
|
+ <InvoiceForm ref="invoiceForm"></InvoiceForm>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -78,6 +81,8 @@
|
|
|
import DepartPopup from '@/views/human/depart/handover/DepartPopup'
|
|
|
import DepartProvePopup from '@/views/human/depart/handover/DepartProvePopup'
|
|
|
import ProjectRecordsForm from "@/views/cw/projectRecords/ProjectRecordsForm";
|
|
|
+ import CwInvoiceForm from '@/views/cw/invoice/InvoiceForm'
|
|
|
+ import InvoiceForm from '@/views/finance/invoice/InvoiceForm'
|
|
|
// import notifyService from "@/api/notify/notifyService";
|
|
|
import noticeService from '@/api/flowable/NoticeService'
|
|
|
import taskService from "@/api/flowable/taskService";
|
|
@@ -96,7 +101,9 @@ export default {
|
|
|
KeyCardPopup,
|
|
|
DepartPopup,
|
|
|
DepartProvePopup,
|
|
|
- ProjectRecordsForm
|
|
|
+ ProjectRecordsForm,
|
|
|
+ CwInvoiceForm,
|
|
|
+ InvoiceForm,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -128,7 +135,23 @@ export default {
|
|
|
methods: {
|
|
|
todo (row) {
|
|
|
// console.log('row', row)
|
|
|
- if (row.taskName === '库存提醒') {
|
|
|
+ if (row.taskName === '评估发票超期收款') {
|
|
|
+ // console.log('测试进来了')
|
|
|
+ this.$refs.invoiceForm.init(false,row.defId)
|
|
|
+ this.inputForm = {
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ noticeService.stockUpdate(this.inputForm)
|
|
|
+ this.resetSearch()
|
|
|
+ }else if (row.taskName === '超期收款发票') {
|
|
|
+ // console.log('测试进来了')
|
|
|
+ this.$refs.cwInvoiceForm.init(false,row.defId)
|
|
|
+ this.inputForm = {
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ noticeService.stockUpdate(this.inputForm)
|
|
|
+ this.resetSearch()
|
|
|
+ }else if (row.taskName === '库存提醒') {
|
|
|
// console.log('测试进来了')
|
|
|
this.$refs.wareHouseHistoryPopup.init(row.defId)
|
|
|
this.inputForm = {
|