| | |
| | | getInfo() {
|
| | | return new Promise((resolve, reject) => {
|
| | | getInfo().then(res => {
|
| | | console.log('user',res)
|
| | | const user = res.user
|
| | | let avatar = user.avatar || ""
|
| | | if (!isHttp(avatar)) {
|
| | |
| | | this.id = user.userId
|
| | | this.name = user.userName
|
| | | this.avatar = avatar
|
| | | this.nickName = user.nickName
|
| | | resolve(res)
|
| | | }).catch(error => {
|
| | | reject(error)
|
| | |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="维护人:" prop="maintainer"> |
| | | <el-select v-model="form.maintainer" placeholder="请选择" clearable> |
| | | <el-select v-model="form.maintainer" placeholder="请选择" clearable disabled> |
| | | <el-option v-for="item in userList" :key="item.nickName" :label="item.nickName" :value="item.nickName"/> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="维护时间:" prop="maintenanceTime"> |
| | | <el-form-item label="维护时间:" prop="maintenanceTime" > |
| | | <el-date-picker |
| | | style="width: 100%" |
| | | v-model="form.maintenanceTime" |
| | |
| | | type="date" |
| | | placeholder="请选择" |
| | | clearable |
| | | disabled |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | import {addCustomer, delCustomer, getCustomer, listCustomer, updateCustomer} from "@/api/basicData/customerFile.js"; |
| | | import {ElMessageBox } from "element-plus"; |
| | | import {userListNoPage} from "@/api/system/user.js"; |
| | | import useUserStore from "@/store/modules/user" |
| | | const { proxy } = getCurrentInstance() |
| | | const userStore = useUserStore() |
| | | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: '客户名称', |
| | | prop: 'customerName', |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: '纳税人识别码', |
| | | prop: 'taxpayerIdentificationNumber' |
| | | prop: 'taxpayerIdentificationNumber', |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: '地址及联系方式', |
| | | prop: 'addressPhone' |
| | | prop: 'addressPhone', |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: '联系人', |
| | |
| | | const openForm = (type, row) => { |
| | | operationType.value = type |
| | | form.value = {} |
| | | form.value.maintainer = userStore.nickName |
| | | form.value.maintenanceTime = getCurrentDate(); |
| | | userListNoPage().then(res => { |
| | | userList.value = res.data |
| | | }) |
| | |
| | | proxy.$modal.msg("已取消") |
| | | }) |
| | | } |
| | | |
| | | // 获取当前日期并格式化为 YYYY-MM-DD |
| | | function getCurrentDate() { |
| | | const today = new Date(); |
| | | const year = today.getFullYear(); |
| | | const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从0开始 |
| | | const day = String(today.getDate()).padStart(2, '0'); |
| | | return `${year}-${month}-${day}`; |
| | | } |
| | | |
| | | getList() |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |
| | | </style> |
| | |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="维护人:" prop="maintainUserId"> |
| | | <el-select v-model="form.maintainUserId" placeholder="请选择" clearable> |
| | | <el-select v-model="form.maintainUserId" placeholder="请选择" clearable disabled> |
| | | <el-option v-for="item in userList" :key="item.nickName" :label="item.nickName" :value="item.userId"/> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | type="date" |
| | | placeholder="请选择" |
| | | clearable |
| | | disabled |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | import {ElMessageBox } from "element-plus"; |
| | | import {userListNoPage} from "@/api/system/user.js"; |
| | | import {addSupplier,getSupplier,listSupplier,updateSupplier} from "@/api/basicData/supplierManageFile.js"; |
| | | import useUserStore from "@/store/modules/user" |
| | | const { proxy } = getCurrentInstance() |
| | | const userStore = useUserStore() |
| | | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: '供应商名称', |
| | | prop: 'supplierName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | label: '公司地址', |
| | | prop: 'companyAddress' |
| | | prop: 'companyAddress', |
| | | width: 220, |
| | | }, |
| | | { |
| | | label: '联系方式', |
| | |
| | | const openForm = (type, row) => { |
| | | operationType.value = type |
| | | form.value = {} |
| | | form.value.maintainUserId = userStore.id |
| | | form.value.maintainTime = getCurrentDate(); |
| | | userListNoPage().then(res => { |
| | | userList.value = res.data |
| | | }) |
| | |
| | | proxy.$modal.msg("已取消") |
| | | }) |
| | | } |
| | | |
| | | // 获取当前日期并格式化为 YYYY-MM-DD |
| | | function getCurrentDate() { |
| | | const today = new Date(); |
| | | const year = today.getFullYear(); |
| | | const month = String(today.getMonth() + 1).padStart(2, '0'); // 月份从0开始 |
| | | const day = String(today.getDate()).padStart(2, '0'); |
| | | return `${year}-${month}-${day}`; |
| | | } |
| | | |
| | | getList() |
| | | </script> |
| | | |
| | |
| | | }; |
| | | // 上传前校检 |
| | | function handleBeforeUpload(file) { |
| | | console.log('file',file) |
| | | // 校检文件大小 |
| | | if (file.size > 1024 * 1024 * 10) { |
| | | proxy.$modal.msgError('上传文件大小不能超过10MB!') |
| | |
| | | // 表格选择数据 |
| | | const handleSelectionChange = (selection) => { |
| | | console.log('selection', selection) |
| | | selectedRows.value = selection.filter(item => item.children !== undefined); |
| | | selectedRows.value = selection.filter(item => item.salesContractNo !== undefined); |
| | | } |
| | | const expandedRowKeys = ref([]) |
| | | // 展开行 |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="本次回款金额:" prop="receiptPaymentAmount"> |
| | | <el-input type="number" v-model="form.receiptPaymentAmount" placeholder="请输入" :step="0.01" clearable/> |
| | | <el-input type="number" min="0" v-model="form.receiptPaymentAmount" placeholder="请输入" :step="0.01" clearable/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="登记人:" prop="registrant"> |
| | | <el-input v-model="form.registrant" placeholder="请输入" clearable/> |
| | | <el-input v-model="form.registrant" placeholder="请输入" clearable disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | bindInvoiceNoRegPage, |
| | | invoiceInfo |
| | | } from "../../../api/salesManagement/receiptPayment.js"; |
| | | import useUserStore from '@/store/modules/user' |
| | | const userStore = useUserStore() |
| | | const { proxy } = getCurrentInstance() |
| | | const tableData = ref([]) |
| | | const selectedRows = ref([]) |
| | |
| | | proxy.$modal.msgError("请选择一条数据") |
| | | return |
| | | } |
| | | // |
| | | console.log('(selectedRows.value',selectedRows.value) |
| | | if(selectedRows.value[0].noReceiptAmount === 0){ |
| | | proxy.$modal.msgError("待回款金额为0元") |
| | | return |
| | | } |
| | | invoiceInfo({id: selectedRows.value[0].id}).then(res => { |
| | | form.value = {...res.data} |
| | | form.value.invoiceLedgerId = form.value.id |
| | | form.value.id = '' |
| | | form.value.registrant = userStore.nickName |
| | | }) |
| | | dialogFormVisible.value = true |
| | | } |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="录入人:" prop="entryPerson"> |
| | | <el-select v-model="form.entryPerson" placeholder="请选择" clearable @change="changs"> |
| | | <el-select v-model="form.entryPerson" placeholder="请选择" clearable @change="changs" disabled> |
| | | <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId"/> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import { getToken } from "@/utils/auth" |
| | | import pagination from '@/components/PIMTable/Pagination.vue' |
| | | import { ref } from 'vue' |
| | | import {Search} from "@element-plus/icons-vue"; |
| | | import {ElMessageBox } from "element-plus"; |
| | | import useUserStore from '@/store/modules/user' |
| | | import {userListNoPage} from "@/api/system/user.js"; |
| | |
| | | customerList().then(res => { |
| | | customerOption.value = res |
| | | }) |
| | | form.value.entryPerson = userStore.id |
| | | if (type === 'edit') { |
| | | currentId.value = row.id; |
| | | getSalesLedgerWithProducts({id: row.id, type: 1}).then(res => { |