|
@@ -1,18 +1,18 @@
|
|
|
<template>
|
|
|
- <!-- 成本分配 (保存后数据到单证的成本分配汇总内)-->
|
|
|
- <div id="costAllocationAdd">
|
|
|
+ <!-- 成本分配表 (保存后数据到单证的成本分配汇总内)-->
|
|
|
+ <div id="costAllocationTable">
|
|
|
<a-card :bordered="false">
|
|
|
<!-- 主表信息 点击搜索后 全部回显--->
|
|
|
<div class="table-page-search-wrapper">
|
|
|
- <a-form-model layout="inline" ref="form" :model="costAllocationAdd" :rules="validatorRules">
|
|
|
+ <a-form-model layout="inline" ref="form" :model="costAllocationTable" :rules="validatorRules">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="计划单号" prop="planNum">
|
|
|
- <!-- <a-input placeholder="请输入计划单号" v-model="costAllocationAdd.planNum"></a-input> -->
|
|
|
+ <!-- <a-input placeholder="请输入计划单号" v-model="costAllocationTable.planNum"></a-input> -->
|
|
|
<a-input-search
|
|
|
placeholder="请输入计划单号"
|
|
|
enter-button
|
|
|
- v-model="costAllocationAdd.planNum"
|
|
|
+ v-model="costAllocationTable.planNum"
|
|
|
@search="onSearch"
|
|
|
/>
|
|
|
</a-form-model-item>
|
|
@@ -21,37 +21,37 @@
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="产品款号" prop="poStyleNum">
|
|
|
产品款号AZ2445
|
|
|
- <!-- <a-input v-model="costAllocationAdd.poStyleNum" disabled></a-input> -->
|
|
|
+ <!-- <a-input v-model="costAllocationTable.poStyleNum" disabled></a-input> -->
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="外销员" prop="exportSales">
|
|
|
- <a-input v-model="costAllocationAdd.exportSales" ></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.exportSales" ></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="成衣合同号" prop="garmentContractNo">
|
|
|
- <a-input v-model="costAllocationAdd.garmentContractNo"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.garmentContractNo"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="部门" prop="department">
|
|
|
- <a-input v-model="costAllocationAdd.department"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.department"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="客户简称" prop="customerShortName">
|
|
|
- <a-input v-model="costAllocationAdd.customerShortName"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.customerShortName"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="加工单位" prop="processUnit">
|
|
|
- <a-input v-model="costAllocationAdd.processUnit"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.processUnit"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -60,27 +60,27 @@
|
|
|
<a-date-picker
|
|
|
style="width: 100%"
|
|
|
:format="dateFormat"
|
|
|
- v-model="costAllocationAdd.outData"
|
|
|
+ v-model="costAllocationTable.outData"
|
|
|
></a-date-picker>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="计划数量" prop="planQuantity">
|
|
|
- <a-input v-model="costAllocationAdd.planQuantity"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.planQuantity"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="美元外销总价" prop="USDTotalExportPrice">
|
|
|
- <a-input v-model="costAllocationAdd.USDTotalExportPrice"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.USDTotalExportPrice"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="人民币费用支出" prop="RMBExpense">
|
|
|
<a-input
|
|
|
- v-model="costAllocationAdd.RMBExpense"
|
|
|
+ v-model="costAllocationTable.RMBExpense"
|
|
|
style="color:#027db4;"
|
|
|
@click="mainTableExpenseCNY"
|
|
|
></a-input>
|
|
@@ -89,26 +89,26 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="税率%" prop="taxRate">
|
|
|
- <a-input v-model="costAllocationAdd.taxRate"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.taxRate"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="实际出货数量" prop="actualShipQuantity">
|
|
|
- <a-input v-model="costAllocationAdd.actualShipQuantity"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.actualShipQuantity"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="人民币外销金额" prop="RMBExportAmount">
|
|
|
- <a-input v-model="costAllocationAdd.RMBExportAmount"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.RMBExportAmount"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="美元费用支出" prop="USDExpense">
|
|
|
<a-input
|
|
|
- v-model="costAllocationAdd.USDExpense"
|
|
|
+ v-model="costAllocationTable.USDExpense"
|
|
|
style="color:#027db4;"
|
|
|
@click="mainTableExpenseUSD"
|
|
|
></a-input>
|
|
@@ -117,79 +117,79 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="加工费" prop="processCost">
|
|
|
- <a-input v-model="costAllocationAdd.processCost"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.processCost"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="短出数" prop="shortSeveral">
|
|
|
- <a-input v-model="costAllocationAdd.shortSeveral"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.shortSeveral"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="短出货值" prop="shortValue">
|
|
|
- <a-input v-model="costAllocationAdd.shortValue"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.shortValue"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="短出面料成本" prop="fabricShortCost">
|
|
|
- <a-input v-model="costAllocationAdd.fabricShortCost"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.fabricShortCost"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="事故单美金金额" prop="accidentUSDAmount">
|
|
|
- <a-input v-model="costAllocationAdd.accidentUSDAmount"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.accidentUSDAmount"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="面料含税成本" prop="fabricCostIncludesTax">
|
|
|
- <a-input v-model="costAllocationAdd.fabricCostIncludesTax"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.fabricCostIncludesTax"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="辅料含税成本" prop="excipienCostIncludesTax">
|
|
|
- <a-input v-model="costAllocationAdd.excipienCostIncludesTax"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.excipienCostIncludesTax"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="销售订单本币总额" prop="salesOrdersLocalTotal">
|
|
|
- <a-input v-model="costAllocationAdd.salesOrdersLocalTotal"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.salesOrdersLocalTotal"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="事故单人民币金额" prop="accidentCNYAmount">
|
|
|
- <a-input v-model="costAllocationAdd.accidentCNYAmount"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.accidentCNYAmount"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="面料不含税成本" prop="fabricCostNotIncludesTax">
|
|
|
- <a-input v-model="costAllocationAdd.fabricCostNotIncludesTax"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.fabricCostNotIncludesTax"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="辅料不含税成本" prop="excipienCostNotIncludesTax">
|
|
|
- <a-input v-model="costAllocationAdd.excipienCostNotIncludesTax"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.excipienCostNotIncludesTax"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="销售订单原币总额" prop="salesOrdersOriginalTotal">
|
|
|
- <a-input v-model="costAllocationAdd.salesOrdersOriginalTotal"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.salesOrdersOriginalTotal"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="制单人" prop="preparedBy">
|
|
|
- <a-input v-model="costAllocationAdd.preparedBy"></a-input>
|
|
|
+ <a-input v-model="costAllocationTable.preparedBy"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
@@ -242,11 +242,11 @@
|
|
|
<div class="note-one" style="marginTop:40px;">
|
|
|
<h6 class="table-title">备注信息 1</h6>
|
|
|
<div class="noteDetail">
|
|
|
- <a-form-model ref="form" :model="costAllocationAdd" :rues="validatorRules">
|
|
|
+ <a-form-model ref="form" :model="costAllocationTable" :rues="validatorRules">
|
|
|
<a-form-model-item prop="noteOne">
|
|
|
<a-input
|
|
|
type="textarea"
|
|
|
- v-model="costAllocationAdd.noteOne"
|
|
|
+ v-model="costAllocationTable.noteOne"
|
|
|
placeholder="请输入备注"
|
|
|
style="minHeight:100px;"
|
|
|
/>
|
|
@@ -259,11 +259,11 @@
|
|
|
<!-- <div class="note-one" style="marginTop:40px;">
|
|
|
<h6 class="table-title">备注信息 2</h6>
|
|
|
<div class="noteDetail">
|
|
|
- <a-form-model ref="form" :model="costAllocationAdd" :rues="validatorRules">
|
|
|
+ <a-form-model ref="form" :model="costAllocationTable" :rues="validatorRules">
|
|
|
<a-form-model-item prop="noteOne">
|
|
|
<a-input
|
|
|
type="textarea"
|
|
|
- v-model="costAllocationAdd.noteTwo"
|
|
|
+ v-model="costAllocationTable.noteTwo"
|
|
|
placeholder="请输入备注"
|
|
|
style="minHeight:100px;"
|
|
|
/>
|
|
@@ -304,14 +304,14 @@ import mainTableExpenseUSDModal from '@views/reportForms/cost-allocation-table/m
|
|
|
import accidentListModal from '@views/reportForms/fabric-loss-table/accidentListModal.vue' // 事故单
|
|
|
|
|
|
export default {
|
|
|
- name: 'CostAllocationAdd', // 成本分配 (新增)
|
|
|
+ name: 'CostAllocationTable', // 成本分配 (新增)
|
|
|
mixins: [JeecgListMixin],
|
|
|
components: { JEllipsis, moment, tabs, mainTableExpenseCNYModal, mainTableExpenseUSDModal, accidentListModal },
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false, // 表格加载
|
|
|
- costAllocationAdd: {}, // 成本分配统计
|
|
|
+ costAllocationTable: {}, // 成本分配统计
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
noteOne: '', // 备注 1
|
|
|
noteTwo: '', // 备注 2
|
|
@@ -387,7 +387,7 @@ export default {
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
|
// alert('保存!')
|
|
|
- console.log('备注信息:', this.costAllocationAdd.noteOne, '计划单号:', this.costAllocationAdd.planNum)
|
|
|
+ console.log('备注信息:', this.costAllocationTable.noteOne, '计划单号:', this.costAllocationTable.planNum)
|
|
|
// that.$message.success(res.message)
|
|
|
that.$message.success('保存成功,数据添加到成本分配汇总')
|
|
|
} else {
|