cz 1 ano atrás
pai
commit
23a4119fb3

BIN
src/assets/images/phone-bg.png


+ 5 - 4
src/views/JXSK/production/bom/index.vue

@@ -34,7 +34,7 @@
     <el-dialog
       :title="titleText"
       v-model="dialogVisible"
-      width="800"
+      width="70%"
       v-loading="submitLoading"
       destroy-on-close
     >
@@ -46,7 +46,7 @@
         ref="byform"
       >
         <template #slotFile>
-          <div>
+          <div style="width: 100%">
             <el-upload
               v-model:fileList="fileList"
               :show-file-list="false"
@@ -73,7 +73,7 @@
           </div>
         </template>
         <template #slot>
-          <div>
+          <div style="width: 100%">
             <el-button type="primary" plain @click="openMaterial = true"
               >添加物料/半成品</el-button
             >
@@ -88,6 +88,7 @@
               <el-table :data="formData.data.bomDetailList">
                 <el-table-column prop="productCode" label="物料编码" />
                 <el-table-column prop="productName" label="物料名称" />
+                <el-table-column prop="productSpec" label="规格型号" />
                 <el-table-column
                   prop="productUnit"
                   label="单位"
@@ -620,6 +621,7 @@ const handleSelect = (row) => {
     productId: row.id,
     productCode: row.code,
     productName: row.name,
+    productSpec: row.spec,
     productUnit: row.unit,
     quantity: null,
     cost: null,
@@ -631,7 +633,6 @@ const handleSelect = (row) => {
 };
 
 const handleRemove = (index) => {
-  console.log(index, "as");
   formData.data.bomDetailList.splice(index, 1);
   return ElMessage({
     message: "删除成功",

+ 29 - 25
src/views/JXSK/production/qrDetails/index.vue

@@ -1,30 +1,11 @@
 <template>
   <div style="width: 100vw; height: 100vh">
-    <div style="text-align: center; padding: 40px">
-      <el-card class="box-card" @click="printDialog = true">
-        <div
-          style="
-            cursor: pointer;
-            height: 40vh;
-            line-height: 40vh;
-            font-size: 25px;
-          "
-        >
-          工单详情
-        </div>
-      </el-card>
-      <el-card class="box-card" @click="handleAdd" style="margin-top: 20px">
-        <div
-          style="
-            cursor: pointer;
-            height: 40vh;
-            line-height: 40vh;
-            font-size: 25px;
-          "
-        >
-          添加售后
-        </div>
-      </el-card>
+    <div style="text-align: center; padding: 40px" class="bg">
+      <div class="title">嘉兴双拓科技</div>
+      <div class="btn" @click="printDialog = true">工单详情</div>
+      <div class="btn" @click="handleAdd" style="margin-top: 10vh">
+        添加售后
+      </div>
     </div>
 
     <el-dialog
@@ -348,4 +329,27 @@ const onPreviewFile = (file) => {
 </script>
 
 <style lang="scss" scoped>
+.bg {
+  height: 100vh;
+  background-image: url("../../../../assets/images/phone-bg.png");
+  background-size: cover;
+}
+.title {
+  font-size: 35px;
+  font-weight: 700;
+  color: #fff;
+  margin: 20px 0 10vh 0;
+}
+.btn {
+  width: 80vw;
+  height: 30vh;
+  text-align: center;
+  cursor: pointer;
+  line-height: 30vh;
+  border: 10px solid #fff;
+  color: #fff;
+  font-size: 25px;
+  font-weight: 700;
+  margin: 0 auto;
+}
 </style>