cz 10 months ago
parent
commit
e8e7c32631

BIN
public/img/appuse.png


+ 23 - 5
src/components/headerBar/header-bar.vue

@@ -361,7 +361,7 @@
       </template>
     </el-drawer>
 
-    <el-dialog title="使用说明" v-model="plugsDialog" v-if="plugsDialog" width="40%">
+    <el-dialog title="使用说明" v-model="plugsDialog" v-if="plugsDialog" width="800px">
       <el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-change="handleTabChange">
         <el-tab-pane label="共享文件夹插件" name="1">
           <div style="font-size: 14px; line-height: 36px">
@@ -376,11 +376,29 @@
         </el-tab-pane>
         <el-tab-pane label="APP(安卓)" name="2">
           <!-- style="text-align:center;display:flex;flex-direction:column;align-items:center" -->
-          <div>
-            <div style="color: red;margin-bottom:20px">
-              请用手机扫码下载安装
+
+          <div style="display:flex">
+            <div>
+              <div style="color: red;margin-bottom:20px">
+                请用手机扫码下载安装
+              </div>
+              <div ref="appCode" style="width:200px;height:200px">
+              </div>
             </div>
-            <div ref="appCode" style="width:200px;height:200px">
+            <div style="margin-left:50px;text-align:left">
+              <div style="color: red;">
+                以下是三梵应用角标使用说明:
+              </div>
+              <div style="color: red;margin-bottom:20px">
+                1.打开手机设置 <br>
+                2.找到电池耗电情况<br>
+                3.找到三梵应用<br>
+                4.点击启动管理,然后开启允许后台活动。
+              </div>
+              <div>
+                <img src="/img/appuse.png" alt="" srcset="" style="width:50%;object-fit:contain;cursor:pointer;" @click="openImg('/img/appuse.png')">
+              </div>
+
             </div>
           </div>
         </el-tab-pane>

+ 28 - 3
src/components/process/SF/SalesOutBound.vue

@@ -1,5 +1,6 @@
 <template>
   <div style="width: 100%; padding: 0px 15px">
+
     <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="formDom">
       <template #commodity>
         <div style="width: 100%">
@@ -34,7 +35,7 @@
               <template #default="{ row, $index }">
                 <el-form-item :prop="'outboundRecordList.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true" class="margin-b-0">
                   <el-input-number onmousewheel="return false;" v-model="row.quantity" placeholder="请输入" style="width: 100%" :precision="0"
-                                   :controls="false" :min="0" @change="totalAmount()" />
+                                   :controls="false" :min="0" @change="totalAmount()" :disabled="isDetail" />
                 </el-form-item>
               </template>
             </el-table-column>
@@ -44,6 +45,7 @@
         </div>
       </template>
     </byForm>
+
   </div>
 </template>
 
@@ -106,10 +108,28 @@ const formConfig = computed(() => {
       itemWidth: 25,
       disabled: true,
     },
+    {
+      type: "select",
+      prop: "asd",
+      label: "有无返单",
+      data: [
+        {
+          dictKey: 10,
+          dictValue: "有",
+        },
+        {
+          dictKey: 20,
+          dictValue: "无",
+        },
+      ],
+      itemWidth: 25,
+      isShow: isProductManager.value && route.query.processType == 10,
+    },
   ];
 });
 const rules = ref({
   quantity: [{ required: true, message: "请输入数量", trigger: "blur" }],
+  asd: [{ required: true, message: "请选择有无返单", trigger: "change" }],
 });
 
 const totalAmount = () => {
@@ -208,9 +228,14 @@ const getAllData = (businessId) => {
     }
   });
 };
-
+const isDetail = ref(false);
+const isProductManager = ref(false);
 onMounted(() => {
-  formOption.disabled = judgeStatus();
+  // formOption.disabled = judgeStatus();
+  if (proxy.useUserStore().roles.includes("ProductManager")) {
+    isProductManager.value = true;
+  }
+  isDetail.value = judgeStatus();
   if (route.query && route.query.businessId && !route.query.processType) {
     let businessId = route.query.businessId;
     getAllData(businessId);