mushencc 4 tahun lalu
induk
melakukan
19ec2c5881

+ 19 - 11
src/views/BidSystem/DeepeningOrder/changeDetail.vue

@@ -22,7 +22,7 @@
         <div class="form_content">
           <Form
             :model="formData"
-            :label-width="100"
+            :label-width="80"
             class="form_content_header"
           >
             <FormItem label="楼幢:">
@@ -136,7 +136,7 @@
             <div><span>工艺属性:</span>{{ formData.process_property }}</div>
             <div><span>图号:</span>{{ formData.url_number }}</div>
             <div style="display:flex;">
-              <span style="width:50px;">图纸:</span>
+              <span style="width:97px;">图纸:</span>
               <div>
                 <span
                   v-for="item in formData.url"
@@ -387,7 +387,7 @@
           <span v-else>{{ tableData[index].model }}</span>
         </template>
          <template slot="status" slot-scope="{ row }">
-          <span>{{ row.status === 0||4 ?'变更':'新增' }}</span>
+          <span>{{ row.status === 0||row.status === 4 ?'变更':'新增' }}</span>
         </template>
         <template slot="long" slot-scope="{ row, index }">
           <Input
@@ -420,11 +420,17 @@
           <span v-else>{{ tableData[index].high }}</span>
         </template>
         <template slot="set" slot-scope="{ row, index }">
+            <a
+            style="margin: 0 5px; color: #2d8cf0;"
+            @click="handleSet(row, index, 4)"
+            v-show="row.status == 4"
+            >更改</a
+          >
           <a
             style="margin: 0 5px; color: #2d8cf0;"
             @click="handleSet(row, index, 1)"
-            v-show="row.change_state"
-            >变更</a
+            v-show="row.status == 0"
+            >保存</a
           >
           <a
             style="margin: 0 5px; color: #2d8cf0;"
@@ -799,9 +805,6 @@ export default {
     handleSet(row, index, type) {
       switch (type) {
         case 1:
-          this.tableData[index].input_state = true;
-          row.input_state = true;
-          this.tableData[index].status = 0;
           if (!row.check_state) {
             row.state = "变更";
             this.ListData.push(row);
@@ -837,7 +840,12 @@ export default {
           }
         }
             });
-         
+         break;
+         case 4:
+            this.tableData[index].input_state = true;
+            row.input_state = true;
+            this.tableData[index].status = 0;
+           break;
       }
     },
     getListData() {},
@@ -880,9 +888,9 @@ export default {
       display: flex;
       flex-wrap: wrap;
       div {
-        width: 200px;
+        width: 170px;
         font-size: 14px;
-        margin: 10px;
+        margin: 10px 41px;
       }
     }
 

+ 5 - 2
src/views/BidSystem/DeepeningOrder/changeRecordDetail.vue

@@ -394,9 +394,12 @@ export default {
       display: flex;
       flex-wrap: wrap;
       div {
-        width: 200px;
+        width: 250px;
         font-size: 14px;
-        margin: 10px;
+        margin: 10px 0px;
+      }
+      span{
+          margin-left: 20px;
       }
     }