Browse Source

添加了id

mainqaq 3 years ago
parent
commit
804bd4176c
1 changed files with 14 additions and 1 deletions
  1. 14 1
      src/xt_pages/supply/components/addSupply.vue

+ 14 - 1
src/xt_pages/supply/components/addSupply.vue View File

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