ncszh
jwg 5 days ago
parent 17a31beca2
commit 520afd09fc

@ -37,7 +37,7 @@
<div style="margin-top: 0.3rem; color: #333"> <div style="margin-top: 0.3rem; color: #333">
所属行业: 所属行业:
{{ {{
getDictDataLabel(DICT_TYPE.BS_INDUSTRY, itemData.meritoType) || getDictDataLabel(DICT_TYPE.PROJECT_TYPE, itemData.meritoType) ||
'' ''
}} }}
</div> </div>

File diff suppressed because it is too large Load Diff

@ -30,12 +30,12 @@
<RePick <RePick
v-model="form.meritoType" v-model="form.meritoType"
titleKey="label" titleKey="label"
idKey="id" idKey="value"
title="所属行业" title="所属行业"
:name="`meritoType`" :name="`meritoType`"
:disabled="disabled" :disabled="disabled"
label="所属行业" label="所属行业"
:list="getDictDatas(DICT_TYPE.BS_INDUSTRY)" :list="getDictDatas(DICT_TYPE.PROJECT_TYPE)"
isCell isCell
clearable clearable
/> />

@ -16,20 +16,32 @@
clearable clearable
input-align="left" input-align="left"
/> />
<van-field <!-- <van-field
v-model="queryForm.contractName" v-model="queryForm.contractName"
placeholder="请输入" placeholder="请输入"
label="合同名称" label="合同名称"
clearable clearable
input-align="left" input-align="left"
/> -->
<RePick
v-model="queryForm.supplierId"
titleKey="companyName"
idKey="id"
title="客户名称"
:name="`supplierId`"
label="客户名称"
:list="cpList"
isCell
clearable
input-align="left"
/> />
<van-field <!-- <van-field
v-model="queryForm.customerCompanyName" v-model="queryForm.customerCompanyName"
placeholder="请输入" placeholder="请输入"
label="客户名称" label="客户名称"
clearable clearable
input-align="left" input-align="left"
/> /> -->
<div <div
style="display: flex; justify-content: space-around; margin-top: 10px" style="display: flex; justify-content: space-around; margin-top: 10px"
> >
@ -97,7 +109,7 @@
<script> <script>
import { getScrollTop } from '@/utils' import { getScrollTop } from '@/utils'
import { getCustomerCompanyPage } from '@/api/bs/customerContract'
import { getPaymentPlanPage } from '@/api/bs/myGetPlan' import { getPaymentPlanPage } from '@/api/bs/myGetPlan'
import { getDictDatas } from '@/utils/dict' import { getDictDatas } from '@/utils/dict'
import { mapState } from 'vuex' import { mapState } from 'vuex'
@ -120,6 +132,7 @@ export default {
finished: false, finished: false,
tableList: [], tableList: [],
spList: [], spList: [],
cpList: [],
listQuery: { listQuery: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
@ -129,7 +142,7 @@ export default {
queryForm: { queryForm: {
contractNumber: null, contractNumber: null,
contractName: null, contractName: null,
customerCompanyName: null supplierId: null
} }
} }
}, },
@ -147,6 +160,7 @@ export default {
}, },
created() { created() {
this.handleInit() this.handleInit()
this.handleInitSpList()
}, },
methods: { methods: {
// //
@ -176,7 +190,7 @@ export default {
this.queryForm = { this.queryForm = {
contractNumber: null, contractNumber: null,
contractName: null, contractName: null,
companyName: null supplierId: null
} }
this.handleInit() this.handleInit()
}, },
@ -184,13 +198,19 @@ export default {
history.back() history.back()
}, },
handleInitSpList() { handleInitSpList() {
let queryParams = { /* let queryParams = {
pageNo: 1, pageNo: 1,
pageSize: this.singlePageSize, pageSize: this.singlePageSize,
paymentType: 1 paymentType: 1
} }
getPaymentPlanPage(queryParams).then((res) => { getPaymentPlanPage(queryParams).then((res) => {
this.spList = res.data.list || [] this.spList = res.data.list || []
}), */
getCustomerCompanyPage({
pageNo: 1,
pageSize: 999
}).then((response) => {
this.cpList = response.data.list
}) })
}, },
handleSetSingle(id) { handleSetSingle(id) {

@ -9,7 +9,7 @@
> >
<div class="trips-box"> <div class="trips-box">
<div class="item-box"> <div class="item-box">
<RePick <!-- <RePick
v-model="form.type" v-model="form.type"
title="是否关联合同" title="是否关联合同"
:name="`type`" :name="`type`"
@ -22,8 +22,17 @@
isCell isCell
clearable clearable
required required
/> -->
<van-field
v-model="form.type"
required
placeholder="请输入"
:disabled="disabled"
:rules="[{ required: true, message: '请输入' }]"
label="是否关联合同"
clearable
input-align="right"
/> />
<van-field <van-field
v-model="form.contractNumber" v-model="form.contractNumber"
required required
@ -67,7 +76,15 @@
input-align="right" input-align="right"
required required
/> />
<RePick <van-field
v-model="form.payMentStatus"
placeholder="请输入"
:disabled="disabled"
label="付款状态"
clearable
input-align="right"
/>
<!-- <RePick
v-model="form.payMentStatus" v-model="form.payMentStatus"
title="付款状态" title="付款状态"
:name="`payMentStatus`" :name="`payMentStatus`"
@ -80,8 +97,16 @@
isCell isCell
clearable clearable
required required
/> -->
<van-field
v-model="form.invoiceStatus"
placeholder="请输入"
:disabled="disabled"
label="开票状态"
clearable
input-align="right"
/> />
<RePick <!-- <RePick
v-model="form.invoiceStatus" v-model="form.invoiceStatus"
title="开票状态" title="开票状态"
:name="`invoiceStatus`" :name="`invoiceStatus`"
@ -94,7 +119,7 @@
isCell isCell
clearable clearable
required required
/> /> -->
<van-field <van-field
v-model="form.managerPhone" v-model="form.managerPhone"
placeholder="请输入" placeholder="请输入"
@ -288,6 +313,10 @@ export default {
this.form = { this.form = {
...(res.data || {}) ...(res.data || {})
} }
this.form.type = this.form.type == 1 ? '有合同' : '无合同'
this.form.invoiceStatus = this.form.type == 1 ? '已开票' : '未开票'
this.form.payMentStatus =
this.form.payMentStatus == 1 ? '已付款' : '未付款'
if (this.form.startTime && this.form.endTime) { if (this.form.startTime && this.form.endTime) {
this.form.startEnd = `${dayjs(this.form.startTime).format( this.form.startEnd = `${dayjs(this.form.startTime).format(
'YYYY/MM/DD' 'YYYY/MM/DD'
@ -295,10 +324,11 @@ export default {
} else { } else {
this.form.startEnd = '' this.form.startEnd = ''
} }
if (this.form.paymentPlanDetailDOList[0].planTime) {
this.form.reviewTime = this.form.reviewTime this.form.paymentPlanDetailDOList[0].planTime = dayjs(
? `${dayjs(this.form.reviewTime).format('YYYY/MM/DD')}` this.form.paymentPlanDetailDOList[0].planTime
: '' ).format('YYYY/MM/DD')
}
this.isAuthorised = res.data.isAuthorised this.isAuthorised = res.data.isAuthorised
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.BottomBtn.handleFilterBtnList() this.$refs.BottomBtn.handleFilterBtnList()

Loading…
Cancel
Save