|
|
@ -97,7 +97,7 @@ |
|
|
|
<el-form-item label="抽检方式" class="flex-top" v-if="index == 1"> |
|
|
|
<div class="checkbox"> |
|
|
|
<el-radio-group v-model="item.Value"> |
|
|
|
<el-radio :label="cur.value" v-for="cur in getStrDictOptions(DICT_TYPE.SAMPLE_METHOD)" |
|
|
|
<el-radio :label="cur.value" v-for="cur in getStrDictOptions(DICT_TYPE.SAMPLE_METHOD)" @change="changeSampleMethod" |
|
|
|
:key="cur.value">{{ cur.label }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
@ -116,9 +116,9 @@ |
|
|
|
<el-input-number v-model="cur.CeilingQty" :min="cur.FloorQty + 1" class='ml-20px mr-20px' style="width:100px" |
|
|
|
controls-position="right" @blur="inputNumberBlur" /> |
|
|
|
<div>抽样数</div> |
|
|
|
<el-input-number v-model="cur.SampleValue" :min="1" class='ml-20px mr-20px' style="width:100px" |
|
|
|
<el-input-number v-model="cur.SampleValue" :min="1" :max="formData.configuration[1].Value == 'QTY'?Infinity:100" class='ml-20px mr-20px' style="width:100px" |
|
|
|
controls-position="right" @blur="inputNumberBlur" /> |
|
|
|
<div>EA</div> |
|
|
|
<div>{{formData.configuration[1].Value == 'QTY'?'EA':'%'}}</div> |
|
|
|
</div> |
|
|
|
<div class="button flex"> |
|
|
|
<div @click="handleAddTable(item.Value)"> |
|
|
@ -248,6 +248,20 @@ const changeSupplierType = (e) => { |
|
|
|
} |
|
|
|
getFormSupplierList() |
|
|
|
|
|
|
|
// 改变抽检方式的时候 |
|
|
|
function changeSampleMethod(e){ |
|
|
|
console.log(e); |
|
|
|
if(e == 'PERCENT'){ |
|
|
|
console.log(formData.value.configuration[2].Value) |
|
|
|
formData.value.configuration[2].Value.forEach(cur=>{ |
|
|
|
|
|
|
|
if(cur.SampleValue>100){ |
|
|
|
cur.SampleValue=100 |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/** 打开弹窗 */ |
|
|
|
const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
|
formStrategyCode.value = strategyCode |
|
|
|