|
|
|
@ -1,194 +1,170 @@
|
|
|
|
|
<template>
|
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
|
<div class="JNPF-preview-main">
|
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
|
<div class="JNPF-preview-main">
|
|
|
|
|
<div class="JNPF-common-page-header">
|
|
|
|
|
<el-page-header @back="goBack"
|
|
|
|
|
:content="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'"/>
|
|
|
|
|
<el-page-header @back="goBack" :content="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'" />
|
|
|
|
|
<div class="options">
|
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" v-if="!isDetail"> 保 存</el-button>
|
|
|
|
|
<el-button @click="goBack"> 取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
|
|
|
|
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="right" >
|
|
|
|
|
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
|
|
|
|
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px"
|
|
|
|
|
label-position="right">
|
|
|
|
|
<template v-if="!loading">
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="合同类型 "
|
|
|
|
|
prop="contractType" >
|
|
|
|
|
<el-select v-model="dataForm.contractType"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-option v-for="(item, index) in contractTypeOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="合同类型 " prop="contractType">
|
|
|
|
|
<el-select v-model="dataForm.contractType" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
<el-option v-for="(item, index) in contractTypeOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id" :disabled="item.disabled"></el-option>
|
|
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="合同编码"
|
|
|
|
|
prop="contractCode" >
|
|
|
|
|
<el-input v-model="dataForm.contractCode"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="合同编码" prop="contractCode">
|
|
|
|
|
<el-input v-model="dataForm.contractCode" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="合同名称"
|
|
|
|
|
prop="contractName" >
|
|
|
|
|
<el-input v-model="dataForm.contractName"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="合同名称" prop="contractName">
|
|
|
|
|
<el-input v-model="dataForm.contractName" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="合同状态"
|
|
|
|
|
prop="status" >
|
|
|
|
|
<el-input v-model="dataForm.status"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="合同状态" prop="status">
|
|
|
|
|
<el-input v-model="dataForm.status" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="开标日期"
|
|
|
|
|
prop="bidOpeningDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.bidOpeningDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="开标日期" prop="bidOpeningDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.bidOpeningDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="开始日期"
|
|
|
|
|
prop="startDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.startDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="开始日期" prop="startDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.startDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="审核日期"
|
|
|
|
|
prop="auditDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.auditDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="审核日期" prop="auditDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.auditDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="供货完成日期"
|
|
|
|
|
prop="completionDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.completionDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="供货完成日期" prop="completionDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.completionDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="关闭日期"
|
|
|
|
|
prop="closingDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.closingDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="关闭日期" prop="closingDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.closingDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="回款周期(日)"
|
|
|
|
|
prop="collectionCycle" >
|
|
|
|
|
<el-input v-model="dataForm.collectionCycle"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="回款周期(日)" prop="collectionCycle">
|
|
|
|
|
<!-- <el-input v-model="dataForm.collectionCycle" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-input> -->
|
|
|
|
|
<el-input-number v-model="dataForm.collectionCycle" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="签订日期"
|
|
|
|
|
prop="signingDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.signingDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="签订日期" prop="signingDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.signingDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="截止日期"
|
|
|
|
|
prop="endDate" >
|
|
|
|
|
<el-date-picker v-model="dataForm.endDate"
|
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp" >
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="截止日期" prop="endDate">
|
|
|
|
|
<el-date-picker v-model="dataForm.endDate" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
|
|
|
|
|
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="供应商/客户编"
|
|
|
|
|
prop="code" >
|
|
|
|
|
<el-input v-model="dataForm.code"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="供应商/客户编" prop="code">
|
|
|
|
|
<el-input v-model="dataForm.code" placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="供应商/客户名"
|
|
|
|
|
prop="name" >
|
|
|
|
|
<el-input v-model="dataForm.name"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="供应商/客户名" prop="name">
|
|
|
|
|
<el-input v-model="dataForm.name" placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="对方合同号"
|
|
|
|
|
prop="contractNo" >
|
|
|
|
|
<el-input v-model="dataForm.contractNo"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="对方合同号" prop="contractNo">
|
|
|
|
|
<el-input v-model="dataForm.contractNo" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="币种 "
|
|
|
|
|
prop="currency" >
|
|
|
|
|
<el-input v-model="dataForm.currency"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="币种 " prop="currency">
|
|
|
|
|
<el-select v-model="dataForm.currency" placeholder="请选择" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
<el-option v-for="(item, index) in currencyOptions" :key="index"
|
|
|
|
|
:label="item.fullName" :value="item.id" :disabled="item.disabled"></el-option>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="数量"
|
|
|
|
|
prop="num" >
|
|
|
|
|
<el-input v-model="dataForm.num"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="数量" prop="num">
|
|
|
|
|
<el-input-number v-model="dataForm.num" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="金额"
|
|
|
|
|
prop="amount" >
|
|
|
|
|
<el-input v-model="dataForm.amount"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="金额" prop="amount">
|
|
|
|
|
<el-input-number v-model="dataForm.amount" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8" >
|
|
|
|
|
<el-form-item label="库存组织"
|
|
|
|
|
prop="organization" >
|
|
|
|
|
<el-input v-model="dataForm.organization"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="库存组织" prop="organization">
|
|
|
|
|
<el-input v-model="dataForm.organization" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="16" >
|
|
|
|
|
<el-form-item label="备注"
|
|
|
|
|
prop="remark" >
|
|
|
|
|
<el-input v-model="dataForm.remark"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-col :span="16">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="dataForm.remark" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -239,11 +215,9 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
-->
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<el-form-item label="集团审批"
|
|
|
|
|
prop="approval" >
|
|
|
|
|
<el-switch v-model="dataForm.approval"
|
|
|
|
|
:active-value="1" :inactive-value="0" >
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="集团审批" prop="approval">
|
|
|
|
|
<el-switch v-model="dataForm.approval" :active-value="1" :inactive-value="0">
|
|
|
|
|
|
|
|
|
|
</el-switch>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -251,93 +225,82 @@
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-tabs v-model="activemdfrsi" tab-position="top" class="mb-20">
|
|
|
|
|
<el-tab-pane label="物料明细">
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label-width="0">
|
|
|
|
|
<div class="JNPF-common-title">
|
|
|
|
|
<h2></h2>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.contract_item0List" size='mini' >
|
|
|
|
|
<el-table :data="dataForm.contract_item0List" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column prop="materialCode" label="物料编码">
|
|
|
|
|
<el-table-column prop="materialCode" label="物料编码" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.materialCode"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-input v-model="scope.row.materialCode" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="materialName" label="物料名称">
|
|
|
|
|
<el-table-column prop="materialName" label="物料名称" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.materialName"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-input v-model="scope.row.materialName" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="specification" label="规格型号">
|
|
|
|
|
<el-table-column prop="specification" label="规格型号" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.specification"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-input v-model="scope.row.specification" placeholder="请输入"
|
|
|
|
|
clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="unit" label="单位 ">
|
|
|
|
|
<el-table-column prop="unit" label="单位 " align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.unit"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-input v-model="scope.row.unit" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="num" label="数量">
|
|
|
|
|
<el-table-column prop="num" label="数量" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.num"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.num" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="price" label="单价">
|
|
|
|
|
<el-table-column prop="price" label="单价" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.price"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.price" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="amount" label="金额">
|
|
|
|
|
<el-table-column prop="amount" label="金额" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.amount"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.amount" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="rate" label="税率 ">
|
|
|
|
|
<el-table-column prop="rate" label="税率 " align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.rate"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.rate" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="notPrice" label="不含税单价">
|
|
|
|
|
<el-table-column prop="notPrice" label="不含税单价" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.notPrice"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.notPrice" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="notAmount" label="不含税金额">
|
|
|
|
|
<el-table-column prop="notAmount" label="不含税金额" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.notAmount"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-input-number v-model="scope.row.notAmount" :min="0" label="请输入" :style='{"width":"100%"}'></el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="remark" label="备注">
|
|
|
|
|
<el-table-column prop="remark" label="备注" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input v-model="scope.row.remark"
|
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
<el-input v-model="scope.row.remark" placeholder="请输入" clearable
|
|
|
|
|
:style='{"width":"100%"}'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="50" >
|
|
|
|
|
<el-table-column label="操作" width="50" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delcontract_item0List(scope.$index)">删除</el-button>
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delcontract_item0List(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -346,25 +309,26 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-tab-pane >
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="附件详情">
|
|
|
|
|
<el-col :span="24" >
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label-width="0">
|
|
|
|
|
<div class="JNPF-common-title">
|
|
|
|
|
<h2></h2>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table :data="dataForm.contract_item1List" size='mini' >
|
|
|
|
|
<el-table :data="dataForm.contract_item1List" size='mini'>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column prop="enclosure" label="附件内容">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<JNPF-UploadFz v-model="scope.row.enclosure"
|
|
|
|
|
:fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传" >
|
|
|
|
|
<JNPF-UploadFz v-model="scope.row.enclosure" :fileSize="5"
|
|
|
|
|
sizeUnit="MB" :limit="9" buttonText="点击上传">
|
|
|
|
|
</JNPF-UploadFz>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="50" >
|
|
|
|
|
<el-table-column label="操作" width="50">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn" @click="delcontract_item1List(scope.$index)">删除</el-button>
|
|
|
|
|
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
|
|
|
|
@click="delcontract_item1List(scope.$index)">删除</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -373,19 +337,23 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-tab-pane >
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</el-col>
|
|
|
|
|
</template>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
</transition>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
|
|
|
|
|
import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
|
|
|
|
|
import {
|
|
|
|
|
getDataInterfaceRes
|
|
|
|
|
} from '@/api/systemData/dataInterface'
|
|
|
|
|
import {
|
|
|
|
|
getDictionaryDataSelector
|
|
|
|
|
} from '@/api/systemData/dictionary'
|
|
|
|
|
export default {
|
|
|
|
|
components: {},
|
|
|
|
|
props: [],
|
|
|
|
@ -395,89 +363,109 @@
|
|
|
|
|
loading: false,
|
|
|
|
|
isDetail: false,
|
|
|
|
|
dataForm: {
|
|
|
|
|
contractType : "",
|
|
|
|
|
contractCode : '',
|
|
|
|
|
contractName : '',
|
|
|
|
|
status : '',
|
|
|
|
|
bidOpeningDate : '',
|
|
|
|
|
startDate : '',
|
|
|
|
|
auditDate : '',
|
|
|
|
|
completionDate : '',
|
|
|
|
|
closingDate : '',
|
|
|
|
|
collectionCycle : '',
|
|
|
|
|
signingDate : '',
|
|
|
|
|
endDate : '',
|
|
|
|
|
code : '',
|
|
|
|
|
name : '',
|
|
|
|
|
contractNo : '',
|
|
|
|
|
currency : '',
|
|
|
|
|
num : '',
|
|
|
|
|
amount : '',
|
|
|
|
|
organization : '',
|
|
|
|
|
remark : '',
|
|
|
|
|
classification : '',
|
|
|
|
|
declarationDate : '',
|
|
|
|
|
deptCode : '',
|
|
|
|
|
creatorusername : '',
|
|
|
|
|
deptName : '',
|
|
|
|
|
approval : 0,
|
|
|
|
|
contract_item0List:[],
|
|
|
|
|
contract_item1List:[],
|
|
|
|
|
contractType: "",
|
|
|
|
|
contractCode: '',
|
|
|
|
|
contractName: '',
|
|
|
|
|
status: '',
|
|
|
|
|
bidOpeningDate: '',
|
|
|
|
|
startDate: '',
|
|
|
|
|
auditDate: '',
|
|
|
|
|
completionDate: '',
|
|
|
|
|
closingDate: '',
|
|
|
|
|
collectionCycle: '',
|
|
|
|
|
signingDate: '',
|
|
|
|
|
endDate: '',
|
|
|
|
|
code: '',
|
|
|
|
|
name: '',
|
|
|
|
|
contractNo: '',
|
|
|
|
|
currency: '',
|
|
|
|
|
num: '',
|
|
|
|
|
amount: '',
|
|
|
|
|
organization: '',
|
|
|
|
|
remark: '',
|
|
|
|
|
classification: '',
|
|
|
|
|
declarationDate: '',
|
|
|
|
|
deptCode: '',
|
|
|
|
|
creatorusername: '',
|
|
|
|
|
deptName: '',
|
|
|
|
|
approval: 0,
|
|
|
|
|
contract_item0List: [],
|
|
|
|
|
contract_item1List: [],
|
|
|
|
|
},
|
|
|
|
|
activemdfrsi:'0',
|
|
|
|
|
rules:
|
|
|
|
|
{
|
|
|
|
|
contractType: [
|
|
|
|
|
{
|
|
|
|
|
activemdfrsi: '0',
|
|
|
|
|
rules: {
|
|
|
|
|
contractType: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
contractCode: [
|
|
|
|
|
{
|
|
|
|
|
}, ],
|
|
|
|
|
contractCode: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
contractName: [
|
|
|
|
|
{
|
|
|
|
|
}, ],
|
|
|
|
|
contractName: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
bidOpeningDate: [
|
|
|
|
|
{
|
|
|
|
|
}, ],
|
|
|
|
|
bidOpeningDate: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}, ],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
currencyOptions: [{
|
|
|
|
|
"fullName": "CNY",
|
|
|
|
|
"id": "CNY"
|
|
|
|
|
}, {
|
|
|
|
|
"fullName": "USD",
|
|
|
|
|
"id": "USD"
|
|
|
|
|
}, {
|
|
|
|
|
"fullName": "EUR",
|
|
|
|
|
"id": "EUR"
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
|
|
contractTypeOptions: [{
|
|
|
|
|
"fullName": "采购合同",
|
|
|
|
|
"id": "1"
|
|
|
|
|
}, {
|
|
|
|
|
"fullName": "销售合同",
|
|
|
|
|
"id": "2"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"fullName": "租赁合同",
|
|
|
|
|
"id": "3"
|
|
|
|
|
}, {
|
|
|
|
|
"fullName": "仓储合同",
|
|
|
|
|
"id": "4"
|
|
|
|
|
}, {
|
|
|
|
|
"fullName": "运输合同",
|
|
|
|
|
"id": "5"
|
|
|
|
|
},
|
|
|
|
|
contractTypeOptions:[{"fullName":"采购合同","id":"1"},{"fullName":"销售合同","id":"2"},
|
|
|
|
|
{"fullName":"租赁合同","id":"3"},{"fullName":"仓储合同","id":"4"},{"fullName":"运输合同","id":"5"},
|
|
|
|
|
{"fullName":"施工合同","id":"6"}],
|
|
|
|
|
{
|
|
|
|
|
"fullName": "施工合同",
|
|
|
|
|
"id": "6"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {},
|
|
|
|
|
watch: {},
|
|
|
|
|
created() {
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
mounted() {},
|
|
|
|
|
methods: {
|
|
|
|
|
contract_item0Exist() {
|
|
|
|
|
let isOk = true;
|
|
|
|
|
for(let i=0;i<this.dataForm.contract_item0List.length;i++){
|
|
|
|
|
for (let i = 0; i < this.dataForm.contract_item0List.length; i++) {
|
|
|
|
|
const e = this.dataForm.contract_item0List[i];
|
|
|
|
|
}
|
|
|
|
|
return isOk;
|
|
|
|
|
},
|
|
|
|
|
contract_item1Exist() {
|
|
|
|
|
let isOk = true;
|
|
|
|
|
for(let i=0;i<this.dataForm.contract_item1List.length;i++){
|
|
|
|
|
for (let i = 0; i < this.dataForm.contract_item1List.length; i++) {
|
|
|
|
|
const e = this.dataForm.contract_item1List[i];
|
|
|
|
|
}
|
|
|
|
|
return isOk;
|
|
|
|
@ -485,7 +473,7 @@
|
|
|
|
|
goBack() {
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
},
|
|
|
|
|
clearData(data){
|
|
|
|
|
clearData(data) {
|
|
|
|
|
for (let key in data) {
|
|
|
|
|
if (data[key] instanceof Array) {
|
|
|
|
|
data[key] = [];
|
|
|
|
@ -502,16 +490,16 @@
|
|
|
|
|
this.isDetail = isDetail || false;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['elForm'].resetFields();
|
|
|
|
|
if(this.dataForm.id){
|
|
|
|
|
if (this.dataForm.id) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
request({
|
|
|
|
|
url: '/api/example/ContractFile/'+this.dataForm.id,
|
|
|
|
|
url: '/api/example/ContractFile/' + this.dataForm.id,
|
|
|
|
|
method: 'get'
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.dataInfo(res.data)
|
|
|
|
|
this.loading = false
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.clearData(this.dataForm)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -528,7 +516,7 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
request() {
|
|
|
|
|
var _data =this.dataList()
|
|
|
|
|
var _data = this.dataList()
|
|
|
|
|
if (!this.dataForm.id) {
|
|
|
|
|
request({
|
|
|
|
|
url: '/api/example/ContractFile',
|
|
|
|
@ -545,9 +533,9 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
request({
|
|
|
|
|
url: '/api/example/ContractFile/'+this.dataForm.id,
|
|
|
|
|
url: '/api/example/ContractFile/' + this.dataForm.id,
|
|
|
|
|
method: 'PUT',
|
|
|
|
|
data: _data
|
|
|
|
|
}).then((res) => {
|
|
|
|
@ -563,53 +551,53 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
addcontract_item0List(){
|
|
|
|
|
addcontract_item0List() {
|
|
|
|
|
let item = {
|
|
|
|
|
materialCode:undefined,
|
|
|
|
|
materialName:undefined,
|
|
|
|
|
specification:undefined,
|
|
|
|
|
unit:undefined,
|
|
|
|
|
num:undefined,
|
|
|
|
|
price:undefined,
|
|
|
|
|
amount:undefined,
|
|
|
|
|
rate:undefined,
|
|
|
|
|
notPrice:undefined,
|
|
|
|
|
notAmount:undefined,
|
|
|
|
|
remark:undefined,
|
|
|
|
|
materialCode: undefined,
|
|
|
|
|
materialName: undefined,
|
|
|
|
|
specification: undefined,
|
|
|
|
|
unit: undefined,
|
|
|
|
|
num: undefined,
|
|
|
|
|
price: undefined,
|
|
|
|
|
amount: undefined,
|
|
|
|
|
rate: undefined,
|
|
|
|
|
notPrice: undefined,
|
|
|
|
|
notAmount: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.contract_item0List.push(item)
|
|
|
|
|
},
|
|
|
|
|
delcontract_item0List(index) {
|
|
|
|
|
this.dataForm.contract_item0List.splice(index, 1);
|
|
|
|
|
},
|
|
|
|
|
addcontract_item1List(){
|
|
|
|
|
addcontract_item1List() {
|
|
|
|
|
let item = {
|
|
|
|
|
enclosure:undefined,
|
|
|
|
|
enclosure: undefined,
|
|
|
|
|
}
|
|
|
|
|
this.dataForm.contract_item1List.push(item)
|
|
|
|
|
},
|
|
|
|
|
delcontract_item1List(index) {
|
|
|
|
|
this.dataForm.contract_item1List.splice(index, 1);
|
|
|
|
|
},
|
|
|
|
|
dataList(){
|
|
|
|
|
dataList() {
|
|
|
|
|
var _data = JSON.parse(JSON.stringify(this.dataForm));
|
|
|
|
|
_data.approval = parseInt(_data.approval)
|
|
|
|
|
for(let i=0;i<_data.contract_item0List.length;i++){
|
|
|
|
|
for (let i = 0; i < _data.contract_item0List.length; i++) {
|
|
|
|
|
var _list = _data.contract_item0List[i];
|
|
|
|
|
}
|
|
|
|
|
for(let i=0;i<_data.contract_item1List.length;i++){
|
|
|
|
|
for (let i = 0; i < _data.contract_item1List.length; i++) {
|
|
|
|
|
var _list = _data.contract_item1List[i];
|
|
|
|
|
_list.enclosure = JSON.stringify(_list.enclosure)
|
|
|
|
|
}
|
|
|
|
|
return _data;
|
|
|
|
|
},
|
|
|
|
|
dataInfo(dataAll){
|
|
|
|
|
let _dataAll =dataAll
|
|
|
|
|
_dataAll.approval = parseInt( _dataAll.approval)
|
|
|
|
|
for(let i=0;i<_dataAll.contract_item0List.length;i++){
|
|
|
|
|
dataInfo(dataAll) {
|
|
|
|
|
let _dataAll = dataAll
|
|
|
|
|
_dataAll.approval = parseInt(_dataAll.approval)
|
|
|
|
|
for (let i = 0; i < _dataAll.contract_item0List.length; i++) {
|
|
|
|
|
var _list = _dataAll.contract_item0List[i];
|
|
|
|
|
}
|
|
|
|
|
for(let i=0;i<_dataAll.contract_item1List.length;i++){
|
|
|
|
|
for (let i = 0; i < _dataAll.contract_item1List.length; i++) {
|
|
|
|
|
var _list = _dataAll.contract_item1List[i];
|
|
|
|
|
_list.enclosure = JSON.parse(_list.enclosure)
|
|
|
|
|
}
|
|
|
|
@ -617,5 +605,4 @@
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|