| | |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | <template #billingCycle-form="scope"> |
| | | <div style="display: flex;"> |
| | | <div style="width: 40px;flex: 0 0 35px;">上月</div> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" max="31" min="0" v-model="form.billingCycleLastMonthDay"></avue-input-number> |
| | | <div style="width: 90px;flex: 0 0 88px;">日起,至当月</div> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" max="31" min="0" v-model="form.billingCycleCurrentMonthDay"></avue-input-number> |
| | | </div> |
| | | </template> |
| | | <template #reconciliation-form="scope"> |
| | | <div style="display: flex;"> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" @change="reconciliationDayChange" min="0" v-model="form.reconciliationDay"></avue-input-number> |
| | | <div style="width: 40px;flex: 0 0 88px;">日+开票账期</div> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" min="0" @change="invoiceDayChange" v-model="form.invoiceDay"></avue-input-number> |
| | | <div style="width: 40px;flex: 0 0 88px;">日+付款账期</div> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" min="0" @change="paymentDayChange" v-model="form.paymentDay"></avue-input-number> |
| | | <div style="width: 40px;flex: 0 0 88px;">日=总账期</div> |
| | | <avue-input-number style="width: 100px;flex: 0 0 100px;" min="0" v-model="form.totalAccountDay"></avue-input-number> |
| | | |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | </basicContainer> |
| | | </template> |
| | |
| | | addDisplay: true,value:'1', |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | change: ({value}: any) => { |
| | | option.value.group.forEach((item: any) => { |
| | | if (item.prop == 'fjxx') { |
| | | item.column.attachmentPath.rules.forEach((item:any)=>{ |
| | | item.required = value == 1; |
| | | }) |
| | | } |
| | | }) |
| | | console.log(value) |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | message: "甲方名称不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | type: 'table',suffixIcon:'search', |
| | | type: 'table',suffixIcon:'search',dataType: 'string', |
| | | children:{ |
| | | border: true, |
| | | searchMenuSpan: 5, |
| | |
| | | message: "乙方名称不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | type: 'table',suffixIcon:'search', |
| | | type: 'table',suffixIcon:'search',dataType: 'string', |
| | | children:{ |
| | | border: true, |
| | | searchMenuSpan: 5, |
| | |
| | | }, |
| | | } |
| | | }, |
| | | // { |
| | | // label: '款项信息', |
| | | // prop: 'kfxx', |
| | | // column: { |
| | | // contractAmount: { |
| | | // label: '合同金额', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "合同金额不能为空", trigger: "blur" |
| | | // } |
| | | // ], |
| | | // }, |
| | | // // paymentMethod: { |
| | | // // label: '付款方式', |
| | | // // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // // addDisplay: true, |
| | | // // editDisplay: true, |
| | | // // viewDisplay: true, |
| | | // // rules: [ |
| | | // // { |
| | | // // required: true, |
| | | // // message: "付款方式不能为空", trigger: "change" |
| | | // // } |
| | | // // ], |
| | | // // }, |
| | | // paymentCycle: { |
| | | // label: '付款周期', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // paidAmount: { |
| | | // label: '已付款项', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // unpaidAmount: { |
| | | // label: '未付款项', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | // invoiceStatus: { |
| | | // label: '发票状态', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/invoice_status', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // // rules: [ |
| | | // // { |
| | | // // required: true, |
| | | // // message: "发票状态不能为空", trigger: "change" |
| | | // // } |
| | | // // ], |
| | | // }, |
| | | // } |
| | | // }, |
| | | { |
| | | label: '款项信息', |
| | | prop: 'kfxx', |
| | | label: '结算信息', |
| | | prop: 'jsxx', |
| | | column: { |
| | | contractAmount: { |
| | | label: '合同金额', |
| | | cycleType: { |
| | | label: '周期类型', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/cycle_type', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "合同金额不能为空", trigger: "blur" |
| | | message: "周期类型不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | // paymentMethod: { |
| | | // label: '付款方式', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "付款方式不能为空", trigger: "change" |
| | | // } |
| | | // ], |
| | | // }, |
| | | paymentCycle: { |
| | | label: '付款周期', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | paidAmount: { |
| | | label: '已付款项', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | unpaidAmount: { |
| | | label: '未付款项', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | invoiceStatus: { |
| | | label: '发票状态', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/invoice_status', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | billingCycle:{ |
| | | label: '账期周期',labelWidth: 80, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "发票状态不能为空", trigger: "change" |
| | | // message: "周期类型不能为空", trigger: "change" |
| | | // } |
| | | // ], |
| | | }, |
| | | reconciliation:{ |
| | | label: '对账账期', span:24, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "对账账期不能为空", trigger: "change" |
| | | // } |
| | | // ], |
| | | } |
| | | } |
| | | }, |
| | | { |
| | |
| | | selectionList.value = selection; |
| | | }, |
| | | }) |
| | | console.log(router.currentRoute.value.query.contactStatus) |
| | | |
| | | const reconciliationDayChange = ({value}:any)=>{ |
| | | const reconciliationDay = Number(value) || 0; |
| | | const paymentDay = Number(form.value.paymentDay) || 0; |
| | | const previousTotal = Number(form.value.paymentDay) || 0; |
| | | form.value.totalAccountDay = reconciliationDay + paymentDay + previousTotal; |
| | | } |
| | | const invoiceDayChange = ({value}:any)=>{ |
| | | const reconciliationDay = Number(form.value.reconciliationDay) || 0; |
| | | const paymentDay = Number(value) || 0; |
| | | const previousTotal = Number(form.value.paymentDay) || 0; |
| | | form.value.totalAccountDay = reconciliationDay + paymentDay + previousTotal; |
| | | } |
| | | const paymentDayChange = ({value}:any)=>{ |
| | | const reconciliationDay = Number(form.value.reconciliationDay) || 0; |
| | | const paymentDay = Number(form.value.invoiceDay) || 0; |
| | | const previousTotal = Number(value) || 0; |
| | | form.value.totalAccountDay = reconciliationDay + paymentDay + previousTotal; |
| | | } |
| | | |
| | | </script> |