liukangdong
2024-12-03 8dcbe3d898f6c60ef3226095d994ca8953bf5f6d
admin/src/views/contract/components/addPaymentBill.vue
@@ -34,6 +34,7 @@
                                range-separator="至"
                                v-model="form.date"
                                @change="changeDate"
                                :picker-options="pickerOptions"
                                start-placeholder="开始日期"
                                end-placeholder="结束日期"
                                value-format="yyyy-MM-dd"
@@ -97,12 +98,18 @@
          startDate: '',
          endDate: '',
          price: 0,
          feeType: 0,
          receivableFeeCopy: '',
          receivableFee: '',
          planPayDate: '',
          billType: 1,
          billTypeCopy: 1,
          date: []
        },
        pickerOptions: {},
        time: {
          startDate: '',
          endDate: ''
        },
        rules: {
          contractCode: [
@@ -131,8 +138,18 @@
      }
    },
    methods: {
      open (title, target) {
      open (title, target, time) {
        var that = this
        this.title = title
        this.time.startDate = time.startDate
        this.time.endDate = time.endDate
        this.pickerOptions = {
          disabledDate(time) {
            const beginDate = new Date(that.time.startDate).getTime() - 8.64e7
            const endDate = new Date(that.time.endDate).getTime()
            return beginDate > time.getTime() || endDate < time.getTime()
          }
        }
        this.getCompanyList()
        this.visible = true
        // 新建