浏览代码

采购订单维护页面子表必填项于表头标红星以示提醒

002390 1 年之前
父节点
当前提交
ece4277285

+ 6 - 0
src/views/purchase/purchase-order/add/index.vue

@@ -703,6 +703,12 @@ export default {
                 :label="cColumn.title"
                 :label="cColumn.title"
                 :width="cColumn.width || 80"
                 :width="cColumn.width || 80"
               >
               >
+              <template slot="header" slot-scope="scope">
+                <span v-if="cColumn.require" style="color: #ff4949">*</span>
+                <span>
+                  {{ cColumn.title }}
+                </span>
+              </template>
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                   <el-form-item 
                   <el-form-item 
                     label-width="0" 
                     label-width="0" 

+ 6 - 0
src/views/purchase/purchase-order/edit/index.vue

@@ -641,6 +641,12 @@ export default {
                 :label="cColumn.title" 
                 :label="cColumn.title" 
                 :width="cColumn.width"
                 :width="cColumn.width"
                 >
                 >
+                <template slot="header" slot-scope="scope">
+                  <span v-if="cColumn.require" style="color: #ff4949">*</span>
+                  <span>
+                    {{ cColumn.title }}
+                  </span>
+                </template>
                 <template slot-scope="scope">
                 <template slot-scope="scope">
 
 
                   <el-form-item 
                   <el-form-item 

+ 6 - 0
src/views/purchase/purchase-order/see/index.vue

@@ -304,6 +304,12 @@ export default {
                 :label="cColumn.title" 
                 :label="cColumn.title" 
                 :width="cColumn.width || 80"
                 :width="cColumn.width || 80"
               >
               >
+                <template slot="header" slot-scope="scope">
+                  <span v-if="cColumn.require" style="color: #ff4949">*</span>
+                  <span>
+                    {{ cColumn.title }}
+                  </span>
+                </template>
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                   <el-tag v-if="cColumn.key === 'index'">
                   <el-tag v-if="cColumn.key === 'index'">
                     {{ scope.$index + 1 }}
                     {{ scope.$index + 1 }}