|
|
|
@ -172,7 +172,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 0px ;"> |
|
|
|
<span slot="label" type="label">不良代码</span> |
|
|
|
<a slot="label" type="label" @click="getBaseList(89)">不良代码</a> |
|
|
|
<el-input style="width: 90px" v-model="harmful.defectCode"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -188,7 +188,7 @@ |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item style="margin-top: 0px ;"> |
|
|
|
<span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span> |
|
|
|
<span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px" @click="getBaseList(89)"> </span> |
|
|
|
<el-button class="customer-bun-mid" type="primary" @click="saveHarmful"> |
|
|
|
保存 |
|
|
|
</el-button> |
|
|
|
@ -411,6 +411,7 @@ |
|
|
|
|
|
|
|
<bulkInspection ref="bulkInspection" ></bulkInspection> |
|
|
|
|
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
@ -461,6 +462,7 @@ import comProduceDown from "../com_produce_down";/*停机组件*/ |
|
|
|
import comFinishSchedule from "../com_finish_schedule";/*结束派工单组件*/ |
|
|
|
import defectList from "./defectList";/*结束派工单组件*/ |
|
|
|
import bulkInspection from "./bulk_inspection.vue";/*结束派工单组件*/ |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/ |
|
|
|
|
|
|
|
/*生产过程的停机组件*/ |
|
|
|
export default { |
|
|
|
@ -2769,9 +2771,28 @@ export default { |
|
|
|
comFinishSchedule,/*结束派工单的组件*/ |
|
|
|
defectList,/*不良信息列表*/ |
|
|
|
bulkInspection, /**/ |
|
|
|
Chooselist, /*基础信息列表*/ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
/*列表方法的回调*/ |
|
|
|
getBaseData(val){ |
|
|
|
console.log(val) |
|
|
|
if (this.tagNo === 89){ |
|
|
|
this.harmful.defectCode = val.DefectCode; |
|
|
|
this.harmful.defectDesc = val.DefectDesc; |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取基础数据列表 |
|
|
|
getBaseList(val){ |
|
|
|
this.tagNo = val |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = ""; |
|
|
|
if (val === 89 ){ |
|
|
|
strVal = this.harmful.defectCode; |
|
|
|
} |
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 批量直接送检 |
|
|
|
bulkInspection(){ |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -2962,6 +2983,8 @@ export default { |
|
|
|
this.sfdcRollOpsList = []; |
|
|
|
this.sfdcDefectList = []; |
|
|
|
this.sfdcRollList = []; |
|
|
|
this.harmful.defectCode = '' |
|
|
|
this.harmful.defectDesc = '' |
|
|
|
//设置table页签 |
|
|
|
this.activeTable = 'sfdc_time'; |
|
|
|
//刷新当前派工单的信息 |
|
|
|
@ -3200,7 +3223,7 @@ export default { |
|
|
|
otherCreateSplitSfdcRoll(this.createRoll).then(({data}) => { |
|
|
|
//判断操作是否成功 |
|
|
|
if (data.code == 500) { |
|
|
|
this.$message(data.msg); |
|
|
|
this.$message.error(data.msg); |
|
|
|
} else { |
|
|
|
//刷新报工的页面 |
|
|
|
this.$emit('refreshPageData'); |
|
|
|
|