|
@ -97,7 +97,7 @@ |
|
|
<el-form-item label="抽检方式" class="flex-top" v-if="index == 1"> |
|
|
<el-form-item label="抽检方式" class="flex-top" v-if="index == 1"> |
|
|
<div class="checkbox"> |
|
|
<div class="checkbox"> |
|
|
<el-radio-group v-model="item.Value"> |
|
|
<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> |
|
|
:key="cur.value">{{ cur.label }}</el-radio> |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</div> |
|
|
</div> |
|
@ -116,9 +116,9 @@ |
|
|
<el-input-number v-model="cur.CeilingQty" :min="cur.FloorQty + 1" class='ml-20px mr-20px' style="width:100px" |
|
|
<el-input-number v-model="cur.CeilingQty" :min="cur.FloorQty + 1" class='ml-20px mr-20px' style="width:100px" |
|
|
controls-position="right" @blur="inputNumberBlur" /> |
|
|
controls-position="right" @blur="inputNumberBlur" /> |
|
|
<div>抽样数</div> |
|
|
<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" /> |
|
|
controls-position="right" @blur="inputNumberBlur" /> |
|
|
<div>EA</div> |
|
|
<div>{{formData.configuration[1].Value == 'QTY'?'EA':'%'}}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="button flex"> |
|
|
<div class="button flex"> |
|
|
<div @click="handleAddTable(item.Value)"> |
|
|
<div @click="handleAddTable(item.Value)"> |
|
@ -248,6 +248,20 @@ const changeSupplierType = (e) => { |
|
|
} |
|
|
} |
|
|
getFormSupplierList() |
|
|
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) => { |
|
|
const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
formStrategyCode.value = strategyCode |
|
|
formStrategyCode.value = strategyCode |
|
|