| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="销售合同号:" |
| | | prop="salesContractNo"> |
| | | <div style="display: flex; align-items: center; gap: 12px; width: 100%;"> |
| | | <el-checkbox v-model="form.autoGenerateContractNo" v-if="operationType === 'add'">自动生成</el-checkbox> |
| | | <el-input v-model="form.salesContractNo" |
| | | placeholder="自动生成" |
| | | :placeholder="form.autoGenerateContractNo ? '自动生成' : '请输入销售合同号'" |
| | | :disabled="form.autoGenerateContractNo && operationType === 'add'" |
| | | clearable |
| | | disabled /> |
| | | /> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | }, |
| | | form: { |
| | | salesContractNo: "", |
| | | autoGenerateContractNo: true, // 是否自动生成销售合同号 |
| | | salesman: "", |
| | | customerId: "", |
| | | entryPerson: "", |
| | |
| | | // 打开弹框 |
| | | const openForm = async (type, row) => { |
| | | operationType.value = type; |
| | | form.value = {}; |
| | | form.value.autoGenerateContractNo = true |
| | | productData.value = []; |
| | | selectedQuotation.value = null; |
| | | currentCustomerType.value = ""; |