695593266@qq.com 9 ماه پیش
والد
کامیت
5b6fba6ddb
2فایلهای تغییر یافته به همراه18 افزوده شده و 16 حذف شده
  1. 7 5
      src/views/produce/components/juRenPackOne.vue
  2. 11 11
      src/views/produce/components/outsourcing/index.vue

+ 7 - 5
src/views/produce/components/juRenPackOne.vue

@@ -109,10 +109,10 @@
         <div
           style="
             position: absolute;
-            top: -10px;
+            top: -15px;
             right: 80px;
-            width: 40px;
-            height: 40px;
+            width: 50px;
+            height: 50px;
           "
         >
           <img style="width: 100%; height: 100%" :src="url" />
@@ -202,8 +202,10 @@
           this.warrantyPeriodUnit = '';
         }
 
-        this.qrCodeUrl =
-          window.location.origin + `/traceability?id=${this.workOrderId}`;
+        // this.qrCodeUrl =
+        //   window.location.origin + `/traceability?id=${this.workOrderId}`;
+
+        this.qrCodeUrl = `http://192.168.1.22:9999/traceability?id=${this.workOrderId}`;
 
         // console.log(window.location.origin, 'window.location.origin');
 

+ 11 - 11
src/views/produce/components/outsourcing/index.vue

@@ -1,13 +1,13 @@
 <template>
   <div class="index_box">
     <div class="c_header_title">
-      <el-tabs type="card" v-model="activeName" @tab-click="handleClick">
+      <!-- <el-tabs type="card" v-model="activeName" @tab-click="handleClick">
         <el-tab-pane label="委外记录" name="1"></el-tab-pane>
         <el-tab-pane label="请托记录" name="2"></el-tab-pane>
-      </el-tabs>
-      <!-- <div class="c_title">委外记录</div> -->
+      </el-tabs> -->
+      <div class="c_title">委外记录</div>
     </div>
-    <div style="overflow: auto" activeName="1">
+    <div style="overflow: auto">
       <el-form
         label-width="100px"
         :rules="rules"
@@ -473,13 +473,13 @@
     mounted() {
       this.getContactList();
       this.getFactoryList();
-      if (this.activeName == '1') {
-        // this.attributeData.name = this.outsourceFormVal.name + '委托';
-        this.$set(this.outsourceFormVal, 'name', this.taskName + '委托');
-      } else if (this.activeName == '2') {
-        // this.attributeData.name = this.outsourceFormVal.name + '请托';
-        this.$set(this.outsourceFormVal, 'name', this.taskName + '请托');
-      }
+      // if (this.activeName == '1') {
+      //   // this.attributeData.name = this.outsourceFormVal.name + '委托';
+      //   this.$set(this.outsourceFormVal, 'name', this.taskName + '委托');
+      // } else if (this.activeName == '2') {
+      //   // this.attributeData.name = this.outsourceFormVal.name + '请托';
+      //   this.$set(this.outsourceFormVal, 'name', this.taskName + '请托');
+      // }
     },
 
     methods: {