| | |
| | | placeholder="点击选择业务员" /> |
| | | <template #right> |
| | | <up-icon name="arrow-right" |
| | | @click="showPicker = true"></up-icon> |
| | | @click=" showPicker = true"></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | <up-form-item label="客户合同号" |
| | | prop="customerContractNo" |
| | | required> |
| | | <up-input v-model="form.customerContractNo" |
| | | placeholder="请输入客户合同号" /> |
| | | </up-form-item> |
| | | <up-form-item label="客户名称" |
| | | prop="customerName" |
| | |
| | | @click="openCategoryPicker(idx)" /> |
| | | <template #right> |
| | | <up-icon name="arrow-right" |
| | | @click="showCategoryPicker = true"></up-icon> |
| | | @click="openCategoryPicker(idx)"></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | <!-- 规格型号 --> |
| | |
| | | @click="openSpecificationPicker(idx)" /> |
| | | <template #right> |
| | | <up-icon name="arrow-right" |
| | | @click="showSpecificationPicker = true"></up-icon> |
| | | @click="openSpecificationPicker(idx)"></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | <!-- 绑定机器 --> |
| | |
| | | @click="openTaxRatePicker(idx)" /> |
| | | <template #right> |
| | | <up-icon name="arrow-right" |
| | | @click="showTaxRatePicker = true"></up-icon> |
| | | @click="openTaxRatePicker(idx)"></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | <!-- 含税单价 --> |
| | |
| | | @click="openInvoiceTypePicker(idx)" /> |
| | | <template #right> |
| | | <up-icon name="arrow-right" |
| | | @click="showInvoiceTypePicker = true"></up-icon> |
| | | @click="openInvoiceTypePicker(idx)"></up-icon> |
| | | </template> |
| | | </up-form-item> |
| | | </view> |
| | |
| | | const form = ref({ |
| | | id: "", |
| | | salesContractNo: "", |
| | | customerContractNo: "", |
| | | customerId: "", |
| | | customerName: "", |
| | | projectName: "", |
| | |
| | | // 表单校验规则 |
| | | const rules = { |
| | | salesman: [{ required: true, message: "请选择业务员", trigger: "change" }], |
| | | customerContractNo: [ |
| | | { required: true, message: "请输入客户合同号", trigger: "blur" }, |
| | | ], |
| | | customerName: [ |
| | | { required: true, message: "请选择客户名称", trigger: "change" }, |
| | | ], |
| | |
| | | console.log(editData.value); |
| | | // 填充基本信息 |
| | | form.value.salesContractNo = editData.value.salesContractNo || ""; |
| | | form.value.customerContractNo = editData.value.customerContractNo || ""; |
| | | form.value.customerName = editData.value.customerName || ""; |
| | | form.value.projectName = editData.value.projectName || ""; |
| | | form.value.executionDate = editData.value.executionDate || ""; |