Răsfoiți Sursa

信息变更审批修改

huahaiyan 6 ani în urmă
părinte
comite
dd39439884

+ 315 - 51
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -11,6 +11,7 @@
           <i class="icon icon-table2"></i> 编辑
         </span>
         <span style="float: right;">
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
             v-if="auditBtn && InfoStatus == '1'">初审</el-button>
@@ -34,7 +35,7 @@
                   @select="handleSelect" v-if="authUser && authUser.Profile.IsCompanyUser == 1">
                 </el-autocomplete> -->
                   <el-input v-model="formData.SupplierName" :maxlength="255" :readonly="true" placeholder="请输入"
-                    style="width: 100%" :class="getchange('SupplierName') ? 'modified-form-input' : ''"
+                    style="width: 100%" :class="changedForm['SupplierName'] ? 'modified-form-input' : ''"
                     v-if="!authUser || authUser.Profile.IsCompanyUser == 0">
                   </el-input>
                 </el-form-item>
@@ -54,7 +55,7 @@
               <el-col :span="8">
                 <el-form-item label="单位关系">
                   <el-select ref="SpecType" v-model="formData.SpecTypeCode"
-                    :class="getchange('SpecTypeCode') ? 'modified-form-input' : ''" :readonly="true" placeholder="请选择"
+                    :class="changedForm['SpecTypeCode'] ? 'modified-form-input' : ''" :readonly="true" placeholder="请选择"
                     style="width: 100%">
                     <el-option v-for="item in UnitRelationOptions" :key="item.Id" :label="item.Key" :value="item.Value">
                     </el-option>
@@ -65,7 +66,7 @@
               <el-col :span="8">
                 <el-form-item label="国家" prop="Country">
                   <el-select v-model="formData.Country" filterable placeholder="请选择" :readonly="true"
-                    style="width: 100%" :class="getchange('Country') ? 'modified-form-input' : ''">
+                    style="width: 100%" :class="changedForm['Country'] ? 'modified-form-input' : ''">
                     <el-option v-for="item in countryListOptions" :key="item.key" :label="item.value"
                       :value="item.value">
                       <span style="float: left">{{ item.value }}</span>
@@ -88,7 +89,7 @@
               <el-col :span="8">
                 <el-form-item label="管理单位">
                   <el-select filterable v-model="formData.MgrUnit" maxlength="255" :readonly="true"
-                    :class="getchange('MgrUnit') ? 'modified-form-input' : ''" placeholder="请输入" style="width: 100%">
+                    :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">
                     </el-option>
@@ -99,7 +100,7 @@
               <el-col :span="8">
                 <el-form-item label="中石油准入证编号">
                   <el-input v-model="formData.PACNumber" maxlength="255" :readonly="true" placeholder="请输入"
-                    :class="getchange('PACNumber') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['PACNumber'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -109,7 +110,7 @@
               <el-col :span="8">
                 <el-form-item label="证件合一">
                   <el-select v-model="formData.CredentialFlag" placeholder="请选择" :readonly="true" style="width: 100%"
-                    :class="getchange('CredentialFlag') ? 'modified-form-input' : ''">
+                    :class="changedForm['CredentialFlag'] ? 'modified-form-input' : ''">
                     <el-option v-for="item in selectoptions" :key="item.value" :label="item.label" :value="item.value">
                     </el-option>
                   </el-select>
@@ -119,7 +120,7 @@
               <el-col :span="8">
                 <el-form-item label-width="150px" label="统一社会信用代码" prop="CommercialNo">
                   <el-input v-model="formData.CommercialNo" maxlength="50" :readonly="true"
-                    :class="getchange('CommercialNo') ? 'modified-form-input' : ''" placeholder="请输入"
+                    :class="changedForm['CommercialNo'] ? 'modified-form-input' : ''" placeholder="请输入"
                     style="width: 100%">
                   </el-input>
                 </el-form-item>
@@ -130,7 +131,7 @@
               <el-col :span="8">
                 <el-form-item label="税务登记证编号" prop="CountryTaxNo" v-if="showorhidflag=='show'">
                   <el-input v-model="formData.CountryTaxNo" maxlength="50" :readonly="true"
-                    :class="getchange('CountryTaxNo') ? 'modified-form-input' : ''" placeholder="请输入"
+                    :class="changedForm['CountryTaxNo'] ? 'modified-form-input' : ''" placeholder="请输入"
                     style="width: 100%">
                   </el-input>
                 </el-form-item>
@@ -139,7 +140,7 @@
               <el-col :span="8">
                 <el-form-item label="组织机构代码" prop="OrganCode" v-if="showorhidflag=='show'">
                   <el-input v-model="formData.OrganCode" maxlength="50" :readonly="true" placeholder="请输入"
-                    :class="getchange('OrganCode') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['OrganCode'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -150,13 +151,13 @@
                   <el-row>
                     <el-col :span="10">
                       <el-cascader :options="countryoptions" :props="countryprops" maxlength="20"
-                        :class="getchange('Province') ? 'modified-form-input' : ''" :readonly="true" placeholder="省市区"
+                        :class="changedForm['Province'] || changedForm['City'] || changedForm['Street'] ? 'modified-form-input' : ''" :readonly="true" placeholder="省市区"
                         v-model="CityAry" style="width: 100%">
                       </el-cascader>
                     </el-col>
                     <el-col :span="14">
                       <el-input v-model="formData.Address" maxlength="500" :readonly="true" placeholder="详细地址"
-                        style="width: 100%" :class="getchange('Address') ? 'modified-form-input' : ''">
+                        style="width: 100%" :class="changedForm['Address'] ? 'modified-form-input' : ''">
                       </el-input>
                     </el-col>
                   </el-row>
@@ -165,7 +166,7 @@
               <el-col :span="8">
                 <el-form-item label="邮编" prop="ZipCode">
                   <el-input v-model="formData.ZipCode" maxlength="20" :readonly="true" placeholder="请输入"
-                    :class="getchange('ZipCode') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['ZipCode'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -175,13 +176,13 @@
                   <el-row>
                     <el-col :span="10">
                       <el-cascader :options="countryoptions" :props="countryprops" :readonly="true"
-                        :class="getchange('LinkProvince') ? 'modified-form-input' : ''" placeholder="省市区"
+                        :class="changedForm['LinkProvince'] || changedForm['LinkCity'] || changedForm['LinkStreet'] ? 'modified-form-input' : ''" placeholder="省市区"
                         v-model="LinkCityAry" maxlength="20" style="width: 100%">
                       </el-cascader>
                     </el-col>
                     <el-col :span="14">
                       <el-input v-model="formData.LinkAddress" maxlength="500" :readonly="true" placeholder="详细地址"
-                        style="width: 100%" :class="getchange('LinkAddress') ? 'modified-form-input' : ''">
+                        style="width: 100%" :class="changedForm['LinkAddress'] ? 'modified-form-input' : ''">
                       </el-input>
                     </el-col>
                   </el-row>
@@ -190,7 +191,7 @@
               <el-col :span="8">
                 <el-form-item label="邮编" prop="LinkZipCode">
                   <el-input v-model="formData.LinkZipCode" maxlength="20" :readonly="true" placeholder="请输入"
-                    :class="getchange('LinkZipCode') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['LinkZipCode'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -200,7 +201,7 @@
               <el-col :span="8">
                 <el-form-item label="法定代表人姓名" prop="LegalPerson">
                   <el-input v-model="formData.LegalPerson" maxlength="20" :readonly="true" placeholder="请输入"
-                    :class="getchange('LegalPerson') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['LegalPerson'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -209,7 +210,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="getchange('CompanyType') ? 'modified-form-input' : ''" :readonly="true" placeholder="请选择"
+                    :class="changedForm['CompanyType'] ? 'modified-form-input' : ''" :readonly="true" placeholder="请选择"
                     style="width: 100%;">
                     <el-option v-for="item in CompanyTypeOptions" :key="item.Id" :label="item.Key" :value="item.Value"
                       style="width: 100%">
@@ -221,7 +222,7 @@
               <el-col :span="8">
                 <el-form-item label="注册资本" prop="RegCapital">
                   <el-input type="number" v-model="formData.RegCapital" :min="1" :readonly="true"
-                    :class="getchange('RegCapital') ? 'modified-form-input' : ''" placeholder="请输入" style="width: 100%">
+                    :class="changedForm['RegCapital'] ? 'modified-form-input' : ''" placeholder="请输入" style="width: 100%">
                     <template slot="append">万元</template>
                   </el-input>
                 </el-form-item>
@@ -230,7 +231,7 @@
               <el-col :span="8">
                 <el-form-item label="成立时间">
                   <el-date-picker v-model="formData.SetupTime" type="date" :readonly="true"
-                    :class="getchange('SetupTime') ? 'modified-form-input' : ''" format="yyyy 年 MM 月 dd 日"
+                    :class="changedForm['SetupTime'] ? 'modified-form-input' : ''" format="yyyy 年 MM 月 dd 日"
                     value-format="yyyy-MM-dd" placeholder="选择日期" style="width: 100%">
                   </el-date-picker>
                 </el-form-item>
@@ -239,7 +240,7 @@
               <el-col :span="8">
                 <el-form-item label="开户银行" prop="DepositBank">
                   <el-input v-model="formData.DepositBank" maxlength="50" :readonly="true" placeholder="请输入"
-                    :class="getchange('DepositBank') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['DepositBank'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -247,7 +248,7 @@
               <el-col :span="8">
                 <el-form-item label="银行账号" prop="BankAccount">
                   <el-input v-model="formData.BankAccount" maxlength="50" :readonly="true" placeholder="请输入"
-                    :class="getchange('BankAccount') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['BankAccount'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -255,7 +256,7 @@
               <el-col :span="8">
                 <el-form-item label="联系人姓名" prop="ContactName">
                   <el-input v-model="formData.ContactName" maxlength="20" :readonly="true" placeholder="请输入"
-                    :class="getchange('ContactName') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['ContactName'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -263,14 +264,14 @@
               <el-col :span="8">
                 <el-form-item label="移动电话" prop="Mobile">
                   <el-input v-model="formData.Mobile" maxlength="20" :readonly="true" placeholder="请输入"
-                    :class="getchange('Mobile') ? 'modified-form-input' : ''" style="width: 100%"></el-input>
+                    :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" :readonly="true" placeholder="区号-0000000"
-                    :class="getchange('Telphone') ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['Telphone'] ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -278,28 +279,28 @@
               <el-col :span="8">
                 <el-form-item label="传真" prop="Fax">
                   <el-input v-model="formData.Fax" maxlength="20" :readonly="true" placeholder="区号-0000000"
-                    :class="getchange('Fax') ? 'modified-form-input' : ''" style="width: 100%"></el-input>
+                    :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" :readonly="true" placeholder="请输入" maxlength="20"
-                    :class="getchange('CompanyTel') ? 'modified-form-input' : ''" style="width: 100%">
+                    :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" :readonly="true" placeholder="请输入"
-                    :class="getchange('EMail') ? 'modified-form-input' : ''" style="width: 100%"></el-input>
+                    :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" :readonly="true"
-                    :class="getchange('BankCreditRating') ? 'modified-form-input' : ''" placeholder="请输入"
+                    :class="changedForm['BankCreditRating'] ? 'modified-form-input' : ''" placeholder="请输入"
                     style="width: 100%">
                   </el-input>
                 </el-form-item>
@@ -316,7 +317,7 @@
                 <el-form-item label="HSE审查培训">
                   <!--<el-input v-model="formData.HseTraining" placeholder="请输入" style="width: 100%"></el-input>-->
                   <el-select v-model="formData.HseTraining" :readonly="true" placeholder="请选择"
-                    :class="getchange('HseTraining') ? 'modified-form-input' : ''" style="width: 100%;">
+                    :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%">
                     </el-option>
@@ -333,26 +334,26 @@
               <el-col :span="8">
                 <el-form-item label="质量管理体系认证情况及认证机构">
                   <el-input v-model="formData.QualitySystemCert" :readonly="true" maxlength="200" placeholder="请输入"
-                    type="textarea" :class="getchange('QualitySystemCert')  ? 'modified-form-input' : ''" style="width: 100%"></el-input>
+                    type="textarea" :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" :readonly="true" placeholder="请输入" maxlength="200"
-                    type="textarea" :class="getchange('ProductQualityCert')  ? 'modified-form-input' : ''">
+                    type="textarea" :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" :readonly="true" placeholder="请输入" maxlength="200"
-                    type="textarea" :class="getchange('MaunLicense')  ? 'modified-form-input' : ''"></el-input>
+                    type="textarea" :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.AgentManufacturer" :readonly="true" maxlength="255" placeholder="请输入"
-                    type="textarea" :class="getchange('AgentManufacturer')  ? 'modified-form-input' : ''">
+                    type="textarea" :class="changedForm['AgentManufacturer']  ? 'modified-form-input' : ''">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -360,7 +361,7 @@
               <el-col :span="8">
                 <el-form-item label="中石油物资供应商证书">
                   <el-input v-model="formData.SupplierCertificate" :readonly="true" maxlength="255" placeholder="请输入"
-                    style="width: 100%" :class="getchange('SupplierCertificate')  ? 'modified-form-input' : ''">
+                    style="width: 100%" :class="changedForm['SupplierCertificate'] ? 'modified-form-input' : ''">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -368,7 +369,7 @@
               <el-col :span="8">
                 <el-form-item label="安全生产许可证">
                   <el-input v-model="formData.SafetyLicense" :readonly="true" maxlength="200" placeholder="请输入"
-                    type="textarea" :class="getchange('SafetyLicense')  ? 'modified-form-input' : ''" style="width: 100%">
+                    type="textarea" :class="changedForm['SafetyLicense']  ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -376,20 +377,20 @@
               <el-col :span="8">
                 <el-form-item label="行业特殊要求的认证证书">
                   <el-input v-model="formData.SpecIndustryCert" :readonly="true" placeholder="请输入" maxlength="200"
-                    type="textarea" :class="getchange('SpecIndustryCert')  ? 'modified-form-input' : ''" style="width: 100%">
+                    type="textarea" :class="changedForm['SpecIndustryCert']  ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="16">
                 <el-form-item label="营业范围" prop="BusinessScope">
                   <el-input v-model="formData.BusinessScope" :readonly="true" maxlength="200" placeholder="营业执照上的信息"
-                    type="textarea" :class="getchange('BusinessScope')  ? 'modified-form-input' : ''" style="width: 100%"></el-input>
+                    type="textarea" :class="changedForm['BusinessScope']  ? 'modified-form-input' : ''" style="width: 100%"></el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="24">
                 <el-form-item label="备注">
                   <el-input v-model="formData.Remark" :readonly="true" maxlength="500" placeholder="请输入" type="textarea"
-                    :class="getchange('Remark')  ? 'modified-form-input' : ''" style="width: 100%">
+                    :class="changedForm['Remark']  ? 'modified-form-input' : ''" style="width: 100%">
                   </el-input>
                 </el-form-item>
               </el-col>
@@ -556,6 +557,23 @@
       </el-tabs>
     </el-card>
 
+    <el-dialog title="变更项查看" :visible.sync="myitemsshow" width="780px">
+      <el-table :data="InfoData" border style="width: 100%">
+        <el-table-column align="center" prop="SelectItemName" label="变更项目">
+        </el-table-column>
+        <el-table-column align="center" prop="BeChangeInfo" label="变更前内容">
+          <template slot-scope="scope">
+            {{ bfdataformat(scope.row) }}
+          </template>
+        </el-table-column>
+        <el-table-column prop="ChangeInfo" align="center" label="变更后内容">
+          <template slot-scope="scope">
+            {{ dataformat(scope.row) }}
+          </template>
+        </el-table-column>
+      </el-table>
+    </el-dialog>
+
     <el-dialog title="审核" :visible.sync="commitshow">
       <el-form label-width="120px" :model="shenheForm" ref="EntityFormref">
         <el-row>
@@ -607,9 +625,18 @@
       })
     },
     name: 'oilinfochangeEdit',
+    watch: {
+      formData: {
+        handler(newValue) {
+          this.comparevalue(newValue)
 
+        },
+        deep: true
+      }
+    },
     data() {
       return {
+        myitemsshow: false,
         auditstepcode: '',
         auditBtn: false,
         AccessCardNolist: [],
@@ -712,6 +739,46 @@
           infoId: '',
           Remark: ''
         },
+        changedForm: {
+          SupplierName: false,
+          SpecTypeCode: false,
+          Country: false,
+          InStyle: false,
+          MgrUnit: false,
+          PACNumber: false,
+          CredentialFlag: false,
+          CommercialNo: false,
+          CountryTaxNo: false,
+          OrganCode: false,
+          Province: false,
+          Address: false,
+          ZipCode: false,
+          LinkProvince: false,
+          LinkAddress: false,
+          LinkZipCode: false,
+          LegalPerson: false,
+          CompanyType: false,
+          RegCapital: false,
+          SetupTime: false,
+          DepositBank: false,
+          BankAccount: false,
+          ContactName: false,
+          Mobile: false,
+          Telphone: false,
+          Fax: false,
+          CompanyTel: false,
+          EMail: false,
+          BankCreditRating: false,
+          HseTraining: false,
+          QualitySystemCert: false,
+          ProductQualityCert: false,
+          MaunLicense: false,
+          SupplierCertificate: false,
+          SafetyLicense: false,
+          SpecIndustryCert: false,
+          BusinessScope: false,
+          Remark: false,
+        },
         infoitemsoptions: [{
           value: 'SupplierName',
           label: '企业名称'
@@ -897,8 +964,8 @@
         }
       },
       GetItemsDatas() {
-        if (this.MInfoId) {
-          api.getEntityThen(this.MInfoId, this.$axios)
+        if (this.infoId) {
+          api.getEntityThen(this.infoId, this.$axios)
             .then(res => {
               this.InfoData = []
               this.infochangedata = res.data.items
@@ -919,6 +986,9 @@
             });
         }
       },
+      itemsshow() {
+        this.myitemsshow = true
+      },
       getMainInfo() {
         api.GetMainInfo(this.infoId, this.$axios)
           .then(res => {
@@ -943,9 +1013,117 @@
             console.error(err);
           });
       },
+      comparevalue(newValue) {
+        let _this = this
+        _this.infochangeItemList = []
+        if (!newValue || !_this.copyformdata) {
+          return
+        }
+        _.forEach(newValue, function (value, key) {
+          if (_this.copyformdata[key] !== value) {
+            _this.changedForm[key] = true
+            _this.infochangeForm = {}
+            _this.infochangeForm.SelectItem = key
+            if (_this.infochangeForm.SelectItem == "SupplierName") {
+              _this.infochangeForm.SelectItemName = "企业名称"
+            } else if (_this.infochangeForm.SelectItem == "OperType") {
+              _this.infochangeForm.SelectItemName = "供应商类型"
+            } else if (_this.infochangeForm.SelectItem == "SpecTypeCode") {
+              _this.infochangeForm.SelectItemName = "单位关系"
+            } else if (_this.infochangeForm.SelectItem == "Country") {
+              _this.infochangeForm.SelectItemName = "国家"
+            } else if (_this.infochangeForm.SelectItem == "InStyle") {
+              _this.infochangeForm.SelectItemName = "准入方式"
+            } else if (_this.infochangeForm.SelectItem == "MgrUnit") {
+              _this.infochangeForm.SelectItemName = "管理单位"
+            } else if (_this.infochangeForm.SelectItem == "PACNumber") {
+              _this.infochangeForm.SelectItemName = "中石油准入证编号"
+            } else if (_this.infochangeForm.SelectItem == "CredentialFlag") {
+              _this.infochangeForm.SelectItemName = "证件合一"
+            } else if (_this.infochangeForm.SelectItem == "CommercialNo") {
+              _this.infochangeForm.SelectItemName = "统一社会信用代码"
+            } else if (_this.infochangeForm.SelectItem == "CountryTaxNo") {
+              _this.infochangeForm.SelectItemName = "税务登记证编号"
+            } else if (_this.infochangeForm.SelectItem == "OrganCode") {
+              _this.infochangeForm.SelectItemName = "组织机构代码"
+            } else if (_this.infochangeForm.SelectItem == "Address") {
+              _this.infochangeForm.SelectItemName = "注册地址"
+            } else if (_this.infochangeForm.SelectItem == "LinkAddress") {
+              _this.infochangeForm.SelectItemName = "通信地址-单位地址"
+            } else if (_this.infochangeForm.SelectItem == "ZipCode") {
+              _this.infochangeForm.SelectItemName = "邮编"
+            } else if (_this.infochangeForm.SelectItem == "LinkZipCode") {
+              _this.infochangeForm.SelectItemName = "通信地址-邮编"
+            } else if (_this.infochangeForm.SelectItem == "LegalPerson") {
+              _this.infochangeForm.SelectItemName = "法定代表人姓名"
+            } else if (_this.infochangeForm.SelectItem == "CompanyType") {
+              _this.infochangeForm.SelectItemName = "公司类型"
+            } else if (_this.infochangeForm.SelectItem == "SetupTime") {
+              _this.infochangeForm.SelectItemName = "成立时间"
+            } else if (_this.infochangeForm.SelectItem == "RegCapital") {
+              _this.infochangeForm.SelectItemName = "注册资本"
+            } else if (_this.infochangeForm.SelectItem == "Currency") {
+              _this.infochangeForm.SelectItemName = "币种"
+            } else if (_this.infochangeForm.SelectItem == "币种") {
+              _this.infochangeForm.SelectItemName = "开户银行"
+            } else if (_this.infochangeForm.SelectItem == "ContactName") {
+              _this.infochangeForm.SelectItemName = "联系人姓名"
+            } else if (_this.infochangeForm.SelectItem == "Mobile") {
+              _this.infochangeForm.SelectItemName = "移动电话"
+            } else if (_this.infochangeForm.SelectItem == "BankAccount") {
+              _this.infochangeForm.SelectItemName = "银行账号"
+            } else if (_this.infochangeForm.SelectItem == "Telphone") {
+              _this.infochangeForm.SelectItemName = "固定电话"
+            } else if (_this.infochangeForm.SelectItem == "Fax") {
+              _this.infochangeForm.SelectItemName = "传真"
+            } else if (_this.infochangeForm.SelectItem == "CompanyTel") {
+              _this.infochangeForm.SelectItemName = "财务电话"
+            } else if (_this.infochangeForm.SelectItem == "EMail") {
+              _this.infochangeForm.SelectItemName = "电子邮箱"
+            } else if (_this.infochangeForm.SelectItem == "BankCreditRating") {
+              _this.infochangeForm.SelectItemName = "银行信用等级"
+            } else if (_this.infochangeForm.SelectItem == "HseTraining") {
+              _this.infochangeForm.SelectItemName = "HSE审查培训"
+            } else if (_this.infochangeForm.SelectItem == "QualitySystemCert") {
+              _this.infochangeForm.SelectItemName = "质量管理体系认证情况及认证机构"
+            } else if (_this.infochangeForm.SelectItem == "ProductQualityCert") {
+              _this.infochangeForm.SelectItemName = "产品质量认证情况及认证机构"
+            } else if (_this.infochangeForm.SelectItem == "MaunLicense") {
+              _this.infochangeForm.SelectItemName = "生产/制造许可证获证情况及编号"
+            } else if (_this.infochangeForm.SelectItem == "MaunAgent") {
+              _this.infochangeForm.SelectItemName = "所代理制造商名称"
+            } else if (_this.infochangeForm.SelectItem == "SupplierCertificate") {
+              _this.infochangeForm.SelectItemName = "中石油物资供应商证书"
+            } else if (_this.infochangeForm.SelectItem == "SafetyLicense") {
+              _this.infochangeForm.SelectItemName = "安全生产许可证"
+            } else if (_this.infochangeForm.SelectItem == "SpecIndustryCert") {
+              _this.infochangeForm.SelectItemName = "行业特殊要求的认证证书"
+            } else if (_this.infochangeForm.SelectItem == "BusinessScope") {
+              _this.infochangeForm.SelectItemName = "营业范围"
+            } else if (_this.infochangeForm.SelectItem == "Remark") {
+              _this.infochangeForm.SelectItemName = "备注"
+            } else if (_this.infochangeForm.SelectItem == "AllAddress") {
+              _this.infochangeForm.SelectItemName = "注册地址"
+            } else if (_this.infochangeForm.SelectItem == "LinkAllAddress") {
+              _this.infochangeForm.SelectItemName = "通信地址"
+            }
+            _this.infochangeForm.ChangeInfo = value
+            _this.infochangeForm.BeChangeInfo = _this.copyformdata[key]
+            _this.infochangeItemList.push(_this.infochangeForm)
+          } else {
+            _this.changedForm[key] = false
+          }
+        })
+      },
       isAccess() {
-        apiCert.isAccess(this.auditstepcode, this.$axios).then(res => {
+        let params = {
+          id: this.infoId,
+          auditstepcode: this.auditstepcode,
+          processkey: this.entrydetail.process
+        }
+        apiCert.isAccess(params, this.$axios).then(res => {
           this.auditBtn = res.data
+          console.log('---this.auditBtn-',this.auditBtn)
         }).catch(err => {
           console.log(err)
         })
@@ -1002,6 +1180,92 @@
             console.error(err)
           })
       },
+      bfdataformat(val) {
+        //debugger
+        if (val.SelectItem == "SpecTypeCode") {
+          if (val.BeChangeInfo == "1") {
+            return "一般外部"
+          } else if (val.BeChangeInfo == "2") {
+            return "多元内部"
+          }
+        } else if (val.SelectItem == "InStyle") {
+          if (val.BeChangeInfo == "1") {
+            return "评审准入"
+          } else if (val.BeChangeInfo == "2") {
+            return "一级物资备案准入"
+          } else if (val.BeChangeInfo == "3") {
+            return "二级物资备案准入"
+          } else if (val.BeChangeInfo == "4") {
+            return "战略合作准入"
+          } else if (val.BeChangeInfo == "5") {
+            return "内部多元准入"
+          }
+        } else if (val.SelectItem == "CredentialFlag") {
+          if (val.BeChangeInfo == "1") {
+            return "三证合一"
+          } else if (val.BeChangeInfo == "2") {
+            return "五证合一"
+          } else if (val.BeChangeInfo == "3") {
+            return "常规"
+          }
+        } else if (val.SelectItem == "SetupTime") {
+          if (val.BeChangeInfo === '') {
+            return '----'
+          } else if (val.BeChangeInfo === '0001-01-01T08:00:00+08:00') {
+            return '----'
+          } else if (val.BeChangeInfo === '5000-01-01T23:59:59+08:00') {
+            return '永久'
+          } else {
+            val = val.replace('T', ' ')
+            return val.substring(0, 10)
+          }
+        } else {
+          return val.BeChangeInfo
+        }
+      },
+      dataformat(val) {
+        //debugger
+        if (val.SelectItem == "SpecTypeCode") {
+          if (val.ChangeInfo == "1") {
+            return "一般外部"
+          } else if (val.ChangeInfo == "2") {
+            return "多元内部"
+          }
+        } else if (val.SelectItem == "InStyle") {
+          if (val.ChangeInfo == "1") {
+            return "评审准入"
+          } else if (val.ChangeInfo == "2") {
+            return "一级物资备案准入"
+          } else if (val.ChangeInfo == "3") {
+            return "二级物资备案准入"
+          } else if (val.ChangeInfo == "4") {
+            return "战略合作准入"
+          } else if (val.ChangeInfo == "5") {
+            return "内部多元准入"
+          }
+        } else if (val.SelectItem == "CredentialFlag") {
+          if (val.ChangeInfo == "1") {
+            return "三证合一"
+          } else if (val.ChangeInfo == "2") {
+            return "五证合一"
+          } else if (val.ChangeInfo == "3") {
+            return "常规"
+          }
+        } else if (val.SelectItem == "SetupTime") {
+          if (val.ChangeInfo == "") {
+            return '----'
+          } else if (val.ChangeInfo == "0001-01-01T08:00:00+08:00") {
+            return '----'
+          } else if (val.ChangeInfo == "5000-01-01T23:59:59+08:00") {
+            return '永久'
+          } else {
+            val = val.replace('T', ' ')
+            return val.substring(0, 10)
+          }
+        } else {
+          return val.ChangeInfo
+        }
+      },
       getbusList1() {
         let _this = this
         const params = {
@@ -1110,17 +1374,17 @@
             console.error(err)
           })
       },
-      getchange(key) {
-        if (this.infochangedata) {
-          for (var i = 0; i < this.infochangedata.length; i++) {
-            if (this.infochangedata[i].SelectItem == key) {
-              return true
-            }
-          }
-          return false
-        }
+      // getchange(key) {
+      //   if (this.infochangedata) {
+      //     for (var i = 0; i < this.infochangedata.length; i++) {
+      //       if (this.infochangedata[i].SelectItem == key) {
+      //         return true
+      //       }
+      //     }
+      //     return false
+      //   }
 
-      },
+      // },
       getDictOptions() {
         let params = {
           status: this.formData.Status,

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -1850,7 +1850,7 @@
           InfochangeForm: this.infochangeItemList
         }
         console.log("----", this.infochangeItemList)
-        debugger
+        // debugger
         api.addInfoChangeItemCh(AllInfochangeItemList, this.$axios).then(res => {
           if (res.data.code === 0) {
             //保存成功后,初始化数据,变成修改