增加销售订单转采购订单的功能
This commit is contained in:
@@ -86,6 +86,7 @@
|
|||||||
<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.saleOut && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售出库')">转销售出库</a-button>
|
<a-button v-if="quickBtn.saleOut && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售出库')">转销售出库</a-button>
|
||||||
|
<a-button v-if="quickBtn.purchaseOrder && purchaseBySaleFlag && 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>
|
||||||
@@ -180,6 +181,7 @@
|
|||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<sale-order-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></sale-order-modal>
|
<sale-order-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></sale-order-modal>
|
||||||
<sale-out-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></sale-out-modal>
|
<sale-out-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></sale-out-modal>
|
||||||
|
<purchase-order-modal ref="transferPurchaseModalForm" @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>
|
||||||
@@ -189,6 +191,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import SaleOrderModal from './modules/SaleOrderModal'
|
import SaleOrderModal from './modules/SaleOrderModal'
|
||||||
import SaleOutModal from './modules/SaleOutModal'
|
import SaleOutModal from './modules/SaleOutModal'
|
||||||
|
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'
|
||||||
@@ -203,6 +206,7 @@
|
|||||||
components: {
|
components: {
|
||||||
SaleOrderModal,
|
SaleOrderModal,
|
||||||
SaleOutModal,
|
SaleOutModal,
|
||||||
|
PurchaseOrderModal,
|
||||||
BillDetail,
|
BillDetail,
|
||||||
BillExcelIframe,
|
BillExcelIframe,
|
||||||
JEllipsis,
|
JEllipsis,
|
||||||
|
|||||||
@@ -750,11 +750,19 @@ export const BillListMixin = {
|
|||||||
accountId: info.accountId,
|
accountId: info.accountId,
|
||||||
salesMan: info.salesMan
|
salesMan: info.salesMan
|
||||||
}
|
}
|
||||||
this.$refs.transferModalForm.action = "add"
|
if(type === '转采购订单-以销定购') {
|
||||||
this.$refs.transferModalForm.transferParam = transferParam
|
this.$refs.transferPurchaseModalForm.action = "add"
|
||||||
this.$refs.transferModalForm.defaultDepotId = this.defaultDepotId
|
this.$refs.transferPurchaseModalForm.transferParam = transferParam
|
||||||
this.$refs.transferModalForm.add()
|
this.$refs.transferPurchaseModalForm.defaultDepotId = this.defaultDepotId
|
||||||
this.$refs.transferModalForm.title = type
|
this.$refs.transferPurchaseModalForm.add()
|
||||||
|
this.$refs.transferPurchaseModalForm.title = type
|
||||||
|
} else {
|
||||||
|
this.$refs.transferModalForm.action = "add"
|
||||||
|
this.$refs.transferModalForm.transferParam = transferParam
|
||||||
|
this.$refs.transferModalForm.defaultDepotId = this.defaultDepotId
|
||||||
|
this.$refs.transferModalForm.add()
|
||||||
|
this.$refs.transferModalForm.title = type
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user