|
@@ -163,13 +163,14 @@
|
|
|
<el-select filterable :class="changedForm['MgrUnit'] ? 'modified-form-input' : ''"
|
|
<el-select filterable :class="changedForm['MgrUnit'] ? 'modified-form-input' : ''"
|
|
|
v-model="formData.MgrUnit"
|
|
v-model="formData.MgrUnit"
|
|
|
maxlength="255"
|
|
maxlength="255"
|
|
|
- :disabled="!canUpdateSupplier"
|
|
|
|
|
|
|
+ :disabled="!canUpdateSupplier || formData.Grade === '1'"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
style="width: 100%">
|
|
style="width: 100%">
|
|
|
<el-option v-for="item in ManagementUnitOptions"
|
|
<el-option v-for="item in ManagementUnitOptions"
|
|
|
:key="item.Value"
|
|
:key="item.Value"
|
|
|
:label="item.Key"
|
|
:label="item.Key"
|
|
|
- :value="item.Key">
|
|
|
|
|
|
|
+ :value="item.Key"
|
|
|
|
|
+ :disabled="item.disabled">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -1864,8 +1865,6 @@
|
|
|
this.WorkflowId = this.$route.query.WorkflowId + ''
|
|
this.WorkflowId = this.$route.query.WorkflowId + ''
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
this.getDictOptions()
|
|
this.getDictOptions()
|
|
|
- this.formData.Id = this.serviceId
|
|
|
|
|
- this.initDatas()
|
|
|
|
|
this.entityForm.Status = this.Status
|
|
this.entityForm.Status = this.Status
|
|
|
if (this.Status <= 0) {
|
|
if (this.Status <= 0) {
|
|
|
this.savebtn = false
|
|
this.savebtn = false
|
|
@@ -2748,6 +2747,18 @@
|
|
|
annualapi.GetChangeEntity(Id, params, this.$axios).then(res => {
|
|
annualapi.GetChangeEntity(Id, params, this.$axios).then(res => {
|
|
|
this.copyformdata = _.cloneDeep(res.data[0])
|
|
this.copyformdata = _.cloneDeep(res.data[0])
|
|
|
this.formData = res.data[1]
|
|
this.formData = res.data[1]
|
|
|
|
|
+ if (this.formData.Grade === '1') {
|
|
|
|
|
+ this.formData.MgrUnit = '中油集团公司'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (this.formData.MgrUnit.indexOf('中油集团') >= 0) {
|
|
|
|
|
+ this.formData.MgrUnit = ''
|
|
|
|
|
+ }
|
|
|
|
|
+ for (let idx in this.ManagementUnitOptions) {
|
|
|
|
|
+ if (this.ManagementUnitOptions[idx].Key.indexOf('中油集团') >= 0) {
|
|
|
|
|
+ this.ManagementUnitOptions[idx].disabled = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
console.log(this.formData, '年审变更项')
|
|
console.log(this.formData, '年审变更项')
|
|
|
this.CityAry = []
|
|
this.CityAry = []
|
|
|
this.CityAry.push(this.formData.Province)
|
|
this.CityAry.push(this.formData.Province)
|
|
@@ -2846,6 +2857,8 @@
|
|
|
this.InOptions = res.data.items['InOptions']
|
|
this.InOptions = res.data.items['InOptions']
|
|
|
console.log(this.InOptions, 'this.InOptions')
|
|
console.log(this.InOptions, 'this.InOptions')
|
|
|
this.ManagementUnitOptions = res.data.items['ManagementUnit']
|
|
this.ManagementUnitOptions = res.data.items['ManagementUnit']
|
|
|
|
|
+ this.formData.Id = this.serviceId
|
|
|
|
|
+ this.initDatas()
|
|
|
this.orgunitChange(this.UnitOrg)
|
|
this.orgunitChange(this.UnitOrg)
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -3054,15 +3067,15 @@
|
|
|
this.saveLoading = false
|
|
this.saveLoading = false
|
|
|
return resolve(false)
|
|
return resolve(false)
|
|
|
}
|
|
}
|
|
|
- if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- duration: 10000,
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: '二级物资准入不能选择大港油田分公司!'
|
|
|
|
|
- })
|
|
|
|
|
- this.saveLoading = false
|
|
|
|
|
- return resolve(false)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
|
|
|
|
|
+ // this.$message({
|
|
|
|
|
+ // duration: 10000,
|
|
|
|
|
+ // type: 'warning',
|
|
|
|
|
+ // message: '二级物资准入不能选择大港油田分公司!'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // this.saveLoading = false
|
|
|
|
|
+ // return resolve(false)
|
|
|
|
|
+ // }
|
|
|
if (valid1 && valid2) {
|
|
if (valid1 && valid2) {
|
|
|
api.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
api.checkBack(this.formData.BankAccount, this.formData.Id, this.$axios).then(res => {
|
|
|
if (res.data.item) {
|
|
if (res.data.item) {
|
|
@@ -3529,6 +3542,13 @@
|
|
|
GradeChange (val) {
|
|
GradeChange (val) {
|
|
|
if (val === '1') {
|
|
if (val === '1') {
|
|
|
this.formData.MgrUnit = '中油集团公司'
|
|
this.formData.MgrUnit = '中油集团公司'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.formData.MgrUnit = ''
|
|
|
|
|
+ for (let idx in this.ManagementUnitOptions) {
|
|
|
|
|
+ if (this.ManagementUnitOptions[idx].Key.indexOf('中油集团') >= 0) {
|
|
|
|
|
+ this.ManagementUnitOptions[idx].disabled = true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
showorhid (val) {
|
|
showorhid (val) {
|