ソースを参照

Merge branch 'master' of 121.41.102.225:Nidong/jiufang into hw

mushencc 3 年 前
コミット
8f6373d43d

+ 2 - 2
src/views/BidSystem/ContractList/edit.vue

@@ -527,7 +527,7 @@
     <!-- :mask-closable="false" -->
     <el-dialog
       title="新增产品"
-      :visible="showPDTModal"
+      :visible.sync="showPDTModal"
       :close-on-click-modal="false"
       :close-on-press-escape="false"
       class="addPDTFormModal"
@@ -789,7 +789,7 @@
     <!-- 编辑产品弹窗 -->
     <el-dialog
       title="编辑产品"
-      :visible="showPDTEditModal"
+      :visible.sync="showPDTEditModal"
       :close-on-click-modal="false"
       :close-on-press-escape="false"
       class="addPDTFormModal"

+ 1 - 1
src/views/BidSystem/DeepeningOrder/detail.vue

@@ -501,7 +501,7 @@
     <!-- 新增产品弹窗 -->
     <el-dialog
       title="新增产品"
-      :visible="showPDTModal"
+      :visible.sync="showPDTModal"
       :close-on-click-modal="false"
       :close-on-press-escape="false"
       class="addPDTFormModal"

+ 23 - 18
src/views/BidSystem/ProductDeOrder/deorderdetail.vue

@@ -607,11 +607,12 @@
     <!-- 相似产品弹窗 -->
     <el-dialog
       title="选择相似产品"
-      :visible="showSimilarProductModal"
+      :visible.sync="showSimilarProductModal"
       :close-on-click-modal="false"
       :close-on-press-escape="false"
       class="similarProductModal"
       width="1000px"
+      :before-close="handleClose"
     >
       <Form :label-width="100" :model="similarProductData">
         <FormItem label="产品分类">
@@ -728,8 +729,7 @@
               v-model="tempProcessLine.title"
               style="width: 120px"
               placeholder="请输入"
-            >
-            </Input>
+            />
           </div>
           <Button
             type="primary"
@@ -1466,9 +1466,7 @@ export default {
             },
           ];
         } else {
-          this.formData.parts.map(v=>{
-            this.handleSimilarProductConfirm(res.data.product_id, v);
-          })
+          this.handleSimilarProductConfirm(res.data.product_id, this.formData);
         }
       });
     },
@@ -1524,6 +1522,9 @@ export default {
           this.tempSelectedPartIndex
         ].partsProcessLineTableData.concat(this.selectTags);
         this.showProcessLineDetailModal = false;
+        this.formData.parts[
+          this.tempSelectedPartIndex
+        ].process_name = this.info.title;
       }
     },
     // 删除工艺路线列表项
@@ -2143,6 +2144,9 @@ export default {
         obj
       );
     },
+    handleClose(done) {
+      done();
+    },
     handlePartMetalsDele(row, index, parentIndex) {
       this.formData.parts[parentIndex].partsMetalseData.splice(index, 1);
     },
@@ -2177,7 +2181,7 @@ export default {
           element.partsNameList.forEach((ele) => {
             if (element.part_id == ele.id && ele.id == ele.title) {
               flag = true;
-            }
+            
           });
           if (flag) {
             let result = await this.axios({
@@ -2300,6 +2304,7 @@ export default {
             data: {
               ...this.formData,
               order_no: this.$route.query.order_no,
+              oa_id: this.$route.query.oa_id,
               orders_area_product_detail_id: this.$route.query
                 .orders_area_product_detail_id,
             },
@@ -2536,40 +2541,40 @@ export default {
       display: flex;
       flex-wrap: wrap;
       justify-content: flex-start;
-      border-left: 1px solid #3764ff;
+      border-left: 1px solid #dedede;
       .radio-us {
-        background: #fff;
+        background: #f4f5f7;
         padding: 5px 20px;
         margin: 5px;
         margin-right: 18px;
-        color: #3764ff;
+        color: #999999;
         border-radius: 15px;
-       border: 1px solid #3764ff;
+        border: 1px solid #dedede;
         cursor: pointer;
       }
       .radio-us-foc {
-        color: #fff;
-        background: #3764ff;
+        color: #3764ff;
+        background: #fff;
         border: 1px solid #3764ff;
       }
     }
     .tit_box {
       .box-us {
+        background: #f4f5f7;
         padding: 5px 20px;
         margin: 5px;
         margin-right: 18px;
+        color: #999999;
         border-radius: 5px;
+        border: 1px solid #dedede;
         cursor: pointer;
         width: 100px;
         display: inline-block;
         text-align: center;
-        color: #3764ff;
-        background: #fff;
-        border: 1px solid #3764ff;
       }
       .box-us-foc {
-        color: #fff;
-        background: #3764ff;
+        color: #3764ff;
+        background: #fff;
         border: 1px solid #3764ff;
       }
     }

+ 1 - 0
src/views/BidSystem/ProductDeOrder/detail.vue

@@ -507,6 +507,7 @@ export default {
         query: {
           type,
           order_no: this.$route.query.order_no,
+          oa_id: this.$route.query.oa_id,
           orders_area_product_detail_id: row.id,
         },
       });

+ 129 - 19
src/views/ProductionOrderList/Dispatchlist/confirm.vue

@@ -101,6 +101,16 @@ export default {
       proxyObj: { order_no: this.$route.query.order_no },
       produces: [],
       users: [],
+      house_list: [],
+      unit_list: [],
+      level_list: [],
+      room_list: [],
+      product_list: [],
+      part_list: [],
+      part_state_list: [],
+      url_number_list: [], 
+      part_label: [],
+      produce_type_list: [],
     };
   },
   created() {
@@ -113,26 +123,126 @@ export default {
     list() {
       const array = [
         {
-          title: "工序",
+          title: "楼幢",
           filterable: true,
           name: "Select",
           value: "",
-          serverName: "produce_id",
+          serverName: "house",
           optionName: "title",
           optionValue: "id",
-          option: this.produces,
+          option: this.house_list,
+        },
+        {
+          title: "单元",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "unit",
+          optionName: "title",
+          optionValue: "id",
+          option: this.unit_list,
+        },
+        {
+          title: "楼层",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "level",
+          optionName: "title",
+          optionValue: "id",
+          option: this.level_list,
+        },
+        {
+          title: "房号",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "room",
+          optionName: "title",
+          optionValue: "id",
+          option: this.room_list,
+        },
+        {
+          title: "产品",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "product",
+          optionName: "title",
+          optionValue: "id",
+          option: this.product_list,
+        },
+        {
+          title: "部件",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "part",
+          optionName: "title",
+          optionValue: "id",
+          option: this.part_list,
+        },
+        {
+          title: "部件状态",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "part_state",
+          optionName: "title",
+          optionValue: "id",
+          option: this.part_state_list,
         },
         {
-          title: "班组信息",
+          title: "图号",
           filterable: true,
           name: "Select",
           value: "",
-          optionName: "nickname",
+          serverName: "url_number",
+          optionName: "title",
           optionValue: "id",
-          serverName: "user_id",
-          option: this.users,
+          option: this.url_number_list,
         },
         {
+          title: "部件是否贴标签",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "part_label",
+          optionName: "title",
+          optionValue: "id",
+          option: this.part_label_list,
+        },
+        {
+          title: "工序分类",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "produce_type",
+          optionName: "title",
+          optionValue: "id",
+          option: this.produce_type_list,
+        },
+        {
+          title: "工序",
+          filterable: true,
+          name: "Select",
+          value: "",
+          serverName: "produce_id",
+          optionName: "title",
+          optionValue: "id",
+          option: this.produces,
+        },
+        // {
+        //   title: "班组信息",
+        //   filterable: true,
+        //   name: "Select",
+        //   value: "",
+        //   optionName: "nickname",
+        //   optionValue: "id",
+        //   serverName: "user_id",
+        //   option: this.users,
+        // },
+        {
           title: "完工状态",
           name: "Select",
           value: "",
@@ -142,18 +252,18 @@ export default {
             { label: "已完工", value: 3 },
           ],
         },
-        {
-          title: "派工时间",
-          name: "Input",
-          start_server: "start_time",
-          end_server: "end_time",
-          start_value: "",
-          end_value: "",
-          isDate: true,
-          serverName: "id2",
-          start_placeholder: "开始日期",
-          end_placeholder: "结束日期",
-        },
+        // {
+        //   title: "派工时间",
+        //   name: "Input",
+        //   start_server: "start_time",
+        //   end_server: "end_time",
+        //   start_value: "",
+        //   end_value: "",
+        //   isDate: true,
+        //   serverName: "id2",
+        //   start_placeholder: "开始日期",
+        //   end_placeholder: "结束日期",
+        // },
       ];
       return array;
     },