|
@@ -11,6 +11,8 @@
|
|
|
<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-right: 3px" @click="AuditdialogShow = true" v-if="formData.Id !=''">提交审批
|
|
|
|
|
+ </el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/goodslist'">
|
|
<router-link :to="'/oilsupplier/supplierappend/goodslist'">
|
|
|
<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>
|
|
@@ -109,6 +111,29 @@
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
+ <el-dialog title="选择审批单位" :visible.sync="AuditdialogShow" width="520px">
|
|
|
|
|
+ <el-form ref="searchForm" label-width="110px">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="单位名称">
|
|
|
|
|
+ <el-select ref="selectauditOrg" v-model="FirstAudit" placeholder="请选择"
|
|
|
|
|
+ style="width: 90%" filterable allow-create default-first-option>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in organizeOption"
|
|
|
|
|
+ :key="item.Id"
|
|
|
|
|
+ :label="item.Fullname"
|
|
|
|
|
+ :value="item.Id">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -116,6 +141,7 @@
|
|
|
import {
|
|
import {
|
|
|
mapGetters
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
|
|
|
+ import suppapi from '@/api/oilsupplier/supplier'
|
|
|
import api from '@/api/oilsupplier/supplierappendsub'
|
|
import api from '@/api/oilsupplier/supplierappendsub'
|
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
|
|
|
|
@@ -150,6 +176,9 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
|
|
+ AuditdialogShow: false,//提交审核弹框
|
|
|
|
|
+ organizeOption: [], // 审批部门
|
|
|
|
|
+ FirstAudit: '',
|
|
|
supplierList: [], //供应方公司列表
|
|
supplierList: [], //供应方公司列表
|
|
|
supplierOptions: '', //已选择的供应方公司列表
|
|
supplierOptions: '', //已选择的供应方公司列表
|
|
|
// serviceType: '', //服务类型()
|
|
// serviceType: '', //服务类型()
|
|
@@ -248,6 +277,7 @@
|
|
|
this.getOrgTreeList() //获取推荐单位层级列表
|
|
this.getOrgTreeList() //获取推荐单位层级列表
|
|
|
this.getGoodsTreeList(this.ParentId) //获取物资类层级列表
|
|
this.getGoodsTreeList(this.ParentId) //获取物资类层级列表
|
|
|
this.getSupplierList() //获取供应方公司列表
|
|
this.getSupplierList() //获取供应方公司列表
|
|
|
|
|
+ this.getDictOptions()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
|
|
@@ -371,6 +401,7 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
_this.formData = res.data
|
|
_this.formData = res.data
|
|
|
|
|
+ console.log("---_this.formData ----",_this.formData )
|
|
|
//显示原推荐单位
|
|
//显示原推荐单位
|
|
|
if (_this.formData.RecUnitFlag != null) {
|
|
if (_this.formData.RecUnitFlag != null) {
|
|
|
let arr = _this.formData.RecUnitFlag.split(',')
|
|
let arr = _this.formData.RecUnitFlag.split(',')
|
|
@@ -643,6 +674,40 @@
|
|
|
})
|
|
})
|
|
|
.catch(() => {})
|
|
.catch(() => {})
|
|
|
},
|
|
},
|
|
|
|
|
+ //提交审批
|
|
|
|
|
+ AuditEntity () {
|
|
|
|
|
+ api2.auditEntity(this.formData.Id, this.FirstAudit, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ this.AuditdialogShow = false
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ getDictOptions () {
|
|
|
|
|
+ suppapi.getDictList(this.$axios).then(res => {
|
|
|
|
|
+ this.dictData = res.data.items
|
|
|
|
|
+ this.organizeOption = res.data.items['Organizes']
|
|
|
|
|
+ console.log("---this.organizeOption---",this.organizeOption)
|
|
|
|
|
+ /* this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
|
|
+ this.getCityList(res.data.items['GaodeMapChinaAreas'])
|
|
|
|
|
+ this.CompanyTypeOptions = res.data.items['CompanyType'] */
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
//列表排序功能
|
|
//列表排序功能
|
|
|
orderby(column) {
|
|
orderby(column) {
|