|
@@ -5,13 +5,18 @@
|
|
|
<el-breadcrumb-item :to="{ path: '/oilsupplier/supplier/techlist' }">技术服务类列表</el-breadcrumb-item>
|
|
<el-breadcrumb-item :to="{ path: '/oilsupplier/supplier/techlist' }">技术服务类列表</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>技术服务类供方准入评审表</el-breadcrumb-item>
|
|
<el-breadcrumb-item>技术服务类供方准入评审表</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
|
|
+
|
|
|
|
|
+ <float-img-btn ref="floatBtn" text="下一步" :itemWidth="58" :itemHeight="30" :coefficientHeight="0.8" @onFloatBtnClicked="nextTab">
|
|
|
|
|
+ </float-img-btn>
|
|
|
|
|
+ <float-img-btn ref="floatBtn" text="上一步" :itemWidth="58" :itemHeight="30" :coefficientHeight="0.85" @onFloatBtnClicked="backTab">
|
|
|
|
|
+ </float-img-btn>
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span>
|
|
<span>
|
|
|
<i class="icon icon-table2"></i> 信息
|
|
<i class="icon icon-table2"></i> 信息
|
|
|
</span>
|
|
</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
|
|
|
|
+ <!--<el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>-->
|
|
|
<el-popover>
|
|
<el-popover>
|
|
|
<el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
|
|
<el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
|
|
|
<el-step title="填信息"></el-step>
|
|
<el-step title="填信息"></el-step>
|
|
@@ -287,10 +292,14 @@
|
|
|
import TechInfo from '@/components/oilsupplier/techinfo'
|
|
import TechInfo from '@/components/oilsupplier/techinfo'
|
|
|
|
|
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
|
|
+ import FloatImgBtn from '@/components/floatButton/index'
|
|
|
|
|
+ import ElIcon from "../../../../../node_modules/element-ui/packages/icon/src/icon";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ ElIcon,
|
|
|
|
|
+ FloatImgBtn,
|
|
|
SupplierFileTable,
|
|
SupplierFileTable,
|
|
|
WfHistory,
|
|
WfHistory,
|
|
|
WfBackHistory,
|
|
WfBackHistory,
|
|
@@ -695,13 +704,40 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
nextTab () {
|
|
nextTab () {
|
|
|
|
|
+ let totalTab = 4
|
|
|
|
|
+ if (this.formDataCert.Status > 0) {
|
|
|
|
|
+ totalTab = 6
|
|
|
|
|
+ }
|
|
|
|
|
+ let valid = true
|
|
|
|
|
+ if (this.formDataCert.Status <= 0 && this.activeName === '1') {
|
|
|
|
|
+ valid = this.saveEntity()
|
|
|
|
|
+ } else if (this.formDataCert.Status <= 0 && this.activeName === '2') {
|
|
|
|
|
+ this.updateNumberEntity()
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!valid) {
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
let activeIdx = parseInt(this.activeName)
|
|
let activeIdx = parseInt(this.activeName)
|
|
|
- if (activeIdx < 4) {
|
|
|
|
|
|
|
+ if (activeIdx < totalTab) {
|
|
|
this.activeName = (activeIdx + 1) + ''
|
|
this.activeName = (activeIdx + 1) + ''
|
|
|
} else {
|
|
} else {
|
|
|
this.activeName = '1'
|
|
this.activeName = '1'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ backTab () {
|
|
|
|
|
+ let totalTab = 4
|
|
|
|
|
+ if (this.formDataCert.Status > 0) {
|
|
|
|
|
+ totalTab = 6
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ let activeIdx = parseInt(this.activeName)
|
|
|
|
|
+ if (activeIdx > 0) {
|
|
|
|
|
+ this.activeName = (activeIdx - 1) + ''
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.activeName = totalTab + ''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
/* getCityList(val) {
|
|
/* getCityList(val) {
|
|
|
let resultData = JSON.parse(val)
|
|
let resultData = JSON.parse(val)
|
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
@@ -711,25 +747,33 @@
|
|
|
|
|
|
|
|
// 保存信息
|
|
// 保存信息
|
|
|
saveEntity() {
|
|
saveEntity() {
|
|
|
|
|
+ let valid1 = false
|
|
|
|
|
+ let valid2 = false
|
|
|
|
|
+
|
|
|
this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
|
|
this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
- this.$refs["TechInfo"].$refs["EntityFormCert"].validate(vvalid => {
|
|
|
|
|
- if (valid&&vvalid) {
|
|
|
|
|
- if (!this.formData.SetupTime) {
|
|
|
|
|
- this.formData.SetupTime = null
|
|
|
|
|
- } else {
|
|
|
|
|
- this.formData.SetupTime = new Date(this.formData.SetupTime)
|
|
|
|
|
- }
|
|
|
|
|
- // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
|
|
- if (!this.formData.Id || !this.certId) {
|
|
|
|
|
- this.addEntity()
|
|
|
|
|
- } else {
|
|
|
|
|
- this.updateEntity()
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ valid1 = valid
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs["TechInfo"].$refs["EntityFormCert"].validate(vvalid => {
|
|
|
|
|
+ valid2 = vvalid
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ if (valid1 && valid2) {
|
|
|
|
|
+ if (!this.formData.SetupTime) {
|
|
|
|
|
+ this.formData.SetupTime = null
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.formData.SetupTime = new Date(this.formData.SetupTime)
|
|
|
|
|
+ }
|
|
|
|
|
+ // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
|
|
+ if (!this.formData.Id || !this.certId) {
|
|
|
|
|
+ this.addEntity()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.updateEntity()
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 保存信息
|
|
// 保存信息
|