update.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. const _Http = getApp().globalData.http,
  2. getTime = require("../../utils/getTime");
  3. Page({
  4. data: {
  5. showAll: false,
  6. disabled: true,
  7. form: [{
  8. label: "开票抬头",
  9. error: false,
  10. errMsg: "",
  11. type: "route",
  12. url: "/select/finance/index",
  13. params: {
  14. "id": 20221013160602,
  15. "content": {
  16. nocache: true,
  17. sys_enterpriseid: 1,
  18. "pageNumber": 1,
  19. "pageTotal": 1,
  20. "pageSize": 20,
  21. "where": {
  22. "condition": "",
  23. },
  24. },
  25. },
  26. query: '&radio=true',
  27. value: "",
  28. placeholder: "选择开票抬头信息",
  29. valueName: "principal",
  30. checking: "base",
  31. required: true
  32. },
  33. {
  34. label: "备注",
  35. error: false,
  36. errMsg: "",
  37. type: "textarea",
  38. value: "",
  39. placeholder: "备注",
  40. valueName: "remarks",
  41. required: false
  42. },
  43. ]
  44. },
  45. onLoad(options) {
  46. console.log(wx.getStorageSync('userMsg').usertype == 1)
  47. },
  48. /* 选择财务信息
  49. selectFinance() {
  50. if (this.isEdit()) return;
  51. wx.navigateTo({
  52. url: `?params=${JSON.stringify()}&radio=true`,
  53. });
  54. getApp().globalData.handleSelect = this.setFinance.bind(this);
  55. },*/
  56. /* 打断处理form */
  57. interrupt(e) {
  58. console.log("打断", e)
  59. },
  60. submit() {},
  61. // 是否显示全部
  62. onChange({
  63. detail
  64. }) {
  65. this.setData({
  66. showAll: detail
  67. })
  68. },
  69. /* 表单必填项是否完成 */
  70. onConfirm({
  71. detail
  72. }) {
  73. this.setData({
  74. disabled: detail
  75. })
  76. }
  77. })