Browse Source

复制增加原材料清单选项

master
han\hanst 3 weeks ago
parent
commit
6f7d37fdb2
  1. 2
      src/views/modules/erf/components/expTriConfirm.vue
  2. 51
      src/views/modules/erf/expApplyList.vue

2
src/views/modules/erf/components/expTriConfirm.vue

@ -239,7 +239,7 @@
<el-dialog <el-dialog
title="选择工序模版" title="选择工序模版"
:visible.sync="templateDialogVisible" :visible.sync="templateDialogVisible"
width="600px"
width="615px"
:close-on-click-modal="false"> :close-on-click-modal="false">
<el-table <el-table

51
src/views/modules/erf/expApplyList.vue

@ -281,7 +281,7 @@
请在上方表格中选择一条申请单记录 请在上方表格中选择一条申请单记录
</div> </div>
</el-tab-pane> </el-tab-pane>
<!-- Tab 2: 三方确认 -->
<!-- Tab: 三方确认 -->
<el-tab-pane label="三方确认" v-if="currentRow.experimentType==='High Risk'" name="triConfirm"> <el-tab-pane label="三方确认" v-if="currentRow.experimentType==='High Risk'" name="triConfirm">
<exp-tri-confirm <exp-tri-confirm
v-if="currentRow.applyNo&&currentRow.experimentType==='High Risk'" v-if="currentRow.applyNo&&currentRow.experimentType==='High Risk'"
@ -295,10 +295,25 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<!-- Tab 3: 附件上传 -->
<!-- Tab: 原材料清单 -->
<el-tab-pane label="原材料清单" name="rawMaterial">
<exp-raw-material-list
v-if="currentRow.applyNo"
ref="rawMaterialList"
:apply-no="currentRow.applyNo"
:site="currentRow.site || $store.state.user.site"
:buNo="currentRow.buNo"
:disabled="currentRow.status === '已完成' || currentRow.status === '已取消'"
:height="detailHeight">
</exp-raw-material-list>
<div v-else class="empty-tip">
<i class="el-icon-document" style="font-size: 40px; color: #C0C4CC; margin-bottom: 10px"></i>
<p style="font-size: 13px">请选择申请单查看原材料清单</p>
</div>
</el-tab-pane>
<!-- Tab 4: 审批状态和日志 -->
<!-- Tab: 审批状态和日志 -->
<el-tab-pane label="审批状态和日志" name="approvalStatus"> <el-tab-pane label="审批状态和日志" name="approvalStatus">
<div v-if="currentRow.applyNo" :style="{height: detailHeight + 'px', overflowY: 'auto', padding: '0px 10px'}"> <div v-if="currentRow.applyNo" :style="{height: detailHeight + 'px', overflowY: 'auto', padding: '0px 10px'}">
@ -392,22 +407,6 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<!-- Tab 5: 原材料清单 -->
<el-tab-pane label="原材料清单" name="rawMaterial">
<exp-raw-material-list
v-if="currentRow.applyNo"
ref="rawMaterialList"
:apply-no="currentRow.applyNo"
:site="currentRow.site || $store.state.user.site"
:buNo="currentRow.buNo"
:disabled="currentRow.status === '已完成' || currentRow.status === '已取消'"
:height="detailHeight">
</exp-raw-material-list>
<div v-else class="empty-tip">
<i class="el-icon-document" style="font-size: 40px; color: #C0C4CC; margin-bottom: 10px"></i>
<p style="font-size: 13px">请选择申请单查看原材料清单</p>
</div>
</el-tab-pane>
</el-tabs> </el-tabs>
<!-- 新增/编辑弹窗 --> <!-- 新增/编辑弹窗 -->
@ -499,10 +498,12 @@
</el-form-item> </el-form-item>
<el-form-item label="复制选项"> <el-form-item label="复制选项">
<el-checkbox-group v-model="copyData.copyOptions">
<el-checkbox-group v-model="copyData.copyOptions" class="checkbox-vertical">
<el-checkbox v-if="currentRow.experimentType === 'High Risk'" label="triConfirm">三方确认信息</el-checkbox> <el-checkbox v-if="currentRow.experimentType === 'High Risk'" label="triConfirm">三方确认信息</el-checkbox>
<el-checkbox label="rawMaterialList">原材料清单</el-checkbox>
<el-checkbox label="attachment">附件</el-checkbox> <el-checkbox label="attachment">附件</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -680,7 +681,7 @@ export default {
copyLoading: false, copyLoading: false,
copyData: { copyData: {
sourceApplyNo: '', sourceApplyNo: '',
copyOptions: ['triConfirm'] //
copyOptions: ['triConfirm','rawMaterialList'] //
} }
} }
}, },
@ -1460,7 +1461,7 @@ export default {
} }
// //
const defaultOptions = []
const defaultOptions = ['rawMaterialList']
if (this.currentRow.experimentType === 'High Risk') { if (this.currentRow.experimentType === 'High Risk') {
defaultOptions.unshift('triConfirm') defaultOptions.unshift('triConfirm')
} }
@ -1482,6 +1483,7 @@ export default {
sourceApplyNo: this.copyData.sourceApplyNo, sourceApplyNo: this.copyData.sourceApplyNo,
copyTriConfirm: this.copyData.copyOptions.includes('triConfirm'), copyTriConfirm: this.copyData.copyOptions.includes('triConfirm'),
copyAttachment: this.copyData.copyOptions.includes('attachment'), copyAttachment: this.copyData.copyOptions.includes('attachment'),
copyRawMaterialList: this.copyData.copyOptions.includes('rawMaterialList'),
currentUserId: this.$store.state.user.id currentUserId: this.$store.state.user.id
} }
@ -2006,4 +2008,9 @@ export default {
line-height: 30px !important; line-height: 30px !important;
} }
/deep/ .checkbox-vertical .el-checkbox {
display: block;
margin-left: 0;
margin-bottom: 8px;
}
</style> </style>
Loading…
Cancel
Save