Kaynağa Gözat

添加了id

mainqaq 3 yıl önce
ebeveyn
işleme
804bd4176c
1 değiştirilmiş dosya ile 14 ekleme ve 1 silme
  1. 14 1
      src/xt_pages/supply/components/addSupply.vue

+ 14 - 1
src/xt_pages/supply/components/addSupply.vue Dosyayı Görüntüle

@@ -111,6 +111,16 @@
111 111
               <div style="visibility: hidden">/</div>
112 112
             </template>
113 113
           </el-table-column>
114
+          <!-- id填写======================================================= -->
115
+          <el-table-column label="id" v-if="false">
116
+            <template slot-scope="scope">
117
+              <el-input
118
+                v-model="scope.row.id"
119
+                style="width: 80px"
120
+              ></el-input>
121
+              <div style="visibility: hidden">/</div>
122
+            </template>
123
+          </el-table-column>
114 124
           <!-- 联系地址填写 -->
115 125
           <el-table-column label="联系地址" align="center" width="130px">
116 126
             <template slot-scope="scope">
@@ -253,6 +263,7 @@ export default {
253 263
       },
254 264
       tableData: [
255 265
         {
266
+          id:"",
256 267
           contacts: "",
257 268
           phone: "",
258 269
           address: "",
@@ -445,6 +456,7 @@ export default {
445 456
             let val = res.data.data.contact[0];
446 457
             this.recordInfo.contacts[0].isfirst = data;
447 458
             this.recordInfo.contacts[0] = {
459
+              id: val.id,
448 460
               name: val.name,
449 461
               address: val.address,
450 462
               phone: val.phone,
@@ -535,6 +547,7 @@ export default {
535 547
           if (
536 548
             i.contacts != "" &&
537 549
             i.phone != "" &&
550
+            i.id != "" &&
538 551
             i.address != "" &&
539 552
             i.FirstConcats != ""
540 553
           ) {
@@ -593,4 +606,4 @@ export default {
593 606
 /deep/ .el-form-item__error {
594 607
   // display: none !important;
595 608
 }
596
-</style>
609
+</style>