|  |  | 
 |  |  |               </el-select> | 
 |  |  |             </el-form-item> | 
 |  |  |           </el-col> | 
 |  |  |           <el-col :span="12"> | 
 |  |  |             <el-form-item label="登记人:" prop="registrant"> | 
 |  |  |               <el-input | 
 |  |  |                 v-model="form.registrant" | 
 |  |  |                 placeholder="请输入" | 
 |  |  |                 clearable | 
 |  |  |                 disabled | 
 |  |  |               /> | 
 |  |  |             </el-form-item> | 
 |  |  |           </el-col> | 
 |  |  |                     <el-col :span="12"> | 
 |  |  |                         <el-form-item label="付款日期:" prop="paymentDate"> | 
 |  |  |                             <el-date-picker | 
 |  |  |                                 style="width: 100%" | 
 |  |  |                                 v-model="form.paymentDate" | 
 |  |  |                                 value-format="YYYY-MM-DD" | 
 |  |  |                                 format="YYYY-MM-DD" | 
 |  |  |                                 type="date" | 
 |  |  |                                 placeholder="请选择" | 
 |  |  |                                 clearable | 
 |  |  |                             /> | 
 |  |  |                         </el-form-item> | 
 |  |  |                     </el-col> | 
 |  |  |         </el-row> | 
 |  |  |         <el-row :gutter="30"> | 
 |  |  |           <el-col :span="12"> | 
 |  |  |             <el-form-item label="付款日期:" prop="paymentDate"> | 
 |  |  |               <el-date-picker | 
 |  |  |                 style="width: 100%" | 
 |  |  |                 v-model="form.paymentDate" | 
 |  |  |                 value-format="YYYY-MM-DD" | 
 |  |  |                 format="YYYY-MM-DD" | 
 |  |  |                 type="date" | 
 |  |  |                 placeholder="请选择" | 
 |  |  |                 clearable | 
 |  |  |               /> | 
 |  |  |             </el-form-item> | 
 |  |  |           </el-col> | 
 |  |  |                     <el-col :span="12"> | 
 |  |  |                         <el-form-item label="登记人:" prop="registrant"> | 
 |  |  |                             <el-input | 
 |  |  |                                 v-model="form.registrant" | 
 |  |  |                                 placeholder="请输入" | 
 |  |  |                                 clearable | 
 |  |  |                                 disabled | 
 |  |  |                             /> | 
 |  |  |                         </el-form-item> | 
 |  |  |                     </el-col> | 
 |  |  |           <el-col :span="12"> | 
 |  |  |             <el-form-item label="登记日期:" prop="registrationtDate"> | 
 |  |  |               <el-input | 
 
 |  |  | 
 |  |  | const isShowSummarySon = ref(true); | 
 |  |  | const tableColumn = ref([ | 
 |  |  |   { | 
 |  |  |     label: "采购合同号", | 
 |  |  |     prop: "purchaseContractNumber", | 
 |  |  |   }, | 
 |  |  |   { | 
 |  |  |     label: "付款日期", | 
 |  |  |     prop: "paymentDate", | 
 |  |  |   }, | 
 
 |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: "来票台账表单", | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | const temFutureTickets = ref(0) | 
 |  |  | const { form, resetForm } = useFormData({ | 
 |  |  |   id: undefined, | 
 |  |  |   purchaseContractNumber: undefined, // 采购合同号 | 
 |  |  | 
 |  |  |     form.ticketsAmount = data.ticketsAmount.toFixed(2); | 
 |  |  |     form.taxInclusiveUnitPrice = data.taxInclusiveUnitPrice; | 
 |  |  |     form.futureTickets = data.futureTickets; | 
 |  |  |     temFutureTickets.value = data.futureTickets; | 
 |  |  |   } | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | 
 |  |  |         proxy.$modal.msgWarning("含税单价不能为零或未定义"); | 
 |  |  |         return; | 
 |  |  |     } | 
 |  |  | 	 | 
 |  |  |     if (Number(form.ticketsNum) > Number(form.futureTickets)) { | 
 |  |  |     if (Number(form.ticketsNum) > Number(temFutureTickets.value)) { | 
 |  |  |         proxy.$modal.msgWarning("开票数不得大于未开票数"); | 
 |  |  |         form.ticketsNum = form.futureTickets | 
 |  |  |         return; | 
 |  |  |         form.ticketsNum = temFutureTickets.value | 
 |  |  |     } | 
 |  |  |      | 
 |  |  |     // 确保所有数值都转换为数字类型进行计算 | 
 |  |  |     const ticketsAmount = Number(val) * Number(form.taxInclusiveUnitPrice); | 
 |  |  |     const futureTickets = Number(form.futureTickets) - Number(val); | 
 |  |  |     const ticketsAmount = Number(form.ticketsNum) * Number(form.taxInclusiveUnitPrice); | 
 |  |  |     const futureTickets = Number(temFutureTickets.value) - Number(form.ticketsNum); | 
 |  |  |     form.futureTickets = Number(futureTickets.toFixed(2)); | 
 |  |  |     form.ticketsAmount = Number(ticketsAmount.toFixed(2)); | 
 |  |  | }; | 
 
 |  |  | 
 |  |  |       width: 240, | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |       label: "产品大类", | 
 |  |  |       prop: "productCategory", | 
 |  |  |       width: 150, | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |       label: "规格型号", | 
 |  |  |       prop: "specificationModel", | 
 |  |  |       width: 150, | 
 |  |  | 
 |  |  |       }, | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |       label: "开票日期", | 
 |  |  |       label: "本次来票数", | 
 |  |  |       prop: "ticketsNum", | 
 |  |  |       width: 110, | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |       label: "来票日期", | 
 |  |  |       prop: "createdAt", | 
 |  |  |       width: 110, | 
 |  |  |     }, | 
 |  |  |     { | 
 |  |  |       label: "开票金额", | 
 |  |  |       label: "来票金额(元)", | 
 |  |  |       prop: "ticketsAmount", | 
 |  |  |       width: 200, | 
 |  |  |       formatData: (cell) => { |