| | |
| | | NODE_ENV=development |
| | | VUE_APP_PREVIEW=true |
| | | # VUE_APP_API_BASE_URL=http://www.jqydl.com:8091/ |
| | | # VUE_APP_API_BASE_URL=https://api.3falcon.com/ |
| | | # VUE_APP_API_BASE_URL=https://api.marwadi.online/ |
| | | # VUE_APP_API_BASE_URL=https://api.3falcon.com/ |
| | | # VUE_APP_API_BASE_URL=https://api.marwadi.online/ |
| | | # VUE_APP_API_BASE_URL=https://www.rksv.store:8091/ |
| | | # VUE_APP_API_BASE_URL=http://www.ojwuf.com:8091/ |
| | | VUE_APP_API_BASE_URL=http://192.168.0.105:8091/ |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="48"> |
| | | <a-col :md="12" :lg="12" :sm="12"> |
| | | <a-form-item label="周期(天)" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input |
| | | placeholder="请输入周期" |
| | | v-decorator="['period', { rules: [{ required: true, message: '请输入周期' }] }]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-modal> |
| | | </page-header-wrapper> |
| | |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '周期(天)', |
| | | dataIndex: 'period', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '折扣', |
| | | dataIndex: 'discount', |
| | | align: 'center', |
| | |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '- -' |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | |
| | | addUserform: this.$form.createForm(this), |
| | | addUserdialog: false, |
| | | addUserDialogloading: false, |
| | | fields: ['stockCode', 'stockNum', 'password', 'startTime', 'endTime', 'discount'], |
| | | fields: ['stockCode', 'stockNum', 'password', 'startTime', 'endTime', 'discount', 'period'], |
| | | currentdetail: '', |
| | | startTime: '', |
| | | endTime: '', |
| | |
| | | getlist() { |
| | | this.loading = true |
| | | getDzListByAdmin(this.queryParam).then((res) => { |
| | | console.log(res.data) |
| | | this.datalist = res.data |
| | | this.pagination.total = res.data.total |
| | | // this.pagination.total = res.data.total |
| | | this.loading = false |
| | | }) |
| | | }, |
| | |
| | | if (!errors) { |
| | | this.editUserDialogloading = true |
| | | console.log({ id: arr[0].id, amt: amt, type: this.direction }) |
| | | updateMoney({ id: arr[0].id, amt: amt, type: values.direction }).then((res) => { |
| | | if (res.status == 0) { |
| | | this.editUserdialog = false |
| | | this.$message.success(res.msg) |
| | | form.resetFields() |
| | | this.getinit() |
| | | } else { |
| | | this.$message.error({ content: res.msg || '划转成功' }) |
| | | } |
| | | this.editUserDialogloading = false |
| | | }) |
| | | updateMoney({ id: arr[0].id, amt: amt, type: values.direction }) |
| | | .then((res) => { |
| | | if (res.status == 0) { |
| | | this.editUserdialog = false |
| | | this.$message.success(res.msg) |
| | | form.resetFields() |
| | | this.getinit() |
| | | } else { |
| | | this.$message.error({ content: res.msg || '划转成功' }) |
| | | } |
| | | this.editUserDialogloading = false |
| | | }) |
| | | .catch((res) => { |
| | | this.editUserDialogloading = false |
| | | }) |
| | | } else { |
| | | console.log(3333) |
| | | } |