Incidencias 0 Pull Requests 0 Commits 180 Releases 0 Wiki
Explorar el Código

财务管理 会员管理

lyn7568 %!s(int64=4) %!d(string=hace) años
padre
commit
e1935cb45a
Se han modificado 6 ficheros con 447 adiciones y 258 borrados
  1. 35 35
      src/views/modules/admin/attenders-add-or-update.vue
  2. 71 9
      src/views/modules/admin/attenders.vue
  3. 0 1
      src/views/modules/admin/meeting-add-or-update.vue
  4. 11 32
      src/views/modules/admin/paper-add-or-update.vue
  5. 116 176
      src/views/modules/admin/sign.vue
  6. 214 5
      src/views/modules/admin/typesoffee.vue

+ 35 - 35
src/views/modules/admin/attenders-add-or-update.vue

@ -50,20 +50,23 @@
50 50
      </el-form-item>
51 51
      <el-form-item label="负责人" prop="servicer">
52 52
        <!-- <el-input v-model="dataForm.servicer" placeholder="负责人"></el-input> -->
53
        <el-select
54
          v-model="dataForm.servicer"
55
          filterable
56
          remote
57
          reserve-keyword
58
          placeholder="请输入关键词"
59
          :remote-method="remoteMethod"
60
          :loading="loading"
61
        >
53
        <el-select v-model="dataForm.servicer" filterable placeholder="请选择">
62 54
          <el-option
63
            v-for="item in options"
64
            :key="item.value"
65
            :label="item.label"
66
            :value="item.value"
55
            v-for="item in employeeList"
56
            :key="item.id"
57
            :label="item.truename"
58
            :value="item.id"
59
          ></el-option>
60
        </el-select>
61
      </el-form-item>
62
      <el-form-item label="用户类型" prop="typeId">
63
        <!-- <el-input v-model="dataForm.servicer" placeholder="负责人"></el-input> -->
64
        <el-select v-model="dataForm.typeId" filterable placeholder="请选择">
65
          <el-option
66
            v-for="item in typesofattendersList"
67
            :key="item.id"
68
            :label="item.name"
69
            :value="item.id"
67 70
          ></el-option>
68 71
        </el-select>
69 72
      </el-form-item>
@ -89,13 +92,13 @@
89 92
          placeholder="选择日期时间"
90 93
          value-format="yyyy-MM-dd HH:mm:ss"
91 94
        ></el-date-picker>
92
      </el-form-item> -->
95
      </el-form-item>-->
93 96
      <!-- <el-form-item label="创建者" prop="creater">
94 97
        <el-input v-model="dataForm.creater" placeholder="创建者"></el-input>
95 98
      </el-form-item>
96 99
      <el-form-item label="修改者" prop="modifier">
97 100
        <el-input v-model="dataForm.modifier" placeholder="修改者"></el-input>
98
      </el-form-item> -->
101
      </el-form-item>-->
99 102
      <el-form-item label="备注" prop="note">
100 103
        <el-input
101 104
          type="textarea"
@ -137,9 +140,8 @@ export default {
137 140
        note: "",
138 141
        account: "",
139 142
        emailLx: "",
140
        regflag: "",
141
        createTime: "",
142
        modifyTime: "",
143
        regflag: ""
144
143 145
        // creater: "",
144 146
        // modifier: "",
145 147
      },
@ -223,12 +225,12 @@ export default {
223 225
        ]
224 226
      },
225 227
      employeeList: [],
226
      list: [],
227
      options: []
228
      typesofattendersList: []
228 229
    };
229 230
  },
230 231
  created() {
231 232
    this.getEmployee();
233
    this.getTypesofattenders();
232 234
  },
233 235
  methods: {
234 236
    init(id) {
@ -338,24 +340,22 @@ export default {
338 340
        if (data) {
339 341
          this.loading = false;
340 342
          this.employeeList = data;
341
          this.list = this.employeeList.map(item => {
342
            return { value: `${item.id}`, label: `${item.truename}` };
343
          });
344 343
        }
345 344
      });
346 345
    },
347
    remoteMethod(query) {
348
      if (query !== "") {
349
        this.loading = true;
350
        setTimeout(() => {
351
          this.loading = false;
352
          this.options = this.list.filter(item => {
353
            return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1;
354
          });
355
        }, 300);
356
      } else {
357
        this.options = [];
358
      }
346
    //获取用户类型信息
347
    getTypesofattenders() {
348
      this.$http({
349
        url: this.$http.adornUrl(
350
          `/admin/typesofattenders/listbymid/${this.$route.params.id}`
351
        ),
352
        method: "get"
353
      }).then(({ data }) => {
354
        if (data && data.code === 0) {
355
          this.typesofattendersList = data.list;
356
        }
357
        window.console.log(data.list);
358
      });
359 359
    }
360 360
  }
361 361
};

+ 71 - 9
src/views/modules/admin/attenders.vue

@ -29,12 +29,12 @@
29 29
      <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
30 30
      <el-table-column prop="name" header-align="center" align="center" label="姓名"></el-table-column>
31 31
      <el-table-column prop="organization" header-align="center" align="center" label="所属机构"></el-table-column>
32
      <el-table-column prop="position" header-align="center" align="center" label="职位"></el-table-column>
33
      <el-table-column prop="jobTitle" header-align="center" align="center" label="职称"></el-table-column>
34
      <el-table-column prop="phone" header-align="center" align="center" label="电话"></el-table-column>
35
      <el-table-column prop="email" header-align="center" align="center" label="邮箱"></el-table-column>
36
      <el-table-column prop="officephone" header-align="center" align="center" label="办公电话"></el-table-column>
37
      <el-table-column prop="intention" header-align="center" align="center" label="参会意向">
32
      <!-- <el-table-column prop="position" header-align="center" align="center" label="职位"></el-table-column>
33
      <el-table-column prop="jobTitle" header-align="center" align="center" label="职称"></el-table-column>-->
34
      <!-- <el-table-column prop="phone" header-align="center" align="center" label="电话"></el-table-column> -->
35
      <!-- <el-table-column prop="email" header-align="center" align="center" label="邮箱"></el-table-column> -->
36
      <!-- <el-table-column prop="officephone" header-align="center" align="center" label="办公电话"></el-table-column> -->
37
      <!-- <el-table-column prop="intention" header-align="center" align="center" label="参会意向">
38 38
        <template slot-scope="scope">
39 39
          <el-tag v-if="scope.row.intention===0" type="danger">否</el-tag>
40 40
          <el-tag v-else="scope.row.intention===1">是</el-tag>
@ -47,11 +47,43 @@
47 47
        </template>
48 48
      </el-table-column>
49 49
      <el-table-column prop="transfer" header-align="center" align="center" label="接送要求">
50
         <template slot-scope="scope">
50
        <template slot-scope="scope">
51 51
          <el-tag v-if="scope.row.transfer===0" type="danger">否</el-tag>
52 52
          <el-tag v-else="scope.row.transfer===1">是</el-tag>
53 53
        </template>
54
      </el-table-column>-->
55
      <el-table-column prop="intention" header-align="center" align="center" label="参会意向">
56
        <template slot-scope="scope">
57
          <el-button
58
            v-if="scope.row.intention===1"
59
            type="success"
60
            @click="changeStatus(scope.row.id, 'intention', 0)"
61
          >是</el-button>
62
          <el-button v-else @click="changeStatus(scope.row.id, 'intention', 1)" >否</el-button>
63
        </template>
54 64
      </el-table-column>
65
      <el-table-column prop="room" header-align="center" align="center" label="住宿要求">
66
        <template slot-scope="scope">
67
          <el-button
68
            v-if="scope.row.room===1"
69
            type="success"
70
            @click="changeStatus(scope.row.id, 'room', 0)"
71
          >是</el-button>
72
          <el-button v-else @click="changeStatus(scope.row.id, 'room', 1)" >否</el-button>
73
        </template>
74
      </el-table-column>
75
      <el-table-column prop="transfer" header-align="center" align="center" label="接送要求">
76
        <template slot-scope="scope">
77
          <el-button
78
            v-if="scope.row.transfer===1"
79
            type="success"
80
            @click="changeStatus(scope.row.id, 'transfer', 0)"
81
          >是</el-button>
82
          <el-button v-else @click="changeStatus(scope.row.id, 'transfer', 1) " >否</el-button>
83
        </template>
84
      </el-table-column>
85
      <el-table-column prop="transfer" header-align="center" align="center" label="用户类型"></el-table-column>
86
      <el-table-column prop="servicer" header-align="center" align="center" label="负责人"></el-table-column>
55 87
      <el-table-column prop="note" header-align="center" align="center" label="备注"></el-table-column>
56 88
      <!-- <el-table-column
57 89
        prop="account"
@ -205,8 +237,38 @@ export default {
205 237
        });
206 238
      });
207 239
    },
208
    changeStatus(id) {
209
      window.console.log(id);
240
    changeStatus(id, column, value) {
241
      console.log(id);
242
      // console.log(obj)
243
      this.$http({
244
        url: this.$http.adornUrl("/admin/attenders/status"),
245
        method: "post",
246
        data: this.$http.adornData({
247
          id: id,
248
          column: column,
249
          value: value
250
        })
251
      }).then(({ data }) => {
252
        if (data && data.code === 0) {
253
          this.$message({
254
            message: "操作成功",
255
            type: "success",
256
            duration: 500,
257
            onClose: () => {
258
              //  this.getDataList()
259
              var dList = this.dataList;
260
              dList.forEach(element => {
261
                if (element.id === id) {
262
                  element[column] = value;
263
                }
264
              });
265
              this.dataList = dList;
266
            }
267
          });
268
        } else {
269
          this.$message.error(data.msg);
270
        }
271
      });
210 272
    }
211 273
  }
212 274
};

+ 0 - 1
src/views/modules/admin/meeting-add-or-update.vue

@ -386,7 +386,6 @@ export default {
386 386
      console.log(file, fileList);
387 387
    },
388 388
    successHandle(response, file) {
389
      window.console.log(response);
390 389
      if (response && response.code === 0) {
391 390
        this.titlePictureList.push(response.picname);
392 391
        // window.console.log(this.titlePictureList.join());

+ 11 - 32
src/views/modules/admin/paper-add-or-update.vue

@ -27,11 +27,10 @@
27 27
        <el-upload
28 28
          class="upload-demo"
29 29
          ref="upload"
30
          action="https://jsonplaceholder.typicode.com/posts/"
31
          :on-preview="handlePreview"
32
          :on-remove="handleRemove"
33
          :file-list="fileList"
30
          :action="upload_url"
31
          :on-success="successHandle"
34 32
          :auto-upload="false"
33
          name="upload_file"
35 34
        >
36 35
          <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
37 36
          <el-button
@ -71,18 +70,8 @@ export default {
71 70
        summary: [{ required: true, message: "摘要不能为空", trigger: "blur" }]
72 71
      },
73 72
      options: [],
74
      fileList: [
75
        {
76
          name: "food.jpeg",
77
          url:
78
            "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"
79
        },
80
        {
81
          name: "food2.jpeg",
82
          url:
83
            "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"
84
        }
85
      ]
73
      upload_url: "",
74
      successNum: 0
86 75
    };
87 76
  },
88 77
  created() {
@ -110,6 +99,9 @@ export default {
110 99
          });
111 100
        }
112 101
      });
102
      this.upload_url = this.$http.adornUrl(
103
        `/sys/filemanager/uploadfile?token=${this.$cookie.get("token")}`
104
      );
113 105
    },
114 106
    // 表单提交
115 107
    dataFormSubmit() {
@ -161,23 +153,10 @@ export default {
161 153
    },
162 154
    paperUpload() {},
163 155
    submitUpload() {
164
      this.$http({
165
        url: this.$http.adornUrl("/renren-fast/sys/filemanager/uploadfile"),
166
        method: "post",
167
        data: this.$http.adornData({
168
          upload_file: "",
169
          useoldname: ""
170
        })
171
      }).then(res => {
172
        window.console.log(res);
173
        this.$refs.upload.submit();
174
      });
175
    },
176
    handleRemove(file, fileList) {
177
      console.log(file, fileList); //删除信息
156
      this.$refs.upload.submit();
178 157
    },
179
    handlePreview(file) {
180
      console.log(file); //上传后信息
158
    successHandle(response) {
159
      window.console.log(response)
181 160
    }
182 161
  }
183 162
};

+ 116 - 176
src/views/modules/admin/sign.vue

@ -16,103 +16,31 @@
16 16
      border
17 17
      v-loading="dataListLoading"
18 18
      @selection-change="selectionChangeHandle"
19
      style="width: 100%;">
20
      <el-table-column
21
        type="selection"
22
        header-align="center"
23
        align="center"
24
        width="50">
25
      </el-table-column>
26
      <el-table-column
27
        prop="id"
28
        header-align="center"
29
        align="center"
30
        label="id">
31
      </el-table-column>
32
      <el-table-column
33
        prop="truename"
34
        header-align="center"
35
        align="center"
36
        label="姓名">
37
      </el-table-column>
38
      <el-table-column
39
        prop="organization"
40
        header-align="center"
41
        align="center"
42
        label="所属机构">
43
      </el-table-column>
44
      <el-table-column
45
        prop="position"
46
        header-align="center"
47
        align="center"
48
        label="职位">
49
      </el-table-column>
50
      <el-table-column
51
        prop="phone"
52
        header-align="center"
53
        align="center"
54
        label="联系电话">
55
      </el-table-column>
56
      <el-table-column
57
        prop="typeAttenders"
58
        header-align="center"
59
        align="center"
60
<<<<<<< HEAD
61
        label="参会类型">
62
=======
63
        label="用户参会类型">
64
>>>>>>> b4a72a7622733ad6688835b7f0c303ebd79673f3
65
      </el-table-column>
66
      <el-table-column
67
        prop="isPay"
68
        header-align="center"
69
        align="center"
70
        label="是否已缴费">
71
<<<<<<< HEAD
72
=======
19
      style="width: 100%;"
20
    >
21
      <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
22
      <el-table-column prop="id" header-align="center" align="center" label="id"></el-table-column>
23
      <el-table-column prop="truename" header-align="center" align="center" label="姓名"></el-table-column>
24
      <el-table-column prop="organization" header-align="center" align="center" label="所属机构"></el-table-column>
25
      <el-table-column prop="position" header-align="center" align="center" label="职位"></el-table-column>
26
      <el-table-column prop="phone" header-align="center" align="center" label="联系电话"></el-table-column>
27
      <el-table-column prop="typeAttenders" header-align="center" align="center" label="用户参会类型"></el-table-column>
28
      <el-table-column prop="isPay" header-align="center" align="center" label="是否已缴费">
73 29
        <template slot-scope="scope">
74 30
          <span v-if="scope.row.isPay === 1">是</span>
75 31
          <span v-else>否</span>
76 32
        </template>
77
>>>>>>> b4a72a7622733ad6688835b7f0c303ebd79673f3
78 33
      </el-table-column>
79
      <el-table-column
80
        prop="status"
81
        header-align="center"
82
        align="center"
83
        label="签到状态">
84
<<<<<<< HEAD
85
=======
34
      <el-table-column prop="status" header-align="center" align="center" label="签到状态">
86 35
        <template slot-scope="scope">
87 36
          <span v-if="scope.row.status === 1">已签到</span>
88 37
          <span v-else>否</span>
89 38
        </template>
90
>>>>>>> b4a72a7622733ad6688835b7f0c303ebd79673f3
91
      </el-table-column>
92
      <el-table-column
93
        prop="badge"
94
        header-align="center"
95
        align="center"
96
        label="胸卡">
97
      </el-table-column>
98
      <el-table-column
99
        prop="servername"
100
        header-align="center"
101
        align="center"
102
        label="负责人">
103 39
      </el-table-column>
104
      <el-table-column
105
        prop="lastTime"
106
        header-align="center"
107
        align="center"
108
        label="最后签到时间">
109
      </el-table-column>
110
      <el-table-column
111
        fixed="right"
112
        header-align="center"
113
        align="center"
114
        width="100"
115
        label="操作">
40
      <el-table-column prop="badge" header-align="center" align="center" label="胸卡"></el-table-column>
41
      <el-table-column prop="servername" header-align="center" align="center" label="负责人"></el-table-column>
42
      <el-table-column prop="lastTime" header-align="center" align="center" label="最后签到时间"></el-table-column>
43
      <el-table-column fixed="right" header-align="center" align="center" width="100" label="操作">
116 44
        <template slot-scope="scope">
117 45
          <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
118 46
        </template>
@ -125,106 +53,118 @@
125 53
      :page-sizes="[10, 20, 50, 100]"
126 54
      :page-size="pageSize"
127 55
      :total="totalPage"
128
      layout="total, sizes, prev, pager, next, jumper">
129
    </el-pagination>
56
      layout="total, sizes, prev, pager, next, jumper"
57
    ></el-pagination>
130 58
  </div>
131 59
</template>
132 60
133 61
<script>
134
  export default {
135
    data () {
136
      return {
137
        dataForm: {
138
          key: ''
139
        },
140
        dataList: [],
141
        pageIndex: 1,
142
        pageSize: 10,
143
        totalPage: 0,
144
        dataListLoading: false,
145
        dataListSelections: [],
146
        meetingId: 0
147
      }
62
export default {
63
  data() {
64
    return {
65
      dataForm: {
66
        key: ""
67
      },
68
      dataList: [],
69
      pageIndex: 1,
70
      pageSize: 10,
71
      totalPage: 0,
72
      dataListLoading: false,
73
      dataListSelections: [],
74
      meetingId: 0
75
    };
76
  },
77
  created() {
78
    this.meetingId = this.$route.params.id;
79
  },
80
  activated() {
81
    this.getDataList();
82
  },
83
  methods: {
84
    // 导出数据表
85
    exportList() {
86
      window.open(
87
        this.$http.adornUrl(
88
          `/admin/signinfo/downloadxls?token=${this.$cookie.get(
89
            "token"
90
          )}&meetingId=${this.meetingId}`
91
        )
92
      );
148 93
    },
149
    created () {
150
      this.meetingId = this.$route.params.id
94
    // 获取数据列表
95
    getDataList() {
96
      this.dataListLoading = true;
97
      this.$http({
98
        url: this.$http.adornUrl("/admin/signinfo/list"),
99
        method: "get",
100
        params: this.$http.adornParams({
101
          meetingId: this.meetingId,
102
          page: this.pageIndex,
103
          limit: this.pageSize,
104
          key: this.dataForm.key
105
        })
106
      }).then(({ data }) => {
107
        if (data && data.code === 0) {
108
          this.dataList = data.page.list;
109
          this.totalPage = data.page.totalCount;
110
        } else {
111
          this.dataList = [];
112
          this.totalPage = 0;
113
        }
114
        this.dataListLoading = false;
115
      });
151 116
    },
152
    activated () {
153
      this.getDataList()
117
    // 每页数
118
    sizeChangeHandle(val) {
119
      this.pageSize = val;
120
      this.pageIndex = 1;
121
      this.getDataList();
154 122
    },
155
    methods: {
156
      // 导出数据表
157
      exportList () {
158
        window.open(this.$http.adornUrl(`/admin/signinfo/downloadxls?token=${this.$cookie.get('token')}&meetingId=${this.meetingId}`))
159
      },
160
      // 获取数据列表
161
      getDataList () {
162
        this.dataListLoading = true
123
    // 当前页
124
    currentChangeHandle(val) {
125
      this.pageIndex = val;
126
      this.getDataList();
127
    },
128
    // 多选
129
    selectionChangeHandle(val) {
130
      this.dataListSelections = val;
131
    },
132
    // 删除
133
    deleteHandle(id) {
134
      var ids = id
135
        ? [id]
136
        : this.dataListSelections.map(item => {
137
            return item.id;
138
          });
139
      this.$confirm(
140
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
141
        "提示",
142
        {
143
          confirmButtonText: "确定",
144
          cancelButtonText: "取消",
145
          type: "warning"
146
        }
147
      ).then(() => {
163 148
        this.$http({
164
          url: this.$http.adornUrl('/admin/signinfo/list'),
165
          method: 'get',
166
          params: this.$http.adornParams({
167
            'meetingId': this.meetingId,
168
            'page': this.pageIndex,
169
            'limit': this.pageSize,
170
            'key': this.dataForm.key
171
          })
172
        }).then(({data}) => {
149
          url: this.$http.adornUrl("/admin/signinfo/delete"),
150
          method: "post",
151
          data: this.$http.adornData(ids, false)
152
        }).then(({ data }) => {
173 153
          if (data && data.code === 0) {
174
            this.dataList = data.page.list
175
            this.totalPage = data.page.totalCount
154
            this.$message({
155
              message: "操作成功",
156
              type: "success",
157
              duration: 1500,
158
              onClose: () => {
159
                this.getDataList();
160
              }
161
            });
176 162
          } else {
177
            this.dataList = []
178
            this.totalPage = 0
163
            this.$message.error(data.msg);
179 164
          }
180
          this.dataListLoading = false
181
        })
182
      },
183
      // 每页数
184
      sizeChangeHandle (val) {
185
        this.pageSize = val
186
        this.pageIndex = 1
187
        this.getDataList()
188
      },
189
      // 当前页
190
      currentChangeHandle (val) {
191
        this.pageIndex = val
192
        this.getDataList()
193
      },
194
      // 多选
195
      selectionChangeHandle (val) {
196
        this.dataListSelections = val
197
      },
198
      // 删除
199
      deleteHandle (id) {
200
        var ids = id ? [id] : this.dataListSelections.map(item => {
201
          return item.id
202
        })
203
        this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
204
          confirmButtonText: '确定',
205
          cancelButtonText: '取消',
206
          type: 'warning'
207
        }).then(() => {
208
          this.$http({
209
            url: this.$http.adornUrl('/admin/signinfo/delete'),
210
            method: 'post',
211
            data: this.$http.adornData(ids, false)
212
          }).then(({data}) => {
213
            if (data && data.code === 0) {
214
              this.$message({
215
                message: '操作成功',
216
                type: 'success',
217
                duration: 1500,
218
                onClose: () => {
219
                  this.getDataList()
220
                }
221
              })
222
            } else {
223
              this.$message.error(data.msg)
224
            }
225
          })
226
        })
227
      }
165
        });
166
      });
228 167
    }
229 168
  }
169
};
230 170
</script>

+ 214 - 5
src/views/modules/admin/typesoffee.vue

@ -1,19 +1,228 @@
1 1
<template>
2
  <div>1</div>
2
  <div class="typesoffeeContent">
3
    <el-form>
4
      <el-form-item label="注册费用信息"></el-form-item>
5
      <el-form-item>
6
        <el-input style="width:400px" placeholder="请输入级别类型" v-model="dataForm.name"></el-input>
7
        <el-input style="width:400px" placeholder="请输入具体金额(单位:元)" v-model="dataForm.money"></el-input>
8
        <el-button style="width:180px" type="primary" @click="typesoffeeSave">添加</el-button>
9
      </el-form-item>
10
    </el-form>
11
    <el-table border :data="list">
12
      <el-table-column prop="name" label="级别类型" header-align="center" align="center"></el-table-column>
13
      <el-table-column prop="money" label="金额(单位:元)" header-align="center" align="center"></el-table-column>
14
      <el-table-column label="操作" header-align="center" align="center">
15
        <template slot-scope="scope">
16
          <el-button size="mini" type="danger" @click="deleteHandle(scope.row.id)">删除</el-button>
17
        </template>
18
      </el-table-column>
19
    </el-table>
20
    <el-form
21
      :model="moneyaccountList"
22
      ref="moneyaccountList"
23
      style="margin-top:30px"
24
      class="form"
25
      label-position="right"
26
      label-width="130px"
27
    >
28
      <el-form-item label="对公收款账户信息"></el-form-item>
29
      <el-form-item label="账  号">
30
        <div v-if="show">{{moneyaccount.name}}</div>
31
        <el-input v-else="show" style="width:300px" size="small" v-model="moneyaccountList.name"></el-input>
32
      </el-form-item>
33
      <el-form-item label="账户名称">
34
        <div v-if="show">{{moneyaccount.bank}}</div>
35
        <el-input v-else="show" style="width:300px" size="small" v-model="moneyaccountList.bank"></el-input>
36
      </el-form-item>
37
      <el-form-item label="开户银行">
38
        <div v-if="show">{{moneyaccount.account}}</div>
39
        <el-input v-else="show" style="width:300px" size="small" v-model="moneyaccountList.account"></el-input>
40
      </el-form-item>
41
      <el-form-item>
42
        <el-button
43
          class="button"
44
          style="width:100px"
45
          type="primary"
46
          v-if="show"
47
          @click="show=false"
48
        >修 改</el-button>
49
        <el-button
50
          class="button"
51
          style="width:100px"
52
          type="primary"
53
          v-else="show"
54
          @click=" pushMoneyaccount()"
55
        >保 存</el-button>
56
      </el-form-item>
57
    </el-form>
58
  </div>
3 59
</template>
4 60
<script>
5 61
export default {
6 62
  name: "",
7 63
  data() {
8
    return {};
64
    return {
65
      dataForm: {
66
        name: "",
67
        money: ""
68
      },
69
      pageIndex: 1,
70
      pageSize: 10,
71
      totalPage: 0,
72
      list: [], //注册费用信息
73
      moneyaccountList: {
74
        name: "",
75
        bank: "",
76
        account: ""
77
      },
78
      moneyaccount: {}, //注册类型返回数据
79
      show: true
80
    };
9 81
  },
10 82
  components: {},
11 83
  computed: {},
12 84
  beforeMount() {},
13
  mounted() {},
14
  methods: {},
85
  mounted() {
86
    this.getDataList();
87
    this.getMoneyaccount();
88
  },
89
  methods: {
90
    //提交
91
    typesoffeeSave() {
92
      this.$http({
93
        url: this.$http.adornUrl("/admin/typesoffee/save"),
94
        method: "post",
95
        data: {
96
          meetingId: this.$route.params.id,
97
          name: this.dataForm.name,
98
          money: this.dataForm.money
99
        }
100
      }).then(({ data }) => {
101
        if (data && data.code === 0) {
102
          this.$message({
103
            message: "添加成功",
104
            type: "success",
105
            duration: 1000,
106
            onClose: () => {}
107
          });
108
          this.getDataList();
109
          this.dataForm.name = "";
110
          this.dataForm.money = "";
111
        } else {
112
          this.$message.error(data.msg);
113
        }
114
      });
115
    },
116
    // 获取数据
117
    getDataList() {
118
      this.$http({
119
        url: this.$http.adornUrl("/admin/typesoffee/list/"),
120
        method: "get",
121
        params: {
122
          page: this.pageIndex,
123
          limit: this.pageSize,
124
          meetingId: this.$route.params.id
125
        }
126
      }).then(({ data }) => {
127
        if (data && data.code === 0) {
128
          this.list = data.page.list;
129
        }
130
      });
131
    },
132
    //删除
133
    deleteHandle(id) {
134
      var ids = id
135
        ? [id]
136
        : this.dataListSelections.map(item => {
137
            return item.id;
138
          });
139
      this.$confirm(
140
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
141
        "提示",
142
        {
143
          confirmButtonText: "确定",
144
          cancelButtonText: "取消",
145
          type: "warning"
146
        }
147
      ).then(() => {
148
        this.$http({
149
          url: this.$http.adornUrl("/admin/typesoffee/delete"),
150
          method: "post",
151
          data: this.$http.adornData(ids, false)
152
        }).then(({ data }) => {
153
          if (data && data.code === 0) {
154
            this.$message({
155
              message: "操作成功",
156
              type: "success",
157
              duration: 1500,
158
              onClose: () => {
159
                this.getDataList();
160
              }
161
            });
162
          } else {
163
            this.$message.error(data.msg);
164
          }
165
        });
166
      });
167
    },
168
    //提交对公收款账户信息
169
    pushMoneyaccount() {
170
      this.$http({
171
        url: this.$http.adornUrl("/admin/moneyaccount/addorupdate"),
172
        method: "post",
173
        data: {
174
          meetingId: this.$route.params.id,
175
          name: this.moneyaccountList.name,
176
          bank: this.moneyaccountList.bank,
177
          account: this.moneyaccountList.account
178
        }
179
      }).then(({ data }) => {
180
        if (data && data.code === 0) {
181
          this.show = true;
182
          this.$message({
183
            message: "操作成功",
184
            type: "success",
185
            duration: 1500,
186
            onClose: () => {
187
              this.getMoneyaccount();
188
            }
189
          });
190
        } else {
191
          this.$message.error(data.msg);
192
        }
193
      });
194
    },
195
    //获取公收款账户信息
196
    getMoneyaccount() {
197
      this.$http({
198
        url: this.$http.adornUrl(
199
          `/admin/moneyaccount/infobymid/${this.$route.params.id}`
200
        ),
201
        methods: "get"
202
      }).then(({ data }) => {
203
        if (data && data.code === 0) {
204
          this.moneyaccount = data.moneyAccount;
205
        }
206
      });
207
    }
208
  },
15 209
  watch: {}
16 210
};
17 211
</script>
18
<style scoped>
212
<style scoped lang='scss'>
213
.typesoffeeContent {
214
  width: 1000px;
215
  height: 700px;
216
  margin: 0 auto;
217
  // background-color: red;
218
  // border: 1px solid red;
219
  .form {
220
    position: relative;
221
    .button {
222
      position: absolute;
223
      bottom: 83px;
224
      right: 7px;
225
    }
226
  }
227
}
19 228
</style>

portal-front - Gogs: Go Git Service

portal html css js resource

cmp-needShow.js 3.9KB

    $(document).ready(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); var demandId = GetQueryString("demandId"); function angleDemand() { $.ajax({ url: "/ajax/demand/queryOne", type: "GET", timeout: 10000, dataType: "json", data: { "demandId": demandId, }, beforeSend: function() {}, success: function(data, textState) { if(data.success) { console.log(data); var $data = data.data; var oTime, oDemandType; $("#dialog_consultTitle").text($data.demandTitle); oTime = $data["createTime"].substr(0, 4) + "年" + $data.createTime.substr(4, 2) + "月" + $data.createTime.substr(6, 2) + "日" + $data.createTime.substr(8, 2) + ":" + $data.createTime.substr(10, 2); $("#dialog_consultTime").text(oTime); if($data.closeTime) { $("#dil_consultStatus").text("已关闭"); var oCloseTime = $data["closeTime"].substr(0, 4) + "年" + $data.closeTime.substr(4, 2) + "月" + $data.createTime.substr(6, 2) + "日" + $data.closeTime.substr(8, 2) + ":" + $data.closeTime.substr(10, 2); $("#dialog_consultTime1").text(oCloseTime); $(".closeBtn").hide(); } else { $("#dil_consultStatus").text("发布中"); } if($data.demandType == 1) { oDemandType = "个人需求" } else { oDemandType = "企业需求" } $("#dialog_consultType1").text(oDemandType); if($data.demandAim == 1) { oDemandAim = "技术咨询" } else if($data.demandAim == 2) { oDemandAim = "资源咨询" } else if($data.demandAim == 3) { oDemandAim = "其他咨询" } $("#dialog_consultType2").text(oDemandAim); $("#dialog_consultContent").text($data.demandContent); if($data.professor.hasHeadImage){ $("#oimg").attr("src","/images/head/" + $data.professor.id + "_l.jpg") }else{ $("#oimg").attr("src","../images/default-photo.jpg") } $("#userName").text($data.professor.name); var oString = todStr($data.professor.title, $data.professor.office, $data.professor.department); $("#offt").text(oString); if($data.organization.hasOrgLogo){ $("#organizationImg").attr("src", "/images/org/" + $data.organization.id + ".jpg"); }else{ $("#organizationImg").attr("src", "../images/default-icon.jpg"); } $("#organName").text($data.organization.name); if($data.organization.authStatus){ $("#authCompany").addClass("authicon-com-ok"); $("#authCompany").attr("title","认证企业") }else{ /*$("#authCompany").addClass("authicon-com-no"); $("#authCompany").attr("title","未认证企业")*/ } if($data.organization.industry){ $(".ellipsisSty").text($data.organization.industry); } var oClass = autho($data.professor.authType, $data.professor.orgAuth, $data.professor.authStatus); $("#authFlag").addClass(oClass.sty).attr("title",oClass.title); } }, error: function(XMLHttpRequest, textStats, errorThrown) { } }) } angleDemand(); $(".closeBtn").click(function() { $.MsgBox.Confirm("消息", "确认关闭此需求?——关闭后,专家将看不到此需求,但不会影响进行中的相关咨询。", closeDemand) }) function closeDemand() { $.ajax({ url: "/ajax/demand/close", type: "POST", timeout: 10000, dataType: "json", data: { "demandId": demandId, }, beforeSend: function() {}, success: function(data, textState) { if(data.success) { $(".closeBtn").hide(); $("#dil_consultStatus").text("已关闭"); } }, error: function(XMLHttpRequest, textStats, errorThrown) { } }) } /*职位职称所属机构*/ function todStr() { var arr = new Array(), i; for(i in arguments) { if(arguments[i]) { arr.push(arguments[i]) } } return arr.join(); } })