|
|
@@ -29,7 +29,12 @@
|
|
|
:recorpayList.sync="recorpayList"
|
|
|
:dialogType="permissionType"
|
|
|
></recorpayTableList> -->
|
|
|
- <inventoryTable ref="inventoryTableref" type="purchase" :priceObj="priceObj" :dataForm="dataForm" :datasource.sync="datasource" :dialogType="permissionType" :taskDefinitionKey="taskDefinitionKey"></inventoryTable>
|
|
|
+ <!-- <InventoryTable ref="inventoryTableref" type="purchase" :priceObj="priceObj" :dataForm="dataForm" :datasource.sync="datasource" :dialogType="permissionType" :taskDefinitionKey="taskDefinitionKey"></InventoryTable> -->
|
|
|
+ <AccountDetailTable
|
|
|
+ ref="accountDetailTableRef"
|
|
|
+ :datasource.sync="datasource"
|
|
|
+ dialogType="view"
|
|
|
+ ></AccountDetailTable>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -40,14 +45,15 @@ import InventoryTable from "@/views/bpm/handleTask/components/saleOrder/accounts
|
|
|
import purchaseForm from "./purchaseForm.vue";
|
|
|
import {getSearchMergeListByTypeAPI, infoAccountStatementAPI, accountstatementInfoAPI} from "@/api/bpm/components/saleManage/saleorder";
|
|
|
import recorpayTableList from '@/views/bpm/handleTask/components/saleOrder/accountstatement/recorpayTableList.vue';
|
|
|
-
|
|
|
+import AccountDetailTable from '@/views/bpm/handleTask/components/saleOrder/accountstatement/accountDetailTable.vue';
|
|
|
export default {
|
|
|
name: 'page',
|
|
|
props: ['permissionType', 'businessId', 'taskDefinitionKey'],
|
|
|
components: {
|
|
|
InventoryTable,
|
|
|
purchaseForm,
|
|
|
- recorpayTableList
|
|
|
+ recorpayTableList,
|
|
|
+ AccountDetailTable
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -119,7 +125,10 @@ export default {
|
|
|
async getInfo(id) {
|
|
|
let data = await accountstatementInfoAPI(id)
|
|
|
console.log(data,'获取对账单详情')
|
|
|
- this.datasource = data?.orderList || []
|
|
|
+ this.datasource = data?.productList || [];
|
|
|
+ this.datasource.forEach(item=>{
|
|
|
+ item.color = item.colorKey || ''
|
|
|
+ })
|
|
|
// this.recorpayList=data?.recorpayList||[]
|
|
|
// data.orderTotalAmount = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.orderAmount * 100), 0) / 100;
|
|
|
// data.amountTotalPrice = data.orderList.reduce((pre, cur) => pre + Math.round(+cur.statementAmount * 100), 0) / 100;
|
|
|
@@ -182,7 +191,10 @@ export default {
|
|
|
this.updateData()
|
|
|
if (!await this.getFormValidate()) return
|
|
|
let data = await getSearchMergeListByTypeAPI(searchQuery)
|
|
|
- this.datasource = data.orderList || []
|
|
|
+ this.datasource = data?.productList || [];
|
|
|
+ this.datasource.forEach(item=>{
|
|
|
+ item.color = item.colorKey || ''
|
|
|
+ })
|
|
|
this.dataForm = {
|
|
|
...this.dataForm,
|
|
|
amountPayablePrice: data.amountPayablePrice,
|