Commit 5f8aadd9 authored by lanbaoming's avatar lanbaoming

11

parent 6d514ad5
......@@ -6,8 +6,8 @@
{{$t('运费或全包加价')}}
<!--货币-->
<selector :disabled="approval" v-model="form.freightCurrencyId" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
<!--金额-->
<el-input :disabled="approval" type="number" v-model="form.freightFee" :min="1" @keyup.native="checkPositive(form, 'freightFee')" class="w-100 ml-10" />
<!--金额 :min="1"-->
<el-input :disabled="approval" type="number" v-model="form.freightFee" @keyup.native="checkPositive(form, 'freightFee')" class="w-100 ml-10" />
<!--单位-->
<selector :disabled="approval" v-model="form.freightUnitId" :options="unitList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
</div>
......@@ -15,8 +15,8 @@
{{$t('清关费加价')}}
<!--货币-->
<selector :disabled="approval" v-model="form.clearanceCurrencyId" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
<!--金额-->
<el-input :disabled="approval" type="number" v-model="form.clearanceFee" :min="1" @keyup.native="checkPositive(form, 'clearanceFee')" class="w-100 ml-10" />
<!--金额 :min="1"-->
<el-input :disabled="approval" type="number" v-model="form.clearanceFee" @keyup.native="checkPositive(form, 'clearanceFee')" class="w-100 ml-10" />
<!--单位-->
<selector :disabled="approval" v-model="form.clearanceUnitId" :options="unitList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
<span>*{{$t('若线路价格为全包价,输入清关费不生效')}}</span>
......@@ -276,8 +276,8 @@ export default {
methods:{
// 检查正数
checkPositive(object, field){
object[field] = parseFloat(object[field])
object[field] = isNaN(object[field]) ? '' : object[field].toString()
// object[field] = parseFloat(object[field])
// object[field] = isNaN(object[field]) ? '' : object[field].toString()
},
// 表格多选
handleSelectionChange(selection) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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