| | |
| | | <template #qtyRequired="{ row }"> |
| | | {{ row.qtyRequired || '-' }}<span style="color:rgba(12, 46, 40, 0.76)"> {{ row.unit || '方' }}</span> |
| | | </template> |
| | | <template #salesContractNo="{ row }"> |
| | | <el-button type="primary" |
| | | text |
| | | link |
| | | @click="showDetail(row)">{{ row.salesContractNo }} |
| | | </el-button> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | | <!-- 合并下发弹窗 --> |
| | |
| | | return params == "销售" ? "销售" : "内部"; |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | label: "产品名称", |
| | | prop: "productName", |
| | |
| | | width: "160px", |
| | | className: "date-cell", |
| | | formatData: cell => (cell ? dayjs(cell).format("YYYY-MM-DD") : ""), |
| | | }, |
| | | { |
| | | label: "销售合同号", |
| | | prop: "salesContractNo", |
| | | width: "200px", |
| | | dataType: "slot", |
| | | slot: "salesContractNo", |
| | | }, |
| | | { |
| | | label: "客户名称", |
| | | prop: "customerName", |
| | | width: "150px", |
| | | }, |
| | | { |
| | | label: "项目名称", |
| | | prop: "projectName", |
| | | width: "150px", |
| | | }, |
| | | { |
| | | label: "备注", |
| | |
| | | // 打开弹窗 |
| | | isShowNewModal.value = true; |
| | | }; |
| | | const showDetail = row => { |
| | | router.push({ |
| | | path: "/salesManagement/salesLedger", |
| | | query: { |
| | | salesContractNo: row.salesContractNo, |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | // 处理合并下发提交 |
| | | const handleMergeSubmit = () => { |
| | |
| | | import useFormData from "@/hooks/useFormData.js"; |
| | | import dayjs from "dayjs"; |
| | | import { getCurrentDate } from "@/utils/index.js"; |
| | | import { useRouter, useRoute } from "vue-router"; |
| | | import { listCustomerPrivatePool } from "@/api/basicData/customerFile.js"; |
| | | |
| | | const router = useRouter(); |
| | | const route = useRoute(); |
| | | const userStore = useUserStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const tableData = ref([]); |
| | |
| | | <div class="info-row"> |
| | | <span class="label">单号:</span> |
| | | <span class="value">${ |
| | | item.salesContractNo || "" |
| | | item.salesContractNo || |
| | | "" |
| | | }</span> |
| | | </div> |
| | | </div> |
| | |
| | | <tbody> |
| | | ${ |
| | | item.products && |
| | | item.products.length > 0 |
| | | item.products |
| | | .length > 0 |
| | | ? item.products |
| | | .map( |
| | | product => ` |
| | |
| | | "" |
| | | }</td> |
| | | <td>${ |
| | | product.unit || "" |
| | | product.unit || |
| | | "" |
| | | }</td> |
| | | <td>${ |
| | | product.taxInclusiveUnitPrice || |
| | |
| | | currentFactoryName.value = res.user.currentFactoryName; |
| | | }; |
| | | onMounted(() => { |
| | | searchForm.salesContractNo = route.query.salesContractNo; |
| | | getList(); |
| | | userListNoPage().then(res => { |
| | | userList.value = res.data; |