增加转采购退货、转销售退货、转零售退货的功能
This commit is contained in:
@@ -115,6 +115,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.purchaseBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购退货')">转采购退货</a-button>
|
||||||
<a-tooltip title="可将状态是部分入库的单据强制完成">
|
<a-tooltip title="可将状态是部分入库的单据强制完成">
|
||||||
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -210,6 +211,7 @@
|
|||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<purchase-in-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-in-modal>
|
<purchase-in-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-in-modal>
|
||||||
|
<purchase-back-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></purchase-back-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>
|
||||||
@@ -219,6 +221,7 @@
|
|||||||
<!-- by ji sheng hua-->
|
<!-- by ji sheng hua-->
|
||||||
<script>
|
<script>
|
||||||
import PurchaseInModal from './modules/PurchaseInModal'
|
import PurchaseInModal from './modules/PurchaseInModal'
|
||||||
|
import PurchaseBackModal from './modules/PurchaseBackModal'
|
||||||
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'
|
||||||
@@ -231,6 +234,7 @@
|
|||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
components: {
|
components: {
|
||||||
PurchaseInModal,
|
PurchaseInModal,
|
||||||
|
PurchaseBackModal,
|
||||||
BillDetail,
|
BillDetail,
|
||||||
BillExcelIframe,
|
BillExcelIframe,
|
||||||
JEllipsis,
|
JEllipsis,
|
||||||
@@ -334,6 +338,8 @@
|
|||||||
this.getDepotData()
|
this.getDepotData()
|
||||||
this.initUser()
|
this.initUser()
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
|
this.initQuickBtn()
|
||||||
|
this.getDepotByCurrentUser()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,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.retailBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转零售退货')">转零售退货</a-button>
|
||||||
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
||||||
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||||
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
|
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
|
||||||
@@ -179,6 +180,7 @@
|
|||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<retail-out-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></retail-out-modal>
|
<retail-out-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></retail-out-modal>
|
||||||
|
<retail-back-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></retail-back-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>
|
||||||
@@ -188,6 +190,7 @@
|
|||||||
<!-- create ji sheng hua-->
|
<!-- create ji sheng hua-->
|
||||||
<script>
|
<script>
|
||||||
import RetailOutModal from './modules/RetailOutModal'
|
import RetailOutModal from './modules/RetailOutModal'
|
||||||
|
import RetailBackModal from './modules/RetailBackModal'
|
||||||
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'
|
||||||
@@ -200,6 +203,7 @@
|
|||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
components: {
|
components: {
|
||||||
RetailOutModal,
|
RetailOutModal,
|
||||||
|
RetailBackModal,
|
||||||
BillDetail,
|
BillDetail,
|
||||||
BillExcelIframe,
|
BillExcelIframe,
|
||||||
JEllipsis,
|
JEllipsis,
|
||||||
@@ -284,6 +288,8 @@
|
|||||||
this.getDepotData()
|
this.getDepotData()
|
||||||
this.initUser()
|
this.initUser()
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
|
this.initQuickBtn()
|
||||||
|
this.getDepotByCurrentUser()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,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.purchaseIn && 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-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>
|
||||||
|
|||||||
@@ -116,6 +116,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.saleBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售退货')">转销售退货</a-button>
|
||||||
<a-tooltip title="可将状态是部分出库的单据强制完成">
|
<a-tooltip title="可将状态是部分出库的单据强制完成">
|
||||||
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -211,6 +212,7 @@
|
|||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<sale-out-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></sale-out-modal>
|
<sale-out-modal ref="modalForm" @ok="modalFormOk" @close="modalFormClose"></sale-out-modal>
|
||||||
|
<sale-back-modal ref="transferModalForm" @ok="modalFormOk" @close="modalFormClose"></sale-back-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>
|
||||||
@@ -219,6 +221,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import SaleOutModal from './modules/SaleOutModal'
|
import SaleOutModal from './modules/SaleOutModal'
|
||||||
|
import SaleBackModal from './modules/SaleBackModal'
|
||||||
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'
|
||||||
@@ -231,6 +234,7 @@
|
|||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
components: {
|
components: {
|
||||||
SaleOutModal,
|
SaleOutModal,
|
||||||
|
SaleBackModal,
|
||||||
BillDetail,
|
BillDetail,
|
||||||
BillExcelIframe,
|
BillExcelIframe,
|
||||||
JEllipsis,
|
JEllipsis,
|
||||||
@@ -335,6 +339,8 @@
|
|||||||
this.getDepotData()
|
this.getDepotData()
|
||||||
this.initUser()
|
this.initUser()
|
||||||
this.initAccount()
|
this.initAccount()
|
||||||
|
this.initQuickBtn()
|
||||||
|
this.getDepotByCurrentUser()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -316,6 +316,10 @@
|
|||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
this.$nextTick(() => {
|
||||||
|
let tp = this.transferParam
|
||||||
|
this.linkBillListOk(tp.list, tp.number, tp.organId, tp.discountMoney, tp.deposit, tp.remark, this.defaultDepotId, tp.accountId)
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
if(this.model.linkNumber) {
|
if(this.model.linkNumber) {
|
||||||
this.rowCanEdit = false
|
this.rowCanEdit = false
|
||||||
@@ -412,9 +416,11 @@
|
|||||||
}
|
}
|
||||||
info.linkId = info.id
|
info.linkId = info.id
|
||||||
allTaxLastMoney += info.taxLastMoney
|
allTaxLastMoney += info.taxLastMoney
|
||||||
|
if(info.operNumber>0) {
|
||||||
listEx.push(info)
|
listEx.push(info)
|
||||||
this.changeColumnShow(info)
|
this.changeColumnShow(info)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
|
|||||||
@@ -300,6 +300,8 @@
|
|||||||
this.fileList = []
|
this.fileList = []
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({'getAmount':0, 'backAmount':0})
|
this.form.setFieldsValue({'getAmount':0, 'backAmount':0})
|
||||||
|
let tp = this.transferParam
|
||||||
|
this.linkBillListOk(tp.list, tp.number, tp.organId, tp.discountMoney, tp.deposit, tp.remark)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if(this.model.linkNumber) {
|
if(this.model.linkNumber) {
|
||||||
@@ -408,9 +410,11 @@
|
|||||||
let info = selectBillDetailRows[j];
|
let info = selectBillDetailRows[j];
|
||||||
info.linkId = info.id
|
info.linkId = info.id
|
||||||
allTaxLastMoney += info.allPrice
|
allTaxLastMoney += info.allPrice
|
||||||
|
if(info.operNumber>0) {
|
||||||
listEx.push(info)
|
listEx.push(info)
|
||||||
this.changeColumnShow(info)
|
this.changeColumnShow(info)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
|
|||||||
@@ -189,7 +189,7 @@
|
|||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort,changeListFmtMinus } from "@/utils/util"
|
import { getMpListShort, changeListFmtMinus, handleIntroJs } from '@/utils/util'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
@@ -321,6 +321,10 @@
|
|||||||
this.addInit(this.prefixNo)
|
this.addInit(this.prefixNo)
|
||||||
this.personList.value = ''
|
this.personList.value = ''
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
this.$nextTick(() => {
|
||||||
|
let tp = this.transferParam
|
||||||
|
this.linkBillListOk(tp.list, tp.number, tp.organId, tp.discountMoney, tp.deposit, tp.remark, this.defaultDepotId, tp.accountId, tp.salesMan)
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
if(this.model.linkNumber) {
|
if(this.model.linkNumber) {
|
||||||
this.rowCanEdit = false
|
this.rowCanEdit = false
|
||||||
@@ -422,9 +426,11 @@
|
|||||||
}
|
}
|
||||||
info.linkId = info.id
|
info.linkId = info.id
|
||||||
allTaxLastMoney += info.taxLastMoney
|
allTaxLastMoney += info.taxLastMoney
|
||||||
|
if(info.operNumber>0) {
|
||||||
listEx.push(info)
|
listEx.push(info)
|
||||||
this.changeColumnShow(info)
|
this.changeColumnShow(info)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.materialTable.dataSource = listEx
|
this.materialTable.dataSource = listEx
|
||||||
///给优惠后金额重新赋值
|
///给优惠后金额重新赋值
|
||||||
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
allTaxLastMoney = allTaxLastMoney?allTaxLastMoney:0
|
||||||
|
|||||||
Reference in New Issue
Block a user