|
@@ -28,6 +28,7 @@
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+
|
|
|
<el-col v-if="form.checklistType == '1'" :span="8">
|
|
<el-col v-if="form.checklistType == '1'" :span="8">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="是否自动指定模板"
|
|
label="是否自动指定模板"
|
|
@@ -168,6 +169,98 @@
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
|
|
|
|
|
|
|
+ <!-- <header-title title="物品放行规则" v-if="form.checklistType == 3">
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-plus" @click="addDetails(1)">
|
|
|
|
|
+ 添加规则指标
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </header-title>
|
|
|
|
|
+
|
|
|
|
|
+ <ele-pro-table
|
|
|
|
|
+ ref="scTable"
|
|
|
|
|
+ row-key="id"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :datasource="scCheckTypeDetails"
|
|
|
|
|
+ v-if="form.checklistType == 3"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:businessType="{ row }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="row.businessType"
|
|
|
|
|
+ placeholder="请选择业务类型"
|
|
|
|
|
+ @change="businessTypeChange(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="i in indicatorUseLevelList"
|
|
|
|
|
+ :key="i.businessType"
|
|
|
|
|
+ :label="i.businessName"
|
|
|
|
|
+ :value="i.businessType"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:indicator="{ row }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-if="row.businessType !== -1"
|
|
|
|
|
+ v-model="row.indicator"
|
|
|
|
|
+ placeholder="请选择考核指标"
|
|
|
|
|
+ :key="row.businessType"
|
|
|
|
|
+ @change="indicatorChange(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="i in getIndicatorList(row.businessType)"
|
|
|
|
|
+ :key="i.indicator"
|
|
|
|
|
+ :label="i.indicatorName"
|
|
|
|
|
+ :value="i.indicator"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-else
|
|
|
|
|
+ v-model="row.indicatorName"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:indicatorName="{ row }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-if="row.businessType !== -1"
|
|
|
|
|
+ v-model="row.mainIndicatorId"
|
|
|
|
|
+ placeholder="请选择指标名称"
|
|
|
|
|
+ :key="row.indicator"
|
|
|
|
|
+ @change="mainIndicatorIdChange(row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="i in getMainIndicatorIdList(
|
|
|
|
|
+ row.businessType,
|
|
|
|
|
+ row.indicator
|
|
|
|
|
+ )"
|
|
|
|
|
+ :key="i.id"
|
|
|
|
|
+ :label="i.name"
|
|
|
|
|
+ :value="i.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-else
|
|
|
|
|
+ v-model="row.mainIndicatorName"
|
|
|
|
|
+ placeholder="请输入"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:isAutoCheck="{ row }">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="row.isAutoCheck"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ :disabled="row.businessType === -1"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option label="自动" :value="1"> </el-option>
|
|
|
|
|
+ <el-option label="手动" :value="0"> </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:action="{ row }">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-link type="danger" @click="deleteRow(row)">删除</el-link>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </ele-pro-table> -->
|
|
|
|
|
+
|
|
|
<header-title title="质检放行规则">
|
|
<header-title title="质检放行规则">
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="addDetails(2)">
|
|
<el-button type="primary" icon="el-icon-plus" @click="addDetails(2)">
|
|
|
添加规则指标
|
|
添加规则指标
|