|
|
@@ -41,10 +41,10 @@
|
|
|
</el-autocomplete> -->
|
|
|
<el-input :class="changedForm['SupplierName'] ? 'modified-form-input' : ''"
|
|
|
v-model="formData.SupplierName" :maxlength="255" placeholder="请输入" style="width: 100%"
|
|
|
- v-if="authUser && authUser.Profile.IsCompanyUser == 1">
|
|
|
+ v-if="authUser && authUser.Profile.IsCompanyUser == 1" :readonly="InfoStatus > 0 || butnab">
|
|
|
</el-input>
|
|
|
<el-input v-model="formData.SupplierName" :maxlength="255" @change="inputCompanyName"
|
|
|
- placeholder="请输入" style="width: 100%" v-if="!authUser || authUser.Profile.IsCompanyUser == 0">
|
|
|
+ placeholder="请输入" style="width: 100%" v-if="!authUser || authUser.Profile.IsCompanyUser == 0" :readonly="InfoStatus > 0 || butnab">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="单位关系">
|
|
|
<el-select ref="SpecType" v-model="formData.SpecTypeCode"
|
|
|
- :class="changedForm['SpecTypeCode'] ? 'modified-form-input' : ''" placeholder="请选择"
|
|
|
+ :class="changedForm['SpecTypeCode'] ? 'modified-form-input' : ''" placeholder="请选择" :disabled="InfoStatus > 0 || butnab"
|
|
|
style="width: 100%">
|
|
|
<el-option v-for="item in UnitRelationOptions" :key="item.Id" :label="item.Key" :value="item.Value">
|
|
|
</el-option>
|
|
|
@@ -80,7 +80,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="中石油准入证编号">
|
|
|
- <el-input v-model="formData.PACNumber" maxlength="255" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.PACNumber" maxlength="255" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['PACNumber'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -105,7 +105,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="管理单位">
|
|
|
- <el-select filterable clearable v-model="formData.MgrUnit" maxlength="255"
|
|
|
+ <el-select filterable clearable v-model="formData.MgrUnit" maxlength="255" :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['MgrUnit'] ? 'modified-form-input' : ''" placeholder="请输入" style="width: 100%">
|
|
|
<el-option v-for="item in ManagementUnitOptions" :key="item.Value" :label="item.Key"
|
|
|
:value="item.Key">
|
|
|
@@ -116,7 +116,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="国家" prop="Country">
|
|
|
- <el-select v-model="formData.Country" filterable placeholder="请选择" style="width: 100%"
|
|
|
+ <el-select v-model="formData.Country" filterable placeholder="请选择" style="width: 100%" :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Country'] ? 'modified-form-input' : ''">
|
|
|
<el-option v-for="item in countryListOptions" :key="item.key" :label="item.value"
|
|
|
:value="item.value">
|
|
|
@@ -129,7 +129,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="证件类型">
|
|
|
- <el-select v-model="formData.CredentialFlag" placeholder="请选择" @change="showorhid" style="width: 100%"
|
|
|
+ <el-select v-model="formData.CredentialFlag" placeholder="请选择" @change="showorhid" style="width: 100%" :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['CredentialFlag'] ? 'modified-form-input' : ''">
|
|
|
<el-option v-for="item in selectoptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
@@ -151,7 +151,7 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="税务登记证编号" prop="CountryTaxNo" v-if="showorhidflag=='show'">
|
|
|
<el-input v-model="formData.CountryTaxNo" maxlength="50"
|
|
|
- :class="changedForm['CountryTaxNo'] ? 'modified-form-input' : ''" placeholder="请输入"
|
|
|
+ :class="changedForm['CountryTaxNo'] ? 'modified-form-input' : ''" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -159,7 +159,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="组织机构代码" prop="OrganCode" v-if="showorhidflag=='show'">
|
|
|
- <el-input v-model="formData.OrganCode" maxlength="50" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.OrganCode" maxlength="50" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['OrganCode'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -170,13 +170,13 @@
|
|
|
<el-form-item label="注册地址" prop="Province">
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
|
- <el-cascader ref="cascaderAdd" :options="countryoptions" :props="countryprops" maxlength="20" filterable
|
|
|
+ <el-cascader ref="cascaderAdd" :options="countryoptions" :props="countryprops" maxlength="20" filterable :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Province'] || changedForm['City'] || changedForm['Street'] ? 'modified-form-input' : ''"
|
|
|
placeholder="省市区" v-model="CityAry" style="width: 100%" @change="handleAreaChange">
|
|
|
</el-cascader>
|
|
|
</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input v-model="formData.Address" maxlength="500" placeholder="详细地址" style="width: 100%"
|
|
|
+ <el-input v-model="formData.Address" maxlength="500" placeholder="详细地址" style="width: 100%" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Address'] ? 'modified-form-input' : ''">
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
@@ -185,7 +185,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="邮编" prop="ZipCode">
|
|
|
- <el-input v-model="formData.ZipCode" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.ZipCode" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['ZipCode'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -195,14 +195,14 @@
|
|
|
<el-form-item label="通信地址" prop="LinkProvince">
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
|
- <el-cascader ref="cascaderAddrLink" :options="countryoptions" :props="countryprops" filterable
|
|
|
+ <el-cascader ref="cascaderAddrLink" :options="countryoptions" :props="countryprops" filterable :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['LinkProvince'] || changedForm['LinkCity'] || changedForm['LinkStreet'] ? 'modified-form-input' : ''"
|
|
|
placeholder="省市区" v-model="LinkCityAry" maxlength="20" style="width: 100%"
|
|
|
@change="handleLinkAreaChange">
|
|
|
</el-cascader>
|
|
|
</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <el-input v-model="formData.LinkAddress" maxlength="500" placeholder="详细地址" style="width: 100%"
|
|
|
+ <el-input v-model="formData.LinkAddress" maxlength="500" placeholder="详细地址" style="width: 100%" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['LinkAddress'] ? 'modified-form-input' : ''">
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
@@ -211,7 +211,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="邮编" prop="LinkZipCode">
|
|
|
- <el-input v-model="formData.LinkZipCode" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.LinkZipCode" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['LinkZipCode'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -221,7 +221,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="法定代表人姓名" prop="LegalPerson">
|
|
|
- <el-input v-model="formData.LegalPerson" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.LegalPerson" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['LegalPerson'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -231,7 +231,7 @@
|
|
|
<el-form-item label="公司类型" prop="CompanyType">
|
|
|
<!--<el-input v-model="formData.CompanyType" placeholder="请输入" style="width: 100%"></el-input>-->
|
|
|
<el-select v-model="formData.CompanyType" maxlength="50" filterable allow-create
|
|
|
- :class="changedForm['CompanyType'] ? 'modified-form-input' : ''" :disabled="!canUpdateSupplier"
|
|
|
+ :class="changedForm['CompanyType'] ? 'modified-form-input' : ''" :disabled="InfoStatus > 0 || butnab"
|
|
|
placeholder="请选择" style="width: 100%;">
|
|
|
<el-option v-for="item in CompanyTypeOptions" :key="item.Id" :label="item.Key" :value="item.Value"
|
|
|
style="width: 100%">
|
|
|
@@ -242,7 +242,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="注册资本" prop="RegCapital">
|
|
|
- <el-input type="number" v-model.number="formData.RegCapital" :min="1"
|
|
|
+ <el-input type="number" v-model.number="formData.RegCapital" :min="1" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['RegCapital'] ? 'modified-form-input' : ''" placeholder="请输入"
|
|
|
style="width: 100%">
|
|
|
<template slot="append">万元</template>
|
|
|
@@ -252,7 +252,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="成立时间" prop="SetupTime">
|
|
|
- <el-date-picker v-model="formData.SetupTime" type="date"
|
|
|
+ <el-date-picker v-model="formData.SetupTime" type="date" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['SetupTime'] ? 'modified-form-input' : ''" format="yyyy 年 MM 月 dd 日"
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期" style="width: 100%">
|
|
|
</el-date-picker>
|
|
|
@@ -261,7 +261,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="开户银行" prop="DepositBank">
|
|
|
- <el-input v-model="formData.DepositBank" maxlength="50" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.DepositBank" maxlength="50" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['DepositBank'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -269,7 +269,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="银行账号" prop="BankAccount">
|
|
|
- <el-input v-model="formData.BankAccount" maxlength="50" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.BankAccount" maxlength="50" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['BankAccount'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -277,7 +277,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="联系人姓名" prop="ContactName">
|
|
|
- <el-input v-model="formData.ContactName" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.ContactName" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['ContactName'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -285,14 +285,14 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="移动电话" prop="Mobile">
|
|
|
- <el-input v-model="formData.Mobile" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.Mobile" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Mobile'] ? 'modified-form-input' : ''" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="固定电话" prop="Telphone">
|
|
|
- <el-input v-model="formData.Telphone" maxlength="20" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.Telphone" maxlength="20" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Telphone'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -300,28 +300,28 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="传真" prop="Fax">
|
|
|
- <el-input v-model="formData.Fax" maxlength="20" placeholder="区号-0000000"
|
|
|
+ <el-input v-model="formData.Fax" maxlength="20" placeholder="区号-0000000" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Fax'] ? 'modified-form-input' : ''" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="财务电话" prop="CompanyTel">
|
|
|
- <el-input v-model="formData.CompanyTel" placeholder="区号-0000000" maxlength="20"
|
|
|
+ <el-input v-model="formData.CompanyTel" placeholder="区号-0000000" maxlength="20" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['CompanyTel'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="电子邮箱" prop="EMail">
|
|
|
- <el-input v-model="formData.EMail" maxlength="50" placeholder="请输入"
|
|
|
+ <el-input v-model="formData.EMail" maxlength="50" placeholder="请输入" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['EMail'] ? 'modified-form-input' : ''" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="银行信用等级">
|
|
|
- <el-input v-model="formData.BankCreditRating" maxlength="10"
|
|
|
+ <el-input v-model="formData.BankCreditRating" maxlength="10" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['BankCreditRating'] ? 'modified-form-input' : ''" placeholder="请输入"
|
|
|
style="width: 100%">
|
|
|
</el-input>
|
|
|
@@ -331,7 +331,7 @@
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="HSE审查培训">
|
|
|
<!--<el-input v-model="formData.HseTraining" placeholder="请输入" style="width: 100%"></el-input>-->
|
|
|
- <el-select v-model="formData.HseTraining" placeholder="请选择"
|
|
|
+ <el-select v-model="formData.HseTraining" placeholder="请选择" :disabled="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['HseTraining'] ? 'modified-form-input' : ''" style="width: 100%;">
|
|
|
<el-option v-for="item in HSEOptions" :key="item.value" :label="item.label" :value="item.value"
|
|
|
style="width: 100%">
|
|
|
@@ -348,27 +348,27 @@
|
|
|
<el-row :gutter="60">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="质量管理体系认证情况及认证机构">
|
|
|
- <el-input v-model="formData.QualitySystemCert" maxlength="200" placeholder="请输入" type="textarea"
|
|
|
+ <el-input v-model="formData.QualitySystemCert" maxlength="200" placeholder="请输入" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['QualitySystemCert'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="产品质量认证情况及认证机构">
|
|
|
- <el-input v-model="formData.ProductQualityCert" placeholder="请输入" maxlength="200" type="textarea"
|
|
|
+ <el-input v-model="formData.ProductQualityCert" placeholder="请输入" maxlength="200" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['ProductQualityCert'] ? 'modified-form-input' : ''">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="生产/制造许可证获证情况及编号">
|
|
|
- <el-input v-model="formData.MaunLicense" placeholder="请输入" maxlength="200" type="textarea"
|
|
|
+ <el-input v-model="formData.MaunLicense" placeholder="请输入" maxlength="200" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['MaunLicense'] ? 'modified-form-input' : ''"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="所代理制造商名称">
|
|
|
- <el-input v-model="formData.MaunAgent" maxlength="255" placeholder="请输入" type="textarea"
|
|
|
+ <el-input v-model="formData.MaunAgent" maxlength="255" placeholder="请输入" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['MaunAgent'] ? 'modified-form-input' : ''">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -376,7 +376,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="中石油物资供应商证书">
|
|
|
- <el-input v-model="formData.SupplierCertificate" maxlength="255" placeholder="请输入" style="width: 100%"
|
|
|
+ <el-input v-model="formData.SupplierCertificate" maxlength="255" placeholder="请输入" type="textarea" style="width: 100%" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['SupplierCertificate'] ? 'modified-form-input' : ''">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -384,7 +384,7 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="安全生产许可证">
|
|
|
- <el-input v-model="formData.SafetyLicense" maxlength="200" placeholder="请输入" type="textarea"
|
|
|
+ <el-input v-model="formData.SafetyLicense" maxlength="200" placeholder="请输入" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['SafetyLicense'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -392,20 +392,20 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="行业特殊要求的认证证书">
|
|
|
- <el-input v-model="formData.SpecIndustryCert" placeholder="请输入" maxlength="200" type="textarea"
|
|
|
+ <el-input v-model="formData.SpecIndustryCert" placeholder="请输入" maxlength="200" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['SpecIndustryCert'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="营业范围" prop="BusinessScope">
|
|
|
- <el-input v-model="formData.BusinessScope" placeholder="营业执照上的信息" type="textarea"
|
|
|
+ <el-input v-model="formData.BusinessScope" placeholder="营业执照上的信息" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['BusinessScope'] ? 'modified-form-input' : ''" style="width: 100%"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label="备注">
|
|
|
- <el-input v-model="formData.Remark" maxlength="500" placeholder="请输入" type="textarea"
|
|
|
+ <el-input v-model="formData.Remark" maxlength="500" placeholder="请输入" type="textarea" :readonly="InfoStatus > 0 || butnab"
|
|
|
:class="changedForm['Remark'] ? 'modified-form-input' : ''" style="width: 100%">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -1663,7 +1663,7 @@
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
this.initDatas()
|
|
|
- this.$router.push('/')
|
|
|
+ this.$router.push('/oilsupplier/infochangech')
|
|
|
this.ComAuditdialogShow = false
|
|
|
this.butnab = true
|
|
|
this.$message({
|