| | |
| | | placeholder="请选择" |
| | | clearable |
| | | > |
| | | <el-option label="电汇" value="电汇" /> |
| | | <el-option label="承兑" value="承兑" /> |
| | | <el-option |
| | | v-for="item in checkout_payment" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="规格型号" |
| | | label="尺寸" |
| | | prop="specificationModel" |
| | | show-overflow-tooltip |
| | | width="150" |
| | |
| | | <el-table-column label="付款方式" width="160"> |
| | | <template #default="{ row }"> |
| | | <el-select v-model="row.paymentMethod" placeholder="请选择" clearable> |
| | | <el-option label="电汇" value="电汇" /> |
| | | <el-option label="承兑" value="承兑" /> |
| | | <el-option |
| | | v-for="item in checkout_payment" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import { getCurrentDate } from "@/utils/index.js"; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const { checkout_payment } = proxy.useDict("checkout_payment"); |
| | | const tableColumn = ref([ |
| | | { |
| | | type: "expand", |
| | |
| | | showOverflowTooltip: true, |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | label: "尺寸", |
| | | prop: "specificationModel", |
| | | showOverflowTooltip: true, |
| | | width: 150 |
| | |
| | | return; |
| | | } |
| | | } |
| | | paymentRegistrationAdd(forms.value).then(() => { |
| | | const normalizePaymentMethodValue = (method) => { |
| | | const hit = checkout_payment.value.find((item) => item.value == method || item.label == method); |
| | | return hit ? hit.value : method; |
| | | }; |
| | | const submitRows = forms.value.map((item) => ({ |
| | | ...item, |
| | | paymentMethod: normalizePaymentMethodValue(item.paymentMethod), |
| | | })); |
| | | paymentRegistrationAdd(submitRows).then(() => { |
| | | proxy.$modal.msgSuccess("提交成功"); |
| | | closeDia(); |
| | | getList(); |