|
|
@@ -12,7 +12,7 @@
|
|
|
<i class="icon icon-table2"></i> 编辑
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn"
|
|
|
+ <!-- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='7'&&auditBtn"
|
|
|
@click="commonAuditClick(7)">企管法规处审批</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Status=='4'&&auditBtn"
|
|
|
@click="commonAuditClick(4)">专业处室审核</el-button>
|
|
|
@@ -29,7 +29,7 @@
|
|
|
|
|
|
<el-button type="primary" size="mini"
|
|
|
v-if="(Number(formData.Status)<=0&&saveButton)||(formData.Status=='4'&&auditBtn)"
|
|
|
- @click="saveEntity">保存</el-button>
|
|
|
+ @click="saveEntity">保存</el-button> -->
|
|
|
<el-button @click="onBack" type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -356,34 +356,36 @@ export default {
|
|
|
},
|
|
|
watch: {},
|
|
|
created() {
|
|
|
- console.log('接受操作', this.$route.query.item)
|
|
|
- if (this.$route.query.item) {
|
|
|
- if (this.$route.query.item.SupplierId > 0) {
|
|
|
- api.GetResultEntity(this.$route.query.item.SupplierId, this.$axios).then(res => {
|
|
|
- console.log('结果', res)
|
|
|
- this.evaluateData.Result1 = res.data.Result1
|
|
|
- if (res.data.Result2 && res.data.Result2 == "0") {
|
|
|
- this.evaluateData.Result2 = "否"
|
|
|
- } else {
|
|
|
- this.evaluateData.Result2 = "是"
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- this.serviceId = this.$route.params.opera;
|
|
|
- if (this.serviceId != 'add' && this.serviceId > 0) { //编辑进入
|
|
|
- this.formData.Id = this.serviceId
|
|
|
- this.refreshPage()
|
|
|
- } else { // 新增进入
|
|
|
- this.formData = this.$route.query.item
|
|
|
- this.formData.Id = 0;
|
|
|
- this.formData.Status = 0
|
|
|
- this.nowItem = this.$route.query.item
|
|
|
- this.initPage(this.$route.query.item)
|
|
|
- }
|
|
|
- this.statusFun()
|
|
|
+ // console.log('接受操作', this.$route.query.item)
|
|
|
+ this.serviceId = this.$route.params.opera
|
|
|
+ this.initPageId(this.serviceId)
|
|
|
+ // if (this.$route.query.item) {
|
|
|
+ // if (this.$route.query.item.SupplierId > 0) {
|
|
|
+ // api.GetResultEntity(this.$route.query.item.SupplierId, this.$axios).then(res => {
|
|
|
+ // console.log('结果', res)
|
|
|
+ // this.evaluateData.Result1 = res.data.Result1
|
|
|
+ // if (res.data.Result2 && res.data.Result2 == "0") {
|
|
|
+ // this.evaluateData.Result2 = "否"
|
|
|
+ // } else {
|
|
|
+ // this.evaluateData.Result2 = "是"
|
|
|
+ // }
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.error(err)
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.serviceId = this.$route.params.opera;
|
|
|
+ // if (this.serviceId != 'add' && this.serviceId > 0) { //编辑进入
|
|
|
+ // this.formData.Id = this.serviceId
|
|
|
+ // this.refreshPage()
|
|
|
+ // } else { // 新增进入
|
|
|
+ // this.formData = this.$route.query.item
|
|
|
+ // this.formData.Id = 0;
|
|
|
+ // this.formData.Status = 0
|
|
|
+ // this.nowItem = this.$route.query.item
|
|
|
+ // this.initPage(this.$route.query.item)
|
|
|
+ // }
|
|
|
+ // this.statusFun()
|
|
|
},
|
|
|
methods: {
|
|
|
// 状态判断
|
|
|
@@ -468,7 +470,20 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
- initPage(item) {
|
|
|
+ initPageId(id){
|
|
|
+ if (id > 0) {
|
|
|
+ var data = {
|
|
|
+ ContractClass:'03'
|
|
|
+ }
|
|
|
+ api.computeEntity(id, data, this.$axios).then(res => {
|
|
|
+ console.log('详情', res)
|
|
|
+ this.initPage(id,res.data)
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ initPage(id,item) {
|
|
|
this.evaluateData = item
|
|
|
this.$set(this.evaluateData, 'SupplierId', Number(item.SupplierId))
|
|
|
this.$set(this.evaluateData, 'SumScore', Number(item.Score))
|
|
|
@@ -477,9 +492,21 @@ export default {
|
|
|
this.$set(this.evaluateData, 'SumScore3', Number(item.Score3))
|
|
|
this.$set(this.evaluateData, 'SumScore4', Number(item.Score4))
|
|
|
this.$set(this.evaluateData, 'Conclusion', Number(item.Evaluate))
|
|
|
- this.$set(this.evaluateData, 'Result1', '')
|
|
|
- this.$set(this.evaluateData, 'Result2', '')
|
|
|
+ // this.$set(this.evaluateData, 'Result1', '')
|
|
|
+ // this.$set(this.evaluateData, 'Result2', '')
|
|
|
// this.getList()
|
|
|
+ // 判断基本条件结果
|
|
|
+ api.GetResultEntity(id, this.$axios).then(res => {
|
|
|
+ console.log('结果', res)
|
|
|
+ this.$set(this.evaluateData, 'Result1', res.data.Result1)
|
|
|
+ if (res.data.Result2 && res.data.Result2 == '0') {
|
|
|
+ this.$set(this.evaluateData, 'Result2', '否')
|
|
|
+ } else {
|
|
|
+ this.$set(this.evaluateData, 'Result2', '是')
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
// 获取编辑信息
|
|
|
showIdDatas() {
|