Browse Source

( $ _ $ )

aliyun0758874076 1 year ago
parent
commit
1e5998c7b5

+ 2 - 2
src/views/commodity/commoditySystem/addCommodity.vue

@@ -204,7 +204,7 @@ export default {
         productBrief: '', // 商品简介
         shopGroupId: '', // 商品分组id
         classifyId: '', // 分类id
-        sortId: '', // 排序值
+        sortId: 0, // 排序值
         productMarque: '', // 商品型号
         supplierName: '', // 供应商名称
         ifLogistics: '', // 是否需要物流 1-是 0-否
@@ -312,7 +312,7 @@ export default {
       dialogVisible: false,
       rules: {
         productName: [ { required: true, message: '请输入商品名称', trigger: 'blur' } ],
-        sortId: [{ required: true, message: '请输入排序值', trigger: 'blur' }, { type: 'number', message: '排序值必须为数字' }],
+        sortId: [{ required: false, message: '请输入排序值', trigger: 'blur' }, { type: 'number', message: '排序值必须为数字' }],
         shopGroupId: [ { required: true, message: '请选择商品分组', trigger: 'change' } ],
         classifyId: [ { required: true, message: '请选择商品分类', trigger: 'change' } ],
         ifLogistics: [ { required: true, message: '请选择是否需要物流', trigger: 'change' } ],

+ 38 - 4
src/views/voucherManagement/rechargeManagement/index.vue

@@ -1,16 +1,50 @@
 <template>
-  <div class="">
-
+  <div class="cantainer">
+    <!-- 搜索 -->
+    <div class="formSearch">
+      <el-form :inline="true" :model="querySelect">
+        <!-- <el-form-item label="是否启用">
+          <el-select v-model="formInline.state" placeholder="请选择">
+          <el-option label="是" value="1" />
+          <el-option label="否" value="0" />
+          </el-select>
+          </el-form-item> -->
+        <el-form-item>
+          <!-- <el-button type="primary" plain @click="search">查询</el-button> -->
+          <el-button type="success" plain @click="isCreate = true">新增充值额度</el-button>
+          <!-- <el-button type="info" plain @click="clear">重置</el-button> -->
+        </el-form-item>
+      </el-form>
+    </div>
   </div>
 </template>
 
 <script>
 export default {
   // eslint-disable-next-line vue/match-component-file-name
-  name: 'RechargeManagement'
+  name: 'RechargeManagement',
+  data() {
+    return {
+      isCreate: false,
+      querySelect: {
+        isActive: true,
+        displayName: ''
+      },
+      formData: {
+
+      }
+    }
+  },
+  methods: {
+    // createlimit() {
+    //   this.isCreate = true
+    // }
+  }
 }
 </script>
 
 <style lang="scss" scoped>
-
+.cantainer {
+	padding: 20px;
+}
 </style>