|
@@ -1,192 +1,179 @@
|
|
|
<template>
|
|
|
- <!-- 详情 成本分配汇总 此页面全部回显信息 不现实输入框-->
|
|
|
- <div id="costAllocationDrawer">
|
|
|
- <a-drawer
|
|
|
- title="详情"
|
|
|
- width="89%"
|
|
|
- placement="right"
|
|
|
- :closable="true"
|
|
|
- :visible="visible"
|
|
|
- @close="onClose">
|
|
|
+ <!-- 详情 成本分配汇总-->
|
|
|
+ <div id="costDetailDrawer">
|
|
|
+ <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="onClose">
|
|
|
<!-- 主表信息 -->
|
|
|
<a-card :bordered="true">
|
|
|
<div class="table-page-search-wrapper">
|
|
|
- <a-form layout="inline">
|
|
|
+ <a-form-model layout="inline">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="计划单号">
|
|
|
- <a-input v-model="costAllocation.planNum"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="计划单号" prop="planNum">
|
|
|
+ <!-- 123456 -->
|
|
|
+ {{ detailsPlanNum.planNum }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="产品款号" has-feedback>
|
|
|
- <a-input v-model="costAllocation.poStyleNum"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="产品款号" prop="poStyleNum">
|
|
|
+ {{ detailsPlanNum.poStyleNum }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="外销员">
|
|
|
- <a-input v-model="costAllocation.exportSales"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="外销员" prop="exportSales">
|
|
|
+ {{ detailsPlanNum.exportSales }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="成衣合同号">
|
|
|
- <a-input v-model="costAllocation.garmentContractNo"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="成衣合同号" prop="garmentContractno">
|
|
|
+ {{ detailsPlanNum.garmentContractno }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="部门">
|
|
|
- <a-input v-model="costAllocation.department"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="部门" prop="department">
|
|
|
+ {{ detailsPlanNum.department }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="客户简称">
|
|
|
- <a-input v-model="costAllocation.customerShortName"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="客户简称" prop="customerShortame">
|
|
|
+ {{ detailsPlanNum.customerShortame }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="加工单位">
|
|
|
- <a-input v-model="costAllocation.processUnit"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="加工单位" prop="processUnit">
|
|
|
+ {{ detailsPlanNum.processUnit }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="出运日期">
|
|
|
- <a-date-picker style="width: 100%" v-model="costAllocation.outData"></a-date-picker>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="出运日期" prop="outdata">
|
|
|
+ {{ detailsPlanNum.outdata }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="计划数量">
|
|
|
- <a-input v-model="costAllocation.planQuantity"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="计划数量" prop="planQuantity">
|
|
|
+ {{ detailsPlanNum.planQuantity }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="美元外销总价">
|
|
|
- <a-input v-model="costAllocation.USDTotalExportPrice"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="美元外销总价" prop="usdTotalexportprice">
|
|
|
+ {{ detailsPlanNum.usdTotalexportprice }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="人民币费用支出">
|
|
|
- <a-input
|
|
|
- v-model="costAllocation.RMBExpense"
|
|
|
- style="color:#027db4;"
|
|
|
- @click="mainTableExpenseCNY"
|
|
|
- ></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="人民币费用支出" prop="rmbExpense">
|
|
|
+ {{ detailsPlanNum.rmbExpense }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="税率%">
|
|
|
- <a-input v-model="costAllocation.taxRate"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="税率%" prop="taxrate">
|
|
|
+ {{ detailsPlanNum.taxrate }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="实际出货数量">
|
|
|
- <a-input v-model="costAllocation.actualShipQuantity"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="实际出货数量" prop="actualShipquantity">
|
|
|
+ {{ detailsPlanNum.actualShipquantity }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="人民币外销金额">
|
|
|
- <a-input v-model="costAllocation.RMBExportAmount"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="人民币外销金额" prop="rmbExportamount">
|
|
|
+ {{ detailsPlanNum.rmbExportamount }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="美元费用支出">
|
|
|
- <a-input
|
|
|
- v-model="costAllocation.USDExpense"
|
|
|
- style="color:#027db4;"
|
|
|
- @click="mainTableExpenseUSD"
|
|
|
- ></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="美元费用支出" prop="usdExpense">
|
|
|
+ {{ detailsPlanNum.usdExpense }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="加工费">
|
|
|
- <a-input v-model="costAllocation.processCost"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="加工费" prop="rmbProcesscost">
|
|
|
+ {{ detailsPlanNum.rmbProcesscost }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="短出数">
|
|
|
- <a-input v-model="costAllocation.shortSeveral"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="短出数" prop="shortseveral">
|
|
|
+ {{ detailsPlanNum.shortseveral }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="短出货值">
|
|
|
- <a-input v-model="costAllocation.shortValue"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="短出货值" prop="shortvalue">
|
|
|
+ {{ detailsPlanNum.shortvalue }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="短出面料成本">
|
|
|
- <a-input v-model="costAllocation.fabricShortCost"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="短出面料成本" prop="fabricshortcost">
|
|
|
+ {{ detailsPlanNum.fabricshortcost }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="事故单美金金额">
|
|
|
- <a-input v-model="costAllocation.accidentUSDAmount"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="事故单美金金额" prop="accidentUsdamount">
|
|
|
+ {{ detailsPlanNum.accidentUsdamount }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="面料含税成本">
|
|
|
- <a-input v-model="costAllocation.fabricCostIncludesTax"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="面料含税成本" prop="fabriccostIncludestax">
|
|
|
+ {{ detailsPlanNum.fabriccostIncludestax }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="辅料含税成本">
|
|
|
- <a-input v-model="costAllocation.excipienCostIncludesTax"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="辅料含税成本" prop="excipiencostIncludestax">
|
|
|
+ {{ detailsPlanNum.excipiencostIncludestax }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="销售订单本币总额">
|
|
|
- <a-input v-model="costAllocation.salesOrdersLocalTotal"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="销售订单本币总额" prop="salesordersLocaltotal">
|
|
|
+ {{ detailsPlanNum.salesordersLocaltotal }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="事故单人民币金额">
|
|
|
- <a-input v-model="costAllocation.accidentCNYAmount"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="事故单人民币金额" prop="accidentcnyAmount">
|
|
|
+ {{ detailsPlanNum.accidentcnyAmount }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="面料不含税成本">
|
|
|
- <a-input v-model="costAllocation.fabricCostNotIncludesTax"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="面料不含税成本" prop="fabriccostNotincludestax">
|
|
|
+ {{ detailsPlanNum.fabriccostNotincludestax }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="辅料不含税成本">
|
|
|
- <a-input v-model="costAllocation.excipienCostNotIncludesTax"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="辅料不含税成本" prop="excipiencostNotincludestax">
|
|
|
+ {{ detailsPlanNum.excipiencostNotincludestax }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="销售订单原币总额">
|
|
|
- <a-input v-model="costAllocation.salesOrdersOriginalTotal"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="销售订单原币总额" prop="salesrrdersOriginaltotal">
|
|
|
+ {{ detailsPlanNum.salesrrdersOriginaltotal }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-item label="制单人">
|
|
|
- <a-input v-model="costAllocation.preparedBy"></a-input>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-model-item label="制单人" prop="preparedBy">
|
|
|
+ {{ detailsPlanNum.preparedBy }}
|
|
|
+ </a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
@@ -196,7 +183,7 @@
|
|
|
</h4>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- </a-form>
|
|
|
+ </a-form-model>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
|
|
@@ -217,6 +204,7 @@
|
|
|
:data-source="accidentListData"
|
|
|
bordered
|
|
|
:pagination="false"
|
|
|
+ :scroll="{ y: 300 }"
|
|
|
>
|
|
|
<!-- 事故单 -->
|
|
|
<span slot="accidentNum" slot-scope="text">
|
|
@@ -239,21 +227,13 @@
|
|
|
</a-table>
|
|
|
</div>
|
|
|
|
|
|
- <!-- 备注信息 1 根据角色权限控制【填写】、【查看】-->
|
|
|
+ <!-- 备注信息 根据角色权限控制【填写】、【查看】-->
|
|
|
<div class="note-one" style="marginTop:40px;">
|
|
|
- <h6 class="table-title">备注信息 1</h6>
|
|
|
+ <h6 class="table-title">备注信息</h6>
|
|
|
<div class="noteDetail">
|
|
|
- <a-input type="textarea" v-model="noteOne" placeholder="请输入备注 1" style="minHeight:100px;" />
|
|
|
- <a-button type="primary" @click="savenoteOne">保存</a-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 备注信息 2 根据角色权限控制【填写】、【查看】-->
|
|
|
- <div class="note-two" style="marginTop:40px;">
|
|
|
- <h6 class="table-title">备注信息 2</h6>
|
|
|
- <div class="noteDetail">
|
|
|
- <a-input type="textarea" v-model="noteTwo" placeholder="请输入备注 2" style="minHeight:100px;" />
|
|
|
- <a-button type="primary" @click="savenoteTwo">保存</a-button>
|
|
|
+ 我是备注信息test我是备注信息test我是备注信息test我是备注信息test我是备注信息test我是备注信息test
|
|
|
+ <!-- {{ detailsPlanNum.remarks }} -->
|
|
|
+ <!-- <a-input type="textarea" v-model="noteOne" placeholder="请输入备注 1" style="minHeight:100px;" /> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-card>
|
|
@@ -275,23 +255,25 @@
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
+
|
|
|
import tabs from '@views/cost-allocation-total/tabs.vue' // tabs组件
|
|
|
+
|
|
|
import mainTableExpenseCNYModal from '@views/cost-allocation-total/modal/mainTableExpenseCNYModal.vue'
|
|
|
import mainTableExpenseUSDModal from '@views/cost-allocation-total/modal/mainTableExpenseUSDModal.vue'
|
|
|
import accidentListModal from '@views/cost-allocation-total/modal/accidentListModal.vue' // 事故单
|
|
|
|
|
|
+import { costByPlanNum } from '@api/document/cost-allocation-total.js'
|
|
|
+
|
|
|
export default {
|
|
|
- name: 'DetailsDrawer', // 详情抽屉
|
|
|
+ name: 'CostDetailDrawer', // 详情抽屉
|
|
|
mixins: [JeecgListMixin],
|
|
|
components: { JEllipsis, moment, tabs, mainTableExpenseCNYModal, mainTableExpenseUSDModal, accidentListModal },
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false, // 表格加载
|
|
|
- costAllocation: [], // 成本分配统计
|
|
|
-
|
|
|
- noteOne: '', // 备注 1
|
|
|
- noteTwo: '', // 备注 2
|
|
|
+ detailsPlanNum: {}, //主表回显回显
|
|
|
+ remarks: '', // 备注
|
|
|
|
|
|
// 事故单 表头
|
|
|
accidentListColumns: [
|
|
@@ -306,7 +288,8 @@ export default {
|
|
|
{ title: '事故承担方', width: 120, dataIndex: 'accidentUndertaker', className: 'replacecolor' },
|
|
|
{ title: '金额', dataIndex: 'amount', width: 120, className: 'replacecolor' }
|
|
|
],
|
|
|
- accidentListData: [{ accidentNum: '1100011' }, {}],
|
|
|
+ accidentListData: [],
|
|
|
+
|
|
|
// 费用支出 表头
|
|
|
costPayColumns: [
|
|
|
{ title: '账套号', width: 120, dataIndex: 'setNo', className: 'replacecolor' },
|
|
@@ -317,14 +300,36 @@ export default {
|
|
|
{ title: '发票号', dataIndex: 'invoiceNum', width: 120, className: 'replacecolor' },
|
|
|
{ title: '制单人', dataIndex: 'preparedBy', width: 120, className: 'replacecolor' }
|
|
|
],
|
|
|
- costPayData: [{}],
|
|
|
- visible: false // 成本分配统计表详情 抽屉
|
|
|
+ costPayData: [],
|
|
|
+ visible: false,
|
|
|
+ record: {} //点击的计划单号
|
|
|
}
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.getALLDetail()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getALLDetail() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ console.log('详情拿到planNum', this.record.planNum)
|
|
|
+ costByPlanNum({ plannum: this.record.planNum }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ console.log('详情所有数据id', res.result[0].createBy)
|
|
|
+ this.detailsPlanNum = res.result[0]
|
|
|
+
|
|
|
+ this.accidentListData = res.result[0].syCostAllocationAccidentList //事故单
|
|
|
+ this.costPayData = res.result[0].syCostAllocationCostpayList //支出费用
|
|
|
+
|
|
|
+ this.pagination = {
|
|
|
+ total: res.result.total,
|
|
|
+ current: res.result.current,
|
|
|
+ pageSize: res.result.size
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 同步按钮 synchronization() {},
|
|
|
-
|
|
|
// 主表:人民币费用支出 弹框
|
|
|
mainTableExpenseCNY() {
|
|
|
console.log('点击:主表人民币费用支出')
|
|
@@ -348,18 +353,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // ---------------------------------------
|
|
|
- // 保存备注 1
|
|
|
- savenoteOne() {
|
|
|
- console.log('保存 备注 1')
|
|
|
- },
|
|
|
- // 保存备注 2
|
|
|
- savenoteTwo() {
|
|
|
- console.log('保存 备注 2')
|
|
|
- },
|
|
|
|
|
|
onClose() {
|
|
|
- // 关闭抽屉
|
|
|
this.visible = false
|
|
|
},
|
|
|
|
|
@@ -368,9 +363,7 @@ export default {
|
|
|
aa() {},
|
|
|
bb() {},
|
|
|
cc() {}
|
|
|
- },
|
|
|
- computed: {},
|
|
|
- mounted() {}
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
@@ -402,4 +395,8 @@ export default {
|
|
|
padding: 10px;
|
|
|
}
|
|
|
|
|
|
+// 回显label文字
|
|
|
+/deep/.ant-form-item-label > label {
|
|
|
+ font-weight: 700;
|
|
|
+}
|
|
|
</style>
|