Commit ba1812f9 by chenwq

联调

1 parent f721cce7
......@@ -155,3 +155,57 @@ export function getJdDetailPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.page'
return request(data)
}
// 金蝶-客户分页查询
export function getJdCustPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.cust.page'
return request(data)
}
// 金蝶-发票类型分页列表查询
export function getJdInvoiceTypePage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.invoice.type.page'
return request(data)
}
// 金蝶-组织分页查询
export function getJdOrgPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.org.page'
return request(data)
}
// 金蝶-供应商分页列表查询
export function getJdSupplierPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.supplier.page'
return request(data)
}
// 金蝶-物料分页查询
export function getJdMaterialPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.material.page'
return request(data)
}
// 金蝶-业务类型分页列表查询
export function getJdBusinessPage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.business.type.page'
return request(data)
}
// 金蝶-税率分页查询
export function getJdTaxratePage(data) {
data.method = 'dj.smartcarlife.api.jdbill.kingdee.taxrate.page'
return request(data)
}
// 应收应付单-明细更新
export function updateJdDetail(data) {
data.method = 'dj.smartcarlife.api.jdbill.detail.update'
return request(data, 'post')
}
// 日志列表查询
export function getJdBillLog(data) {
data.method = 'dj.smartcarlife.api.jdbill.log'
return request(data, 'post')
}
......@@ -50,7 +50,7 @@
<auth-button :data="scope.scope" :show-btn-ids="['9051107']" />
</span>
<!-- 生成应收单 -->
<span style="margin-right: 10px;" v-if="(!scope.scope.receivableBillIds) && scope.scope.reconciliationBillStatus == '3'">
<span style="margin-right: 10px;" v-if="(!scope.scope.receivableBillIds) && scope.scope.reconciliationBillStatus == '3' && scope.scope.billType == '1'">
<auth-button :data="scope.scope" :show-btn-ids="['9051108']" />
</span>
<!-- 生成应付单 -->
......@@ -58,7 +58,7 @@
<auth-button :data="scope.scope" :show-btn-ids="['9051109']" />
</span>
<!-- 查看应收单 -->
<span style="margin-right: 10px;" v-if="scope.scope.receivableBillIds && scope.scope.reconciliationBillStatus == '3'">
<span style="margin-right: 10px;" v-if="scope.scope.receivableBillIds && scope.scope.reconciliationBillStatus == '3' && scope.scope.billType == '1'">
<auth-button :data="scope.scope" :show-btn-ids="['9051110']" />
</span>
<!-- 查看应付单 -->
......
<template>
<d2-dialog :title="title" :is-visible="addVisible" class="add-detail-dialog" width="500px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="180px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
</glsx-combi-form>
</d2-dialog>
</template>
<script>
import * as api from '@api/accountManage'
import { deepClone } from '@/common/util'
export default {
name: 'AddDetailDialog',
data() {
return {
title: '新增应收明细',
isBlock: true,
editChildRef: 'editChildRef',
formRules: {
},
editData: {
},
editFormData: [],
receiveEditFormData: [
{
label: "客户",
name: "customerCode",
labelName: "customerName",
placeholder: "请选择流量方/园区店",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'customerOpt',
isHide: false,
// 用于判断该字段出现与否;流量方对账单,才会出现此字段
billType: 'receive'
},
{
label: "供应商",
name: "supplierId",
labelName: "supplierIdName",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'customerOpt',
isHide: false,
billType: 'pay'
},
{
label: "结算组织",
name: "settlementOrgCode",
labelName: "settlementOrg",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'settlementOrgOpt'
},
{
label: "收款组织",
name: "rcvOrgCode",
labelName: "rcvOrgName",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'rcvOrgOpt',
isHide: false,
billType: 'receive'
},
{
label: "付款组织",
name: "rcvOrgCode",
labelName: "rcvOrgName",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'rcvOrgOpt',
isHide: false,
billType: 'pay'
},
// {
// label: "发票类型",
// name: "",
// labelName: "",
// type: "select",
// optionList: [],
// optionId: 'number',
// optionLabel: 'name',
// optionsName: '',
// isHide: false,
// billType: 'pay'
// },
{
label: "物料名称",
name: "materialCode",
labelName: "materialCodeName",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'materialOpt'
},
{
label: "含税单价",
name: "taxUnitPrice",
type: "input"
},
{
label: "计价数量",
name: "pricingNumber",
type: "input"
},
{
label: "税率",
name: "taxRate",
labelName: "taxRateName",
type: "select",
optionList: [],
optionId: 'taxRate',
optionLabel: 'taxRate',
optionsName: 'taxRateOpt'
}, {
label: "业务类型",
name: "businessTypeCode",
labelName: "businessTypeName",
type: "select",
optionList: [],
optionId: 'number',
optionLabel: 'name',
optionsName: 'businessTypeOpt'
},
{
label: "4S门店",
name: "shopMerchantName",
type: "input"
}
],
baseData: {
customerOpt: [],
settlementOrgOpt: [],
rcvOrgOpt: [],
materialOpt: [],
taxRateOpt: [],
businessTypeOpt: []
},
apiList: [{
api: 'getJdCustPage',
nameList: ['customerCode'],
// 用于判断该字段出现与否;流量方对账单,才会出现此字段
billType: 'receive'
}, {
api: 'getJdOrgPage',
nameList: ['settlementOrgCode', 'rcvOrgCode']
}, {
api: 'getJdSupplierPage',
nameList: ['supplierId'],
billType: 'pay'
},
{
api: 'getJdMaterialPage',
nameList: ['materialCode']
}, {
api: 'getJdTaxratePage',
nameList: ['taxRate']
}, {
api: 'getJdBusinessPage',
nameList: ['businessTypeCode']
}]
}
},
props: {
addVisible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => ({})
}
},
mounted() {
console.log(api, 'api---')
this.title = this.info.billTypeStr === 'receive' ? '新增应收明细' : '新增应付明细'
this.editFormData = this.info.billTypeStr === 'receive' ? deepClone(this.receiveEditFormData) : []
console.log(this.editFormData, 'this.editFormData---')
this.dealAttrHideShow()
this.dealOpts()
},
methods: {
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
} else {
this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName]))
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
const temp = {}
temp[this[formName][index].optionId] = ''
temp[this[formName][index].optionLabel] = '全部'
this[formName][index].optionList.unshift(temp)
}
}
})
}
},
findIdx(name) {
return this.editFormData.findIndex(item => item.name == name)
},
dealAttrHideShow() {
this.editFormData.forEach(item => {
if (item.billType && item.billType !== this.info.billTypeStr) {
item.isHide = true
} else {
item.isHide = false
}
})
},
dealOpts() {
for (let i = 0; i < this.apiList.length; i++) {
const item = this.apiList[i]
// if (item.billType && item.billType !== this.info.billTypeStr) {
// break
// }
const params = {
currentPage: 1,
pageSize: 999
}
api[item.api](params).then(res => {
console.log(res, 'res---')
item.nameList.forEach(subItem => {
const idx = this.findIdx(subItem)
const formItem = this.editFormData[idx]
this.baseData[formItem.optionsName] = res.list
this.getOptionsList('editFormData', false, subItem)
})
})
}
},
handleConfirm() {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
var params = deepClone(this.editData)
params.id = this.info.id
console.log(params, 'params---')
this.loading = true
api.updateJdDetail(params).then(() => {
this.$message.success("操作成功")
this.$emit('handleConfirm')
}).finally(() => {
this.loading = false
})
}
})
},
handleClose() {
this.$emit('dialogClose')
}
}
}
</script>
<style>
.add-detail-dialog .el-dialog {
min-width: 700px;
}
</style>
<template>
<d2-dialog title="应付转账" :is-visible="editTransferVisible" class="privacyDailog" width="800px" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="250px" default-width="314px" :isBlock="isBlock" :form-ref="editChildRef" :form-obj="editData" :form-data="editFormData" :form-rules="formRules">
<template slot="fileHtml" slot-scope="scope">
<el-upload action="" accept=".xlsx,.xls" class="upload-file" drag :show-file-list="false" :file-list="uploadFileList" :limit="5" :auto-upload="false" :on-remove="importFileChange" :on-change="
(file, fileList) => handleFileChange(file, fileList, scope.scope)
" :on-exceed="hanldeOnExceed" multiple>
<i class="el-icon-upload"></i>
<div class="el-upload__text">点击或将文件拖拽到此区域上传</div>
<div class="item-tips text-tips">
支持格式:.xlsx .xls,单个文件不能超过10M
</div>
<div class="item-tips">最多上传5个文件</div>
</el-upload>
<!-- 文件列表区域 -->
<div class="file-box">
<div v-for="(subItem, subIndex) in editData.fileUrlList" :key="subIndex">
<div class="file-item" v-if="
!filterEmpty(subItem.uploadProgress) || subItem.fileUrl
">
<div class="file-content" @click="handleFileView(subItem)">
<el-progress define-back-color="#F5F7FA" :text-inside="true" text-color="#333333" :show-text="false" :stroke-width="26" stroke-linecap="butt" :percentage="subItem.uploadProgress"></el-progress>
<div class="file-name">{{ subItem.fileName }}</div>
</div>
<i v-if="!subItem.fileUrl" class="el-icon-close del-icon" @click="doCancel(scope.scope, subIndex)"></i>
<i v-if="subItem.fileUrl" class="el-icon-delete" @click="handleFileDelete(scope.scope, subIndex)"></i>
</div>
</div>
</div>
</template>
</glsx-combi-form>
<div>* 说明:发起应付转账后,请到企微“SaaS+商务付款”流程中查看审批状态。</div>
</d2-dialog>
......@@ -9,6 +36,8 @@
<script>
import { editBillTransferOut } from '@api/accountManage'
import { deepClone } from '@/common/util'
import GlOssApi from "glsk-oss-jssdk"
import { baseConfig } from "@/main"
export default {
name: 'EditTransfer',
data() {
......@@ -43,7 +72,7 @@ export default {
{
label: "转账凭证",
name: "fileUrlList",
addHtml: "file"
addHtml: "fileHtml"
},
{
label: "备注",
......@@ -53,7 +82,10 @@ export default {
}
],
baseData: {
}
},
uploadFileList: [],
imgViewerVisible: false,
loading: false
}
},
......@@ -68,7 +100,23 @@ export default {
}
},
watch: {
"editData.fileUrlList": {
handler(newVal) {
if (newVal) {
this.uploadFileList = newVal.filter(
(v) => !this.filterEmpty(v.uploadProgress) || v.fileUrl
) // 文件列表
}
},
deep: true
},
},
mounted() {
this.GlOssApi = new GlOssApi({
baseConfig
})
this.editData = deepClone(this.info)
this.editData.fileUrlList = []
this.editFormData[this.findIdx('billMerchantName')].label = this.editData.billType == '1' ? '对账流量方' : '对账服务商'
......@@ -80,10 +128,13 @@ export default {
return this.editFormData.findIndex(item => item.name === attr)
},
handleConfirm() {
this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) {
editBillTransferOut(deepClone(this.editData)).then(() => {
const params = deepClone(this.editData)
params.fileUrlList = params.fileUrlList.map(item => item.fileUrl)
editBillTransferOut(params).then(() => {
this.$message.success("操作成功")
this.$emit('handleConfirm')
}).finally(() => {
......@@ -94,6 +145,133 @@ export default {
},
handleClose() {
this.$emit('dialogClose')
},
// 获取文件
importFileChange(file, fileList) {
this.uploadFileList = fileList
this.editData.fileUrlList = deepClone(fileList)
console.log(fileList, "fileList")
},
handleFileChange(file, fileList, targetItem) {
// setTimeout(() => {
// var reader = new FileReader()
var fileInfo = file.raw
const fileName = fileInfo.name
if (!fileInfo.name.includes(".xlsx") && !fileInfo.name.includes(".xls")) {
this.$message({
message: "文件格式不支持上传",
type: "error"
})
return false
}
// 默认10MB
const limitSize = 10
const isLt = fileInfo.size / 1024 / 1024 < limitSize
if (!isLt) {
this.$message({
message: "上传文件大小不能超过" + limitSize + "MB!",
type: "error"
})
this.uploadFileList = this.uploadFileList.filter((item) => {
return item.size / 1024 / 1024 < 10
})
return false
}
// reader.readAsDataURL(fileInfo)
// reader.onload = e => {
// // const _voucherList = this.editData.fileUrlList
// const _formData = this.editData
// _formData[targetItem.name].push({
// fileUrl: '',
// uploadProgress: 0,
// fileName: fileInfo.name?.substring(0, 128),
// fileSize: fileInfo.size,
// cancelAxios: {}
// })
// const index = _formData[targetItem.name].length - 1
// const fileData = e.target.result
// const base64 = fileInfo.name.split('.')[fileInfo.name.split('.').length - 1] + '@' + fileData.split(',')[1]
// const requestEvent = fileInfo.type == 'application/pdf' ? uploadPDF : uploadExcel
// requestEvent({
// file: base64,
// onProcess: (e) => { // 上传进度
// const { loaded, total } = e
// const uploadPrecent = ((loaded / total) * 100) | 0
// _formData[targetItem.name][index].uploadProgress = uploadPrecent
// },
// cancelFun: _formData[targetItem.name][index].cancelAxios // 取消上传
// }).then(res => {
// _formData[targetItem.name][index].fileUrl = res // 文件地址
// }).catch(() => {
// this.clearItem(targetItem, index) // 上传失败将内容清空 不删除数组 防止其它上传进度 找不到对应下标
// })
// console.log('_formData[targetItem.name]', _formData[targetItem.name])
// }
const _formData = this.editData
_formData[targetItem.name].push({
fileUrl: "",
uploadProgress: 0,
fileName: fileInfo.name?.substring(0, 128),
fileSize: fileInfo.size,
cancelAxios: {}
})
const index = _formData[targetItem.name].length - 1
const success = (res) => {
_formData[targetItem.name][index].fileUrl = res.aliyunAddress // 文件地址
}
const fail = (err) => {
this.clearItem(targetItem, index) // 上传失败将内容清空 不删除数组 防止其它上传进度 找不到对应下标
}
this.handleOssUpload(fileInfo, fileName, success, fail)
},
handleOssUpload(file, fileName, success, fail) {
const bucketName = "jinrong-huidan-test" // 桶名
const fileType = fileName.substr(fileName.lastIndexOf(".") + 1)
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType)
},
hanldeOnExceed(files, fileList) {
this.$message({
message: "最多可上传5个文件",
type: "error"
})
},
// 删除文件
handleFileDelete(targetItem, subIndex) {
// this.clearItem(targetItem, subIndex)
console.log(subIndex)
this.editData.fileUrlList.splice(subIndex, 1)
// this.editData.fileUrlList = []
},
// 预览文件
handleFileView(item) {
// if (!item.fileUrl) return
// if (item?.fileUrl.includes('.pdf')) { // pdf文件直接打开新窗口预览
// window.open(item.fileUrl)
// } else {
// this.imgViewerVisible = true
// this.imageFileArr.forEach((val, index) => {
// if (val == item.fileUrl) this.initialIndex = index
// })
// }
},
closeImgViewer() {
this.imgViewerVisible = false
},
// 取消上传
doCancel(targetItem, subIndex) {
const _formData = this.editData
const cancelUploadObj = _formData[targetItem.name][subIndex].cancelAxios
cancelUploadObj && cancelUploadObj.cancel && cancelUploadObj.cancel()
this.clearItem(targetItem, subIndex)
},
filterEmpty(data) {
return (data ?? "") === ""
},
// 清空上传文件数组项内容
clearItem(targetItem, subIndex) {
this.$set(this.editData[targetItem.name][subIndex], "fileUrl", "")
this.$set(this.editData[targetItem.name][subIndex], "uploadProgress", "")
}
}
}
......
......@@ -26,8 +26,13 @@
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-size="page.pageSize" :total="page.total" :page-sizes="[10, 20, 30, 40]" layout="sizes,total,->,prev,pager,next,jumper">
</el-pagination>
<DynamicAddTable ref="dynamicAdd" :adjustments="adjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<div>总金额:{{totalAmount}}元</div>
<DynamicAddTable v-if="billTypeStr == 'traffic'" ref="dynamicReceiveAdd" :configObj="{'title': '应收'}" :receivableAdjustments="receivableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<DynamicAddTable ref="dynamicAdd" :adjustments="payableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit"></DynamicAddTable>
<div class="total-box">
<div v-if="billTypeStr == 'traffic'">应收总额:{{ totalReceivable }}元</div>
<div>应付总额:{{ totalPayable }}元</div>
<div v-if="billTypeStr == 'traffic'">线下对账总额:{{ totalOfflineReconciliation }}元</div>
</div>
</d2-dialog>
</div>
</template>
......@@ -70,13 +75,14 @@ export default {
// 用户删除的ordercodelist
tableDeleteList: [],
validationErrors: {},
adjustments: [],
receivableAdjustments: [],
payableAdjustments: [],
multipleSelecList: [],
// 分页
page: {
pageNum: 1,
pageSize: 10,
total: 0,
total: 0
},
headObj: {},
batchForm: {},
......@@ -236,7 +242,9 @@ export default {
"coverReceiverType"
],
serviceEditList: ["partnerFeeCalculateType,partnerFeeCalculateValue", "partnerFeeCalculateCoefficient", "coverReceiverType"],
totalAmount: 0,
totalReceivable: 0,
totalPayable: 0,
totalOfflineReconciliation: 0,
changeFieldCodeList: [{
old: 'platformMerchantName',
new: 'platformMerchantId'
......@@ -358,11 +366,14 @@ export default {
this.originalOrderList = this.billTmplInfo?.orderPage?.list || []
this.orderId = this.billTmplInfo.id
this.sceneType = this.billTmplInfo.sceneType
this.totalAmount = this.billTmplInfo.totalAmount
this.totalReceivable = this.billTmplInfo.totalReceivable
this.totalPayable = this.billTmplInfo.totalPayable
this.totalOfflineReconciliation = this.billTmplInfo.totalOfflineReconciliation
this.page.pageNum = this.billTmplInfo?.orderPage?.pageNum || 1
this.page.pageSize = this.billTmplInfo?.orderPage?.pageSize || 10
this.page.total = this.billTmplInfo?.orderPage?.total || 0
this.adjustments = this.billTmplInfo?.adjustments || []
this.receivableAdjustments = this.billTmplInfo?.receivableAdjustments || []
this.payableAdjustments = this.billTmplInfo?.payableAdjustments || []
this.orderTotalStat = this.billTmplInfo.orderTotalStat
this.getPlatformMerchantList()
this.dealTable()
......@@ -538,14 +549,17 @@ export default {
id: this.orderId,
updatedOrders: [],
excludeBillOrderCodes: [],
adjustments: this.billTmplInfo.adjustments,
receivableAdjustments: this.billTmplInfo.receivableAdjustments,
payableAdjustments: this.$refs.dynamicAdd.dynamicForm.tableData,
orderCurrentPage: this.page.pageNum,
orderPageSize: this.page.pageSize
}
// console.log(dynamicForm, 'dynamicForm')
billComputePage({ json: JSON.stringify(dynamicForm) }).then(res => {
this.originalOrderList = res.orderPage?.list || []
this.totalAmount = res.totalAmount
this.totalReceivable = res.totalReceivable
this.totalPayable = res.totalPayable
this.totalOfflineReconciliation = res.totalOfflineReconciliation
this.orderTotalStat = res.orderTotalStat
this.page.pageNum = res.orderPage?.pageNum || 1
this.page.pageSize = res.orderPage?.pageSize || 10
......
export const receiveTableColumns = [
{
label: "*(单据头)业务日期",
prop: "businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label: "*(单据头)到期日",
prop: "expireDate"
},
{
label: "(单据头)客户#名称",
prop: "customerName",
labelName: "customerCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "customerOpt",
apiName: "getJdCustPage",
isMarkRed: true
},
{
label: "(单据头)币别#名称",
prop: "coinName"
},
{
label: "(单据头)结算组织#名称",
prop: "settlementOrg",
labelName: "settlementOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "settlementOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "(单据头)收款组织#名称",
prop: "rcvOrgName",
labelName: "rcvOrgCode",
addHtml: "edit",
editType: "select",
optionList: [],
optionId: "number",
optionLabel: "name",
optionsName: "rcvOrgOpt",
apiName: "getJdOrgPage",
isMarkRed: true
},
{
label: "*(表头财务)到期日计算日期",
prop: "expireDateCalDate"
},
{
label: "(表头财务)汇率类型#名称",
prop: "exchangeRateName",
editType: "select"
},
{
label: "(明细)物料编码#名称",
prop: "exchangeRateName",
labelName: "materialCode",
addHtml: "edit",
editType: "select"
},
{
label: "(明细)物料名称",
prop: "materialCodeName"
},
{
label: "(明细)计价单位#名称",
prop: "pricingUnitName"
},
{
label: "(明细)计价数量",
prop: "pricingNumber",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)价税合计本位币",
prop: "priceTaxTotal",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)含税单价",
prop: "taxUnitPrice"
},
{
label: "(明细)单价",
prop: "unitPrice"
},
{
label: "(明细)业务类型",
prop: "businessTypeName",
addHtml: "edit",
editType: "select"
},
{
label: "(明细)分摊期限",
prop: "allocationPeriod"
},
{
label: "(明细)税率(%)",
prop: "taxRate",
addHtml: "edit",
editType: "select"
},
{
label: "(明细)备注",
prop: "remark",
addHtml: "edit",
editType: "input"
},
{
label: "(明细)不含税金额",
prop: "priceWithoutTax"
},
{
label: "(明细)税额",
prop: "tax"
},
{
label: "(明细)4S门店",
prop: "shopMerchantName",
addHtml: "edit",
editType: "input"
}
]
export const payTableColumns = [
{
label: "*(单据头)业务日期",
prop: "businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label: "*(单据头)到期日",
prop: "expireDate"
},
{
label: "(单据头)供应商#名称",
prop: "supplierIdName"
},
{
label: "(单据头)币别#名称",
prop: "coinName"
},
{
label: "(单据头)结算组织#名称",
prop: "settlementOrg"
},
{
label: "(单据头)付款组织#名称",
prop: "rcvOrgName"
},
{
label: "*(单据头)发票类型",
prop: ""
},
{
label: "*(表头财务)到期日计算日期",
prop: "expireDateCalDate"
},
{
label: "(表头财务)汇率类型#名称",
prop: "exchangeRateName"
},
{
label: "(明细)物料编码#名称",
prop: "materialCode"
},
{
label: "(明细)物料名称",
prop: "materialCodeName"
},
{
label: "(明细)计价单位#名称",
prop: "pricingUnitName"
},
{
label: "(明细)计价数量",
prop: "pricingNumber"
},
{
label: "(明细)价税合计本位币",
prop: "priceTaxTotal"
},
{
label: "(明细)含税单价",
prop: "taxUnitPrice"
},
{
label: "(明细)单价",
prop: "unitPrice"
},
{
label: "(明细)业务类型",
prop: "businessTypeName"
},
{
label: "(明细)分摊期限",
prop: "allocationPeriod"
},
{
label: "(明细)税率(%)",
prop: "taxRate"
},
{
label: "(明细)备注",
prop: "remark"
},
{
label: "(明细)不含税金额",
prop: "priceWithoutTax"
},
{
label: "(明细)税额",
prop: "tax"
},
{
label: "(明细)4S门店",
prop: "shopMerchantName"
}
]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!