silent пре 4 година
родитељ
комит
b04be34955
1 измењених фајлова са 58 додато и 7 уклоњено
  1. 58 7
      src/views/ldt_shop/handleMiniCROShopAudit.vue

+ 58 - 7
src/views/ldt_shop/handleMiniCROShopAudit.vue

@@ -198,14 +198,63 @@ export default {
             disabled: true,
             span: 12
           },
+          // {
+          //   label: "商户logo",
+          //   prop: "shopLogo",
+          //   type: 'upload',
+          //   disabled: true,
+          //   listType: 'picture-img',
+          //   span: 8,
+          //   labelWidth: 120,
+          //   propsHttp: {
+          //     res: 'data',
+          //     url: 'link'
+          //   },
+          //   canvasOption: {
+          //     text: 'avue',
+          //     ratio: 0.1
+          //   },
+          //   tip: '只能上传jpg/png文件,且不超过500kb',
+          //   action: '/api/blade-resource/oss/endpoint/put-file',
+          //   /*rules: [{
+          //     required: true,
+          //     message: "请输入身份证-正面",
+          //     trigger: "blur"
+          //   }]*/
+          // },
           {
-            label: "商户logo",
-            prop: "shopLogo",
-            type: 'upload',
+            label: "商店封面",
+            prop: "cover",
             disabled: true,
+            type: 'upload',
+            dataType: "string",
             listType: 'picture-img',
             span: 8,
+            propsHttp: {
+              res: 'data',
+              url: 'link'
+            },
+            canvasOption: {
+              text: 'avue',
+              ratio: 0.1
+            },
+            tip: '只能上传jpg/png文件,且不超过500kb',
+            action: '/api/blade-resource/oss/endpoint/put-file',
+            rules: [{
+              required: true,
+              message: "请上传商店封面",
+              trigger: "blur"
+            }]
+          },
+          {
+            label: "店铺图片",
+            prop: "shopPic",
+            type: 'upload',
+            disabled: true,
+            dataType: 'string',
+            listType: 'picture-card',
             labelWidth: 120,
+            span: 16,
             propsHttp: {
               res: 'data',
               url: 'link'
@@ -216,11 +265,11 @@ export default {
             },
             tip: '只能上传jpg/png文件,且不超过500kb',
             action: '/api/blade-resource/oss/endpoint/put-file',
-            /*rules: [{
+            rules: [{
               required: true,
-              message: "请输入身份证-正面",
+              message: "请上传店铺图片",
               trigger: "blur"
-            }]*/
+            }]
           },
           {
             label: "身份证-正面",
@@ -351,11 +400,13 @@ export default {
       this.businessId = this.$route.params.businessId;
       this.processInstanceId = this.$route.params.processInstanceId;
       getDetail(this.businessId).then(res => {
+        this.form = res.data.data;
         getShopDetail(res.data.data.entityId).then(res => {
           this.form.locationCode = res.data.data.locationCode;
           this.form.location = res.data.data.location;
+          this.form.shopPic = res.data.data.shopPic;
+          this.form.cover = res.data.data.cover;
         });
-        this.form = res.data.data;
       });
       todoList(1, 10, {
         assignee: "LDT_PLATFORM",