进销存升级app:
1.App手动新增销售台账时,客户合同号输入框去掉
2.开票台账无法进行编辑删除操作
3.APP手动开票时,提示提交失败,请重试
| | |
| | | <up-button type="primary" |
| | | size="small" |
| | | class="action-btn" |
| | | :disabled="item.invoicePerson !== userStore.nickName" |
| | | @click="openEdit(item)"> |
| | | 编辑 |
| | | </up-button> |
| | |
| | | size="small" |
| | | plain |
| | | class="action-btn" |
| | | :disabled="item.invoicePerson !== userStore.nickName" |
| | | @click="handleDelete(item)"> |
| | | 删除 |
| | | </up-button> |
| | |
| | | return |
| | | } |
| | | |
| | | const submitData = { |
| | | // 后端要求以数组形式提交:保持原来的对象结构不变,只在最外层包一层数组 |
| | | const submitData = [ |
| | | { |
| | | ...form.value, |
| | | productList: productData.value |
| | | } |
| | | ] |
| | | |
| | | await invoiceRegistrationSave(submitData) |
| | | showToast('提交成功') |
| | |
| | | @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" |
| | | required> |
| | |
| | | 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 || ""; |
| | |
| | | <text class="detail-value">{{ item.customerName }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">客户合同号</text> |
| | | <text class="detail-value">{{ item.customerContractNo }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">业务员</text> |
| | | <text class="detail-value">{{ item.salesman }}</text> |
| | | </view> |
| | |
| | | <text class="info-value">{{ form.salesContractNo }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">客户合同号</text> |
| | | <text class="info-value highlight">{{ form.customerContractNo }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">客户名称</text> |
| | | <text class="info-value">{{ form.customerName }}</text> |
| | | </view> |
| | |
| | | const form = ref({ |
| | | id: "", |
| | | salesContractNo: "", |
| | | customerContractNo: "", |
| | | customerId: "", |
| | | customerName: "", |
| | | projectName: "", |