|
|
@ -257,6 +257,329 @@
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
|
|
|
|
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
|
|
|
|
<div class="JNPF-common-title">
|
|
|
|
|
|
|
|
<h2>价格公式</h2>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-table :data="dataForm.contractLPriceFormulaList" size='mini'>
|
|
|
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
|
|
|
<el-table-column label="公式编码" v-if="judgeShow('contractlpriceformula-priceFormulaCode')"
|
|
|
|
|
|
|
|
prop="priceFormulaCode">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-priceFormulaCode')">*</span>公式编码
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.priceFormulaCode"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-priceFormulaCode', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="系统自动生成"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-priceFormulaCode')"
|
|
|
|
|
|
|
|
readonly :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="价格公式类型" v-if="judgeShow('contractlpriceformula-priceFormulaType')"
|
|
|
|
|
|
|
|
prop="priceFormulaType">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-priceFormulaType')">*</span>价格公式类型
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfSelect v-model="scope.row.priceFormulaType"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-priceFormulaType', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-priceFormulaType')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'
|
|
|
|
|
|
|
|
:options="contractlpriceformulapriceFormulaTypeOptions"
|
|
|
|
|
|
|
|
:props="contractlpriceformulapriceFormulaTypeProps">
|
|
|
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="固定利润1" v-if="judgeShow('contractlpriceformula-fixedProfit1')"
|
|
|
|
|
|
|
|
prop="fixedProfit1">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-fixedProfit1')">*</span>固定利润1
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.fixedProfit1"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-fixedProfit1', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-fixedProfit1')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="固定利润2" v-if="judgeShow('contractlpriceformula-fixedProfit2')"
|
|
|
|
|
|
|
|
prop="fixedProfit2">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-fixedProfit2')">*</span>固定利润2
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.fixedProfit2"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-fixedProfit2', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-fixedProfit2')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="固定金额" v-if="judgeShow('contractlpriceformula-fixedAmount')"
|
|
|
|
|
|
|
|
prop="fixedAmount">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-fixedAmount')">*</span>固定金额
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.fixedAmount"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-fixedAmount', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-fixedAmount')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="户头费" v-if="judgeShow('contractlpriceformula-accountCost')"
|
|
|
|
|
|
|
|
prop="accountCost">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-accountCost')">*</span>户头费
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.accountCost"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-accountCost', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-accountCost')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="装卸费" v-if="judgeShow('contractlpriceformula-handleCost')"
|
|
|
|
|
|
|
|
prop="handleCost">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-handleCost')">*</span>装卸费
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.handleCost"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-handleCost', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-handleCost')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="倒运费" v-if="judgeShow('contractlpriceformula-reshipmentCost')"
|
|
|
|
|
|
|
|
prop="reshipmentCost">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-reshipmentCost')">*</span>倒运费
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.reshipmentCost"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-reshipmentCost', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-reshipmentCost')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="其它费用1" v-if="judgeShow('contractlpriceformula-otherCost1')"
|
|
|
|
|
|
|
|
prop="otherCost1">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-otherCost1')">*</span>其它费用1
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.otherCost1"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-otherCost1', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-otherCost1')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="其它费用2" v-if="judgeShow('contractlpriceformula-otherCost2')"
|
|
|
|
|
|
|
|
prop="otherCost2">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-otherCost2')">*</span>其它费用2
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.otherCost2"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-otherCost2', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-otherCost2')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="其它费用3" v-if="judgeShow('contractlpriceformula-otherCost3')"
|
|
|
|
|
|
|
|
prop="otherCost3">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-otherCost3')">*</span>其它费用3
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.otherCost3"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-otherCost3', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-otherCost3')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="其它费用4" v-if="judgeShow('contractlpriceformula-otherCost4')"
|
|
|
|
|
|
|
|
prop="otherCost4">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-otherCost4')">*</span>其它费用4
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.otherCost4"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-otherCost4', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-otherCost4')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="结算吨数" v-if="judgeShow('contractlpriceformula-settlementTonnage')"
|
|
|
|
|
|
|
|
prop="settlementTonnage">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-settlementTonnage')">*</span>结算吨数
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementTonnage"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-settlementTonnage', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-settlementTonnage')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="对应吨数" v-if="judgeShow('contractlpriceformula-correspondTonnage')"
|
|
|
|
|
|
|
|
prop="correspondTonnage">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-correspondTonnage')">*</span>对应吨数
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.correspondTonnage"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-correspondTonnage', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-correspondTonnage')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="销售吨数" v-if="judgeShow('contractlpriceformula-saleTonnage')"
|
|
|
|
|
|
|
|
prop="saleTonnage">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-saleTonnage')">*</span>销售吨数
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.saleTonnage"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-saleTonnage', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-saleTonnage')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="税率" v-if="judgeShow('contractlpriceformula-taxRate')"
|
|
|
|
|
|
|
|
prop="taxRate">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-taxRate')">*</span>税率
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.taxRate"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-taxRate', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-taxRate')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="客户税负率" v-if="judgeShow('contractlpriceformula-taxRateCustomer')"
|
|
|
|
|
|
|
|
prop="taxRateCustomer">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-taxRateCustomer')">*</span>客户税负率
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.taxRateCustomer"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-taxRateCustomer', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-taxRateCustomer')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="黄牛税负率" v-if="judgeShow('contractlpriceformula-taxRateYellowBull')"
|
|
|
|
|
|
|
|
prop="taxRateYellowBull">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-taxRateYellowBull')">*</span>黄牛税负率
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.taxRateYellowBull"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-taxRateYellowBull', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-taxRateYellowBull')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="开票公司税负率"
|
|
|
|
|
|
|
|
v-if="judgeShow('contractlpriceformula-taxRateInvoicingCompany')"
|
|
|
|
|
|
|
|
prop="taxRateInvoicingCompany">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-taxRateInvoicingCompany')">*</span>开票公司税负率
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.taxRateInvoicingCompany"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-taxRateInvoicingCompany', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-taxRateInvoicingCompany')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="资金利率" v-if="judgeShow('contractlpriceformula-fundRate')"
|
|
|
|
|
|
|
|
prop="fundRate">
|
|
|
|
|
|
|
|
<template slot="header">
|
|
|
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
|
|
|
v-if="judgeRequired('contractlpriceformulaList-fundRate')">*</span>资金利率
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<JnpfInput v-model="scope.row.fundRate"
|
|
|
|
|
|
|
|
@change="changeData('contractlpriceformula-fundRate', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlpriceformulaList') || judgeWrite('contractlpriceformulaList-fundRate')"
|
|
|
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="50" v-if="!judgeWrite('contractlpriceformulaList')">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
|
|
|
@click="delcontractLPriceFormulaList(scope.$index)">删除</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
<div class="table-actions" @click="addcontractLPriceFormulaList()"
|
|
|
|
|
|
|
|
v-if="!judgeWrite('contractlpriceformulaList')">
|
|
|
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<jnpf-form-tip-item>
|
|
|
|
<JnpfText
|
|
|
|
<JnpfText
|
|
|
@ -265,7 +588,7 @@
|
|
|
|
</JnpfText>
|
|
|
|
</JnpfText>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24" v-if="judgeShow('-${html.relationField}')">
|
|
|
|
<el-col :span="24" v-if="judgeShow('contractlpriceformula-${html.relationField}')">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
<el-table :data="dataForm.contractLCommodityList" size='mini'>
|
|
|
|
<el-table :data="dataForm.contractLCommodityList" size='mini'>
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
@ -281,9 +604,9 @@
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
:rowIndex="scope.$index" :formData="dataForm"
|
|
|
|
:templateJson="interfaceRes.contractlcommoditycommodityName" placeholder="请选择"
|
|
|
|
:templateJson="interfaceRes.contractlcommoditycommodityName" placeholder="请选择"
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityName')"
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityName')"
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
propsValue="name" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
relationField='fullName' :field="'commodityName' + scope.$index"
|
|
|
|
relationField='name' :field="'commodityName' + scope.$index"
|
|
|
|
interfaceId="523160915206474309" :pageSize="20"
|
|
|
|
interfaceId="530288111456878597" :pageSize="20"
|
|
|
|
:columnOptions="contractlcommoditycommodityNamecolumnOptions" clearable
|
|
|
|
:columnOptions="contractlcommoditycommodityNamecolumnOptions" clearable
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
</JnpfPopupSelect>
|
|
|
@ -724,6 +1047,7 @@ export default {
|
|
|
|
currTableConf: {},
|
|
|
|
currTableConf: {},
|
|
|
|
dataValueAll: {},
|
|
|
|
dataValueAll: {},
|
|
|
|
addTableConf: {
|
|
|
|
addTableConf: {
|
|
|
|
|
|
|
|
contractLPriceFormulaList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLCommodityList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLCommodityList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLFeeClauseList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLFeeClauseList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLPaymentList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
|
contractLPaymentList: { "popupType": "dialog", "hasPage": true, "popupTitle": "选择数据", "pageSize": 20, "columnOptions": [], "interfaceId": "", "interfaceName": "", "relationOptions": [], "templateJson": [], "popupWidth": "800px" },
|
|
|
@ -732,6 +1056,48 @@ export default {
|
|
|
|
ableAll: {
|
|
|
|
ableAll: {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableRows: {
|
|
|
|
tableRows: {
|
|
|
|
|
|
|
|
contractLPriceFormulaList: {
|
|
|
|
|
|
|
|
priceFormulaCode: '',
|
|
|
|
|
|
|
|
priceFormulaCodeOptions: [],
|
|
|
|
|
|
|
|
priceFormulaTypeOptions: [],
|
|
|
|
|
|
|
|
fixedProfit1: '',
|
|
|
|
|
|
|
|
fixedProfit1Options: [],
|
|
|
|
|
|
|
|
fixedProfit2: '',
|
|
|
|
|
|
|
|
fixedProfit2Options: [],
|
|
|
|
|
|
|
|
fixedAmount: '',
|
|
|
|
|
|
|
|
fixedAmountOptions: [],
|
|
|
|
|
|
|
|
accountCost: '',
|
|
|
|
|
|
|
|
accountCostOptions: [],
|
|
|
|
|
|
|
|
handleCost: '',
|
|
|
|
|
|
|
|
handleCostOptions: [],
|
|
|
|
|
|
|
|
reshipmentCost: '',
|
|
|
|
|
|
|
|
reshipmentCostOptions: [],
|
|
|
|
|
|
|
|
otherCost1: '',
|
|
|
|
|
|
|
|
otherCost1Options: [],
|
|
|
|
|
|
|
|
otherCost2: '',
|
|
|
|
|
|
|
|
otherCost2Options: [],
|
|
|
|
|
|
|
|
otherCost3: '',
|
|
|
|
|
|
|
|
otherCost3Options: [],
|
|
|
|
|
|
|
|
otherCost4: '',
|
|
|
|
|
|
|
|
otherCost4Options: [],
|
|
|
|
|
|
|
|
settlementTonnage: '',
|
|
|
|
|
|
|
|
settlementTonnageOptions: [],
|
|
|
|
|
|
|
|
correspondTonnage: '',
|
|
|
|
|
|
|
|
correspondTonnageOptions: [],
|
|
|
|
|
|
|
|
saleTonnage: '',
|
|
|
|
|
|
|
|
saleTonnageOptions: [],
|
|
|
|
|
|
|
|
taxRate: '',
|
|
|
|
|
|
|
|
taxRateOptions: [],
|
|
|
|
|
|
|
|
taxRateCustomer: '',
|
|
|
|
|
|
|
|
taxRateCustomerOptions: [],
|
|
|
|
|
|
|
|
taxRateYellowBull: '',
|
|
|
|
|
|
|
|
taxRateYellowBullOptions: [],
|
|
|
|
|
|
|
|
taxRateInvoicingCompany: '',
|
|
|
|
|
|
|
|
taxRateInvoicingCompanyOptions: [],
|
|
|
|
|
|
|
|
fundRate: '',
|
|
|
|
|
|
|
|
fundRateOptions: [],
|
|
|
|
|
|
|
|
enabledmark: undefined
|
|
|
|
|
|
|
|
},
|
|
|
|
contractLCommodityList: {
|
|
|
|
contractLCommodityList: {
|
|
|
|
commodityName: '',
|
|
|
|
commodityName: '',
|
|
|
|
commodityNameOptions: [],
|
|
|
|
commodityNameOptions: [],
|
|
|
@ -802,6 +1168,7 @@ export default {
|
|
|
|
transactionAppendices: [],
|
|
|
|
transactionAppendices: [],
|
|
|
|
transactionAppendices2: [],
|
|
|
|
transactionAppendices2: [],
|
|
|
|
contractLabel: [],
|
|
|
|
contractLabel: [],
|
|
|
|
|
|
|
|
contractLPriceFormulaList: [],
|
|
|
|
contractLCommodityList: [],
|
|
|
|
contractLCommodityList: [],
|
|
|
|
contractLFeeClauseList: [],
|
|
|
|
contractLFeeClauseList: [],
|
|
|
|
contractLPaymentList: [],
|
|
|
|
contractLPaymentList: [],
|
|
|
@ -901,7 +1268,9 @@ export default {
|
|
|
|
pricingModelProps: { "label": "fullName", "value": "enCode" },
|
|
|
|
pricingModelProps: { "label": "fullName", "value": "enCode" },
|
|
|
|
contractLabelOptions: [],
|
|
|
|
contractLabelOptions: [],
|
|
|
|
contractLabelProps: { "label": "fullName", "value": "enCode" },
|
|
|
|
contractLabelProps: { "label": "fullName", "value": "enCode" },
|
|
|
|
contractlcommoditycommodityNamecolumnOptions: [],
|
|
|
|
contractlpriceformulapriceFormulaTypeOptions: [],
|
|
|
|
|
|
|
|
contractlpriceformulapriceFormulaTypeProps: { "label": "fullName", "value": "enCode" },
|
|
|
|
|
|
|
|
contractlcommoditycommodityNamecolumnOptions: [{ "label": "商品名称", "value": "name" }, { "label": "商品编码", "value": "code" }, { "label": "商品图片", "value": "photo" }, { "label": "商品规格", "value": "spec" }, { "label": "库存单位", "value": "inventory_unit_id" }, { "label": "采购单位", "value": "order_main_unit_id" }, { "label": "销售单位", "value": "sales_main_unit_id" },],
|
|
|
|
contractlcommodityprocureUnitOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }],
|
|
|
|
contractlcommodityprocureUnitOptions: [{ "fullName": "选项一", "id": "1" }, { "fullName": "选项二", "id": "2" }],
|
|
|
|
contractlcommodityprocureUnitProps: { "label": "fullName", "value": "id" },
|
|
|
|
contractlcommodityprocureUnitProps: { "label": "fullName", "value": "id" },
|
|
|
|
contractlfeeclausefeeTypeOptions: [],
|
|
|
|
contractlfeeclausefeeTypeOptions: [],
|
|
|
@ -940,7 +1309,27 @@ export default {
|
|
|
|
transactionAppendices: [],
|
|
|
|
transactionAppendices: [],
|
|
|
|
transactionAppendices2: [],
|
|
|
|
transactionAppendices2: [],
|
|
|
|
contractLabel: [],
|
|
|
|
contractLabel: [],
|
|
|
|
contractlcommoditycommodityName: [{ "fieldName": "", "field": "contractId", "defaultValue": "", "dataType": "varchar", "id": "spNokw1", "required": "0" }],
|
|
|
|
contractlpriceformulapriceFormulaCode: [],
|
|
|
|
|
|
|
|
contractlpriceformulapriceFormulaType: [],
|
|
|
|
|
|
|
|
contractlpriceformulafixedProfit1: [],
|
|
|
|
|
|
|
|
contractlpriceformulafixedProfit2: [],
|
|
|
|
|
|
|
|
contractlpriceformulafixedAmount: [],
|
|
|
|
|
|
|
|
contractlpriceformulaaccountCost: [],
|
|
|
|
|
|
|
|
contractlpriceformulahandleCost: [],
|
|
|
|
|
|
|
|
contractlpriceformulareshipmentCost: [],
|
|
|
|
|
|
|
|
contractlpriceformulaotherCost1: [],
|
|
|
|
|
|
|
|
contractlpriceformulaotherCost2: [],
|
|
|
|
|
|
|
|
contractlpriceformulaotherCost3: [],
|
|
|
|
|
|
|
|
contractlpriceformulaotherCost4: [],
|
|
|
|
|
|
|
|
contractlpriceformulasettlementTonnage: [],
|
|
|
|
|
|
|
|
contractlpriceformulacorrespondTonnage: [],
|
|
|
|
|
|
|
|
contractlpriceformulasaleTonnage: [],
|
|
|
|
|
|
|
|
contractlpriceformulataxRate: [],
|
|
|
|
|
|
|
|
contractlpriceformulataxRateCustomer: [],
|
|
|
|
|
|
|
|
contractlpriceformulataxRateYellowBull: [],
|
|
|
|
|
|
|
|
contractlpriceformulataxRateInvoicingCompany: [],
|
|
|
|
|
|
|
|
contractlpriceformulafundRate: [],
|
|
|
|
|
|
|
|
contractlcommoditycommodityName: [],
|
|
|
|
contractlcommoditycommodityCode: [],
|
|
|
|
contractlcommoditycommodityCode: [],
|
|
|
|
contractlcommodityspecifications: [],
|
|
|
|
contractlcommodityspecifications: [],
|
|
|
|
contractlcommodityinventoryUnit: [],
|
|
|
|
contractlcommodityinventoryUnit: [],
|
|
|
@ -1021,6 +1410,7 @@ export default {
|
|
|
|
this.getcostBearingMianOptions();
|
|
|
|
this.getcostBearingMianOptions();
|
|
|
|
this.getpricingModelOptions();
|
|
|
|
this.getpricingModelOptions();
|
|
|
|
this.getcontractLabelOptions();
|
|
|
|
this.getcontractLabelOptions();
|
|
|
|
|
|
|
|
this.getcontractlpriceformulapriceFormulaTypeOptions();
|
|
|
|
this.getcontractlfeeclausefeeTypeOptions();
|
|
|
|
this.getcontractlfeeclausefeeTypeOptions();
|
|
|
|
this.getcontractlpaymentpaymentNodeOptions();
|
|
|
|
this.getcontractlpaymentpaymentNodeOptions();
|
|
|
|
this.getcontractlpaymentpaymentMethodOptions();
|
|
|
|
this.getcontractlpaymentpaymentMethodOptions();
|
|
|
@ -1072,11 +1462,19 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.contractlpriceformulaExist()) return
|
|
|
|
if (!this.contractlcommodityExist()) return
|
|
|
|
if (!this.contractlcommodityExist()) return
|
|
|
|
if (!this.contractlfeeclauseExist()) return
|
|
|
|
if (!this.contractlfeeclauseExist()) return
|
|
|
|
if (!this.contractlpaymentExist()) return
|
|
|
|
if (!this.contractlpaymentExist()) return
|
|
|
|
return isOk
|
|
|
|
return isOk
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
contractlpriceformulaExist() {
|
|
|
|
|
|
|
|
let isOk = true;
|
|
|
|
|
|
|
|
for (let i = 0; i < this.dataForm.contractLPriceFormulaList.length; i++) {
|
|
|
|
|
|
|
|
const e = this.dataForm.contractLPriceFormulaList[i];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return isOk;
|
|
|
|
|
|
|
|
},
|
|
|
|
contractlcommodityExist() {
|
|
|
|
contractlcommodityExist() {
|
|
|
|
let isOk = true;
|
|
|
|
let isOk = true;
|
|
|
|
for (let i = 0; i < this.dataForm.contractLCommodityList.length; i++) {
|
|
|
|
for (let i = 0; i < this.dataForm.contractLCommodityList.length; i++) {
|
|
|
@ -1151,6 +1549,11 @@ export default {
|
|
|
|
this.contractLabelOptions = res.data.list
|
|
|
|
this.contractLabelOptions = res.data.list
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getcontractlpriceformulapriceFormulaTypeOptions() {
|
|
|
|
|
|
|
|
getDictionaryDataSelector('529925559430414341').then(res => {
|
|
|
|
|
|
|
|
this.contractlpriceformulapriceFormulaTypeOptions = res.data.list
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
getcontractlfeeclausefeeTypeOptions() {
|
|
|
|
getcontractlfeeclausefeeTypeOptions() {
|
|
|
|
getDictionaryDataSelector('528957381233606661').then(res => {
|
|
|
|
getDictionaryDataSelector('528957381233606661').then(res => {
|
|
|
|
this.contractlfeeclausefeeTypeOptions = res.data.list
|
|
|
|
this.contractlfeeclausefeeTypeOptions = res.data.list
|
|
|
@ -1179,6 +1582,48 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
addcontractLPriceFormulaList() {
|
|
|
|
|
|
|
|
let item = {
|
|
|
|
|
|
|
|
priceFormulaCode: undefined,
|
|
|
|
|
|
|
|
priceFormulaType: '',
|
|
|
|
|
|
|
|
priceFormulaTypeOptions: [],
|
|
|
|
|
|
|
|
fixedProfit1: undefined,
|
|
|
|
|
|
|
|
fixedProfit2: undefined,
|
|
|
|
|
|
|
|
fixedAmount: undefined,
|
|
|
|
|
|
|
|
accountCost: undefined,
|
|
|
|
|
|
|
|
handleCost: undefined,
|
|
|
|
|
|
|
|
reshipmentCost: undefined,
|
|
|
|
|
|
|
|
otherCost1: undefined,
|
|
|
|
|
|
|
|
otherCost2: undefined,
|
|
|
|
|
|
|
|
otherCost3: undefined,
|
|
|
|
|
|
|
|
otherCost4: undefined,
|
|
|
|
|
|
|
|
settlementTonnage: undefined,
|
|
|
|
|
|
|
|
correspondTonnage: undefined,
|
|
|
|
|
|
|
|
saleTonnage: undefined,
|
|
|
|
|
|
|
|
taxRate: undefined,
|
|
|
|
|
|
|
|
taxRateCustomer: undefined,
|
|
|
|
|
|
|
|
taxRateYellowBull: undefined,
|
|
|
|
|
|
|
|
taxRateInvoicingCompany: undefined,
|
|
|
|
|
|
|
|
fundRate: undefined,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getcontractLPriceFormulaList(item)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
delcontractLPriceFormulaList(index) {
|
|
|
|
|
|
|
|
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.dataForm.contractLPriceFormulaList.splice(index, 1);
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getcontractLPriceFormulaList(value) {
|
|
|
|
|
|
|
|
let item = { ...this.tableRows.contractLPriceFormulaList, ...value }
|
|
|
|
|
|
|
|
this.dataForm.contractLPriceFormulaList.push(item)
|
|
|
|
|
|
|
|
this.childIndex = this.dataForm.contractLPriceFormulaList.length - 1
|
|
|
|
|
|
|
|
this.isEdit = true
|
|
|
|
|
|
|
|
this.isEdit = false
|
|
|
|
|
|
|
|
this.childIndex = -1
|
|
|
|
|
|
|
|
},
|
|
|
|
addcontractLCommodityList() {
|
|
|
|
addcontractLCommodityList() {
|
|
|
|
let item = {
|
|
|
|
let item = {
|
|
|
|
commodityName: '',
|
|
|
|
commodityName: '',
|
|
|
@ -1350,6 +1795,9 @@ export default {
|
|
|
|
this.dataForm = _dataAll
|
|
|
|
this.dataForm = _dataAll
|
|
|
|
this.isEdit = true
|
|
|
|
this.isEdit = true
|
|
|
|
this.dataAll()
|
|
|
|
this.dataAll()
|
|
|
|
|
|
|
|
for (let i = 0; i < _dataAll.contractLPriceFormulaList.length; i++) {
|
|
|
|
|
|
|
|
this.childIndex = i
|
|
|
|
|
|
|
|
}
|
|
|
|
for (let i = 0; i < _dataAll.contractLCommodityList.length; i++) {
|
|
|
|
for (let i = 0; i < _dataAll.contractLCommodityList.length; i++) {
|
|
|
|
this.childIndex = i
|
|
|
|
this.childIndex = i
|
|
|
|
}
|
|
|
|
}
|
|
|
|