|
|
@ -734,12 +734,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.commodityCode }}
|
|
|
|
{{ scope.row.commodityCode }}
|
|
|
|
<!-- <JnpfInput v-model="scope.row.commodityCode"
|
|
|
|
|
|
|
|
@change="changeData('contractlcommodity-commodityCode', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityCode')"
|
|
|
|
|
|
|
|
readonly clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput> -->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="商品名称" v-if="judgeShow('contractlcommodity-commodityName')"
|
|
|
|
<el-table-column label="商品名称" v-if="judgeShow('contractlcommodity-commodityName')"
|
|
|
@ -750,12 +744,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.commodityName }}
|
|
|
|
{{ scope.row.commodityName }}
|
|
|
|
<!-- <JnpfInput v-model="scope.row.commodityName"
|
|
|
|
|
|
|
|
@change="changeData('contractlcommodity-commodityName', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-commodityName')"
|
|
|
|
|
|
|
|
readonly clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput> -->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="商品规格" v-if="judgeShow('contractlcommodity-specifications')"
|
|
|
|
<el-table-column label="商品规格" v-if="judgeShow('contractlcommodity-specifications')"
|
|
|
@ -766,12 +754,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ scope.row.specifications }}
|
|
|
|
{{ scope.row.specifications }}
|
|
|
|
<!-- <JnpfInput v-model="scope.row.specifications"
|
|
|
|
|
|
|
|
@change="changeData('contractlcommodity-specifications', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-specifications')"
|
|
|
|
|
|
|
|
readonly clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput> -->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="库存单位" v-if="judgeShow('contractlcommodity-inventoryUnitId')"
|
|
|
|
<el-table-column label="库存单位" v-if="judgeShow('contractlcommodity-inventoryUnitId')"
|
|
|
@ -782,12 +764,6 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{ getProductUnitName(scope.row.inventoryUnitId) }}
|
|
|
|
{{ getProductUnitName(scope.row.inventoryUnitId) }}
|
|
|
|
<!-- <JnpfInput v-model="scope.row.inventoryUnitId"
|
|
|
|
|
|
|
|
@change="changeData('contractlcommodity-inventoryUnitId', scope.$index)"
|
|
|
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-inventoryUnitId')"
|
|
|
|
|
|
|
|
readonly clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput> -->
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="采购单位" v-if="judgeShow('contractlcommodity-procureUnit')"
|
|
|
|
<el-table-column label="采购单位" v-if="judgeShow('contractlcommodity-procureUnit')"
|
|
|
@ -802,7 +778,7 @@
|
|
|
|
placeholder="请选择"
|
|
|
|
placeholder="请选择"
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-procureUnit')"
|
|
|
|
:disabled="judgeWrite('contractlcommodityList') || judgeWrite('contractlcommodityList-procureUnit')"
|
|
|
|
clearable :style='{ "width": "100%" }'
|
|
|
|
clearable :style='{ "width": "100%" }'
|
|
|
|
:options="contractlcommodityprocureUnitOptions"
|
|
|
|
:options="scope.row.contractlcommodityprocureUnitOptions"
|
|
|
|
:props="contractlcommodityprocureUnitProps">
|
|
|
|
:props="contractlcommodityprocureUnitProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -1184,8 +1160,6 @@ import { getDefaultCurrentValueUserId } from '@/api/permission/user'
|
|
|
|
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
|
|
|
import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
|
|
|
|
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
|
|
|
import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
import { thousandsFormat } from "@/components/Generator/utils/index"
|
|
|
|
import katex from 'katex';
|
|
|
|
|
|
|
|
import 'katex/dist/katex.min.css';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
mixins: [comMixin],
|
|
|
|
mixins: [comMixin],
|
|
|
|
components: {},
|
|
|
|
components: {},
|
|
|
@ -1567,98 +1541,6 @@ export default {
|
|
|
|
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
|
|
|
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.$nextTick(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\frac {客户销售结算金额(含税)- \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2}
|
|
|
|
|
|
|
|
= 理论销售结算金额(含税)}{\boxed{结算吨数}} - \boxed{固定利润2} - \boxed{其他费用3} + \boxed{其他费用4}
|
|
|
|
|
|
|
|
= 采购单价(含税)
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestA, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\frac {\frac {\frac { 客户销售结算金额(含税价) } {\lparen 1 + \boxed{税率} \rparen }
|
|
|
|
|
|
|
|
= 客户销售结算金额(不含税价) - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2}} {\boxed{结算吨数}}
|
|
|
|
|
|
|
|
= 理论销售结算单价(不含税) \times \lparen 1 + 税率 \rparen
|
|
|
|
|
|
|
|
= 理论销售结算单价(含税) \times \lparen 1 - \boxed{黄牛税负率} - \boxed{资金利率} \rparen
|
|
|
|
|
|
|
|
= 黄牛结算价}{ \lparen 1 — \boxed{开票公司税负率} \rparen }
|
|
|
|
|
|
|
|
= 采购单价(含税)
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestB, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\frac {黄牛结算价
|
|
|
|
|
|
|
|
= 理论销售结算单价(含税) \times \lparen 1 - \boxed{黄牛税负率} - \boxed{资金利率} \rparen - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2} } { \lparen 1 -\boxed{ 开票公司税负率} \rparen}
|
|
|
|
|
|
|
|
= 采购单价(含税)
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestC, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\frac { 总资金利息
|
|
|
|
|
|
|
|
= 销售总金额(含税) \times \lparen 1 + \boxed{资金利率} \rparen - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2}} {\boxed{对应吨数}}
|
|
|
|
|
|
|
|
= 销售单价(含税)
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestD, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\begin{matrix}
|
|
|
|
|
|
|
|
垫付采购金额
|
|
|
|
|
|
|
|
= \lparen 客户开标价(上标段) - \boxed{固定金额} \rparen \times 吨数
|
|
|
|
|
|
|
|
\\
|
|
|
|
|
|
|
|
实际销售单价
|
|
|
|
|
|
|
|
= 客户开标价(售卖标段)
|
|
|
|
|
|
|
|
\\
|
|
|
|
|
|
|
|
资金利息
|
|
|
|
|
|
|
|
= 垫付采购金额 \times \lparen 1 + \boxed{利率} \rparen
|
|
|
|
|
|
|
|
\\
|
|
|
|
|
|
|
|
利润金额
|
|
|
|
|
|
|
|
= \lparen \boxed{户头费} + \boxed{装卸费} - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2} \rparen \times 吨数 + 资金利息
|
|
|
|
|
|
|
|
\\
|
|
|
|
|
|
|
|
补交采购金额
|
|
|
|
|
|
|
|
= 客户开标价(售卖标段) \times 吨数 - 利润金额 - 垫付采购金额
|
|
|
|
|
|
|
|
\end{matrix}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestE, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\begin{matrix}
|
|
|
|
|
|
|
|
垫付采购单价(含税) = 市场价(含税) \\
|
|
|
|
|
|
|
|
实际销售单价(含税) = 实际客户价(含税) \\
|
|
|
|
|
|
|
|
\frac {黄牛结算单价
|
|
|
|
|
|
|
|
= 实际销售单价(含税) \times \lparen 1 - \boxed{黄牛税负率} \rparen - \boxed{倒运费} - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2}} {\lparen 1 - \boxed{开票公司税负率} \rparen}
|
|
|
|
|
|
|
|
= 实际采购单价(含税)
|
|
|
|
|
|
|
|
= 开票公司结算价(含税)
|
|
|
|
|
|
|
|
\end{matrix}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestF, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\begin{matrix}
|
|
|
|
|
|
|
|
垫付采购单价=市场价 \\
|
|
|
|
|
|
|
|
实际销售单价=实际客户价 \\
|
|
|
|
|
|
|
|
加工费运费 = 实际销售单价(不含税) \times \lparen 1 - \boxed{客户税负率} \rparen - 毛料加权平均单价(不含税) \times \boxed{销售吨数} - 资金占用利息
|
|
|
|
|
|
|
|
\end{matrix}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestG, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
katex.render(String.raw`
|
|
|
|
|
|
|
|
\begin{matrix}
|
|
|
|
|
|
|
|
\lparen 采购结算单价(不含税) \times \lparen 1 + \boxed{税率} \rparen - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2} \rparen \times \lparen 1 - \boxed{客户税负率} \rparen - \boxed{固定利润1} - \boxed{其他费用1} + \boxed{其他费用2}
|
|
|
|
|
|
|
|
= 采购单价(含税) \\
|
|
|
|
|
|
|
|
实际销售单价 = 客户结算单单价
|
|
|
|
|
|
|
|
\end{matrix}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
, this.$refs.elTestH, {
|
|
|
|
|
|
|
|
throwOnError: false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getSubjectInfo() {
|
|
|
|
getSubjectInfo() {
|
|
|
@ -1706,7 +1588,9 @@ export default {
|
|
|
|
for (let i = 0; i < JSON.parse(productInfo.order_main_unit_id).length; i++) {
|
|
|
|
for (let i = 0; i < JSON.parse(productInfo.order_main_unit_id).length; i++) {
|
|
|
|
procureUnitOptionsArr.push({ "fullName": JSON.parse(productInfo.order_main_unit_name)[i], "id": JSON.parse(productInfo.order_main_unit_id)[i] })
|
|
|
|
procureUnitOptionsArr.push({ "fullName": JSON.parse(productInfo.order_main_unit_name)[i], "id": JSON.parse(productInfo.order_main_unit_id)[i] })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.contractlcommodityprocureUnitOptions = procureUnitOptionsArr
|
|
|
|
this.dataForm.contractLCommodityList[index]['contractlcommodityprocureUnitOptions'] = procureUnitOptionsArr
|
|
|
|
|
|
|
|
// console.log(procureUnitOptionsArr)
|
|
|
|
|
|
|
|
// this.contractlcommodityprocureUnitOptions = procureUnitOptionsArr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(() => { })
|
|
|
|
}).catch(() => { })
|
|
|
|
}
|
|
|
|
}
|
|
|
|