|
|
@@ -11,7 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 编辑
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" style="margin-right: 3px" @click="AuditdialogShow = true"
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 3px" @click="selectAuditOrg"
|
|
|
v-if="formData.Id !='' && (formData.Status == '0'||formData.Status == '')">提交审批
|
|
|
</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/techlist'">
|
|
|
@@ -122,23 +122,32 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog title="选择审批单位" :visible.sync="AuditdialogShow" width="520px">
|
|
|
- <el-form ref="searchForm" label-width="110px">
|
|
|
+ <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
|
|
|
+ <el-form ref="searchForm" label-width="70px">
|
|
|
<el-row>
|
|
|
- <el-col :span="24">
|
|
|
+ <!--<el-col :span="24">
|
|
|
<el-form-item label="二级单位">
|
|
|
<el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- filterable style="width: 100%" @change="auditOrgChang" placeholder="请选择组织">
|
|
|
+ filterable style="width: 100%" @change="auditOrgChang" v-model="secOrganize" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>-->
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="审批人">
|
|
|
- <el-select ref="selectAuditer" v-model="FirstAudit" placeholder="请选择" style="width: 100%" filterable
|
|
|
+ <!--<el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 90%" filterable
|
|
|
allow-create default-first-option>
|
|
|
<el-option v-for="item in auditerOption" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
</el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select>-->
|
|
|
+ <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择审批人">
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="说明">
|
|
|
+ <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入说明内容">
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -149,6 +158,9 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
+ :visible="chooseAuditorVisible"></choose-auditor>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -160,8 +172,12 @@
|
|
|
import api from '@/api/oilsupplier/supplierappendsub'
|
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
+ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ ChooseAuditor
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
authUser: 'authUser'
|
|
|
@@ -192,6 +208,7 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ chooseAuditorVisible: false,
|
|
|
orgtreelist: [], //二级单位
|
|
|
AuditdialogShow: false, //提交审核弹框
|
|
|
organizeOption: [], // 审批部门
|
|
|
@@ -201,6 +218,13 @@
|
|
|
label: 'Fullname',
|
|
|
children: 'children'
|
|
|
},
|
|
|
+ auditform: {
|
|
|
+ FirstAuditName: '',
|
|
|
+ CertId: '',
|
|
|
+ AuditRemark: ''
|
|
|
+ },
|
|
|
+ auditer: '',
|
|
|
+ auditerName: '',
|
|
|
FirstAudit: '',
|
|
|
supplierList: [], //供应方公司列表
|
|
|
supplierOptions: '', //已选择的供应方公司列表
|
|
|
@@ -632,9 +656,33 @@
|
|
|
.catch(() => {})
|
|
|
},
|
|
|
|
|
|
+ selectAuditOrg() {
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ chooseAuditorShow() {
|
|
|
+ this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
+ this.chooseAuditorVisible = true
|
|
|
+ },
|
|
|
+ setAuditer(val, name) {
|
|
|
+ this.auditer = val
|
|
|
+ this.auditerName = name
|
|
|
+ this.chooseAuditorVisible = false
|
|
|
+ },
|
|
|
+
|
|
|
//提交审批
|
|
|
AuditEntity() {
|
|
|
- api2.auditEntity(this.formData.Id, this.FirstAudit, this.$axios).then(res => {
|
|
|
+ if (this.auditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择审批人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.applyLoading = true
|
|
|
+ this.auditform.FirstAuditName = this.auditer
|
|
|
+ this.auditform.CertId = this.formData.Id
|
|
|
+ console.log("---this.auditform---",this.auditform)
|
|
|
+ api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
this.getEntityById()
|
|
|
@@ -649,6 +697,7 @@
|
|
|
message: res.data.message
|
|
|
})
|
|
|
}
|
|
|
+ this.applyLoading = false
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|