增加请购单转采购订单的功能
This commit is contained in:
@@ -75,6 +75,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
|
<a-button v-if="quickBtn.purchaseOrder && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购订单')">转采购订单</a-button>
|
||||||
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -160,6 +161,7 @@
|
|||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<purchase-apply-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-apply-modal>
|
<purchase-apply-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-apply-modal>
|
||||||
|
<purchase-order-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-order-modal>
|
||||||
<bill-detail ref="modalDetail" @ok="modalFormOk" @close="modalFormClose"></bill-detail>
|
<bill-detail ref="modalDetail" @ok="modalFormOk" @close="modalFormClose"></bill-detail>
|
||||||
<bill-excel-iframe ref="billExcelIframe" @ok="modalFormOk" @close="modalFormClose"></bill-excel-iframe>
|
<bill-excel-iframe ref="billExcelIframe" @ok="modalFormOk" @close="modalFormClose"></bill-excel-iframe>
|
||||||
</a-card>
|
</a-card>
|
||||||
@@ -169,6 +171,7 @@
|
|||||||
<!-- by ji sheng hua-->
|
<!-- by ji sheng hua-->
|
||||||
<script>
|
<script>
|
||||||
import PurchaseApplyModal from './modules/PurchaseApplyModal'
|
import PurchaseApplyModal from './modules/PurchaseApplyModal'
|
||||||
|
import PurchaseOrderModal from './modules/PurchaseOrderModal'
|
||||||
import BillDetail from './dialog/BillDetail'
|
import BillDetail from './dialog/BillDetail'
|
||||||
import BillExcelIframe from '@/components/tools/BillExcelIframe'
|
import BillExcelIframe from '@/components/tools/BillExcelIframe'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
@@ -181,6 +184,7 @@
|
|||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
components: {
|
components: {
|
||||||
PurchaseApplyModal,
|
PurchaseApplyModal,
|
||||||
|
PurchaseOrderModal,
|
||||||
BillDetail,
|
BillDetail,
|
||||||
BillExcelIframe,
|
BillExcelIframe,
|
||||||
JEllipsis,
|
JEllipsis,
|
||||||
@@ -238,6 +242,8 @@
|
|||||||
created() {
|
created() {
|
||||||
this.initSystemConfig()
|
this.initSystemConfig()
|
||||||
this.initUser()
|
this.initUser()
|
||||||
|
this.initQuickBtn()
|
||||||
|
this.getDepotByCurrentUser()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -320,6 +320,8 @@
|
|||||||
this.fileList = []
|
this.fileList = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
handleIntroJs(this.prefixNo, 1)
|
handleIntroJs(this.prefixNo, 1)
|
||||||
|
let tp = this.transferParam
|
||||||
|
this.linkBillListOk(tp.list, tp.number, tp.organId)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(this.model.linkNumber) {
|
if(this.model.linkNumber) {
|
||||||
@@ -414,6 +416,7 @@
|
|||||||
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
|
this.changeFormTypes(this.materialTable.columns, 'preNumber', 1)
|
||||||
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 1)
|
this.changeFormTypes(this.materialTable.columns, 'finishNumber', 1)
|
||||||
if(selectBillDetailRows && selectBillDetailRows.length>0) {
|
if(selectBillDetailRows && selectBillDetailRows.length>0) {
|
||||||
|
let listEx = []
|
||||||
let discountLastMoney = 0
|
let discountLastMoney = 0
|
||||||
for(let j=0; j<selectBillDetailRows.length; j++) {
|
for(let j=0; j<selectBillDetailRows.length; j++) {
|
||||||
let info = selectBillDetailRows[j];
|
let info = selectBillDetailRows[j];
|
||||||
@@ -427,8 +430,12 @@
|
|||||||
discountLastMoney += info.allPrice
|
discountLastMoney += info.allPrice
|
||||||
}
|
}
|
||||||
info.linkId = info.id
|
info.linkId = info.id
|
||||||
this.changeColumnShow(info)
|
if(info.operNumber>0) {
|
||||||
|
listEx.push(info)
|
||||||
|
this.changeColumnShow(info)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
this.materialTable.dataSource = listEx
|
||||||
//根据单号查询单据类型
|
//根据单号查询单据类型
|
||||||
findBillDetailByNumber({'number':linkNumber}).then((res) => {
|
findBillDetailByNumber({'number':linkNumber}).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
@@ -456,7 +463,6 @@
|
|||||||
'changeAmount': discountLastMoney.toFixed(2)
|
'changeAmount': discountLastMoney.toFixed(2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.materialTable.dataSource = selectBillDetailRows
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user