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

【修改】家用工程订单审核界面、家用工程退押审核界面 实装不一致变色

howie преди 2 години
родител
ревизия
524eee0f63

+ 21 - 3
src/views/deposit_home/components/deposit-apply-surrender.vue

@@ -164,9 +164,27 @@
             min-width="160"
             show-overflow-tooltip
           />
-          <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
+                    {{scope.row.realSpecification}}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
           <el-table-column
             align="center"
             label="单价"

+ 21 - 3
src/views/deposit_home/components/deposit_list-detail.vue

@@ -221,9 +221,27 @@
                 <span>{{ scope.row.specification }}</span>
               </template>
             </el-table-column>
-            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
+                    {{scope.row.realSpecification}}
+                </div>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
             <el-table-column
               align="right"
               label="单价"

+ 16 - 3
src/views/deposit_home/components/refund_list-detail.vue

@@ -473,15 +473,28 @@
                 <span>{{ scope.row.specification }}</span>
               </template>
             </el-table-column>
-            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
+
             <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
               <template slot-scope="scope">
-                <div :style="title !== '详情' && scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
+                <div :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
                     {{scope.row.realSpecification}}
                 </div>
               </template>
             </el-table-column>
+            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
             <el-table-column
               align="right"
               label="单价"

+ 19 - 3
src/views/supply/engin/components/home_detail.vue

@@ -199,7 +199,11 @@
             <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip></el-table-column>
             <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
-
+              <template slot-scope="scope">
+                <div :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
+                    {{scope.row.realSpecification}}
+                </div>
+              </template>
             </el-table-column>
             <el-table-column align="right" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
@@ -242,8 +246,20 @@
 
             <!-- <el-table-column align="right" label="原订单数量" prop="oldQty" min-width="100" show-overflow-tooltip></el-table-column> -->
             <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
             <el-table-column align="left" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
 

+ 14 - 2
src/views/supply/engin/components/home_examine.vue

@@ -312,8 +312,20 @@
         <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="right" label="已发货数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
-        <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
+        <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
         <el-table-column align="left" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
       </el-table>

+ 8 - 7
src/views/supply/engin/components/home_form.vue

@@ -218,22 +218,23 @@
             <div v-else>{{scope.row.specification}}</div>
           </template>
         </el-table-column>
+        <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
+              <template slot-scope="scope">
+            <el-input :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''" v-model="scope.row.realSpecification" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
+
+          </template>
+            </el-table-column>
         <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-input v-model="scope.row.realMaterialNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
+            <el-input :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''" v-model="scope.row.realMaterialNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
           </template>
         </el-table-column>
             <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
               <template slot-scope="scope">
-            <el-input v-model="scope.row.realMaterialOldNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)"></el-input>
+            <el-input :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''" v-model="scope.row.realMaterialOldNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)"></el-input>
           </template>
             </el-table-column>
-            <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
-              <template slot-scope="scope">
-            <el-input v-model="scope.row.realSpecification" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
 
-          </template>
-            </el-table-column>
         <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">

+ 22 - 4
src/views/supply/engin/components/home_return.vue

@@ -166,10 +166,14 @@
         <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip></el-table-column>
         <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
         <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip></el-table-column>
-        <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip></el-table-column>
-            <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip></el-table-column>
-        <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
+
+            <el-table-column align="left"  label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''">
+                    {{scope.row.realSpecification}}
+                </div>
+              </template>
+            </el-table-column>        <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             {{ scope.row.price | numToFixed }}
@@ -212,6 +216,20 @@
           </template>
         </el-table-column>
         <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
+        <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+                <div :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialNumber}}
+                </div>
+              </template>
+        </el-table-column>
+            <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <div :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''">
+                    {{scope.row.realMaterialOldNumber}}
+                </div>
+              </template>
+            </el-table-column>
         <el-table-column align="left" label="税率" prop="tax" min-width="100" show-overflow-tooltip></el-table-column>
       </el-table>
     </div>