|
@@ -228,14 +228,14 @@
|
|
|
<template #wholesaleDecimal="{ handleChange, value, index }">
|
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
|
<a-tooltip slot="suffix" title="修改后和默认价格不一致">
|
|
|
- <a-icon type="info-circle" style="color: #f5222d" v-show="getDefaultWholesaleDecimal(index,'defaultWholesaleDecimal')!=value" />
|
|
|
+ <a-icon type="info-circle" style="color: #f5222d" v-show="getDefaultWholesaleDecimal(index,'defaultWholesaleDecimal',value)" />
|
|
|
</a-tooltip>
|
|
|
</a-input>
|
|
|
</template>
|
|
|
<template #unitPrice="{ handleChange, value, index }">
|
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
|
<a-tooltip slot="suffix" title="修改后和默认价格不一致">
|
|
|
- <a-icon type="info-circle" style="color: #f5222d" v-show="getDefaultWholesaleDecimal(index,'defaultPurchaseDecimal')!=value" />
|
|
|
+ <a-icon type="info-circle" style="color: #f5222d" v-show="getDefaultWholesaleDecimal(index,'defaultPurchaseDecimal',value)" />
|
|
|
</a-tooltip>
|
|
|
</a-input>
|
|
|
</template>
|
|
@@ -543,7 +543,7 @@ export default {
|
|
|
key: 'wholesaleDecimal',
|
|
|
width: '120px',
|
|
|
type: FormTypes.slot,
|
|
|
- validateRules: [{ required: true, message: '${title}不能为空' }],
|
|
|
+ validateRules: [{ required: true, message: '${title}不能为空' },{ pattern: /^(([0-9][0-9]*)|([0]\.\d{0,4}|[0-9][0-9]*\.\d{0,4}))$/, message: '金额格式不正确!' }],
|
|
|
},
|
|
|
{ title: '单位id', key: 'unitId', width: '120px', type: FormTypes.hidden },
|
|
|
{ title: '单位列表', key: 'unitList', width: '120px', type: FormTypes.hidden },
|
|
@@ -560,7 +560,7 @@ export default {
|
|
|
statistics: true,
|
|
|
validateRules: [{ required: true, message: '${title}不能为空' }],
|
|
|
},
|
|
|
- { title: '单价', key: 'unitPrice', width: '120px', type: FormTypes.slot,validateRules: [{ required: true, message: '${title}不能为空' }], },
|
|
|
+ { title: '单价', key: 'unitPrice', width: '120px', type: FormTypes.slot,validateRules: [{ required: true, message: '${title}不能为空' },{ pattern: /^(([0-9][0-9]*)|([0]\.\d{0,4}|[0-9][0-9]*\.\d{0,4}))$/, message: '金额格式不正确!' }], },
|
|
|
{ title: '金额', key: 'allPrice', width: '120px', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
|
|
{ title: '税率', key: 'taxRate', width: '120px', type: FormTypes.hidden, placeholder: '%' },
|
|
|
{
|
|
@@ -586,7 +586,7 @@ export default {
|
|
|
{ title: '入库时间', key: 'warehousingTime', width: '200px', type: FormTypes.date },
|
|
|
|
|
|
{ title: '备注', key: 'remark', width: '200px', type: FormTypes.input },
|
|
|
- // { title: '关联id', key: 'linkId', width: '120px', type: FormTypes.hidden },
|
|
|
+ { title: '关联id', key: 'linkId', width: '120px', type: FormTypes.hidden },
|
|
|
],
|
|
|
},
|
|
|
confirmLoading: false,
|
|
@@ -815,7 +815,9 @@ export default {
|
|
|
})
|
|
|
//判断后进行仓库的切换
|
|
|
if (depotId) {
|
|
|
- this.changeDepot(depotId, this.refKeys[0])
|
|
|
+ setTimeout(() => {
|
|
|
+ this.changeDepot(depotId, this.refKeys[0])
|
|
|
+ }, 100)
|
|
|
}
|
|
|
}
|
|
|
},
|