Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before
| | |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function isProductionCounting(query) { |
| | | return request({ |
| | | url: '/mes/product/isProductionCounting', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function qualifiedLocation(id) { |
| | | return request({ |
| | | url: '/mes/product/qualifiedLocation/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | export function getOperationTaskCopy(query) { |
| | | return request({ |
| | | url: '/mes/operationTask/getOperationTaskCopy', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function changeOperationTaskState(ids, event) { |
| | | return request({ |
| | | url: '/mes/operationTask/product/changeState/' + event, |
| | |
| | | }) |
| | | } |
| | | |
| | | export function submitProductMain(obj) { |
| | | return request({ |
| | | url: '/mes/product/submitProductMain', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | export function batchSaveProductOutput(obj) { |
| | | return request({ |
| | | url: '/mes/product/batchSaveProductOutput', |
| | |
| | | url: '/mes/product/state/batchChange/' + event, |
| | | method: 'post', |
| | | data: ids |
| | | }) |
| | | } |
| | | |
| | | // 批量提交 |
| | | export function batchChangeCopy(qury, event) { |
| | | return request({ |
| | | url: '/mes/product/state/batchChangeCopy/' + event, |
| | | method: 'post', |
| | | data: qury |
| | | }) |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | export function getOperationTaskCopy(query) { |
| | | export function submitInsPart(obj) { |
| | | return request({ |
| | | url: '/mes/operationTask/getOperationTaskCopy', |
| | | url: '/mes/applyPart/submitIns', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | export function submitProductMain(obj) { |
| | | return request({ |
| | | url: '/mes/product/submitProductMain', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | export function inputHandle(obj) { |
| | | return request({ |
| | | url: '/mes/feeding/inputHandle', |
| | | method: 'post', |
| | | data: obj |
| | | }) |
| | | } |
| | | |
| | | export function cancellationOfWorkApplication(query) { |
| | | return request({ |
| | | url: '/mes/product/cancellationOfWorkApplication', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | export function generateBackflush(query) { |
| | | return request({ |
| | | url: '/mes/product/generateBackFlush', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | <el-input v-model="item.remark"></el-input> |
| | | </el-col>--> |
| | | <el-col :span="2" class="batch-product-out-form-body-col l-mes"> |
| | | <el-input v-model="item.mainRemark"></el-input> |
| | | <el-input v-model="item.remark"></el-input> |
| | | </el-col> |
| | | <el-col :span="1" class="batch-product-out-form-body-col"> |
| | | <span |
| | |
| | | <img class="selectedImg" src="/img/workbench/icon_selected.png" /> |
| | | <div class="header"> |
| | | <div>工单号:{{ item.taskNo }}</div> |
| | | <div class="tag" :style="{ backgroundColor: getTagColor(item.planFinishDay) }"> |
| | | {{ getTagText(item.planFinishDay) }} |
| | | </div> |
| | | <!-- <div class="tag" :style="{ backgroundColor: getTagColor(item.planFinishDay) }"> |
| | | {{ getTagText(item.planFinishDay) }} |
| | | </div> --> |
| | | <el-alert |
| | | center |
| | | style="width: 80px;height:30px;line-height: 30px;" |
| | | :title="getTagText(item.planFinishDay)" |
| | | :type="getTagColor(item.planFinishDay)" |
| | | effect="dark" |
| | | :closable="false"> |
| | | </el-alert> |
| | | <!-- <div>计划号:{{ item.mpsNo }}</div> --> |
| | | <div |
| | | :class="[ |
| | |
| | | .tag{ |
| | | width: 80px; |
| | | height: 30px; |
| | | line-height: 30px; |
| | | border-radius:15% ; |
| | | text-align: center; |
| | | text-size:8px; |
| | | font-size:8px; |
| | | color:white; |
| | | align-content: 30px; |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | ...mapGetters(['permissions']), |
| | | }, |
| | | created() { |
| | | if (!this.defaultOperationId) { |
| | |
| | | const today = new Date(); |
| | | const planDate = new Date(planFinishDay); |
| | | if (planDate < today) { |
| | | return 'rgba( 255,0,0,1)'; // 超期为红色 |
| | | //return 'rgba( 255,0,0,1)'; // 超期为红色 |
| | | return 'error'; // 超期为红色 |
| | | } else { |
| | | const timeDiff = planDate.getTime() - today.getTime(); |
| | | const daysDiff = Math.ceil(timeDiff / (1000 * 3600 * 24)); |
| | | if (daysDiff <= 3) { |
| | | return 'rgba(255,204,62, 1)'; // 临期为黄色 |
| | | //return 'rgba(255,204,62, 1)'; // 临期为黄色 |
| | | return 'warning'; // 临期为黄色 |
| | | } else { |
| | | return 'rgba(86,219, 25,1)'; // 正常为绿色 |
| | | //return 'rgba(86,219, 25,1)'; // 正常为绿色 |
| | | return 'success'; // 正常为绿色 |
| | | } |
| | | } |
| | | }, |
| | |
| | | <div class="product-out-header-left"> |
| | | <div style="height:28px;line-height:28px;"> |
| | | <el-divider class="pane-divider" direction="vertical"></el-divider><span |
| | | style="font-size:14px;font-weight:bold">产出</span> |
| | | style="font-size:14px;font-weight:bold;">产出 </span> |
| | | <el-tooltip effect="dark" content="刷新列表" placement="top"> |
| | | <el-button class="step-refresh-btn" icon="el-icon-refresh" type="info" circle |
| | | <el-button size="small" class="step-refresh-btn" icon="el-icon-refresh" type="info" circle |
| | | @click="getBatchReport(5)"></el-button> |
| | | </el-tooltip> |
| | | </div> |
| | |
| | | <!-- <el-button class="tracking-out-revoke-btn" type="primary" icon="tracking-btn-out" |
| | | :disabled="currProductMainDisable || currentDutyRecord.isConfirm" v-if="!editShow" >交班 |
| | | </el-button> --> |
| | | <el-button class="submit-out-btn" type="primary" |
| | | <el-button class="submit-out-btn" type="primary" |
| | | :disabled="currProductMainDisable || currentDutyRecord.isConfirm" v-if="!editShow" @click="submitList()" |
| | | :loading="submitLoading">提交 |
| | | </el-button> |
| | |
| | | // 刷新产出记录 |
| | | // this.$emit('refreshProductOutput') |
| | | } else if (refreshType === 5) { |
| | | // 提交报告后,刷新 |
| | | // 提交报告后,刷 |
| | | // 刷新工单列表 |
| | | this.$emit('refreshOperateTasks') |
| | | // 刷新产出记录 |
| | |
| | | this.options = res.data.data |
| | | if (this.options.length > 1) { |
| | | this.dialogVisible = true |
| | | } else { |
| | | } else if(this.options.length == 0){ |
| | | this.$message.error('工作站未绑定合格库位') |
| | | } else { |
| | | this.locationIdValue = this.options[0].id |
| | | this.submitListApi() |
| | | } |
| | |
| | | */ |
| | | const url = 'http://192.168.0.23:9999' |
| | | |
| | | // const url = 'http://192.168.32.45:9999' |
| | | // const url = 'http://localhost:9999' |
| | | // const url = 'http://192.168.0.60:9999' |
| | | const url = 'http://localhost:9999' |
| | | |
| | | // const url = 'http://ztt-gateway:9999' |
| | | const localUrl = 'http://localhost:8089' |