|
@@ -64,9 +64,7 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="供应商ID" prop="hid" class="form-input">
|
|
|
- <el-input v-model="form.hName" readonly>
|
|
|
- <el-button slot="append" icon="el-icon-search" @click="handleSearchSuppliers(1)"></el-button>
|
|
|
- </el-input>
|
|
|
+ <el-input v-model="form.hName" readonly></el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="发布人姓名" prop="gsPubman" class="form-input" v-if="false">
|
|
@@ -74,17 +72,23 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="中标金额" prop="projMoney" class="form-input"
|
|
|
v-if="this.form.gsState === '1' || this.form.gsState === '2'">
|
|
|
- <el-input v-model="form.projMoney" placeholder="请输入中标金额" />
|
|
|
+ <el-input v-model="form.projMoney" placeholder="请输入中标金额" readonly />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="代理服务费" prop="serviceFee" class="form-input"
|
|
|
v-if="this.form.gsState === '1' || this.form.gsState === '2'">
|
|
|
- <el-input v-model="form.serviceFee" placeholder="请输入代理服务费" />
|
|
|
+ <el-input v-model="form.serviceFee" placeholder="请输入代理服务费" readonly />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="变更供应商" prop="supplierNameChange" class="form-input" v-if="this.form.gsState === '2'">
|
|
|
<el-input v-model="form.supplierNameChange" readonly>
|
|
|
- <el-button slot="append" icon="el-icon-search" @click="handleSearchSuppliers(2)"></el-button>
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="handleSearchSuppliers"></el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="变更后中标金额" prop="supplierChangePrice" class="form-input" v-if="this.form.gsState === '2'">
|
|
|
+ <el-input v-model="form.supplierChangePrice" placeholder="请输入中标金额" readonly />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="变更后代理服务费" prop="supplierChangeService" class="form-input" v-if="this.form.gsState === '2'">
|
|
|
+ <el-input v-model="form.supplierChangeService" placeholder="请输入代理服务费" readonly />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="公示时间" prop="gsResDate" class="form-input">
|
|
|
<el-date-picker v-model="form.gsResDate" type="datetime" placeholder="公示发布时间"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" default-time="09:00:00">
|
|
@@ -110,7 +114,7 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog v-if="gsApproveState === 1" title="选择供应商" :visible.sync="dialogSelectedSuppliers.visible" width="42%"
|
|
|
append-to-body>
|
|
|
- <suppliers v-if="dialogSelectedSuppliers.visible" @selectedSuppliers="handleSelectedSuppliers" />
|
|
|
+ <suppliers v-if="dialogSelectedSuppliers.visible" :sid="form.sid" @selectedSuppliers="handleSelectedSuppliers" />
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 详情弹窗 -->
|
|
@@ -148,6 +152,14 @@
|
|
|
<el-descriptions-item label="变更供应商" v-if="dialogDetail.detail.gsState == '2'">
|
|
|
{{ dialogDetail.detail.supplierNameChange }}
|
|
|
</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="变更后中标金额"
|
|
|
+ v-if="dialogDetail.detail.gsState == '2'">
|
|
|
+ {{ changeForm.finalPrice }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="变更后代理服务费"
|
|
|
+ v-if="dialogDetail.detail.gsState == '2'">
|
|
|
+ {{ changeForm.servicePrice }}
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="公示审批状态" v-if="false">
|
|
|
{{ dialogDetail.detail.gsApproveState }}
|
|
|
</el-descriptions-item>
|
|
@@ -244,6 +256,7 @@ import { listRecord } from "@/api/system/approval";
|
|
|
import CompSearchProject from "./CompSearchProject.vue";
|
|
|
import suppliers from "./suppliers.vue";
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
+import { getServicePrice, getChangeSupplier } from '@/api/system/plan';
|
|
|
|
|
|
export default {
|
|
|
props: {
|
|
@@ -320,6 +333,8 @@ export default {
|
|
|
serviceFee: null,
|
|
|
suppliersChange: null,
|
|
|
supplierNameChange: null,
|
|
|
+ supplierChangeService: null,
|
|
|
+ supplierChangePrice: null,
|
|
|
tenderName: null,
|
|
|
gsAnnex: null
|
|
|
},
|
|
@@ -347,6 +362,12 @@ export default {
|
|
|
filesLength: 0,
|
|
|
uploadFiles: [],
|
|
|
},
|
|
|
+
|
|
|
+ // 变更后金额和服务费
|
|
|
+ changeForm: {
|
|
|
+ finalPrice: null,
|
|
|
+ servicePrice: null
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -377,6 +398,8 @@ export default {
|
|
|
this.form.serviceFee = ''
|
|
|
this.form.suppliersChange = ''
|
|
|
this.form.supplierNameChange = ''
|
|
|
+ this.form.supplierChangeService = ''
|
|
|
+ this.form.supplierChangePrice = ''
|
|
|
this.form.tenderName = ''
|
|
|
this.form.gsAnnex = ''
|
|
|
},
|
|
@@ -423,6 +446,8 @@ export default {
|
|
|
this.form.serviceFee = data.serviceFee
|
|
|
this.form.suppliersChange = data.suppliersChange
|
|
|
this.form.supplierNameChange = data.supplierNameChange
|
|
|
+ this.form.supplierChangeService = data.supplierChangeService
|
|
|
+ this.form.supplierChangePrice = data.supplierChangePrice
|
|
|
this.form.tenderName = data.tenderName
|
|
|
this.form.gsAnnex = data.gsAnnex
|
|
|
if (data.gsAnnex) {
|
|
@@ -515,22 +540,36 @@ export default {
|
|
|
console.log(res)
|
|
|
})
|
|
|
},
|
|
|
- handleSearchSuppliers (type) {
|
|
|
- this.dialogSelectedSuppliers.visible = true;
|
|
|
- this.dialogSelectedSuppliers.type = type;
|
|
|
+ handleSearchSuppliers() {
|
|
|
+ if (this.form.sid) {
|
|
|
+ this.dialogSelectedSuppliers.visible = true;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: '请先选择招标项目',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
/** 选中供应商事件 */
|
|
|
handleSelectedSuppliers (row) {
|
|
|
- console.log(row);
|
|
|
- if (this.dialogSelectedSuppliers.type === 1) {
|
|
|
- this.form.hid = row.hid;
|
|
|
- this.form.hName = row.hName;
|
|
|
- } else if (this.dialogSelectedSuppliers.type === 2) {
|
|
|
- this.form.suppliersChange = row.hid;
|
|
|
- this.form.supplierNameChange = row.hName;
|
|
|
- }
|
|
|
+ this.handleGetServicePrice(row.hid);
|
|
|
+
|
|
|
+ this.form.suppliersChange = row.hid;
|
|
|
+ this.form.supplierNameChange = row.hName;
|
|
|
this.dialogSelectedSuppliers.visible = false;
|
|
|
},
|
|
|
+
|
|
|
+ handleGetServicePrice(hid) {
|
|
|
+ getServicePrice({
|
|
|
+ sid: this.form.sid,
|
|
|
+ hid
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.form.supplierChangeService = res.data.servicePrice
|
|
|
+ this.form.supplierChangePrice = res.data.finalPrice
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
/** 查看 */
|
|
|
handleInfo (row) {
|
|
|
this.resetDetail()
|
|
@@ -554,6 +593,8 @@ export default {
|
|
|
this.dialogDetail.detail.serviceFee = data.serviceFee
|
|
|
this.dialogDetail.detail.suppliersChange = data.suppliersChange
|
|
|
this.dialogDetail.detail.supplierNameChange = data.supplierNameChange
|
|
|
+ this.dialogDetail.detail.supplierChangeService = data.supplierChangeService
|
|
|
+ this.dialogDetail.detail.supplierChangePrice = data.supplierChangePrice
|
|
|
this.dialogDetail.detail.tenderName = data.tenderName
|
|
|
if (data.gsAnnex) {
|
|
|
this.dialogDetail.detail.uploadFiles = JSON.parse(data.gsAnnex)
|
|
@@ -587,6 +628,8 @@ export default {
|
|
|
this.dialogDetail.detail.serviceFee = null
|
|
|
this.dialogDetail.detail.suppliersChange = null
|
|
|
this.dialogDetail.detail.supplierNameChange = null
|
|
|
+ this.dialogDetail.detail.supplierChangeService = null
|
|
|
+ this.dialogDetail.detail.supplierChangePrice = null
|
|
|
this.dialogDetail.detail.tenderName = null
|
|
|
},
|
|
|
/** 提交审核 */
|