فهرست منبع

钢产品出厂标准维护添加字段:是否品种钢

zhangy 2 سال پیش
والد
کامیت
6c93308844
1فایلهای تغییر یافته به همراه46 افزوده شده و 1 حذف شده
  1. 46 1
      src/views/basicInformation/components/executiveStandard.vue

+ 46 - 1
src/views/basicInformation/components/executiveStandard.vue

@@ -101,7 +101,32 @@
                     <span v-else>{{scope.row.brand}}</span>
                   </template>
                 </el-table-column>
-                <el-table-column sortable prop="surfaceStandard" label="表面执行标准" min-width="100px" align="center"
+                <el-table-column sortable prop="isPinZhong" label="是否品种钢" min-width="80px" align="center"
+                  :show-overflow-tooltip="true">
+                  <template slot-scope="scope">
+                    <el-form-item v-if="scope.row.isSelection" :prop="scope.row.id + '.isPinZhong'" :rules="dialog.rules.isreal">
+                        <el-select
+                            filterable clearable
+                            style="width: 100%;"
+                            v-model="tableFormDataObj[scope.row.id].isPinZhong"
+                        >
+                            <el-option
+                                label="是"
+                                value="1"
+                            ></el-option>
+                            <el-option
+                                label="否"
+                                value="0"
+                            ></el-option>
+                        </el-select>
+                       <template slot="error" slot-scope="scope">
+                          <p class="error" :title="scope.error" >{{ scope.error }}</p>
+                        </template>
+                    </el-form-item>
+                    <span v-else>{{ scope.row.isPinZhong === '0' ? '否' :  '是' }}</span>
+                  </template>
+                </el-table-column>
+  <el-table-column sortable prop="surfaceStandard" label="表面执行标准" min-width="100px" align="center"
                   :show-overflow-tooltip="true">
                   <template slot-scope="scope">
                     <el-form-item v-if="scope.row.isSelection" :prop="scope.row.id + '.surfaceStandard'" >
@@ -189,6 +214,24 @@
                 <el-input clearable style="width: 100%;" v-model="dialog.form.data.memo"></el-input>
               </el-form-item>
             </el-col>
+            <el-col :span="12">
+              <el-form-item label="是否品种钢" prop="isPinZhong" >
+                  <el-select
+                      filterable clearable
+                      style="width: 100%;"
+                      v-model="dialog.form.data.isPinZhong"
+                  >
+                      <el-option
+                          label="是"
+                          value="1"
+                      ></el-option>
+                      <el-option
+                          label="否"
+                          value="0"
+                      ></el-option>
+                  </el-select>
+              </el-form-item>
+            </el-col>
           </el-row>
       </el-form>
       </div>
@@ -375,6 +418,7 @@ export default {
       let that = this;
       let SubmitData = {
         memo: that.dialog.form.data.memo,
+        isPinZhong: that.dialog.form.data.isPinZhong,
         brand: that.dialog.form.data.brand,
         product: that.dialog.form.data.product,
         surfaceStandard: that.dialog.form.data.surfaceStandard,
@@ -443,6 +487,7 @@ export default {
               SubmitData.push({
                 id: that.tableFormDataObj[key].id,
                 memo: that.tableFormDataObj[key].memo,
+                isPinZhong: that.tableFormDataObj[key].isPinZhong,
                 brand: that.tableFormDataObj[key].brand,
                 product: that.tableFormDataObj[key].product,
                 createman: that.tableFormDataObj[key].createman,