Browse Source

新增刷新

gydx2024_zhangzhipeng 1 month atrás
parent
commit
41ff118fea
3 changed files with 27 additions and 7 deletions
  1. 15 0
      src/Food/biddingInformationPage.vue
  2. 10 7
      src/Food/rulesPage.vue
  3. 2 0
      src/Food/supplierManagementPage.vue

+ 15 - 0
src/Food/biddingInformationPage.vue

@@ -362,6 +362,21 @@ export default {
          }
          this.bidding.push(s)
        }
+           this.form.title='',
+           this.form.num='',
+           this.form.unit='',
+           this.form.beginTime='',
+           this.form.endTime='',
+           this.form.arrivalTime='',
+           this.form.biddingPlace='',
+           this.form.payTime='',
+           this.form.rule='',
+           this.form.type='',
+           this.form.Principal='',
+           this.form.maxPrice='',
+           this.form.minPrice='',
+           this.form.invoice='',
+           this.form.status=''
      },
       delRow(index) {
         this.bidding.splice(index, 1);

+ 10 - 7
src/Food/rulesPage.vue

@@ -1,13 +1,14 @@
 <!--规则页面-->
 <template>
     <el-dialog v-model="dialogVisible" title="添加规则" width="530px">
-        <el-form :inline="true" label-position="right" label-width="80px">
+        <el-form :inline="true" label-position="right" label-width="80px" >
             <el-form-item :required="true" label="规则名称" :label-width="formLabelWidth" >
                 <el-input style="width: 400px" placeholder="请输入部门名称" v-model="form.name" autocomplete="off" />
             </el-form-item>
             <el-form-item :required="true" type="flex" justify="center" label="轮次数" :label-width="formLabelWidth">
                 <div style="display: flex;flex-direction: row">
                     <el-select
+                        placeholder="请选择轮次数"
                         v-model="form.num"
                             style="width: 240px"
                     >
@@ -25,7 +26,7 @@
                 <div style="display: flex;flex-direction: row">
                     <el-select
                         v-model="form.time"
-
+                        placeholder="请选择轮次时间"
                             style="width: 240px"
                     >
                         <el-option
@@ -44,7 +45,7 @@
                     <el-select
                         v-model="form.interval"
                             style="width: 240px"
-                            placeholder="请选择"
+                            placeholder="请选择间隔时长"
                     >
                         <el-option
                                 v-for="item in option3"
@@ -58,12 +59,10 @@
         </el-form>
         <template #footer>
             <div class="dialog-footer">
-                <el-button type="primary" @click="add">确认</el-button>
+                <el-button type="primary" @click="add" >确认</el-button>
                 <el-button @click="dialogVisible = false">取消</el-button>
             </div>
         </template>
-
-
     </el-dialog>
 <div style="padding: 20px">
 
@@ -230,7 +229,11 @@ export default defineComponent({
         time : this.form.time,
         interval : this.form.interval
       }
-      this.rule.push(s)
+      this.rule.push(s);
+      this.form.name='';
+      this.form.num = '';
+      this.form.interval='';
+      this.form.time=''
     },
     deleteLastRow() {
         this.rule.pop(); // 删除最后一行

+ 2 - 0
src/Food/supplierManagementPage.vue

@@ -123,6 +123,8 @@
                 phone : this.form.phone
             }
             this.supplier.push(s)
+            this.form.name='';
+            this.form.phone='';
           },
           delRow(index) {
             this.supplier.splice(index, 1);