wenhongquan 3 năm trước cách đây
mục cha
commit
5436f9d806

+ 5 - 5
src/components/Task/Add/index.vue

@@ -194,13 +194,13 @@
 
 
         <el-col :span="12">
-          <div class="tiplab">实景照片(2-3张)</div>
+          <div class="tiplab">实景照片</div>
           <div style="padding-left: 120px">
-            <ImageUpload v-model="fileList"></ImageUpload>
+            <ImageUpload v-model="fileList" :limit="3"></ImageUpload>
           </div>
-          <div class="tiplab">派单照片(1张)</div>
+          <div class="tiplab">派单照片</div>
           <div style="padding-left: 120px">
-            <ImageUpload v-model="fileList1"></ImageUpload>
+            <ImageUpload v-model="fileList1" :limit="1"></ImageUpload>
           </div>
         </el-col>
       </el-row>
@@ -255,7 +255,7 @@ export default defineComponent({
     const taskinfo = ref({});
     listTask({ taskCode: moment().year() + "" }).then((res) => {
       taskinfo.value.taskCode =
-        moment().year() + (Array(3).join(0) + (res.total + 1)).slice(-3);
+        moment().format("yyyyMMDD") + (Array(4).join(0) + (res.total + 1)).slice(-4);
     });
 
     watch(

+ 1 - 1
src/views/mb/task/add/index.vue

@@ -436,7 +436,7 @@ const taskinfo = ref({
 
 listTask({ taskCode: moment().year() + "" }).then((res) => {
   taskinfo.value.taskCode =
-    moment().year() + (Array(3).join(0) + (res.total + 1)).slice(-3);
+    moment().format("yyyyMMDD") + (Array(4).join(0) + (res.total + 1)).slice(-4);
 });
 
 const mapSelect = ref(null);

+ 2 - 12
src/views/task/detail/index.vue

@@ -164,12 +164,7 @@
                 :width="'120px'"
               ></ImagePreview>
             </el-col>
-            <el-col
-              :span="24"
-              v-if="taskinfo.taskPics === null || taskinfo.taskPics === ''"
-            >
-              <div style="margin-left: 20px">暂无图片</div>
-            </el-col>
+
           </el-row>
           <el-row>
             <el-col :span="24">派单照片:</el-col>
@@ -183,12 +178,7 @@
                 :width="'120px'"
               ></ImagePreview>
             </el-col>
-            <el-col
-              :span="24"
-              v-if="taskinfo.taskVideos === null || taskinfo.taskVideos === ''"
-            >
-              <div style="margin-left: 20px">暂无图片</div>
-            </el-col>
+
           </el-row>
         </div>
       </div>