Преглед на файлове

供应链系统 退押审批列表 退押审批列表 添加空白行,点击规格型号这栏可以弹窗选择,自动带出 厂编号,物料编码,产品编码,产品名称
供应链系统 退押审批列表 退押审批列表 添加空白行,当单价和数量都输入的情况下,要自动填充销售金额(单价*数量)

linwenxin преди 1 година
родител
ревизия
e329fd8d8a
променени са 1 файла, в които са добавени 108 реда и са изтрити 350 реда
  1. 108 350
      src/views/deposit_home/components/refund_list-detail.vue

+ 108 - 350
src/views/deposit_home/components/refund_list-detail.vue

@@ -80,14 +80,14 @@
           <div class="value">
             {{
               detailList.examineStatus == 'SAVE'
-                ? '保存'
-                : detailList.examineStatus == 'WAIT'
-                  ? '待审核'
-                  : detailList.examineStatus == 'OK'
-                    ? '通过'
-                    : detailList.examineStatus == 'FAIL'
-                      ? '不通过'
-                      : '关闭'
+              ? '保存'
+              : detailList.examineStatus == 'WAIT'
+                ? '待审核'
+                : detailList.examineStatus == 'OK'
+                  ? '通过'
+                  : detailList.examineStatus == 'FAIL'
+                    ? '不通过'
+                    : '关闭'
             }}
           </div>
         </el-col>
@@ -118,16 +118,9 @@
         <el-col :xs="24" :sm="24" :lg="8" class="item">
           <div class="label">安装时间</div>
           <div class="value">
-            <el-date-picker
-              v-model="detailList.installDate"
-              prefix-icon="''"
-              placeholder="请选择安装时间"
-              :readonly="title == '详情'"
-              class="selectStyle"
-              type="datetime"
-              default-time="00:00:00"
-              value-format="yyyy-MM-dd HH:mm:ss"
-            />
+            <el-date-picker v-model="detailList.installDate" prefix-icon="''" placeholder="请选择安装时间"
+              :readonly="title == '详情'" class="selectStyle" type="datetime" default-time="00:00:00"
+              value-format="yyyy-MM-dd HH:mm:ss" />
           </div>
         </el-col>
         <el-col :xs="24" :sm="24" :lg="16" class="item">
@@ -383,31 +376,13 @@
     <div class="mymain-container">
       <div class="table">
         <div class="table">
-          <el-table
-            v-loading="listLoading"
-            :data="detailList.items"
-            element-loading-text="Loading"
-            border
-            fit
-            highlight-current-row
-            stripe
-            show-summary
-            :summary-method="$getSummaries"
-          >
-            <el-table-column
-              fixed="left"
-              label="操作"
-              width="100"
-            >
+          <el-table v-loading="listLoading" :data="detailList.items" element-loading-text="Loading" border fit
+            highlight-current-row stripe show-summary :summary-method="$getSummaries">
+            <el-table-column fixed="left" label="操作" width="100">
               <template slot-scope="scope">
-                <el-button
-                  v-if="scope.row.isCustom && !scope.row.isSource"
-                  type="text"
-                  size="mini"
-                  @click="()=>{
-                    detailList.items.splice(scope.$index,1)
-                  }"
-                >删除</el-button>
+                <el-button v-if="scope.row.isCustom && !scope.row.isSource" type="text" size="mini" @click="() => {
+                  detailList.items.splice(scope.$index, 1)
+                }">删除</el-button>
               </template>
             </el-table-column>
             <template v-if="!isCustomer">
@@ -423,13 +398,7 @@
                 </template>
               </el-table-column>
 
-              <el-table-column
-                align="left"
-                label="物料编码"
-                prop="materialNumber"
-                min-width="130"
-                show-overflow-tooltip
-              >
+              <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="130" show-overflow-tooltip>
                 <template slot-scope="scope">
                   <template v-if="scope.row.isCustom">
                     <el-input v-model="scope.row.materialNumber" size="mini" placeholder="请输入" />
@@ -442,13 +411,7 @@
               </el-table-column>
             </template>
 
-            <el-table-column
-              align="left"
-              label="产品编码"
-              prop="materialOldNumber"
-              min-width="130"
-              show-overflow-tooltip
-            >
+            <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="130" show-overflow-tooltip>
               <template slot-scope="scope">
                 <template v-if="scope.row.isCustom">
                   <el-input v-model="scope.row.materialOldNumber" size="mini" placeholder="请输入" />
@@ -473,7 +436,8 @@
             <el-table-column align="left" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
               <template slot-scope="scope">
                 <template v-if="scope.row.isCustom">
-                  <el-input v-model="scope.row.specification" size="mini" placeholder="请输入" />
+                  <el-input v-model="scope.row.specification" placeholder="请输入" size="mini" readonly
+                    @click.native="getRealMaterData(scope.$index, 'specification')" />
                 </template>
                 <template v-else>
                   <CopyButton :copy-text="scope.row.specification" />
@@ -481,42 +445,21 @@
                 </template>
               </template>
             </el-table-column>
-            <el-table-column
-              align="left"
-              label="实装规格型号"
-              prop="depositSpecification"
-              min-width="300"
-              show-overflow-tooltip
-            >
+            <el-table-column align="left" label="实装规格型号" prop="depositSpecification" min-width="300"
+              show-overflow-tooltip>
               <template slot-scope="scope">
-                <!-- <div
-                  v-if="title=='详情' && detailList.examineStatus !== 'OK'"
-                  :class="setColour(scope.row,'specification', 'realSpecification', 'depositSpecification')"
-                >
-                  {{ scope.row.depositSpecification }}
-                </div> -->
-
-                <template v-if="scope.row.isCustom">
+                <!-- <template v-if="scope.row.isCustom">
                   <el-input v-model="scope.row.depositSpecification" size="mini" placeholder="请输入" />
                 </template>
-                <template v-else>
-                  <el-input
-                    v-model="scope.row.depositSpecification"
-                    :class="setColour(scope.row, 'specification', 'realSpecification', 'depositSpecification')"
-                    size="mini"
-                    readonly
-                    @click.native="getRealMaterData(scope.$index)"
-                  />
-                </template>
+                <template v-else> -->
+                <el-input v-model="scope.row.depositSpecification"
+                  :class="setColour(scope.row, 'specification', 'realSpecification', 'depositSpecification')" size="mini"
+                  readonly @click.native="getRealMaterData(scope.$index, 'depositSpecification')" />
+                <!-- </template> -->
               </template>
             </el-table-column>
-            <el-table-column
-              align="left"
-              label="实装物料编号"
-              prop="depositMaterialNumber"
-              min-width="150"
-              show-overflow-tooltip
-            >
+            <el-table-column align="left" label="实装物料编号" prop="depositMaterialNumber" min-width="150"
+              show-overflow-tooltip>
               <template slot-scope="scope">
                 <!-- <div
                   v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
@@ -528,23 +471,14 @@
                   <el-input v-model="scope.row.depositMaterialNumber" size="mini" placeholder="请输入" />
                 </template>
                 <template v-else>
-                  <el-input
-                    v-model="scope.row.depositMaterialNumber"
+                  <el-input v-model="scope.row.depositMaterialNumber"
                     :class="setColour(scope.row, 'materialNumber', 'realMaterialNumber', 'depositMaterialNumber')"
-                    size="mini"
-                    readonly
-                    @click.native="getRealMaterData(scope.$index)"
-                  />
+                    size="mini" readonly @click.native="getRealMaterData(scope.$index, 'depositMaterialNumber')" />
                 </template>
               </template>
             </el-table-column>
-            <el-table-column
-              align="left"
-              label="实装厂产品编码"
-              prop="depositMaterialOldNumber"
-              min-width="200"
-              show-overflow-tooltip
-            >
+            <el-table-column align="left" label="实装厂产品编码" prop="depositMaterialOldNumber" min-width="200"
+              show-overflow-tooltip>
               <template slot-scope="scope">
                 <!-- <div
                   v-if="title=='详情'&& detailList.examineStatus !== 'OK'"
@@ -556,15 +490,8 @@
                   <el-input v-model="scope.row.depositMaterialOldNumber" size="mini" placeholder="请输入" />
                 </template>
                 <template v-else>
-                  <el-input
-                    v-model="scope.row.depositMaterialOldNumber"
-                    :class="
-                      setColour(scope.row, 'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')
-                    "
-                    size="mini"
-                    readonly
-                    @click.native="getRealMaterData(scope.$index)"
-                  />
+                  <el-input v-model="scope.row.depositMaterialOldNumber" :class="setColour(scope.row, 'materialOldNumber', 'realMaterialOldNumber', 'depositMaterialOldNumber')
+                    " size="mini" readonly @click.native="getRealMaterData(scope.$index, 'depositMaterialOldNumber')" />
                 </template>
               </template>
             </el-table-column>
@@ -581,7 +508,9 @@
             <el-table-column align="right" label="数量" prop="qty" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 <template v-if="scope.row.isCustom">
-                  <el-input v-model.number="scope.row.qty" size="mini" type="number" placeholder="请输入" />
+                  <el-input v-model.number="scope.row.qty" @input="()=>{
+                    scope.row.totalAmount = ((Number(scope.row.qty)||0) * (Number(scope.row.price)||0)).toFixed(2)
+                  }" size="mini" type="number" placeholder="请输入" />
                 </template>
                 <template v-else>
                   {{ scope.row.qty }}
@@ -628,13 +557,7 @@
                 </template>
               </template>
             </el-table-column>
-            <el-table-column
-              align="right"
-              label="发货数量"
-              prop="orderHasSendQty"
-              min-width="160"
-              show-overflow-tooltip
-            >
+            <el-table-column align="right" label="发货数量" prop="orderHasSendQty" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 <template v-if="scope.row.isCustom">
                   <el-input v-model.number="scope.row.orderHasSendQty" size="mini" type="number" placeholder="请输入" />
@@ -660,13 +583,8 @@
                   <el-input v-model.number="scope.row.contractQty" size="mini" type="number" placeholder="请输入" />
                 </template>
                 <template v-else>
-                  <el-input
-                    v-if="title !== '详情'"
-                    v-model.number="scope.row.contractQty"
-                    class="inpt"
-                    size="mini"
-                    clearable
-                  />
+                  <el-input v-if="title !== '详情'" v-model.number="scope.row.contractQty" class="inpt" size="mini"
+                    clearable />
                   <div v-else>
                     {{ scope.row.contractQty }}
                   </div>
@@ -679,13 +597,8 @@
                   <el-input v-model.number="scope.row.contractPrice" size="mini" type="number" placeholder="请输入" />
                 </template>
                 <template v-else>
-                  <el-input
-                    v-if="title !== '详情'"
-                    v-model.number="scope.row.contractPrice"
-                    class="inpt"
-                    size="mini"
-                    clearable
-                  />
+                  <el-input v-if="title !== '详情'" v-model.number="scope.row.contractPrice" class="inpt" size="mini"
+                    clearable />
                   <div v-else>
                     {{ scope.row.contractPrice }}
                   </div>
@@ -706,13 +619,8 @@
                   <el-input v-model.number="scope.row.dataQty" size="mini" type="number" placeholder="请输入" />
                 </template>
                 <template v-else>
-                  <el-input
-                    v-if="title !== '详情'"
-                    v-model.number.trim="scope.row.dataQty"
-                    class="inpt"
-                    size="mini"
-                    @blur="setDataQty($event, scope.row)"
-                  />
+                  <el-input v-if="title !== '详情'" v-model.number.trim="scope.row.dataQty" class="inpt" size="mini"
+                    @blur="setDataQty($event, scope.row)" />
                   <div v-else>
                     {{ scope.row.dataQty }}
                   </div>
@@ -729,13 +637,7 @@
                 </template>
               </template>
             </el-table-column>
-            <el-table-column
-              align="right"
-              label="收差政策价格"
-              prop="diffPolicyPrice"
-              min-width="200"
-              show-overflow-tooltip
-            >
+            <el-table-column align="right" label="收差政策价格" prop="diffPolicyPrice" min-width="200" show-overflow-tooltip>
               <template slot-scope="scope">
                 <template v-if="scope.row.isCustom">
                   <el-input v-model.number="scope.row.diffPolicyPrice" size="mini" type="number" placeholder="请输入" />
@@ -757,24 +659,9 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="detailList.collectList"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-          show-summary
-          :summary-method="$getSummaries"
-        >
-          <el-table-column
-            align="left"
-            label="工程登录单号"
-            prop="refEnginRecordNo"
-            min-width="130"
-            show-overflow-tooltip
-          >
+        <el-table v-loading="listLoading" :data="detailList.collectList" element-loading-text="Loading" border fit
+          highlight-current-row stripe show-summary :summary-method="$getSummaries">
+          <el-table-column align="left" label="工程登录单号" prop="refEnginRecordNo" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.refEnginRecordNo" />
               <span>{{ scope.row.refEnginRecordNo }}</span>
@@ -792,49 +679,25 @@
               <span>{{ scope.row.unit }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="现金钱包"
-            prop="customerWalletName"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="现金钱包" prop="customerWalletName" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.customerWalletName" />
               <span>{{ scope.row.customerWalletName }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="现金钱包编码"
-            prop="customerWalletNumber"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="现金钱包编码" prop="customerWalletNumber" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.customerWalletNumber" />
               <span>{{ scope.row.customerWalletNumber }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="金蝶物料类型名称"
-            prop="k3CategoryName"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="金蝶物料类型名称" prop="k3CategoryName" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.k3CategoryName" />
               <span>{{ scope.row.k3CategoryName }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="金蝶物料类型编码"
-            prop="k3CategoryNumber"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="金蝶物料类型编码" prop="k3CategoryNumber" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.k3CategoryNumber" />
               <span>{{ scope.row.k3CategoryNumber }}</span>
@@ -846,25 +709,13 @@
               <span>{{ scope.row.materialName }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="金蝶物料编码"
-            prop="materialNumber"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="金蝶物料编码" prop="materialNumber" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.materialNumber" />
               <span>{{ scope.row.materialNumber }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="金蝶物料旧编码"
-            prop="materialOldNumber"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="金蝶物料旧编码" prop="materialOldNumber" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               <CopyButton :copy-text="scope.row.materialOldNumber" />
               <span>{{ scope.row.materialOldNumber }}</span>
@@ -877,13 +728,7 @@
               {{ scope.row.price | numToFixed }}
             </template>
           </el-table-column>
-          <el-table-column
-            align="left"
-            label="已退押金金额"
-            prop="refundDepositAmount"
-            min-width="130"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="已退押金金额" prop="refundDepositAmount" min-width="130" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ scope.row.refundDepositAmount | numToFixed }}
             </template>
@@ -906,27 +751,14 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="original"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-        >
+        <el-table v-loading="listLoading" :data="original" element-loading-text="Loading" border fit highlight-current-row
+          stripe>
           <el-table-column align="left" label="资料描述" prop="dataDescribe" min-width="160" show-overflow-tooltip />
           <el-table-column align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
           <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-image
-                v-if="checkFileType(scope.row.fileUrl) == 'image'"
-                ref="img"
-                :src="imageURL + scope.row.fileUrl"
-                style="width: 120px; height: 120px"
-                fit="cover"
-                :preview-src-list="[imageURL + scope.row.fileUrl]"
-              />
+              <el-image v-if="checkFileType(scope.row.fileUrl) == 'image'" ref="img" :src="imageURL + scope.row.fileUrl"
+                style="width: 120px; height: 120px" fit="cover" :preview-src-list="[imageURL + scope.row.fileUrl]" />
               <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
               <img v-if="checkFileType(scope.row.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
               <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
@@ -941,11 +773,7 @@
           </el-table-column>
           <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-button
-                type="text"
-                class="textColor"
-                @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
-              >下载
+              <el-button type="text" class="textColor" @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)">下载
               </el-button>
             </template>
           </el-table-column>
@@ -982,15 +810,8 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="detailList.checkRecordItems"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-        >
+        <el-table v-loading="listLoading" :data="detailList.checkRecordItems" element-loading-text="Loading" border fit
+          highlight-current-row stripe>
           <el-table-column align="left" label="申请人" prop="submitName" min-width="160" show-overflow-tooltip />
           <el-table-column align="left" label="申请日期" prop="submitTime" min-width="160" show-overflow-tooltip />
           <el-table-column align="left" label="申请说明" prop="applyNote" min-width="160" show-overflow-tooltip />
@@ -1006,18 +827,12 @@
       </div>
     </div>
 
-    <h3
-      v-if="
-        detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
-      "
-    >
+    <h3 v-if="detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
+      ">
       审批
     </h3>
-    <el-divider
-      v-if="
-        detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
-      "
-    />
+    <el-divider v-if="detailList.examineStatus == 'WAIT' || detailList.examineStatus == 'FAIL' || detailList.examineStatus == 'OK'
+      " />
     <div v-if="detailList.examineStatus == 'WAIT'" class="diy-table-1">
       <el-row :gutter="0">
         <el-col :xs="12" :sm="12" :lg="12" class="item">
@@ -1027,15 +842,8 @@
         <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
           <div class="label">受理日期</div>
           <div class="value">
-            <el-date-picker
-              readonly
-              prefix-icon="''"
-              class="selectStyle"
-              type="datetime"
-              placeholder="系统自动生成"
-              default-time="00:00:00"
-              value-format="yyyy-MM-dd HH:mm:ss"
-            />
+            <el-date-picker readonly prefix-icon="''" class="selectStyle" type="datetime" placeholder="系统自动生成"
+              default-time="00:00:00" value-format="yyyy-MM-dd HH:mm:ss" />
           </div>
         </el-col>
         <el-col :xs="12" :sm="24" :lg="24" class="item">
@@ -1065,16 +873,8 @@
         <el-col :xs="12" :sm="12" :lg="12" class="item dateS">
           <div class="label">受理日期</div>
           <div class="value">
-            <el-date-picker
-              v-model="detailList.checkDate"
-              readonly
-              prefix-icon="''"
-              class="selectStyle"
-              type="datetime"
-              placeholder=""
-              default-time="00:00:00"
-              value-format="yyyy-MM-dd HH:mm:ss"
-            />
+            <el-date-picker v-model="detailList.checkDate" readonly prefix-icon="''" class="selectStyle" type="datetime"
+              placeholder="" default-time="00:00:00" value-format="yyyy-MM-dd HH:mm:ss" />
           </div>
         </el-col>
         <el-col :xs="12" :sm="24" :lg="24" class="item">
@@ -1101,55 +901,26 @@
       </el-row>
     </div>
     <div>
-      <div
-        v-if="
-          detailList.dataState == 'AMEND' || detailList.dataState == 'WAIT_REVIEW' || detailList.dataState == 'REVIEW'
-        "
-      >
+      <div v-if="detailList.dataState == 'AMEND' || detailList.dataState == 'WAIT_REVIEW' || detailList.dataState == 'REVIEW'
+        ">
         <h3 class="gdzl">补充资料</h3>
         <el-divider />
         <div class="mymain-container">
           <div class="table">
-            <el-table
-              v-loading="listLoading"
-              :data="amendData"
-              element-loading-text="Loading"
-              border
-              fit
-              highlight-current-row
-              stripe
-            >
-              <el-table-column
-                align="left"
-                label="资料描述"
-                prop="dataDescribe"
-                min-width="160"
-                show-overflow-tooltip
-              />
+            <el-table v-loading="listLoading" :data="amendData" element-loading-text="Loading" border fit
+              highlight-current-row stripe>
+              <el-table-column align="left" label="资料描述" prop="dataDescribe" min-width="160" show-overflow-tooltip />
               <el-table-column align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip />
               <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
                 <template slot-scope="scope">
-                  <el-image
-                    v-if="checkFileType(scope.row.fileUrl) == 'image'"
-                    ref="img"
-                    :src="imageURL + scope.row.fileUrl"
-                    style="width: 120px; height: 120px"
-                    fit="cover"
-                    :preview-src-list="[imageURL + scope.row.fileUrl]"
-                  />
+                  <el-image v-if="checkFileType(scope.row.fileUrl) == 'image'" ref="img"
+                    :src="imageURL + scope.row.fileUrl" style="width: 120px; height: 120px" fit="cover"
+                    :preview-src-list="[imageURL + scope.row.fileUrl]" />
                   <img v-if="checkFileType(scope.row.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
-                  <img
-                    v-if="checkFileType(scope.row.fileUrl) == 'excel'"
-                    class="file"
-                    src="@/assets/common/excel.png"
-                  >
+                  <img v-if="checkFileType(scope.row.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
                   <img v-if="checkFileType(scope.row.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
                   <img v-if="checkFileType(scope.row.fileUrl) == 'pdf'" class="file" src="@/assets/common/pdf.png">
-                  <img
-                    v-if="checkFileType(scope.row.fileUrl) == 'file'"
-                    class="file aaa"
-                    src="@/assets/common/zip.jpeg"
-                  >
+                  <img v-if="checkFileType(scope.row.fileUrl) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg">
                 </template>
               </el-table-column>
               <el-table-column align="left" label="下载文件名称" prop="fileName" min-width="160" show-overflow-tooltip>
@@ -1159,11 +930,7 @@
               </el-table-column>
               <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
                 <template slot-scope="scope">
-                  <el-button
-                    type="text"
-                    class="textColor"
-                    @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)"
-                  >下载
+                  <el-button type="text" class="textColor" @click="downLoadFn(scope.row.fileUrl, scope.row.fileName)">下载
                   </el-button>
                 </template>
               </el-table-column>
@@ -1226,19 +993,9 @@
     <div class="btn-group clearfix">
       <div class="fl">
         <!-- <el-button  type="primary" size="small" @click="handleEdit">保存</el-button> -->
-        <el-button
-          v-if="detailList.examineStatus == 'WAIT'"
-          type="primary"
-          size="small"
-          @click="adoptFn"
-        >审批通过
+        <el-button v-if="detailList.examineStatus == 'WAIT'" type="primary" size="small" @click="adoptFn">审批通过
         </el-button>
-        <el-button
-          v-if="detailList.examineStatus == 'WAIT'"
-          type="primary"
-          size="small"
-          @click="rejectFn"
-        >审批驳回
+        <el-button v-if="detailList.examineStatus == 'WAIT'" type="primary" size="small" @click="rejectFn">审批驳回
         </el-button>
         <el-button v-if="title == '详情'" type="primary" size="small" @click="saveFn">保存</el-button>
       </div>
@@ -1286,27 +1043,15 @@
           </el-table-column>
           <el-table-column align="center" label="销售类型" prop="saleName" min-width="100" show-overflow-tooltip />
           <el-table-column align="center" label="物料编码" prop="number" min-width="100" show-overflow-tooltip />
-          <el-table-column
-            align="center"
-            label="产品编码"
-            prop="materialOldNumber"
-            min-width="100"
-            show-overflow-tooltip
-          />
+          <el-table-column align="center" label="产品编码" prop="materialOldNumber" min-width="100" show-overflow-tooltip />
           <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip />
           <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip />
           <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip />
         </el-table>
         <div class="pagination clearfix" style="margin-top: 10px">
           <div class="fr">
-            <el-pagination
-              :current-page="currentPage"
-              :page-size="10"
-              background
-              layout="prev, pager, next"
-              :total="listTotal"
-              @current-change="handleTableCurrentChange"
-            />
+            <el-pagination :current-page="currentPage" :page-size="10" background layout="prev, pager, next"
+              :total="listTotal" @current-change="handleTableCurrentChange" />
           </div>
         </div>
       </div>
@@ -1756,8 +1501,11 @@ export default {
     goBack() {
       this.$emit('setShowPage', 0)
     },
-    getRealMaterData(id) {
+    getRealMaterData(id, type) {
+      // 
+      this.currentType = type
       this.currentId = id
+      this.currentRadio = ""
       this.isSetMaterial = true
       this.getGoodsList()
     },
@@ -1792,12 +1540,22 @@ export default {
       //        realSpecification
       // 实装规格型号
       const currentData = this.leftGoodsList.find(e => e.id === this.currentRadio)
-      this.$set(this.detailList.items[this.currentId], 'depositMaterialId', currentData.materialId)
-      this.$set(this.detailList.items[this.currentId], 'depositMaterialName', currentData.materialName)
-      this.$set(this.detailList.items[this.currentId], 'depositMaterialNumber', currentData.materialNumber)
-      this.$set(this.detailList.items[this.currentId], 'depositMaterialOldNumber', currentData.materialOldNumber)
-      this.$set(this.detailList.items[this.currentId], 'depositSpecification', currentData.specification)
+      if (this.currentType == "specification") {
+        this.$set(this.detailList.items[this.currentId], 'specification', currentData.specification)
+        this.$set(this.detailList.items[this.currentId], 'materialName', currentData.materialName)
+        this.$set(this.detailList.items[this.currentId], 'materialNumber', currentData.materialNumber)
+        this.$set(this.detailList.items[this.currentId], 'materialOldNumber', currentData.materialOldNumber)
+      } else {
+        this.$set(this.detailList.items[this.currentId], 'depositMaterialId', currentData.materialId)
+        this.$set(this.detailList.items[this.currentId], 'depositMaterialName', currentData.materialName)
+        this.$set(this.detailList.items[this.currentId], 'depositMaterialNumber', currentData.materialNumber)
+        this.$set(this.detailList.items[this.currentId], 'depositMaterialOldNumber', currentData.materialOldNumber)
+        this.$set(this.detailList.items[this.currentId], 'depositSpecification', currentData.specification)
+      }
       this.isSetMaterial = false
+
+
+
     },
     // 关闭 弹窗
     closeDialog() {