Browse Source
# Conflicts: # anrui-scm/anrui-scm-biz/src/main/java/com/yxt/anrui/scm/biz/scmcollectionrebatecheckapply/ScmCollectionrebateCheckapplyService.javamaster

52 changed files with 4315 additions and 1312 deletions
@ -0,0 +1,142 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="tab-header webtop"> |
|||
<div>上装配置信息</div> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="listconadd"> |
|||
<el-form ref="dataForm" :model="formobj" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>车辆功能</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.vehicleTypeValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>上装名称</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.installNameValue }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>委改方式</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refitMethodValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>供应商</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refitFactory }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row v-if="formobj.installNameKey == '08'"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷机品牌</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.coolerBrand }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷机型号</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.coolerModel }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-if="formobj.installNameKey != '08'"> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div> |
|||
<el-form-item> |
|||
<div class="addinputInfo addinputwOne"> |
|||
长<span class="inputStyle">{{ formobj.wk_long }}</span>mm, |
|||
宽<span class="inputStyle">{{ formobj.wk_wide }}</span>mm, |
|||
高<span class="inputStyle">{{ formobj.wk_high }}</span>mm |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>颜色</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.colorValue }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>板材材质</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.plateMaterialValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>板材厚度</span></div> |
|||
<el-form-item> |
|||
<div class="addinputInfo addinputwOne"> |
|||
底<span class="inputStyle">{{ formobj.plateThicknessBottom }}</span>mm, |
|||
边<span class="inputStyle">{{ formobj.plateThicknessEdge }}</span>mm |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>篷布滑道</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.tarpaulinSlide }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷藏冷机</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refrigerator }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>自卸液压盖板</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.selfUnHyCoPl }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>底板加热</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.floorHeating }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty spanOneWidth"><span>更多配置</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.moreConfig }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { fetchBySidByTops } from '@/api/jichuxinxi/dictcommons' |
|||
|
|||
export default { |
|||
name: 'ShangZhuangInfo', |
|||
data() { |
|||
return { |
|||
formobj: {} |
|||
} |
|||
}, |
|||
methods: { |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
showInfo(row) { |
|||
fetchBySidByTops(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
console.log('这里是详情回显', row) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.spanOneWidth { |
|||
width: 110px !important; |
|||
} |
|||
.addinputwOne { |
|||
margin-left: 110px !important; |
|||
} |
|||
.inputStyle { |
|||
display: inline-block; |
|||
margin: 0 5px; |
|||
} |
|||
</style> |
@ -0,0 +1,397 @@ |
|||
<temp<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<div class="tab-header webtop"> |
|||
<div>{{ viewTitle }}</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="saveOrUpdate()">保存</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="listconadd"> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>款项名称</div> |
|||
<el-form-item prop="costTitleValue"> |
|||
<el-select class="addinputInfo" v-model="formobj.costTitleValue" placeholder="请选择" @change="costTitleChange" clearable filterable> |
|||
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>付款方式</div> |
|||
<el-form-item prop="paymentType"> |
|||
<el-select class="addinputInfo" v-model="formobj.paymentType" placeholder="请选择" @change="paymentChange" clearable filterable> |
|||
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>收款单位名称</div> |
|||
<el-form-item prop="receiveCompany"> |
|||
<el-select class="addinputInfo" v-model="formobj.receiveCompany" placeholder="请选择" @change="receiveCompanyChange" clearable filterable> |
|||
<el-option v-for="item in receiveCompany_list" :key="item.sid" :label="item.companyName" :value="item.companyName"></el-option> |
|||
</el-select> |
|||
<el-button style="margin-left: 10px" type="primary" size="mini" @click="receiveCompanyAdd">添加</el-button> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receivingAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.bank }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>付款金额</div> |
|||
<el-form-item prop="payAccount"><el-input class="addinputInfo addinputw" @keyup.native="formobj.payAccount = getNumber(formobj.payAccount, 2)" v-model="formobj.payAccount" clearable placeholder="" /></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款备注</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="formobj.remarks" clearable placeholder="" /></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>后期是否有平仓付款</div> |
|||
<el-form-item prop="isPay"> |
|||
<el-radio-group class="addinputInfo" v-model="formobj.isPay"> |
|||
<el-radio label="1">是</el-radio> |
|||
<el-radio label="0">否</el-radio> |
|||
</el-radio-group> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-show="formobj.isPay == '1'"> |
|||
<div class="title titleOne"> |
|||
<div>平仓信息</div> |
|||
<el-button type="primary" size="mini" class="btntopblueline" @click="toAdd">添加</el-button> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.finPaymentapplyDetailsBelowEveList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center" /> |
|||
<el-table-column fixed label="操作" width="100" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button size="mini" type="danger" @click="toDelete(scope.$index)">删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="costTitleValue" label="平仓款名称" align="center" /> |
|||
<el-table-column label="期数" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input @keyup.native="scope.row.period = getNumber(scope.row.period, 2)" v-model="scope.row.period" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="平仓付款日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-date-picker v-model="scope.row.exePayDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="平仓付款金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input @keyup.native="scope.row.exePayPrice = getNumber(scope.row.exePayPrice, 2)" v-model="scope.row.exePayPrice" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.remarks" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<el-dialog :visible.sync="dialogVisible" width="50%" :show-close="false"> |
|||
<el-form ref="temp_obj" :model="temp" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">单位编码</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.companyCode" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">单位名称</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.companyName" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.bank" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.receivingAccount" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">业务类型</div> |
|||
<el-form-item> |
|||
<el-select class="addinputInfo" v-model="temp.businessTypeValue" placeholder="请选择" @change="businessTypeChange" clearable filterable> |
|||
<el-option v-for="item in businessType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.remarks" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
<div style="text-align: center;padding-top: 5px"> |
|||
<el-button size="small" type="primary" @click="handleSave">保存</el-button> |
|||
<el-button size="small" @click="handleClose">关闭</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/anruifinmanagement/payment' |
|||
import { typeValues } from '@/api/jichuxinxi/dictcommons' |
|||
|
|||
export default { |
|||
name: 'PaymentInformationAdd', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
tableKey: 0, |
|||
index: 0, |
|||
costTitle_list: [], |
|||
payment_list: [], |
|||
receiveCompany_list: [], |
|||
businessType_list: [], |
|||
liquidationPayment: '', // 平仓款名称 |
|||
formobj: { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
}, |
|||
dialogVisible: false, |
|||
temp: { |
|||
companyCode: '', // 单位编码 |
|||
companyName: '', // 单位名称 |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
businessTypeKey: '', // 业务类型key |
|||
businessTypeValue: '', // 业务类型value |
|||
remarks: '', // 备注 |
|||
useOrgSid: '', // 分公司sid |
|||
useOrgName: '' |
|||
}, |
|||
rules: { |
|||
costTitleValue: [{ required: true, message: '款项名称不能为空', trigger: 'change' }], |
|||
paymentType: [{ required: true, message: '付款方式不能为空', trigger: 'change' }], |
|||
receiveCompany: [{ required: true, message: '收款单位名称不能为空', trigger: 'change' }], |
|||
payAccount: [{ required: true, message: '付款金额不能为空', trigger: 'blur' }], |
|||
isPay: [{ required: true, message: '后期是否有平仓付款不能为空', trigger: 'change' }] |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
typeValues({ type: 'payCostTitle' }).then((res) => { |
|||
if (res.success) { |
|||
this.costTitle_list = res.data |
|||
} |
|||
}) |
|||
typeValues({ type: 'paymentType' }).then((res) => { |
|||
if (res.success) { |
|||
this.payment_list = res.data |
|||
} |
|||
}) |
|||
typeValues({ type: 'cw_businessType' }).then((res) => { |
|||
if (res.success) { |
|||
this.businessType_list = res.data |
|||
} |
|||
}) |
|||
}, |
|||
showAdd(useOrgSid, liquidationPayment) { |
|||
this.viewTitle = '【新增】付款信息' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.init() |
|||
this.liquidationPayment = liquidationPayment |
|||
this.temp.useOrgSid = useOrgSid |
|||
this.selectByUseOrgSid(useOrgSid) |
|||
}, |
|||
selectByUseOrgSid(value) { |
|||
req.selectByUseOrgSid({ useOrgSid: value }).then((res) => { |
|||
if (res.success) { |
|||
this.receiveCompany_list = res.data |
|||
} |
|||
}) |
|||
}, |
|||
getNumber(val, limit) { |
|||
val = val.replace(/[^0-9.]/g, '') // 保留数字 |
|||
val = val.replace(/^00/, '0.') // 开头不能有两个0 |
|||
val = val.replace(/^\./g, '0.') // 开头为小数点转换为0. |
|||
val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个 |
|||
val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点 |
|||
/^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0 |
|||
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$' |
|||
const reg = new RegExp(str) |
|||
if (limit === 0) { |
|||
// 不需要小数点 |
|||
val = val.replace(reg, '$1') |
|||
} else { |
|||
// 通过正则保留小数点后指定的位数 |
|||
val = val.replace(reg, '$1.$2') |
|||
} |
|||
return val |
|||
}, |
|||
costTitleChange(value) { |
|||
const choose = this.costTitle_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.costTitleKey = choose[0].dictKey |
|||
} else { |
|||
this.formobj.costTitleKey = '' |
|||
} |
|||
}, |
|||
paymentChange(value) { |
|||
const choose = this.payment_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.paymentTypeKey = choose[0].dictKey |
|||
} else { |
|||
this.formobj.paymentTypeKey = '' |
|||
} |
|||
}, |
|||
receiveCompanyChange(value) { |
|||
const choose = this.receiveCompany_list.filter((item) => item.companyName === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.receiveCompanySid = choose[0].sid |
|||
this.formobj.receivingAccount = choose[0].companyName |
|||
this.formobj.bank = choose[0].bank |
|||
} else { |
|||
this.formobj.receiveCompanySid = '' |
|||
this.formobj.receivingAccount = '' |
|||
this.formobj.bank = '' |
|||
} |
|||
}, |
|||
receiveCompanyAdd() { |
|||
this.dialogVisible = true |
|||
}, |
|||
handleSave() { |
|||
req.paymentSave(this.temp).then((res) => { |
|||
if (res.success) { |
|||
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|||
this.selectByUseOrgSid(this.temp.useOrgSid) |
|||
this.handleClose() |
|||
} |
|||
}) |
|||
}, |
|||
handleClose() { |
|||
this.dialogVisible = false |
|||
this.temp.companyCode = '' // 单位编码 |
|||
this.temp.companyName = '' // 单位名称 |
|||
this.temp.bank = '' // 开户行 |
|||
this.temp.receivingAccount = '' // 收款银行账号 |
|||
this.temp.businessTypeKey = '' // 业务类型key |
|||
this.temp.businessTypeValue = '' // 业务类型value |
|||
this.temp.remarks = '' // 备注 |
|||
}, |
|||
toAdd() { |
|||
this.formobj.finPaymentapplyDetailsBelowEveList.push({ |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: this.liquidationPayment, // 款项名称 |
|||
detailSid: '', // 付款申请明细的明细sid |
|||
openDate: '', // 融资付款开通日期 |
|||
period: '', // 期数 |
|||
payCompanySid: '', // 付款单位sid |
|||
payCompany: '', // 付款单位名称 |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
receivingAccount: '', // 收款银行账号 |
|||
actualPay: '', // 厂家销售通路 |
|||
bank: '', // 开户行 |
|||
exePayDate: '', // 平仓付款日期 |
|||
exePayPrice: '', // 平仓付款金额 |
|||
remarks: '' |
|||
}) |
|||
}, |
|||
toDelete(index) { |
|||
this.formobj.finPaymentapplyDetailsBelowEveList.splice(index, 1) |
|||
}, |
|||
businessTypeChange(value) { |
|||
const choose = this.businessType_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.temp.businessTypeKey = choose[0].dictKey |
|||
} else { |
|||
this.temp.businessTypeKey = '' |
|||
} |
|||
}, |
|||
saveOrUpdate() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
this.$emit('backInformation', this.formobj) |
|||
this.handleReturn() |
|||
} |
|||
}) |
|||
}, |
|||
handleReturn() { |
|||
this.formobj = { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
} |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.span-sty { |
|||
width: 150px !important; |
|||
} |
|||
.addinputInfo { |
|||
margin-left: 140px !important; |
|||
} |
|||
/deep/ .el-form-item__error { |
|||
margin-left: 140px !important; |
|||
} |
|||
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|||
margin-left: 140px !important; |
|||
width: calc(100% - 135px); |
|||
} |
|||
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
|||
display: inline; |
|||
line-height: 1px; |
|||
vertical-align: middle; |
|||
} |
|||
.titleOne { |
|||
padding: 7px; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
</style> |
@ -0,0 +1,135 @@ |
|||
<temp<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<div class="tab-header webtop"> |
|||
<div>{{ viewTitle }}</div> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="listconadd"> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">款项名称</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.costTitleValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款方式</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.paymentType }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">收款单位名称</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receiveCompany }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receivingAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.bank }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款金额</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.payAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款备注</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">后期是否有平仓付款</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.isPay == '1' ? '是' : '否' }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-show="formobj.isPay == '1'"> |
|||
<div class="title">平仓信息</div> |
|||
<el-table :key="tableKey" :data="formobj.finPaymentapplyDetailsBelowEveList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center" /> |
|||
<el-table-column prop="costTitleValue" label="平仓款名称" align="center" /> |
|||
<el-table-column prop="period" label="期数" align="center" /> |
|||
<el-table-column prop="exePayDate" label="平仓付款日期" align="center" /> |
|||
<el-table-column prop="exePayPrice" label="平仓付款金额" align="center" /> |
|||
<el-table-column prop="remarks" label="备注" align="center" /> |
|||
</el-table> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
export default { |
|||
name: 'PaymentInformationInfo', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
methods: { |
|||
showInfo(row) { |
|||
this.viewTitle = '付款信息' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
const value = JSON.parse(JSON.stringify(row)) |
|||
this.formobj = row |
|||
}, |
|||
handleReturn() { |
|||
this.formobj = { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
} |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.span-sty { |
|||
width: 150px !important; |
|||
} |
|||
.addinputInfo { |
|||
margin-left: 140px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,397 @@ |
|||
<temp<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<div class="tab-header webtop"> |
|||
<div>{{ viewTitle }}</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="saveOrUpdate()">保存</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>款项名称</div> |
|||
<el-form-item prop="costTitleValue"> |
|||
<el-select class="addinputInfo" v-model="formobj.costTitleValue" placeholder="请选择" @change="costTitleChange" clearable filterable> |
|||
<el-option v-for="item in costTitle_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>付款方式</div> |
|||
<el-form-item prop="paymentType"> |
|||
<el-select class="addinputInfo" v-model="formobj.paymentType" placeholder="请选择" @change="paymentChange" clearable filterable> |
|||
<el-option v-for="item in payment_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>收款单位名称</div> |
|||
<el-form-item prop="receiveCompany"> |
|||
<el-select class="addinputInfo" v-model="formobj.receiveCompany" placeholder="请选择" @change="receiveCompanyChange" clearable filterable> |
|||
<el-option v-for="item in receiveCompany_list" :key="item.sid" :label="item.companyName" :value="item.companyName"></el-option> |
|||
</el-select> |
|||
<el-button style="margin-left: 10px" type="primary" size="mini" @click="receiveCompanyAdd">添加</el-button> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receivingAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.bank }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>付款金额</div> |
|||
<el-form-item prop="payAccount"><el-input class="addinputInfo addinputw" @keyup.native="formobj.payAccount = getNumber(formobj.payAccount, 2)" v-model="formobj.payAccount" clearable placeholder="" /></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款备注</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="formobj.remarks" clearable placeholder="" /></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty"><span class="icon">*</span>后期是否有平仓付款</div> |
|||
<el-form-item prop="isPay"> |
|||
<el-radio-group class="addinputInfo" v-model="formobj.isPay"> |
|||
<el-radio label="1">是</el-radio> |
|||
<el-radio label="0">否</el-radio> |
|||
</el-radio-group> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-show="formobj.isPay == '1'"> |
|||
<div class="title titleOne"> |
|||
<div>平仓信息</div> |
|||
<el-button type="primary" size="mini" class="btntopblueline" @click="toAdd">添加</el-button> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.finPaymentapplyDetailsBelowEveList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center" /> |
|||
<el-table-column fixed label="操作" width="100" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button size="mini" type="danger" @click="toDelete(scope.$index)">删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="costTitleValue" label="平仓款名称" align="center" /> |
|||
<el-table-column label="期数" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input @keyup.native="scope.row.period = getNumber(scope.row.period, 2)" v-model="scope.row.period" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="平仓付款日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-date-picker v-model="scope.row.exePayDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="平仓付款金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input @keyup.native="scope.row.exePayPrice = getNumber(scope.row.exePayPrice, 2)" v-model="scope.row.exePayPrice" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.remarks" clearable placeholder="" /> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<el-dialog :visible.sync="dialogVisible" width="50%" :show-close="false"> |
|||
<el-form ref="temp_obj" :model="temp" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">单位编码</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.companyCode" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">单位名称</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.companyName" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.bank" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.receivingAccount" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">业务类型</div> |
|||
<el-form-item> |
|||
<el-select class="addinputInfo" v-model="temp.businessTypeValue" placeholder="请选择" @change="businessTypeChange" clearable filterable> |
|||
<el-option v-for="item in businessType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><el-input class="addinputInfo addinputw" v-model="temp.remarks" clearable placeholder=""/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
<div style="text-align: center;padding-top: 5px"> |
|||
<el-button size="small" type="primary" @click="handleSave">保存</el-button> |
|||
<el-button size="small" @click="handleClose">关闭</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/anruifinmanagement/payment' |
|||
import { typeValues } from '@/api/jichuxinxi/dictcommons' |
|||
|
|||
export default { |
|||
name: 'PaymentInformationAdd', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
tableKey: 0, |
|||
index: 0, |
|||
costTitle_list: [], |
|||
payment_list: [], |
|||
receiveCompany_list: [], |
|||
businessType_list: [], |
|||
liquidationPayment: '', // 平仓款名称 |
|||
formobj: { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
}, |
|||
dialogVisible: false, |
|||
temp: { |
|||
companyCode: '', // 单位编码 |
|||
companyName: '', // 单位名称 |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
businessTypeKey: '', // 业务类型key |
|||
businessTypeValue: '', // 业务类型value |
|||
remarks: '', // 备注 |
|||
useOrgSid: '', // 分公司sid |
|||
useOrgName: '' |
|||
}, |
|||
rules: { |
|||
costTitleValue: [{ required: true, message: '款项名称不能为空', trigger: 'change' }], |
|||
paymentType: [{ required: true, message: '付款方式不能为空', trigger: 'change' }], |
|||
receiveCompany: [{ required: true, message: '收款单位名称不能为空', trigger: 'change' }], |
|||
payAccount: [{ required: true, message: '付款金额不能为空', trigger: 'blur' }], |
|||
isPay: [{ required: true, message: '后期是否有平仓付款不能为空', trigger: 'change' }] |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
typeValues({ type: 'payCostTitle' }).then((res) => { |
|||
if (res.success) { |
|||
this.costTitle_list = res.data |
|||
} |
|||
}) |
|||
typeValues({ type: 'paymentType' }).then((res) => { |
|||
if (res.success) { |
|||
this.payment_list = res.data |
|||
} |
|||
}) |
|||
typeValues({ type: 'cw_businessType' }).then((res) => { |
|||
if (res.success) { |
|||
this.businessType_list = res.data |
|||
} |
|||
}) |
|||
}, |
|||
showAdd(useOrgSid, liquidationPayment) { |
|||
this.viewTitle = '【新增】付款信息' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.init() |
|||
this.liquidationPayment = liquidationPayment |
|||
this.temp.useOrgSid = useOrgSid |
|||
this.selectByUseOrgSid(useOrgSid) |
|||
}, |
|||
selectByUseOrgSid(value) { |
|||
req.selectByUseOrgSid({ useOrgSid: value }).then((res) => { |
|||
if (res.success) { |
|||
this.receiveCompany_list = res.data |
|||
} |
|||
}) |
|||
}, |
|||
getNumber(val, limit) { |
|||
val = val.replace(/[^0-9.]/g, '') // 保留数字 |
|||
val = val.replace(/^00/, '0.') // 开头不能有两个0 |
|||
val = val.replace(/^\./g, '0.') // 开头为小数点转换为0. |
|||
val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个 |
|||
val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点 |
|||
/^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0 |
|||
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$' |
|||
const reg = new RegExp(str) |
|||
if (limit === 0) { |
|||
// 不需要小数点 |
|||
val = val.replace(reg, '$1') |
|||
} else { |
|||
// 通过正则保留小数点后指定的位数 |
|||
val = val.replace(reg, '$1.$2') |
|||
} |
|||
return val |
|||
}, |
|||
costTitleChange(value) { |
|||
const choose = this.costTitle_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.costTitleKey = choose[0].dictKey |
|||
} else { |
|||
this.formobj.costTitleKey = '' |
|||
} |
|||
}, |
|||
paymentChange(value) { |
|||
const choose = this.payment_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.paymentTypeKey = choose[0].dictKey |
|||
} else { |
|||
this.formobj.paymentTypeKey = '' |
|||
} |
|||
}, |
|||
receiveCompanyChange(value) { |
|||
const choose = this.receiveCompany_list.filter((item) => item.companyName === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.formobj.receiveCompanySid = choose[0].sid |
|||
this.formobj.receivingAccount = choose[0].companyName |
|||
this.formobj.bank = choose[0].bank |
|||
} else { |
|||
this.formobj.receiveCompanySid = '' |
|||
this.formobj.receivingAccount = '' |
|||
this.formobj.bank = '' |
|||
} |
|||
}, |
|||
receiveCompanyAdd() { |
|||
this.dialogVisible = true |
|||
}, |
|||
handleSave() { |
|||
req.paymentSave(this.temp).then((res) => { |
|||
if (res.success) { |
|||
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|||
this.selectByUseOrgSid(this.temp.useOrgSid) |
|||
this.handleClose() |
|||
} |
|||
}) |
|||
}, |
|||
handleClose() { |
|||
this.dialogVisible = false |
|||
this.temp.companyCode = '' // 单位编码 |
|||
this.temp.companyName = '' // 单位名称 |
|||
this.temp.bank = '' // 开户行 |
|||
this.temp.receivingAccount = '' // 收款银行账号 |
|||
this.temp.businessTypeKey = '' // 业务类型key |
|||
this.temp.businessTypeValue = '' // 业务类型value |
|||
this.temp.remarks = '' // 备注 |
|||
}, |
|||
toAdd() { |
|||
this.formobj.finPaymentapplyDetailsBelowEveList.push({ |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: this.liquidationPayment, // 款项名称 |
|||
detailSid: '', // 付款申请明细的明细sid |
|||
openDate: '', // 融资付款开通日期 |
|||
period: '', // 期数 |
|||
payCompanySid: '', // 付款单位sid |
|||
payCompany: '', // 付款单位名称 |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
receivingAccount: '', // 收款银行账号 |
|||
actualPay: '', // 厂家销售通路 |
|||
bank: '', // 开户行 |
|||
exePayDate: '', // 平仓付款日期 |
|||
exePayPrice: '', // 平仓付款金额 |
|||
remarks: '' |
|||
}) |
|||
}, |
|||
toDelete(index) { |
|||
this.formobj.finPaymentapplyDetailsBelowEveList.splice(index, 1) |
|||
}, |
|||
businessTypeChange(value) { |
|||
const choose = this.businessType_list.filter((item) => item.dictValue === value) |
|||
if (choose !== null && choose.length > 0) { |
|||
this.temp.businessTypeKey = choose[0].dictKey |
|||
} else { |
|||
this.temp.businessTypeKey = '' |
|||
} |
|||
}, |
|||
saveOrUpdate() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
this.$emit('backInformation', this.formobj) |
|||
this.handleReturn() |
|||
} |
|||
}) |
|||
}, |
|||
handleReturn() { |
|||
this.formobj = { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
} |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.span-sty { |
|||
width: 150px !important; |
|||
} |
|||
.addinputInfo { |
|||
margin-left: 140px !important; |
|||
} |
|||
/deep/ .el-form-item__error { |
|||
margin-left: 140px !important; |
|||
} |
|||
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
|||
margin-left: 140px !important; |
|||
width: calc(100% - 135px); |
|||
} |
|||
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
|||
display: inline; |
|||
line-height: 1px; |
|||
vertical-align: middle; |
|||
} |
|||
.titleOne { |
|||
padding: 7px; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
</style> |
@ -0,0 +1,135 @@ |
|||
<temp<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<div class="tab-header webtop"> |
|||
<div>{{ viewTitle }}</div> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">款项名称</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.costTitleValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款方式</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.paymentType }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">收款单位名称</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receiveCompany }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">银行账号</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.receivingAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">开户行</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.bank }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款金额</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.payAccount }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">付款备注</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty">后期是否有平仓付款</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.isPay == '1' ? '是' : '否' }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-show="formobj.isPay == '1'"> |
|||
<div class="title">平仓信息</div> |
|||
<el-table :key="tableKey" :data="formobj.finPaymentapplyDetailsBelowEveList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center" /> |
|||
<el-table-column prop="costTitleValue" label="平仓款名称" align="center" /> |
|||
<el-table-column prop="period" label="期数" align="center" /> |
|||
<el-table-column prop="exePayDate" label="平仓付款日期" align="center" /> |
|||
<el-table-column prop="exePayPrice" label="平仓付款金额" align="center" /> |
|||
<el-table-column prop="remarks" label="备注" align="center" /> |
|||
</el-table> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
export default { |
|||
name: 'PaymentInformationInfo', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
methods: { |
|||
showInfo(row) { |
|||
this.viewTitle = '付款信息' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
const value = JSON.parse(JSON.stringify(row)) |
|||
this.formobj = row |
|||
}, |
|||
handleReturn() { |
|||
this.formobj = { |
|||
sid: '', // sid |
|||
costTitleKey: '', // 款项名称,数据字典 |
|||
costTitleValue: '', // 款项名称 |
|||
paymentTypeKey: '', // 付款方式key |
|||
paymentType: '', // 付款方式value |
|||
receiveCompany: '', // 收款单位名称 |
|||
receiveCompanySid: '', // 收款单位sid |
|||
bank: '', // 开户行 |
|||
receivingAccount: '', // 收款银行账号 |
|||
payAccount: '', // 付款金额 |
|||
detailSid: '', // 付款申请明细sid |
|||
isPay: '', // 后期是否有平仓付款 |
|||
finPaymentapplyDetailsBelowEveList: [] |
|||
} |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.span-sty { |
|||
width: 150px !important; |
|||
} |
|||
.addinputInfo { |
|||
margin-left: 140px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,142 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div class="tab-header webtop"> |
|||
<div>上装配置信息</div> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-form ref="dataForm" :model="formobj" class="formaddcopy02"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>车辆功能</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.vehicleTypeValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>上装名称</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.installNameValue }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>委改方式</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refitMethodValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>供应商</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refitFactory }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row v-if="formobj.installNameKey == '08'"> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷机品牌</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.coolerBrand }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷机型号</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.coolerModel }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div v-if="formobj.installNameKey != '08'"> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>货箱内部尺寸</span></div> |
|||
<el-form-item> |
|||
<div class="addinputInfo addinputwOne"> |
|||
长<span class="inputStyle">{{ formobj.wk_long }}</span>mm, |
|||
宽<span class="inputStyle">{{ formobj.wk_wide }}</span>mm, |
|||
高<span class="inputStyle">{{ formobj.wk_high }}</span>mm |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>颜色</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.colorValue }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>板材材质</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.plateMaterialValue }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>板材厚度</span></div> |
|||
<el-form-item> |
|||
<div class="addinputInfo addinputwOne"> |
|||
底<span class="inputStyle">{{ formobj.plateThicknessBottom }}</span>mm, |
|||
边<span class="inputStyle">{{ formobj.plateThicknessEdge }}</span>mm |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>篷布滑道</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.tarpaulinSlide }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>冷藏冷机</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.refrigerator }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>自卸液压盖板</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.selfUnHyCoPl }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<div class="span-sty spanOneWidth"><span>底板加热</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.floorHeating }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty spanOneWidth"><span>更多配置</span></div> |
|||
<el-form-item><span class="addinputInfo addinputwOne">{{ formobj.moreConfig }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</div> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { fetchBySidByTops } from '@/api/jichuxinxi/dictcommons' |
|||
|
|||
export default { |
|||
name: 'ShangZhuangInfo', |
|||
data() { |
|||
return { |
|||
formobj: {} |
|||
} |
|||
}, |
|||
methods: { |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
showInfo(row) { |
|||
fetchBySidByTops(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
console.log('这里是详情回显', row) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.spanOneWidth { |
|||
width: 110px !important; |
|||
} |
|||
.addinputwOne { |
|||
margin-left: 110px !important; |
|||
} |
|||
.inputStyle { |
|||
display: inline-block; |
|||
margin: 0 5px; |
|||
} |
|||
</style> |
@ -0,0 +1,40 @@ |
|||
package com.yxt.anrui.fin.api.kingdee.costadjustmentsbill; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/12 18:13 |
|||
*/ |
|||
@Data |
|||
public class CostAdjustmentsBill { |
|||
|
|||
|
|||
@ApiModelProperty("往来单位/供应商编码") |
|||
public String commUnit; |
|||
@ApiModelProperty("核算组织/分公司编码") |
|||
public String useOrgCode; |
|||
@ApiModelProperty("业务日期") |
|||
public String bussDate; |
|||
@ApiModelProperty("单据明细") |
|||
public List<CostAdjustmentsBillDetailDto> resultDetails; |
|||
|
|||
@Data |
|||
public static class CostAdjustmentsBillDetailDto implements Dto { |
|||
|
|||
|
|||
@ApiModelProperty("分公司编码") |
|||
public String companyCode; |
|||
@ApiModelProperty("物料编码") |
|||
public String materialID; |
|||
@ApiModelProperty("调整金额") |
|||
public String amount; |
|||
@ApiModelProperty("部门编码") |
|||
public String deptCode; |
|||
} |
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.yxt.anrui.fin.biz.kingdee.costadjustmentsbill; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONArray; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.alibaba.fastjson.parser.Feature; |
|||
import com.yxt.anrui.fin.biz.kingdee.KingDeeUtils; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 封装转换的类 |
|||
*/ |
|||
public class CostAdjustmentsBillCastToKingDeeBillFields { |
|||
/** |
|||
* 构造金蝶需要的数据结构 并对字段赋值 |
|||
* |
|||
* @param map_fEntityModel_ |
|||
* @param vehicleList |
|||
* @return |
|||
*/ |
|||
public static String getKingDeeData(Map<String, String> map_fEntityModel_, List<Map<String, String>> vehicleList) { |
|||
/** |
|||
* 取模板 |
|||
*/ |
|||
String readJsonFile = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/costadjustmentsbill/data.json"); |
|||
String fEntityData_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/costadjustmentsbill/data_data.json"); |
|||
String fEntityModel_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/costadjustmentsbill/data_model.json"); |
|||
|
|||
//模板字符创转json
|
|||
JSONObject jsonObj = JSONObject.parseObject(readJsonFile, Feature.OrderedField); |
|||
JSONObject jsonFEntityData_ = JSONObject.parseObject(fEntityData_, Feature.OrderedField); |
|||
fEntityModel_ = KingDeeUtils.replaceTemplateParams(fEntityModel_, map_fEntityModel_); |
|||
JSONObject jsonFEntityModel_ = JSONObject.parseObject(fEntityModel_, Feature.OrderedField); |
|||
|
|||
List<JSONObject> list_fEntity_ = new ArrayList<>(); |
|||
|
|||
//对模板字段赋值 根据传递进来的map数据的集合进行赋值
|
|||
for (int i = 0; i < vehicleList.size(); i++) { |
|||
String fEntity_ = KingDeeUtils.readJsonFile("com/yxt/anrui/fin/biz/kingdee/costadjustmentsbill/data_FEntity.json"); |
|||
Map<String, String> params = vehicleList.get(i); |
|||
Map<String, String> map_fEntity_ = new HashMap<>(); |
|||
for (Map.Entry<String, String> entry : params.entrySet()) { |
|||
map_fEntity_.put(entry.getKey(), entry.getValue()); |
|||
} |
|||
fEntity_ = KingDeeUtils.replaceTemplateParams(fEntity_, map_fEntity_); |
|||
list_fEntity_.add(JSONObject.parseObject(fEntity_, Feature.OrderedField)); |
|||
} |
|||
|
|||
jsonFEntityModel_.put("FEntity", JSONArray.parseArray(JSON.toJSONString(list_fEntity_))); |
|||
jsonFEntityData_.put("Model", JSONObject.parseObject(JSON.toJSONString(jsonFEntityModel_), Feature.OrderedField)); |
|||
jsonObj.put("data", jsonFEntityData_.toJSONString()); |
|||
|
|||
return jsonObj.toJSONString(); |
|||
} |
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.yxt.anrui.fin.biz.kingdee.costadjustmentsbill; |
|||
|
|||
import com.yxt.anrui.fin.api.kingdee.KingDeeBillId; |
|||
import com.yxt.anrui.fin.api.kingdee.KingDeeBillUrl; |
|||
import com.yxt.anrui.fin.api.kingdee.costadjustmentsbill.CostAdjustmentsBill; |
|||
import com.yxt.anrui.fin.biz.kingdee.FinKingDeeService; |
|||
import com.yxt.common.base.utils.StringUtils; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@Service |
|||
public class CostAdjustmentsBillService extends FinKingDeeService { |
|||
|
|||
/** |
|||
* 生成的成本调整单的数据,推送到金蝶的平台中 |
|||
* |
|||
* @param costAdjustmentsBill |
|||
* @return |
|||
*/ |
|||
public ResultBean costAdjustmentsBillService(CostAdjustmentsBill costAdjustmentsBill) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//业务表的主表数据集合
|
|||
Map<String, String> map_fEntityModel_ = new HashMap<>(); |
|||
|
|||
//往来单位
|
|||
if (StringUtils.isBlank(costAdjustmentsBill.getCommUnit())) { |
|||
return rb.setMsg("往来单位不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FSUPPLIERID", costAdjustmentsBill.getCommUnit()); |
|||
//业务日期
|
|||
if (StringUtils.isBlank(costAdjustmentsBill.getBussDate())) { |
|||
return rb.setMsg("业务日期不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FDate", costAdjustmentsBill.getBussDate()); |
|||
//核算组织
|
|||
if (StringUtils.isBlank(costAdjustmentsBill.getUseOrgCode())) { |
|||
return rb.setMsg("核算组织不能为空"); |
|||
} |
|||
map_fEntityModel_.put("FAcctOrgID", costAdjustmentsBill.getUseOrgCode()); |
|||
|
|||
List<CostAdjustmentsBill.CostAdjustmentsBillDetailDto> costAdjustmentsBillDetailDtos = costAdjustmentsBill.getResultDetails() == null ? new ArrayList<>() : costAdjustmentsBill.getResultDetails(); |
|||
//准备 物料列表的数据
|
|||
ResultBean<List<Map<String, String>>> vehicleListMap = createVehicleListsForReceivableBill(costAdjustmentsBillDetailDtos); |
|||
if (!vehicleListMap.getSuccess()) { |
|||
return rb.setMsg(vehicleListMap.getMsg()); |
|||
} |
|||
String kingDeeData = CostAdjustmentsBillCastToKingDeeBillFields.getKingDeeData(map_fEntityModel_, vehicleListMap.getData()); |
|||
try { |
|||
ResultBean<String> resultBean1 = accessKingDeeInterface(KingDeeBillId.HS_AdjustmentBill.getID(), kingDeeData, KingDeeBillUrl.SAVE_URL.getURL()); |
|||
if (!resultBean1.getSuccess()) { |
|||
log.info("成本调整单保存失败!"); |
|||
return rb.setMsg("成本调整单保存失败!"); |
|||
} |
|||
log.info("成本调整单保存成功!"); |
|||
} catch (Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
return rb; |
|||
} |
|||
|
|||
public ResultBean<List<Map<String, String>>> createVehicleListsForReceivableBill(List<CostAdjustmentsBill.CostAdjustmentsBillDetailDto> collectionDetails) { |
|||
ResultBean<List<Map<String, String>>> rb = ResultBean.fireFail(); |
|||
List<Map<String, String>> collectionDetailMap = new ArrayList<>(); |
|||
for (int i = 0; i < collectionDetails.size(); i++) { |
|||
CostAdjustmentsBill.CostAdjustmentsBillDetailDto c = collectionDetails.get(i); |
|||
Map<String, String> m = new HashMap<>(); |
|||
if (StringUtils.isBlank(c.getCompanyCode())) { |
|||
return rb.setMsg("库存组织不能为空"); |
|||
} |
|||
if (StringUtils.isBlank(c.getMaterialID())) { |
|||
return rb.setMsg("物料编码不能为空"); |
|||
} |
|||
m.put("FStockOrgID", c.getCompanyCode()); |
|||
m.put("FOwnerID", c.getCompanyCode()); |
|||
m.put("FMaterialID", c.getMaterialID()); |
|||
m.put("FDepartmentId", c.getDeptCode()); |
|||
m.put("FAdjustmentAMOUNT", c.getAmount()); |
|||
collectionDetailMap.add(m); |
|||
} |
|||
return rb.success().setData(collectionDetailMap); |
|||
} |
|||
} |
@ -0,0 +1,4 @@ |
|||
{ |
|||
"formId": "HS_AdjustmentBill", |
|||
"data": "@KD_data" |
|||
} |
@ -0,0 +1,116 @@ |
|||
{ |
|||
"FEntryID": "0", |
|||
"FStockOrgID": { |
|||
"FNumber": "@KD_FStockOrgID" |
|||
}, |
|||
"FMaterialID": { |
|||
"FNumber": "@KD_FMaterialID" |
|||
}, |
|||
"FAuxPropId": { |
|||
"FAUXPROPID__FF100001": { |
|||
"FNumber": "" |
|||
}, |
|||
"FAUXPROPID__FF100005": { |
|||
"FNumber": "" |
|||
}, |
|||
"FAUXPROPID__FF100002": { |
|||
"FNumber": "" |
|||
}, |
|||
"FAUXPROPID__FF100004": { |
|||
"FNumber": "" |
|||
}, |
|||
"FAUXPROPID__FF100006": { |
|||
"FNumber": "" |
|||
} |
|||
}, |
|||
"FLOT": { |
|||
"FNumber": "" |
|||
}, |
|||
"FBOMId": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKSTATUSID": { |
|||
"FNumber": "KCZT01_SYS" |
|||
}, |
|||
"FAdjustmentAMOUNT": "@KD_FAdjustmentAMOUNT", |
|||
"FAdjustmentAMOUNTFor": "0", |
|||
"FStockID": { |
|||
"FNumber": "ARZSCK" |
|||
}, |
|||
"FOwnerID": { |
|||
"FNumber": "@KD_FOwnerID" |
|||
}, |
|||
"FSTOCKLOCID": { |
|||
"FSTOCKLOCID__FF100001": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100002": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100003": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100004": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100005": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100006": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100007": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100008": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100009": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSTOCKLOCID__FF100010": { |
|||
"FNumber": "" |
|||
} |
|||
}, |
|||
"FAcctgRangeID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FMtoNo": "", |
|||
"FSeqId": "", |
|||
"FPROJECTNO": "", |
|||
"FOwnerTypeId": "", |
|||
"FPrice": "0", |
|||
"FSeqEntryId": "0", |
|||
"FInvoiceRateType": { |
|||
"FNumber": "" |
|||
}, |
|||
"FStockRateType": { |
|||
"FNumber": "" |
|||
}, |
|||
"FOriginalCurrencyId": { |
|||
"FNumber": "" |
|||
}, |
|||
"FStockRate": "0", |
|||
"FInvoiceRate": "0", |
|||
"FRateDiff": "0", |
|||
"FPriceDiff": "0", |
|||
"FQty": "0", |
|||
"FCostCenterID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FSRCSEQ": "0", |
|||
"FSRCBILLNO": "", |
|||
"FSRCBILLTYPEID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FDepartmentId": { |
|||
"FNUMBER": "@KD_FDepartmentId" |
|||
}, |
|||
"FExpense": [{ |
|||
"FExpenseEntryID": "0", |
|||
"FExpenseID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FExpenseAmount": "0" |
|||
}] |
|||
} |
@ -0,0 +1,13 @@ |
|||
{ |
|||
"Creator": "", |
|||
"NeedUpDateFields": [], |
|||
"NeedReturnFields": [], |
|||
"IsDeleteEntry": "True", |
|||
"SubSystemId": "", |
|||
"IsVerifyBaseDataField": "false", |
|||
"IsEntryBatchFill": "True", |
|||
"ValidateFlag": "True", |
|||
"NumberSearch": "True", |
|||
"InterationFlags": "", |
|||
"Model": {} |
|||
} |
@ -0,0 +1,38 @@ |
|||
{ |
|||
"FID": "0", |
|||
"FBillTypeID": { |
|||
"FNUMBER": "CGRKTZD01_SYS" |
|||
}, |
|||
"FBillNo": "", |
|||
"FBusinessType": "1", |
|||
"FSUPPLIERID": { |
|||
"FNumber": "@KD_FSUPPLIERID" |
|||
}, |
|||
"FDate": "@KD_FDATE", |
|||
"FACCTGSYSTEMID": { |
|||
"FNumber": "01" |
|||
}, |
|||
"FAcctOrgID": { |
|||
"FNumber": "@KD_FAcctOrgID" |
|||
}, |
|||
"FACCTPOLICYID": { |
|||
"FNumber": "KJZC01_SYS" |
|||
}, |
|||
"FCurrencyID": { |
|||
"FNumber": "" |
|||
}, |
|||
"FAdjustmentReason": "", |
|||
"FAcctgId": "0", |
|||
"FDocumentStatus": "", |
|||
"FCreateOrgId": { |
|||
"FNumber": "" |
|||
}, |
|||
"FCreatorId": { |
|||
"FUserID": "" |
|||
}, |
|||
"FInOutIndex": "", |
|||
"F_PAEZ_Assistant": { |
|||
"FNumber": "01" |
|||
}, |
|||
"FEntity": [] |
|||
} |
@ -0,0 +1,97 @@ |
|||
一、请求参数说明: |
|||
1.formid:业务对象表单Id,字符串类型(必录) |
|||
2.data:Json格式数据(详情参考Json格式数据)(必录) |
|||
2.1.Creator:创建者内码(非必录) |
|||
2.2.NeedUpDateFields:需要更新的字段,数组类型,格式:[key1,key2,...](非必录),注(更新单据体字段得加上单据体key) |
|||
2.3.NeedReturnFields:需返回结果的字段集合,数组类型,格式:[key,entitykey.key,...](非必录),注(返回单据体字段格式:entitykey.key) |
|||
2.4.IsDeleteEntry:是否删除已存在的分录,布尔类型,默认true(非必录) |
|||
2.5.SubSystemId:表单所在的子系统内码,字符串类型(非必录) |
|||
2.6.IsVerifyBaseDataField:是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
|||
2.7.IsEntryBatchFill:是否批量填充分录,默认true(非必录) |
|||
2.8.ValidateFlag:是否验证标志,布尔类型,默认true(非必录) |
|||
2.9.NumberSearch:是否用编码搜索基础资料,布尔类型,默认true(非必录) |
|||
2.10.InterationFlags:交互标志集合,字符串类型,分号分隔,格式:"flag1;flag2;..."(非必录),例如(允许负库存标识:STK_InvCheckResult) |
|||
2.11.Model:表单数据包,Json类型(必录) |
|||
|
|||
字段说明: |
|||
来源单据号:FSRCBILLNO |
|||
原单分录内码:FSRCEntryID |
|||
来源单据行号:FSRCSEQ |
|||
原单内码:FSRCBILLID |
|||
成本中心:FCostCenterID |
|||
数量:FQty |
|||
来源单据类别:FSRCBILLTYPEID |
|||
汇率差异:FRateDiff |
|||
入库单汇率类型:FStockRateType |
|||
发票汇率类型:FInvoiceRateType |
|||
价格差异:FPriceDiff |
|||
原币币别:FOriginalCurrencyId |
|||
采购入库单汇率:FStockRate |
|||
应付单汇率:FInvoiceRate |
|||
存货类别:FMaterialType |
|||
出入库序列:FInOutIndex (必填项) |
|||
来源类型:FFROMTYPE |
|||
成本调整类型:F_PAEZ_Assistant |
|||
期初类型:FINITTYPE |
|||
物料编码:FMaterialID (必填项) |
|||
物料名称:FMaterialName |
|||
规格型号:FMaterialModel |
|||
仓库名称:FStockName |
|||
核算范围编码:FAcctgRangeID |
|||
核算范围:FAcctgRangeName |
|||
仓库:FStockID (必填项) |
|||
核算维度Id:FAcctgDimeEntryId |
|||
FSeqEntryId:FSeqEntryId |
|||
应付单编号:FInvoiceBillNo |
|||
维度ID:FDimeentryId |
|||
库存状态:FSTOCKSTATUSID (必填项) |
|||
单价:FPrice |
|||
跨期调整:FCrossPeriodAdjust |
|||
费用项目:FExpenseID |
|||
费用项目名称:FExpenseName |
|||
金额:FExpenseAmount |
|||
部门:FDepartmentId |
|||
应付单行号:FInvoiceSeq |
|||
应付单单据类型:FInvoiceBillTypeId |
|||
钩稽序号:FHookLogID |
|||
批号:FLOT |
|||
货主名称:FOwnerName |
|||
调整金额(原币):FAdjustmentAMOUNTFor |
|||
BOM版本:FBOMId |
|||
调整金额:FAdjustmentAMOUNT |
|||
货主:FOwnerID (必填项) |
|||
库存组织:FStockOrgID (必填项) |
|||
库存组织名称:FStockOrgName |
|||
仓位:FSTOCKLOCID |
|||
货主类型:FOwnerTypeId |
|||
辅助属性:FAuxPropId |
|||
基本单位:FBASICUNITID |
|||
计划跟踪号:FMtoNo |
|||
项目编号:FPROJECTNO |
|||
序列号:FSeqId |
|||
修改日期:FModifyDate |
|||
创建人:FCreatorId |
|||
审核人:FAuditorID |
|||
审核日期:FAuditDate |
|||
创建日期:FCreateDate |
|||
创建组织:FCreateOrgId (必填项) |
|||
单据状态:FDocumentStatus (必填项) |
|||
币别:FCurrencyID |
|||
业务日期:FDate |
|||
单据编号:FBillNo |
|||
核算体系名称:FACCTGSYSTEMNAME |
|||
核算体系编码:FACCTGSYSTEMID (必填项) |
|||
往来单位:FSUPPLIERID |
|||
会计政策名称:FACCTPOLICYNAME |
|||
是否为出库核算生成:FIsAcctgGenerate |
|||
核算内码:FAcctgId |
|||
会计政策编码:FACCTPOLICYID (必填项) |
|||
调整原因:FAdjustmentReason |
|||
修改人:FModifierId |
|||
作废人:FForbidderID |
|||
作废状态:FForbidStatus |
|||
作废日期:FForbidDate |
|||
核算组织名称:FAcctOrgName |
|||
核算组织编码:FAcctOrgID (必填项) |
|||
业务类型:FBusinessType |
|||
单据类型:FBillTypeID |
Loading…
Reference in new issue