大宝管理后台代码
123
dcc
2024-06-11 8c3fe58c2e0afbd60cb8e197bbdf7a7ef295e77f
src/views/position/createFinancing.vue
@@ -141,31 +141,31 @@
import pick from 'lodash.pick'
export default {
  name: 'Sharessetting',
  data() {
  data () {
    return {
      addUserform: this.$form.createForm(this),
      loading: false,
      labelCol: {
        xs: { span: 10 },
        sm: { span: 10 },
        md: { span: 7 },
        md: { span: 7 }
      },
      wrapperCol: {
        xs: { span: 14 },
        sm: { span: 14 },
        md: { span: 16 },
        md: { span: 16 }
      },
      addUserDialogloading: false,
      details: {},
      userInfo: {},
      stockInfo: {},
      stockInfo: {}
    }
  },
  mounted() {
  mounted () {
    this.getdetail()
  },
  methods: {
    getdetail() {
    getdetail () {
      var that = this
      this.loading = true
      admingetSetting().then((res) => {
@@ -175,7 +175,7 @@
        }, 500)
      })
    },
    getUsersearch() {
    getUsersearch () {
      userdetail({ userId: this.addUserform.getFieldValue('userId') }).then((res) => {
        if (res.status === 0) {
          if (res.data) {
@@ -190,7 +190,7 @@
        }
      })
    },
    getstockdetail() {
    getstockdetail () {
      stockgetSingleStock({ code: this.addUserform.getFieldValue('stockCode') }).then((res) => {
        if (res.status === 0) {
          this.stockInfo = res.data.stock
@@ -200,11 +200,11 @@
        }
      })
    },
    onChangeRangeDate(value, dateString) {
    onChangeRangeDate (value, dateString) {
      this.buyTime = dateString
      // this.addUserform.setFieldsValue(({buyTime: dateString }))
    },
    OkaddUserdialog() {
    OkaddUserdialog () {
      const form = this.$refs.addUserform.form
      form.validateFields((errors, values) => {
        if (!errors) {
@@ -221,8 +221,8 @@
          })
        }
      })
    },
  },
    }
  }
}
</script>
<style lang="less" scoped>