|
|
|
@ -35,13 +35,13 @@
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('businessLineId')">
|
|
|
|
|
<jnpf-form-tip-item label="关联业务线" v-if="judgeShow('businessLineId')"
|
|
|
|
|
prop="businessLineId">
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.businessLineId"
|
|
|
|
|
@change="changeData('businessLineId', -1)" :rowIndex="null" :formData="dataForm"
|
|
|
|
|
:templateJson="interfaceRes.businessLineId" placeholder="请选择"
|
|
|
|
|
:disabled="judgeWrite('businessLineId')" propsValue="id" popupWidth="800px"
|
|
|
|
|
popupTitle="选择数据" popupType="dialog" relationField='name' field='businessLineId'
|
|
|
|
|
interfaceId="517979330417001669" :pageSize="20" :hasPage="true"
|
|
|
|
|
:columnOptions="businessLineIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<JnpfPopupSelect v-model="dataForm.businessLineId" @change="removeForm"
|
|
|
|
|
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.businessLineId"
|
|
|
|
|
placeholder="请选择" :disabled="judgeWrite('businessLineId')" propsValue="id"
|
|
|
|
|
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name'
|
|
|
|
|
field='businessLineId' interfaceId="517979330417001669" :pageSize="20"
|
|
|
|
|
:hasPage="true" :columnOptions="businessLineIdcolumnOptions" clearable
|
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -121,13 +121,6 @@
|
|
|
|
|
<template v-if="this.productCreate">
|
|
|
|
|
<el-col :span="8" v-if="judgeShow('contractId')">
|
|
|
|
|
<jnpf-form-tip-item label="关联合同" v-if="judgeShow('contractId')" prop="contractId">
|
|
|
|
|
<!-- <JnpfPopupSelect v-model="dataForm.contractId" @change="contractInfo2" :rowIndex="null"
|
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.contractName" placeholder="请选择" propsValue="id"
|
|
|
|
|
popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='contract_name'
|
|
|
|
|
field='contractId' interfaceId="529270998021701701" :pageSize="20"
|
|
|
|
|
:columnOptions="contractIdcolumnOptions2" clearable :style='{ "width": "100%" }'
|
|
|
|
|
>
|
|
|
|
|
</JnpfPopupSelect> -->
|
|
|
|
|
<el-input v-model="dataForm.contractName" placeholder="请输入" :disabled="true"
|
|
|
|
|
clearable :style='{ "width": "100%" }'>
|
|
|
|
|
<el-button slot="append" icon="el-icon-search"
|
|
|
|
@ -1465,6 +1458,12 @@ export default {
|
|
|
|
|
this.initPurchaseData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 选择业务线清除表单
|
|
|
|
|
removeForm() {
|
|
|
|
|
if (this.dataForm.orderType == '3') {
|
|
|
|
|
this.dataForm.contractId = undefined
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//根据输入销售单价计算总价和不含税单价、不含税总价
|
|
|
|
|
priceCount(row) {
|
|
|
|
|
row.taxCount = this.jnpf.floatMul(row.businessNum, row.businessPrice).toFixed(2) //销售含税总价
|
|
|
|
|