Commit e19f5757 authored by 郑娟's avatar 郑娟

增加被设备清单

parent f7cfd082
......@@ -350,6 +350,14 @@
<div slot="name" class="required">留购价</div>
<span slot="content">{{ saveInfo.residual_value | currency }}</span>
</item>
<item v-if="!isReadOnly" :showArrow="true" @click.native="selectDownPDeposit">
<div slot="name" class="required">首付款是否计入保证金计算</div>
<input slot="content" v-model="saveInfo.down_payment_deposit_n" readonly placeholder="请选择">
</item>
<item v-if="isReadOnly">
<div slot="name" class="required">首付款是否计入保证金计算</div>
<input slot="content" v-model="saveInfo.down_payment_deposit_n" readonly placeholder="请选择">
</item>
<item :showArrow="true" @click.native="goPlan">
<div slot="name">查看还款计划</div>
<input slot="content" readonly>
......@@ -493,6 +501,7 @@ export default {
businessLists: [], // 商务政策
periodLists: [], // 还款周期
paywayLists: [], // 支付方式
yesNoList: [], // 是否值集
divisionLists: [],
productLine: [], // 产品线
depositDeductionLine: [], // 保证金抵扣方式
......@@ -566,6 +575,8 @@ export default {
management_money: '',
pay_type: '',
pay_type_n: '',
down_payment_deposit_n: '',
down_payment_deposit: '',
residual_value: '',
division_n: '',
division: '',
......@@ -703,6 +714,7 @@ export default {
vm.getProductLine() // 产品线查询
vm.repayPeriod()// 还款周期查询
vm.getPayWay()// 支付方式查询
vm.getYesNoList() // 是否值集获取
vm.getDepositDeduction()// 保证金抵扣方式
vm.getHandlingPolicy()// 手续费政策
}, 0)
......@@ -1210,6 +1222,8 @@ export default {
hlsPopup.showLongCenter('租赁期数不能为空!')
} else if (!vm.saveInfo.pay_type_n) {
hlsPopup.showLongCenter('支付方式不能为空!')
} else if (!vm.saveInfo.down_payment_deposit_n) {
hlsPopup.showLongCenter('首付款是否计入保证金计算不能为空!')
} else if (!vm.saveInfo.residual_value) {
hlsPopup.showLongCenter('留购价不能为空!')
} else if (vm.saveInfo.equip_price < 1000) {
......@@ -1292,6 +1306,8 @@ export default {
hlsPopup.showLongCenter('租赁期数不能为空!')
} else if (!vm.saveInfo.pay_type_n) {
hlsPopup.showLongCenter('支付方式不能为空!')
} else if (!vm.saveInfo.down_payment_deposit_n) {
hlsPopup.showLongCenter('首付款是否计入保证金计算不能为空!')
} else if (!vm.saveInfo.residual_value) {
hlsPopup.showLongCenter('留购价不能为空!')
} else if (!vm.saveInfo.int_rate_n) {
......@@ -1533,8 +1549,36 @@ export default {
}
})
},
getYesNoList () { // 是否值集获取
let vm = this
let url = $config.basePath + 'app_get_syscode'
let param = {
'YES_NO': 'YES_NO',
}
vm.hlsPopup.showLoading('数据加载中')
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.return_status === 'S') {
vm.yesNoList = res.YES_NO
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
// async getYesNoList () { // 是否值集获取
// let url = $config.basePath + 'app_get_syscode'
// let param = {
// 'YES_NO': 'YES_NO',
// }
// hlsPopup.showLoading('请稍候')
// let res = await this.$post(url, param)
// this.hlsPopup.hideLoading()
// if (res.return_status === 'S') {
// this.yesNoList = res.YES_NO
// }
// },
// 支付方式选择
selectPayWay() {
selectPayWay () {
let vm = this
vm.hlsPopup.selectList({
list: vm.paywayLists, // 下拉列表
......@@ -1546,7 +1590,20 @@ export default {
},
})
},
repayPeriod() { // 还款周期查询
// 首付款是否计入保证金计算
selectDownPDeposit () {
let vm = this
vm.hlsPopup.selectList({
list: vm.yesNoList, // 下拉列表
code: 'type',
object: {},
returnItem: function (index, obj) {
vm.saveInfo.down_payment_deposit_n = obj.type_n
vm.saveInfo.down_payment_deposit = obj.type
},
})
},
repayPeriod () { // 还款周期查询
let vm = this
let url = $config.basePath + 'annual_pay_times_query'
let param = {}
......
......@@ -152,9 +152,13 @@
<span>租赁物信息</span>
<span :class="['status',item.lease_status === 'Y' ? 'unMantain' : 'mantain',]">{{ item.lease_status === "Y" ? "已维护" : "待维护" }}</span>
<p>
设备识别
产品型
<span>{{ item.product_code }}-{{ (index + 1) | lengthCheck }}</span>
</p>
<p>
设备识别号
<span>{{ item.contract_number }}</span>
</p>
</div>
<div class="right">
<img src="@/assets/contractStart/into.png">
......
......@@ -227,9 +227,13 @@
<div class="center">
<span>租赁物信息</span>
<p>
设备识别
产品型
<span>{{ item.product_code }}-{{ (index + 1) | lengthCheck }}</span>
</p>
<p>
设备识别号
<span>{{ item.contract_number }}</span>
</p>
</div>
</div>
</template>
......@@ -258,6 +262,10 @@
<div slot="name" class="font-color">开票日期</div>
<input slot="content" v-model="item.invoice_date" readonly>
</item>
<!-- <item>
<div slot="name" class="font-color">设备识别号</div>
<input slot="content" v-model="item.contract_number" readonly>
</item> -->
<item>
<div slot="name" class="font-color">是否上牌</div>
<input slot="content" v-model="item.register_flag_n" readonly>
......
......@@ -27,10 +27,10 @@
:required="editFlag" :is-link="editFlag" :rules="[{ required: editFlag,message:'请选择'}]" input-align="right"
label="主机厂是否担保" @click="showPicker('factory_guarantees_flag',pi)"/>
<!-- 合同标识 -->
<Field
<!-- <Field
v-model="p.business_type_new_n" :readonly="true"
:required="editFlag" :is-link="editFlag" :rules="[{ required: editFlag,message:'请选择'}]" input-align="right"
label="业务种类" @click="showPicker('business_type_new',pi)"/>
label="业务种类" @click="showPicker('business_type_new',pi)"/> -->
<!-- 租赁物分类 -->
<Field
v-model="p.lease_things_type_n" :readonly="true"
......@@ -69,6 +69,10 @@
v-model="p.special_approval_flag_n" :readonly="true"
:required="editFlag" :is-link="editFlag" :rules="[{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否特批中登网不公示" @click="showPicker('special_approval_flag',pi)"/>
<Field
v-model="p.special_policy_flag_n" :readonly="true"
:required="editFlag" :is-link="editFlag" :rules="[{ required: editFlag,message:'请选择'}]" input-align="right"
label="是否特殊政策" @click="showPicker('special_policy_flag',pi)"/>
<!-- GPS是否未安装(必填) -->
<!-- <Field
v-model="p.gps_flag_n" :readonly="showFlag"
......@@ -138,7 +142,7 @@ export default {
created () {
this.createForm()
this.getDropBox()
console.log(this.editFlag, this.showFlag);
console.log(this.editFlag, this.showFlag)
},
methods: {
getData(){
......
......@@ -25,9 +25,13 @@
<div class="center">
<span>租赁物信息</span>
<p>
设备识别
产品型
<span>{{ item.product_code }}-{{ (index + 1) | lengthCheck }}</span>
</p>
<p>
设备识别号
<span>{{ item.contract_number }}</span>
</p>
</div>
</div>
</template>
......@@ -56,6 +60,10 @@
<div slot="name" class="font-color">开票日期</div>
<input slot="content" v-model="item.invoice_date" readonly>
</item>
<!-- <item>
<div slot="name" class="font-color">设备识别号</div>
<input slot="content" v-model="item.contract_number" readonly>
</item> -->
<item>
<div slot="name" class="font-color">是否上牌</div>
<input slot="content" v-model="item.register_flag_n" readonly>
......@@ -134,6 +142,7 @@ export default {
['产品型号', 'product_code', 'text'],
['发车日期', 'departure_date', 'date'],
['开票日期', 'invoice_date', 'date'],
['设备识别号', 'contract_number', 'text'],
['是否上牌', 'register_flag_n', 'text'],
['是否挂靠', 'associate_flag_n', 'text'],
['挂靠单位名称', 'associate_company', 'text'],
......
......@@ -201,6 +201,7 @@ export default {
this.bplist = res.bp_lists
this.lesseeData = res.info
this.planData = res.quotation_lists
console.log(this.planData);
this.appendixData = (res.cdd_lists || []).map(item => {
let attachArr = []
item.attach_file_name && item.attach_file_name.split(';;').forEach(ele => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment