|
@@ -202,17 +202,17 @@
|
|
>
|
|
>
|
|
</a-select>
|
|
</a-select>
|
|
</template>
|
|
</template>
|
|
- <template #wholesaleDecimal="{ handleChange, value, index }">
|
|
|
|
|
|
+ <template #wholesaleDecimal="{ handleChange, value, index}">
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
<a-tooltip slot="suffix" title="修改后和默认价格不一致">
|
|
<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-if="getDefaultWholesaleDecimal(index,'defaultWholesaleDecimal')!=value" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
</a-input>
|
|
</a-input>
|
|
</template>
|
|
</template>
|
|
- <template #unitPrice="{ handleChange, value, index }">
|
|
|
|
|
|
+ <template #unitPrice="{ handleChange, value, index}">
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
<a-input :value="value" @change="($event) => onChangePrice($event,handleChange)">
|
|
<a-tooltip slot="suffix" title="修改后和默认价格不一致">
|
|
<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-if="getDefaultWholesaleDecimal(index,'defaultPurchaseDecimal')!=value" />
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
</a-input>
|
|
</a-input>
|
|
</template>
|
|
</template>
|
|
@@ -510,7 +510,7 @@ export default {
|
|
key: 'wholesaleDecimal',
|
|
key: 'wholesaleDecimal',
|
|
width: '120px',
|
|
width: '120px',
|
|
type: FormTypes.slot,
|
|
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: '单位id', key: 'unitId', width: '120px', type: FormTypes.hidden },
|
|
{ title: '单位列表', key: 'unitList', width: '120px', type: FormTypes.hidden },
|
|
{ title: '单位列表', key: 'unitList', width: '120px', type: FormTypes.hidden },
|
|
@@ -525,7 +525,7 @@ export default {
|
|
statistics: true,
|
|
statistics: true,
|
|
validateRules: [{ required: true, message: '${title}不能为空' }],
|
|
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: 'allPrice', width: '120px', type: FormTypes.inputNumber, readonly: true, statistics: true },
|
|
{ title: '税率', key: 'taxRate', width: '120px', type: FormTypes.hidden, placeholder: '%' },
|
|
{ title: '税率', key: 'taxRate', width: '120px', type: FormTypes.hidden, placeholder: '%' },
|
|
{
|
|
{
|