|
|
|
@ -752,7 +752,7 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="table-actions" @click="addcwaccountcontractList()"
|
|
|
|
|
v-if="!judgeWrite('cwaccountcontractList') && dataForm.cwaccountcontractList.length == 0">
|
|
|
|
|
v-if="!judgeWrite('cwaccountcontractList')">
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
@ -899,467 +899,6 @@
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">添加</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">凭证信息</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="judgeShow('cwaccountstorage-${html.relationField}')">
|
|
|
|
|
<jnpf-form-tip-item label-width="0">
|
|
|
|
|
<el-table :data="dataForm.cwaccountvoucherList" size='mini' show-summary
|
|
|
|
|
:summary-method="getSummaries1" border>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" fixed="left" />
|
|
|
|
|
<el-table-column label="凭证编号" v-if="judgeShow('cwaccountvoucher-voucherCode')"
|
|
|
|
|
prop="voucherCode" align="center" width="200" fixed="left">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-voucherCode')">*</span>凭证编号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.voucherCode"
|
|
|
|
|
@change="changeData('cwaccountvoucher-voucherCode',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="订单序号" v-if="judgeShow('cwaccountvoucher-orderNo')"
|
|
|
|
|
prop="orderNo" align="center" width="200">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-orderNo')">*</span>订单序号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.orderNo"
|
|
|
|
|
@change="changeData('cwaccountvoucher-orderNo',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="关联业务单号" v-if="judgeShow('cwaccountvoucher-orderId')"
|
|
|
|
|
prop="orderId" align="center" width="200">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-orderId')">*</span>关联业务单号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.orderId"
|
|
|
|
|
@change="changeData('cwaccountvoucher-orderId',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" v-if="judgeShow('cwaccountvoucher-documentType')"
|
|
|
|
|
prop="documentType" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-documentType')">*</span>单据类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfSelect v-model="scope.row.documentType"
|
|
|
|
|
@change="changeData('cwaccountvoucher-documentType',scope.$index)"
|
|
|
|
|
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
|
|
|
|
|
:options="cwaccountvoucherdocumentTypeOptions"
|
|
|
|
|
:props="cwaccountvoucherdocumentTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="凭证类型" v-if="judgeShow('cwaccountvoucher-voucherType')"
|
|
|
|
|
prop="voucherType" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-voucherType')">*</span>凭证类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfSelect v-model="scope.row.voucherType"
|
|
|
|
|
@change="changeData('cwaccountvoucher-voucherType',scope.$index)"
|
|
|
|
|
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
|
|
|
|
|
:options="cwaccountvouchervoucherTypeOptions"
|
|
|
|
|
:props="cwaccountvouchervoucherTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="司机名称" prop="driverName" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>司机名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.driverName" placeholder="请输入" :disabled="true"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="车牌号" v-if="judgeShow('cwaccountvoucher-vehicleName')"
|
|
|
|
|
prop="vehicleName" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-vehicleName')">*</span>车牌号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.vehicleName"
|
|
|
|
|
@change="changeData('cwaccountvoucher-vehicleName',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="磅单编号" v-if="judgeShow('cwaccountvoucher-poundCode')"
|
|
|
|
|
prop="poundCode" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-poundCode')">*</span>磅单编号
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.poundCode"
|
|
|
|
|
@change="changeData('cwaccountvoucher-poundCode',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="磅单时间" v-if="judgeShow('cwaccountvoucher-poundlistTime')"
|
|
|
|
|
prop="poundlistTime" align="center" width="200">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-poundlistTime')">*</span>磅单时间
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfDatePicker v-model="scope.row.poundlistTime"
|
|
|
|
|
@change="changeData('cwaccountvoucher-poundlistTime',scope.$index)"
|
|
|
|
|
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')"
|
|
|
|
|
placeholder="请选择" :disabled="true" clearable :style='{"width":"100%"}'
|
|
|
|
|
type="date" format="yyyy-MM-dd">
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="商品名称" prop="productName" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign">*</span>商品名称
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.productName" placeholder="请输入" :disabled="true"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="规格" v-if="judgeShow('cwaccountvoucher-spec')" prop="spec"
|
|
|
|
|
align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-spec')">*</span>规格
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.spec"
|
|
|
|
|
@change="changeData('cwaccountvoucher-spec',scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单位" v-if="judgeShow('cwaccountvoucher-unit')" prop="unit"
|
|
|
|
|
align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-unit')">*</span>单位
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.unit"
|
|
|
|
|
@change="changeData('cwaccountvoucher-unit',scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="毛重" v-if="judgeShow('cwaccountvoucher-grossWeight')"
|
|
|
|
|
prop="grossWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-grossWeight')">*</span>毛重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.grossWeight"
|
|
|
|
|
@change="changeData('cwaccountvoucher-grossWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="皮重" v-if="judgeShow('cwaccountvoucher-tareWeight')"
|
|
|
|
|
prop="tareWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-tareWeight')">*</span>皮重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.tareWeight"
|
|
|
|
|
@change="changeData('cwaccountvoucher-tareWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="扣重" v-if="judgeShow('cwaccountvoucher-buckleWeight')"
|
|
|
|
|
prop="buckleWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-buckleWeight')">*</span>扣重
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.buckleWeight"
|
|
|
|
|
@change="changeData('cwaccountvoucher-buckleWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算重量" v-if="judgeShow('cwaccountvoucher-netWeight')"
|
|
|
|
|
prop="netWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-netWeight')">*</span>结算重量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.netWeight"
|
|
|
|
|
@change="changeData('cwaccountvoucher-netWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="扣杂重量" v-if="judgeShow('cwaccountvoucher-bucklesWeight')"
|
|
|
|
|
prop="bucklesWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-bucklesWeight')">*</span>扣杂重量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.bucklesWeight"
|
|
|
|
|
@change="bucklesWeightChangeData(scope.row,scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-bucklesWeight')"
|
|
|
|
|
:addonAfter="scope.row.unit" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="小计重量" v-if="judgeShow('cwaccountvoucher-subtotalWeight')"
|
|
|
|
|
prop="subtotalWeight" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-subtotalWeight')">*</span>小计重量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.subtotalWeight"
|
|
|
|
|
@change="changeData('cwaccountvoucher-subtotalWeight',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="合同单价(含税)" v-if="judgeShow('cwaccountvoucher-contractPrice')"
|
|
|
|
|
prop="contractPrice" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-contractPrice')">*</span>合同单价(含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.contractPrice"
|
|
|
|
|
@change="changeData('cwaccountvoucher-contractPrice',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="税率(%)" v-if="judgeShow('cwaccountvoucher-rate')" prop="rate"
|
|
|
|
|
align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-rate')">*</span>税率(%)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.rate"
|
|
|
|
|
@change="changeData('cwaccountvoucher-rate',scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="合同小计(含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-contractSubtotal')" prop="contractSubtotal"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-contractSubtotal')">*</span>合同小计(含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.contractSubtotal"
|
|
|
|
|
@change="changeData('cwaccountvoucher-contractSubtotal',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算单位" v-if="judgeShow('cwaccountvoucher-settlementUnit')"
|
|
|
|
|
prop="settlementUnit" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementUnit')">*</span>结算单位
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementUnit"
|
|
|
|
|
@change="changeData('cwaccountvoucher-settlementUnit',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算数量" v-if="judgeShow('cwaccountvoucher-settlementSum')"
|
|
|
|
|
prop="settlementSum" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementSum')">*</span>结算数量
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementSum"
|
|
|
|
|
@change="settlementSumChangeData(scope.row,scope.$index)" placeholder="请输入"
|
|
|
|
|
:addonAfter="scope.row.unit" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算单价(含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementPrice')" prop="settlementPrice"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementPrice')">*</span>结算单价(含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementPrice"
|
|
|
|
|
@change="settlementSumChangeData(scope.row,scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-settlementPrice')"
|
|
|
|
|
:addonAfter="'/' + scope.row.unit" addonBefore="¥" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算小计(含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementSubtotal')" prop="settlementSubtotal"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementSubtotal')">*</span>结算小计(含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementSubtotal"
|
|
|
|
|
@change="settlementSubtotalChange(scope.row,scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-settlementSubtotal')"
|
|
|
|
|
addonBefore="¥" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算单价(不含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementPriceNo')" prop="settlementPriceNo"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementPriceNo')">*</span>结算单价(不含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementPriceNo"
|
|
|
|
|
@change="changeData('cwaccountvoucher-settlementPriceNo',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" :addonAfter="'/' + scope.row.unit"
|
|
|
|
|
addonBefore="¥" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算小计(不含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementSubtotalNo')"
|
|
|
|
|
prop="settlementSubtotalNo" align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementSubtotalNo')">*</span>结算小计(不含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementSubtotalNo"
|
|
|
|
|
@change="changeData('cwaccountvoucher-settlementSubtotalNo',scope.$index)"
|
|
|
|
|
placeholder="请输入" :disabled="true" addonBefore="¥" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="其他费用类型" v-if="judgeShow('cwaccountvoucher-otherType')" prop="otherType" align="center" width="300">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('cwaccountvoucherList-otherType')">*</span>其他费用类型
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfSelect v-model="scope.row.otherType"
|
|
|
|
|
@change="otherTypeChange(scope.row,scope.$index)" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-otherType')"
|
|
|
|
|
clearable :style='{"width":"40%"}' :options="cwaccountvoucherotherTypeOptions"
|
|
|
|
|
:props="cwaccountvoucherotherTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
|
<JnpfInput v-model="scope.row.otherExpenses"
|
|
|
|
|
@change="otherTypeChange(scope.row,scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-otherExpenses')"
|
|
|
|
|
addonBefore="¥" clearable :style='{"width":"60%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<!-- <el-table-column label="其他费用" v-if="judgeShow('cwaccountvoucher-otherExpenses')" prop="otherExpenses" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign" v-if="judgeRequired('cwaccountvoucherList-otherExpenses')">*</span>其他费用
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.otherExpenses"
|
|
|
|
|
@change="changeData('cwaccountvoucher-otherExpenses',scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-otherExpenses')"
|
|
|
|
|
addonBefore="¥" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column label="结算合计(含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementTotal')" prop="settlementTotal"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementTotal')">*</span>结算合计(含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementTotal"
|
|
|
|
|
@change="changeData('cwaccountvoucher-settlementTotal',scope.$index)"
|
|
|
|
|
placeholder="请输入" addonBefore="¥" :disabled="true" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="结算合计(不含税)"
|
|
|
|
|
v-if="judgeShow('cwaccountvoucher-settlementTotalNo')" prop="settlementTotalNo"
|
|
|
|
|
align="center" width="250">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-settlementTotalNo')">*</span>结算合计(不含税)
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.settlementTotalNo"
|
|
|
|
|
@change="changeData('cwaccountvoucher-settlementTotalNo',scope.$index)"
|
|
|
|
|
placeholder="请输入" addonBefore="¥" :disabled="true" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" v-if="judgeShow('cwaccountvoucher-remark')"
|
|
|
|
|
prop="remark" align="center" width="150">
|
|
|
|
|
<template slot="header">
|
|
|
|
|
<span class="required-sign"
|
|
|
|
|
v-if="judgeRequired('cwaccountvoucherList-remark')">*</span>备注
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JnpfInput v-model="scope.row.remark"
|
|
|
|
|
@change="changeData('cwaccountvoucher-remark',scope.$index)" placeholder="请输入"
|
|
|
|
|
:disabled="judgeWrite('cwaccountvoucherList')||judgeWrite('cwaccountvoucherList-remark')"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="操作" width="50" v-if="!judgeWrite('cwaccountvoucherList')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delcwaccountvoucherList(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="table-actions" @click="addcwaccountvoucherList()"
|
|
|
|
|
v-if="!judgeWrite('cwaccountvoucherList')">
|
|
|
|
|
<el-button type="text" icon="el-icon-plus">加载凭证</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
@ -1369,7 +908,7 @@
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<jnpf-form-tip-item label="汇总类型">
|
|
|
|
|
<JnpfSelect v-model="dataForm.summaryType" @change="changeData('summaryType', -1)"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('accountSubjectId')"
|
|
|
|
|
placeholder="请选择" :disabled="true"
|
|
|
|
|
:style='{ "width": "100%" }' :options="summaryTypeOptions"
|
|
|
|
|
:props="summaryTypeProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
@ -1866,7 +1405,7 @@ export default {
|
|
|
|
|
Vmodel: "",
|
|
|
|
|
currVmodel: "",
|
|
|
|
|
dataForm: {
|
|
|
|
|
summaryType: '1',
|
|
|
|
|
summaryType: '2',
|
|
|
|
|
subjectId: '',
|
|
|
|
|
contractType: '',
|
|
|
|
|
type: '1',
|
|
|
|
@ -2344,6 +1883,7 @@ export default {
|
|
|
|
|
const e = list[i];
|
|
|
|
|
this.dataForm.cwaccountstorageList.push(e)
|
|
|
|
|
}
|
|
|
|
|
this.addcwaccountvoucherList();
|
|
|
|
|
},
|
|
|
|
|
typeChangeData() {
|
|
|
|
|
this.dataForm.cwaccountsubjectList = [];
|
|
|
|
@ -2359,22 +1899,22 @@ export default {
|
|
|
|
|
this.dataForm.businessType = '3'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
contractChangeData(model, row) {
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].contractName = row.contract_name
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].contractPeriodTime = row.contract_period_time ? row.contract_period_time.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].contractPeriodTimeEnd = row.contract_period_time_end ? row.contract_period_time_end.substring(0, 10) : '';
|
|
|
|
|
contractChangeData(model, row, rowIndex) {
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].contractName = row.contract_name
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].contractPeriodTime = row.contract_period_time ? row.contract_period_time.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].contractPeriodTimeEnd = row.contract_period_time_end ? row.contract_period_time_end.substring(0, 10) : '';
|
|
|
|
|
//this.dataForm.cwaccountcontractList[0].currency = row.currency;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].procurementModel = row.procurement_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].pricingModel = row.pricing_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].relatedContractId = row.related_contract_id;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].subject = row.subject;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].subject2 = row.subject2;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].deliveryTime = row.delivery_time ? row.delivery_time.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].deliveryTimeEnd = row.delivery_time_end ? row.delivery_time_end.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].deliveryModel = row.delivery_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].deliveryMethod = row.delivery_method;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].modeTransport = row.mode_transport;
|
|
|
|
|
this.dataForm.cwaccountcontractList[0].costBearingMian = row.cost_bearing_mian;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].procurementModel = row.procurement_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].pricingModel = row.pricing_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].relatedContractId = row.related_contract_id;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].subject = row.subject;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].subject2 = row.subject2;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].deliveryTime = row.delivery_time ? row.delivery_time.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].deliveryTimeEnd = row.delivery_time_end ? row.delivery_time_end.substring(0, 10) : '';
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].deliveryModel = row.delivery_model;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].deliveryMethod = row.delivery_method;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].modeTransport = row.mode_transport;
|
|
|
|
|
this.dataForm.cwaccountcontractList[rowIndex].costBearingMian = row.cost_bearing_mian;
|
|
|
|
|
},
|
|
|
|
|
subjectChangeData(model, row) {
|
|
|
|
|
this.dataForm.subjectId = row.id;
|
|
|
|
@ -2516,7 +2056,7 @@ export default {
|
|
|
|
|
if (!this.cwaccountsubjectExist()) return
|
|
|
|
|
if (!this.cwaccountcontractExist()) return
|
|
|
|
|
if (!this.cwaccountstorageExist()) return
|
|
|
|
|
if (!this.cwaccountvoucherExist()) return
|
|
|
|
|
// if (!this.cwaccountvoucherExist()) return
|
|
|
|
|
if (!this.cwaccountsummaryExist()) return
|
|
|
|
|
return isOk
|
|
|
|
|
},
|
|
|
|
|