|
@@ -11,6 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 审批
|
|
<i class="icon icon-table2"></i> 审批
|
|
|
</span>
|
|
</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity">审批</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplieraudit'">
|
|
<router-link :to="'/oilsupplier/supplieraudit'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
</router-link>
|
|
@@ -23,7 +24,8 @@
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span>供方基本信息表</span>
|
|
<span>供方基本信息表</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <goods-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData" :disabled="true"></goods-info>
|
|
|
|
|
|
|
+ <goods-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData"
|
|
|
|
|
+ :disabled="true"></goods-info>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
|
@@ -158,6 +160,23 @@
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
+ <el-dialog title="审核" :visible.sync="dialogMakeSure">
|
|
|
|
|
+ <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
|
|
+ <el-form-item label="审核状态">
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
|
|
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="意见">
|
|
|
|
|
+ <el-input type="textarea" v-model="formData.AuditorRemark" placeholder="请输入审核说明"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
|
|
+ <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -184,11 +203,11 @@
|
|
|
WfHistory,
|
|
WfHistory,
|
|
|
SupplierCertEdit,
|
|
SupplierCertEdit,
|
|
|
|
|
|
|
|
- EquipmentList, //企业主要装备情况
|
|
|
|
|
- PerformanceList, //近三年主要工程业绩列表
|
|
|
|
|
- PatentList, //拥有专利、专有技术及工法列表
|
|
|
|
|
- WinningList, //近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
|
|
- AuditbusList, //待审核业务
|
|
|
|
|
|
|
+ EquipmentList, // 企业主要装备情况
|
|
|
|
|
+ PerformanceList, // 近三年主要工程业绩列表
|
|
|
|
|
+ PatentList, // 拥有专利、专有技术及工法列表
|
|
|
|
|
+ WinningList, // 近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
|
|
+ AuditbusList, // 待审核业务
|
|
|
GoodsInfo
|
|
GoodsInfo
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -198,18 +217,25 @@
|
|
|
},
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
- equipmentList: [], //企业主要装备情况
|
|
|
|
|
- performanceList: [], //近三年主要工程业绩
|
|
|
|
|
- patentList: [], //拥有专利、专有技术及工法
|
|
|
|
|
- winningList: [], //近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
|
|
- auditbusList: [], //待审核业务
|
|
|
|
|
|
|
+ equipmentList: [], // 企业主要装备情况
|
|
|
|
|
+ performanceList: [], // 近三年主要工程业绩
|
|
|
|
|
+ patentList: [], // 拥有专利、专有技术及工法
|
|
|
|
|
+ winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
|
|
+ auditbusList: [], // 待审核业务
|
|
|
|
|
|
|
|
serviceId: '',
|
|
serviceId: '',
|
|
|
certId: '',
|
|
certId: '',
|
|
|
classId: '01',
|
|
classId: '01',
|
|
|
dictData: null,
|
|
dictData: null,
|
|
|
|
|
+ dialogMakeSure: false,
|
|
|
|
|
+
|
|
|
|
|
+ shenheForm: {
|
|
|
|
|
+ SuccessStatus: 3,
|
|
|
|
|
+ AuditorRemark: '',
|
|
|
|
|
+ AnnualId: 0
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
formData: {
|
|
formData: {
|
|
|
Id: '',
|
|
Id: '',
|
|
@@ -306,8 +332,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ created () {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
this.certId = this.$route.query.certid + ''
|
|
this.certId = this.$route.query.certid + ''
|
|
|
if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
@@ -319,17 +344,17 @@
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- equipmentdialog() {
|
|
|
|
|
- this.$refs["equipmentList"].showDialog()
|
|
|
|
|
|
|
+ equipmentdialog () {
|
|
|
|
|
+ this.$refs['equipmentList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- performancedialog() {
|
|
|
|
|
- this.$refs["performanceList"].showDialog()
|
|
|
|
|
|
|
+ performancedialog () {
|
|
|
|
|
+ this.$refs['performanceList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- patentdialog() {
|
|
|
|
|
- this.$refs["patentList"].showDialog()
|
|
|
|
|
|
|
+ patentdialog () {
|
|
|
|
|
+ this.$refs['patentList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- winningdialog() {
|
|
|
|
|
- this.$refs["winningList"].showDialog()
|
|
|
|
|
|
|
+ winningdialog () {
|
|
|
|
|
+ this.$refs['winningList'].showDialog()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
initDatas () {
|
|
initDatas () {
|
|
@@ -353,7 +378,7 @@
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -365,75 +390,72 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //保存信息
|
|
|
|
|
- saveEntity() {
|
|
|
|
|
|
|
+ // 保存信息
|
|
|
|
|
+ saveEntity () {
|
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- //this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
|
|
|
|
+ // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
if (!this.formData.Id) {
|
|
if (!this.formData.Id) {
|
|
|
this.addEntity()
|
|
this.addEntity()
|
|
|
} else {
|
|
} else {
|
|
|
this.updateEntity()
|
|
this.updateEntity()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
} else {
|
|
} else {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //保存信息
|
|
|
|
|
- saveCertEntity() {
|
|
|
|
|
|
|
+ // 保存信息
|
|
|
|
|
+ saveCertEntity () {
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- addEntity() {
|
|
|
|
|
|
|
+ addEntity () {
|
|
|
this.formData.SupplierTypeCode = '02'
|
|
this.formData.SupplierTypeCode = '02'
|
|
|
this.formData.SupplierTypeName = '物资类'
|
|
this.formData.SupplierTypeName = '物资类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
this.formData.Id = res.data.item.split('_')[0]
|
|
this.formData.Id = res.data.item.split('_')[0]
|
|
|
this.certId = res.data.item.split('_')[1]
|
|
this.certId = res.data.item.split('_')[1]
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- updateEntity() {
|
|
|
|
|
|
|
+ updateEntity () {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
|
|
|
|
+ CheckCompanyBase () {
|
|
|
if (!this.formData.Id) {
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -450,51 +472,80 @@
|
|
|
}
|
|
}
|
|
|
return true
|
|
return true
|
|
|
},
|
|
},
|
|
|
- //企业人员结构情况
|
|
|
|
|
- updateNumberEntity() {
|
|
|
|
|
|
|
+ // 企业人员结构情况
|
|
|
|
|
+ updateNumberEntity () {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
if (!this.CheckCompanyBase()) {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(res => {
|
|
api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ AuditEntity () {
|
|
|
|
|
+ // apiCert.auditEntity(this.certId, this.$axios).then(res => {
|
|
|
|
|
+ // if (res.data.code === 0) {
|
|
|
|
|
+ // //保存成功后,初始化数据,变成修改
|
|
|
|
|
+ // this.initDatas()
|
|
|
|
|
+ // this.$message({
|
|
|
|
|
+ // type: 'success',
|
|
|
|
|
+ // message: res.data.message
|
|
|
|
|
+ // });
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // this.$message({
|
|
|
|
|
+ // type: 'warning',
|
|
|
|
|
+ // message: res.data.message
|
|
|
|
|
+ // });
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }).catch(err => {
|
|
|
|
|
+ // console.error(err)
|
|
|
|
|
+ // });
|
|
|
|
|
+ this.dialogMakeSure = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- AuditEntity() {
|
|
|
|
|
- apiCert.auditEntity(this.certId, this.$axios).then(res => {
|
|
|
|
|
|
|
+ // 审核通过
|
|
|
|
|
+ makeSure () {
|
|
|
|
|
+ this.dialogMakeSure = false
|
|
|
|
|
+ this.checkstatus()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ checkstatus () {
|
|
|
|
|
+ let params = this.shenheForm
|
|
|
|
|
+ console.log(this.shenheForm, '---this.shenheForm----')
|
|
|
|
|
+ apiCert.auditEntityFir(this.certId, this.formData.Status, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
+ this.applyLoading = false
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
|
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
@@ -507,20 +558,19 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
|
|
- var y = date.getFullYear();
|
|
|
|
|
- var m = date.getMonth() + 1;
|
|
|
|
|
- m = m < 10 ? ('0' + m) : m;
|
|
|
|
|
- var d = date.getDate();
|
|
|
|
|
- d = d < 10 ? ('0' + d) : d;
|
|
|
|
|
- var h = date.getHours();
|
|
|
|
|
- var minute = date.getMinutes();
|
|
|
|
|
- minute = minute < 10 ? ('0' + minute) : minute;
|
|
|
|
|
- return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
|
|
|
|
|
+ formatDateTime (date) {
|
|
|
|
|
+ var y = date.getFullYear()
|
|
|
|
|
+ var m = date.getMonth() + 1
|
|
|
|
|
+ m = m < 10 ? ('0' + m) : m
|
|
|
|
|
+ var d = date.getDate()
|
|
|
|
|
+ d = d < 10 ? ('0' + d) : d
|
|
|
|
|
+ var h = date.getHours()
|
|
|
|
|
+ var minute = date.getMinutes()
|
|
|
|
|
+ minute = minute < 10 ? ('0' + minute) : minute
|
|
|
|
|
+ return y + '-' + m + '-' + d + ' ' + h + ':' + minute
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|