Browse Source

新增标签发放弹窗

gongwencan 4 months ago
parent
commit
0fea6a2850

+ 49 - 0
src/components/DialogTagDistribute.vue

@@ -0,0 +1,49 @@
+<template>
+    <el-dialog
+      :visible.sync="visible"
+      :title="发货方式"
+      append-to-body
+      width="750px"
+    >
+      <el-form
+        v-if="data"
+        ref="form"
+        :model="data"
+        label-width="100px"
+      >
+      <el-row
+        :gutter="$$Constant.LAYOUT_GAP"
+        >
+        <el-col :span="12">
+          <el-form-item label="发货方式">
+            <el-input v-model="data.goodsCode" readonly/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="12">
+          <el-form-item label="发货单号">
+            <el-input v-model="data.orderNo" />
+          </el-form-item>
+        </el-col>
+        </el-row>
+      </el-form>
+
+    </el-dialog>
+  </template>
+
+<script>
+import BaseCurdEditor from '@@/utils/BaseCurdEditor'
+import TagDistribute from '@@/entries/TagDistribute'
+
+export default {
+  name: 'DialogTagDistribute',
+  extends: BaseCurdEditor(TagDistribute),
+  props: {
+    // optionGroup: {
+    //   required: true,
+    //   type: Object
+    // }
+  }
+}
+</script>
+
+<style lang="scss"></style>

+ 3 - 0
src/components/EditButton.vue

@@ -12,6 +12,9 @@ export default {
       required: true,
       type: Object
     },
+    disabled: {
+      type: Boolean
+    },
     icon: {
       type: String
     },

+ 2 - 1
src/views/TagDistribute.vue

@@ -125,7 +125,8 @@
               >
                 <template v-slot="{ row }">
                   <div class="flex center layout-gap">
-                    <edit-button :data="row" :on-click="onOpenDetailEditorBtnClick">详情</edit-button>
+                    <edit-button v-if="tagApplyStateId === '3'" :data="row" :on-click="onOpenDetailEditorBtnClick" icon="el-icon-tickets">详情</edit-button>
+                    <edit-button v-else :data="row" :on-click="onOpenDetailEditorBtnClick" icon="el-icon-share" :disabled="tagApplyStateId !== '2'">发放</edit-button>
                   </div>
                 </template>
               </el-table-column>