| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <template>
- <view>
- <h3>请求退回说明</h3>
- <view class="centent">
- <u-input v-model="content" type="textarea" :border="true" height="200" />
- <u-button type="error" class="btn" @click="getSave">提交申请</u-button>
- </view>
- </view>
- </template>
- <script>
- import {
- ACCESS_TOKEN,
- USER_NAME,
- USER_INFO
- } from "@/common/util/constants"
- export default {
- props: {
- id: {
- type: String,
- default: ''
- },
- value: {
- type: String,
- default: ''
- }
- },
- data() {
- return {
- // value: '',
- content: this.value,
- userid: '',
- time: ''
- }
- },
- created() {
- this.getInit()
- },
- methods: {
- getInit() {
- let info = uni.getStorageSync(USER_INFO);
- if (info.employee.id) {
- this.userid = info.employee.id || ''
- }
- var nowDate = new Date((new Date).getTime() + 8 * 60 * 60 * 1000)
- var time = nowDate.toJSON().split('T').join(' ').substr(0, 19)
- this.time = time
- },
- //提交
- getSave() {
- let pp = {
- paramWhere: [{
- id_: this.id
- }],
- tableName: "t_lhwtsqb",
- paramCond: {
- xiu_gai_bei_zhu_: this.content,
- update_time_: this.time,
- update_by_: this.userid
- }
- }
- let data = this.$sig(pp)
- this.$http.post("ibps/business/v3/sys/universal/updateDatasContextTable", data).then(res => {
- if (res.data.state == 200) {
- this.getFullAll()
- uni.showToast({
- title: '提交成功',
- icon: 'none',
- duration: 2000
- })
- this.$emit('saveSuccees')
- } else {
- uni.showToast({
- title: '提交失败',
- icon: 'none',
- duration: 2000
- })
- }
- });
- },
- // 清理缓存
- getFullAll() {
- this.$http.post("ibps/business/v3/form/cache/system/flushAll", {}).then(res => {
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- h3 {
- text-align: center;
- margin: 30rpx 0;
- }
- .centent {
- margin: 30rpx;
- }
- .btn {
- margin-top: 30rpx;
- }
- </style>
|