| | |
| | | left: 500px; |
| | | top: -10px; |
| | | } */ |
| | | |
| | | .blocks-img3 { |
| | | height: 90px; |
| | | max-width: 100vw; |
| | |
| | | font-weight: bold; |
| | | text-align: center; |
| | | } |
| | | |
| | | .el-table .el-table__body-wrapper tr { |
| | | height: 40px; /* 设置每行的高度为 30px */ |
| | | line-height: 30px; |
| | | height: 40px; |
| | | /* 设置每行的高度为 30px */ |
| | | line-height: 30px; |
| | | } |
| | | |
| | | .el-table .el-table__body-wrapper td { |
| | | /* 确保单元格内容垂直居中 */ |
| | | } |
| | | /* 出片队列显示表 */ |
| | | </style> |
| | | <template> |
| | | <el-container> |
| | |
| | | :class="SoftEmergencyStopState == true ? 'hide' : ''"> |
| | | {{ $t('Task queue') }}</el-button> |
| | | |
| | | <!-- <el-button type="primary" @click="showform(5)" :disabled="SoftEmergencyStopState" style="z-index: 999;" |
| | | <el-button type="primary" @click="showform(5)" :disabled="SoftEmergencyStopState" style="z-index: 999;" |
| | | :class="SoftEmergencyStopState == true ? 'hide' : ''"> |
| | | {{ $t('Outing Queue') }}</el-button> --> |
| | | {{ $t('Outing Queue') }}</el-button> |
| | | |
| | | </div> |
| | | <div style="display: flex;align-items: center;overflow: hidden;"> |
| | |
| | | <template slot-scope='scope'> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="FinishTask(scope.row.id)">{{ $t('Complete') }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="TerminateTask(scope.row.id)">{{ $t('Terminate') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template slot-scope='scope'> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="FinishTask(scope.row.id)">{{ $t('Complete') }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | @click="TerminateTask(scope.row.id)">{{ $t('Terminate') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | style="z-index: 999;">{{ $t('Manual matching') }}</el-button> |
| | | <el-button type="primary" @click="ManualTake()" :disabled="(this.LastQueue.state > 0)" |
| | | style="z-index: 999;">{{ |
| | | $t('Manual removal') }}</el-button> |
| | | <el-button type="primary" @click="AnewMeasure()" |
| | | style="z-index: 999;">{{ |
| | | $t('Remeasure') }}</el-button> |
| | | $t('Manual removal') }}</el-button> |
| | | <el-button type="primary" @click="AnewMeasure()" style="z-index: 999;">{{ |
| | | $t('Remeasure') }}</el-button> |
| | | <!-- 输入下拉框1 --> |
| | | <!-- SelectSetting --> |
| | | <label for="file-upload" style="font-weight: bold;font-size: 16px;margin-left: 50px;">{{ $t('Films') }}:{{SelectSetting.films }}</label> |
| | | <label for="file-upload" style="font-weight: bold;font-size: 16px;margin-left: 50px;">{{ $t('Films') |
| | | }}:{{ SelectSetting.films }}</label> |
| | | <el-select v-model="selectedValue1" :placeholder="$t('Films')"> |
| | | <el-option v-for="item in selectedOption1.films" :key="item.value" :label="item.films" |
| | | :value="item.films"> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- 输入下拉框2 --> |
| | | <label for="file-upload" style="font-weight: bold;font-size: 16px;">{{ $t('Thickness') }}:{{SelectSetting.thickness }}mm</label> |
| | | <label for="file-upload" style="font-weight: bold;font-size: 16px;">{{ $t('Thickness') |
| | | }}:{{ SelectSetting.thickness }}mm</label> |
| | | <el-select v-model="selectedValue2" :placeholder="$t('Thickness')"> |
| | | <el-option v-for="item in selectedOption2.thickness" :key="item.value" :label="item.thickness" |
| | | :value="item.thickness"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="primary" @click="SaveMeasure(selectedValue1,selectedValue2)" |
| | | <el-button type="primary" @click="SaveMeasure(selectedValue1, selectedValue2)" |
| | | style="z-index: 999;">{{ |
| | | $t('Save') }}</el-button> |
| | | </div> |
| | |
| | | <!--显示--> |
| | | <div style="width:900px;height: 720px;border: 2px solid #d1d1d1;float: left;"> |
| | | <!--玻璃图 #81b337--> |
| | | <div :style="'top:10px;bottom: 10px;left: 10px;right: 10px;margin:' |
| | | <div |
| | | :style="'top:10px;bottom: 10px;left: 10px;right: 10px;margin:' |
| | | + ((720 - (this.LastQueue.glassheight / 25 * 7)) / 2) + 'px auto;width:' |
| | | + (this.LastQueue.glasswidth / 25 * 7) + 'px;height:' |
| | | + (this.LastQueue.glassheight / 25 * 7) + 'px;line-height: ' |
| | |
| | | {{ $t('Measure') }} |
| | | </div> |
| | | <div> |
| | | {{ $t('Width') + "*" + $t('Height') }}:{{ (this.LastQueue.glasswidth +this.LastQueue.glassheight) != 0 ? |
| | | (this.LastQueue.glasswidth +"*" + this.LastQueue.glassheight) + "" : "" }} |
| | | {{ $t('Width') + "*" + $t('Height') }}:{{ (this.LastQueue.glasswidth |
| | | + this.LastQueue.glassheight) != |
| | | 0 ? |
| | | (this.LastQueue.glasswidth +"*" + this.LastQueue.glassheight) + "" : "" }} |
| | | </div> |
| | | |
| | | <div> |
| | |
| | | this.LastQueue.state > 0 ? $t('Matching successful') : |
| | | (this.LastQueue.state == 0 ? $t('Multiple data matching') : $t('Matching failed')) }}</span> |
| | | <br> --> |
| | | <el-table :data="this.tasklist3" :height="700" :row-class-name="rowClassName" style="width: 100%;padding:0;"> |
| | | <el-table :data="this.tasklist3" :height="700" :row-class-name="rowClassName" |
| | | style="width: 100%;padding:0;"> |
| | | <el-table-column prop="flowcard" :label="$t('Flowcard')"></el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')"></el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')"></el-table-column> |
| | |
| | | <el-table-column :min-width="80" prop="cage" :label="$t('Cage No')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="cell" :label="$t('Slot No')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="flowcard" :label="$t('Flowcard')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="customer" :label="$t('Customer')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="mateid" :label="$t('Mateid')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="glassWidth" :label="$t('Width')"></el-table-column> |
| | | <el-table-column :min-width="80" prop="glassHeight" :label="$t('Height')"></el-table-column> |
| | |
| | | :disabled="scope.row.number >= 1 ? false : true" |
| | | @click="UpdateStroageCageByCell(scope.row.cell, scope.row.number, -1)">{{ $t('Reduce') |
| | | }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | :disabled="scope.row.number >= 1 ? false : true" |
| | | @click="AddOutGlass(scope.row.cell,scope.row.glasstype)">{{ $t('OutGlass') |
| | | }}</el-button> |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | :disabled="scope.row.number >= 1 ? false : true" |
| | | @click="UpdateStroageCageByCell(scope.row.cell, scope.row.number, 0)">{{ $t('Delete') |
| | | }}</el-button> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | :disabled="scope.row.number >= 1 ? false : true" |
| | | @click="AddOutGlass(scope.row.cell, scope.row.glasstype)">{{ $t('OutGlass') |
| | | }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="customer" :label="$t('Customer')" width="150" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div> |
| | | {{ scope.row.customer }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="tier" :label="$t('Tier')" align="center"> |
| | | <el-table-column prop="tier" :label="$t('Tier')" width="50" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="number" :label="$t('Number')" align="center"> |
| | | <el-table-column prop="number" :label="$t('Number')" width="50" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="cageno" :label="$t('Cage GlassNumber')" align="center"> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column prop="method" :label="$t('Task Method')" align="center"> |
| | | <template slot-scope='scope'> |
| | | <template slot-scope='scope' > |
| | | <div style="text-align: center;width: 105%;"> |
| | | {{ scope.row.state >= 0 ? (scope.row.method == 0 ? $t('Out') : $t('All Out')) : "" }} |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="line" :label="$t('Task Line')"> |
| | | </el-table-column> |
| | | <el-table-column width="380" :label="$t('Operate')"> |
| | | <el-table-column width="420" :label="$t('Operate')"> |
| | | |
| | | <template slot-scope='scope'> |
| | | <el-select v-model="selected[scope.$index]" :placeholder="$t('Line')" |
| | | <template slot-scope='scope' > |
| | | <el-select v-model="selected[scope.$index]" :placeholder="$t('Line')" style="min-width: 70px; max-width: 70px;" |
| | | v-show="scope.row.state >= 0 ? true : false"> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" @click="StartChange(scope.row.flowcard, scope.row.orderstate)"> |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="StartChange(scope.row.flowcard, scope.row.orderstate)"> |
| | | {{ scope.row.orderstate > 0 ? $t('stop work') : $t('start work') }}</el-button> |
| | | |
| | | |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ModeChange(scope.row.flowcard, scope.row.method)"> |
| | | {{ $t('Mode Change') }}</el-button> |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;margin-left: 6px;" |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;margin-left: 6px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index], scope.row.line)"> |
| | | {{ scope.row.state > 0 ? $t('Stop Task') : $t('Start Task') }}</el-button> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> |
| | | <!-- 出片队列显示表 --> |
| | | <!-- <el-dialog :visible.sync="Outqueue" :title="$t('Outing Queue')" top="5vh"> |
| | | <el-table :data="tableData2" style="width: 100%;margin-bottom: 20px;" row-key="id" border lazy |
| | | :tree-props="{ children: 'glassinfo', hasChildren: 'hasChildren' }"> |
| | | <el-table-column prop="flowcard" :label="$t('Order')" width="150" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div> |
| | | |
| | | <!-- 出片队列显示表 --> |
| | | <el-dialog :visible.sync="Outqueue" top="5vh" style="height: 100%; overflow-y: auto;"> |
| | | <!-- //出片记录 --> |
| | | <label style="font-weight: bold; font-size: 18px;">{{$t('Out Records')}}</label> |
| | | <el-table :data="OutLog" style="width: 100%;margin-bottom: 20px;" row-key="id" border lazy> |
| | | <el-table-column prop="id" :label="$t('Task Id')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.id }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="flowcard" :label="$t('Flowcard')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.flowcard }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')" align="center"> |
| | | <el-table-column prop="customer" :label="$t('Customer')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.customer }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="tier" :label="$t('Tier')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.tier }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="number" :label="$t('Number')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="cageno" :label="$t('Cage GlassNumber')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="finishnumber" :label="$t('Finish No')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mate No')" align="center"> |
| | | </el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')" align="center"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="thickness" :label="$t('Thickness')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.thickness }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="width" :label="$t('Width')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.width }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="height" :label="$t('Height')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.height }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="state" :label="$t('Task State')" align="center"> |
| | | <el-table-column prop="cell" :label="$t('Slot No')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.cell }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.films }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.mateid }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | </el-table> |
| | | <label style="font-weight: bold; font-size: 18px;">{{$t('Outing Queue')}}</label> |
| | | |
| | | <!-- //出片队列 --> |
| | | <el-table :data="OutTask" style="width: 100%;margin-bottom: 20px;" row-key="id" border lazy> |
| | | <el-table-column prop="id" :label="$t('Task Id')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.id }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="flowcard" :label="$t('Flowcard')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.flowcard }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="customer" :label="$t('Customer')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.customer }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="tier" :label="$t('Tier')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.tier }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="thickness" :label="$t('Thickness')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.thickness }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="width" :label="$t('Width')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.width }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="height" :label="$t('Height')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.height }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="films" :label="$t('Films')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.films }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="mateid" :label="$t('Mateid')" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div :style="{width: '105%', height: '100%', lineHeight: '38px' }"> |
| | | {{ scope.row.mateid }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="task_state" :label="$t('Task State')" align="center"> |
| | | <template slot-scope='scope'> |
| | | <div |
| | | :style="{ backgroundColor: scope.row.state === 0 ? '' : '#00FFFF', width: '105%', height: '125%', lineHeight: '50px' }"> |
| | | {{ scope.row.state >= 0 ? scope.row.state == 0 ? $t('Stop') : $t('Start') : "" }} |
| | | :style="{backgroundColor: scope.row.state === 0 ? '#00FFFF' : '', width: '105%', height: '100%%', lineHeight: '38px' }"> |
| | | {{scope.row.state == 0 ? $t('Waiting') : $t('Suspend') }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="method" :label="$t('Task Method')" align="center"> |
| | | <el-table-column width="250" :label="$t('Operate')"> |
| | | <template slot-scope='scope'> |
| | | <div style="text-align: center;width: 105%;"> |
| | | {{ scope.row.state >= 0 ? (scope.row.method == 0 ? $t('Out') : $t('All Out')) : "" }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="line" :label="$t('Task Line')"> |
| | | </el-table-column> |
| | | <el-table-column width="380" :label="$t('Operate')"> |
| | | |
| | | <template slot-scope='scope'> |
| | | <el-select v-model="selected[scope.$index]" :placeholder="$t('Line')" |
| | | v-show="scope.row.state >= 0 ? true : false"> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" @click="StartChange(scope.row.flowcard, scope.row.orderstate)"> |
| | | {{ scope.row.orderstate > 0 ? $t('stop work') : $t('start work') }}</el-button> |
| | | |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;height:42px;width: 70px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ModeChange(scope.row.flowcard, scope.row.method)"> |
| | | {{ $t('Mode Change') }}</el-button> |
| | | @click="UpdateOutTask(scope.row.id, scope.row.state)"> |
| | | {{ scope.row.state == 0 ? $t('Suspend') : $t('Start') }}</el-button> |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;margin-left: 6px;" |
| | | v-show="scope.row.state >= 0 ? true : false" |
| | | @click="ClaimTasks(scope.row.flowcard, scope.row.state, selected[scope.$index], scope.row.line)"> |
| | | {{ scope.row.state > 0 ? $t('Stop Task') : $t('Start Task') }}</el-button> |
| | | |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" |
| | | v-show="scope.row.state >= 0 ? true : false" @click="deleteTasks(scope.row.flowcard)"> |
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;height:42px;width: 70px;" |
| | | v-show="scope.row.state >= 0 ? true : false" @click="DeleteOutTask(scope.row.id)"> |
| | | {{ $t('langDelete') }}</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-dialog> --> |
| | | </el-dialog> |
| | | <!-- 人工匹配 --> |
| | | <el-dialog :visible.sync="StorageCageAdd" :title="$t('StorageCageAdd')" top="5vh" width="80%"> |
| | | <div style="display: flex;height: 40px;line-height: 40px;"> |
| | |
| | | Disabled, SelectPermissionByUserName, currentUsername, CompleteQueue, |
| | | isAllowReorderings, |
| | | |
| | | UpdateStroageCageByCell,AddOutGlass, FinishTask,TerminateTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure, StartChange, deleteTasks,SaveMeasure |
| | | UpdateStroageCageByCell, AddOutGlass, FinishTask, TerminateTask, SelectGlassInfo, StorageCageAddGlass, ClaimTasks, ModeChange, UpdateQueue, importData, ManualTake, AnewMeasure, StartChange,UpdateOutTask,DeleteOutTask, deleteTasks, SaveMeasure |
| | | } from "../../api/home"; |
| | | |
| | | |
| | |
| | | // 测量下拉框膜系 |
| | | selectedOption1: { |
| | | films: [], |
| | | }, |
| | | selectedOption2: { |
| | | }, |
| | | selectedOption2: { |
| | | thickness: [], |
| | | }, |
| | | }, |
| | | // selectedOption1: [films], |
| | | // selectedOption2: [thickness], |
| | | |
| | | selectedValue1: null, // 用于存储第一个下拉框的选中值 |
| | | selectedValue2: null, // 用于存储第二个下拉框的选中值 |
| | | // 将值赋给 selectedValue1 和 selectedValue2 |
| | | |
| | | |
| | | |
| | | dataList: [], |
| | | tableData1: [], |
| | | tableData2: [], |
| | | OutTask: [], |
| | | OutLog: [], |
| | | Measuermode: false, |
| | | confirm1: false, |
| | | confirm2: false, |
| | |
| | | this.StorageCage = true; |
| | | } else if (i == 4) { |
| | | this.Taskqueue = true; |
| | | }else if (i == 5) { |
| | | } else if (i == 5) { |
| | | this.Outqueue = true; |
| | | } |
| | | }, |
| | |
| | | this.tasklist3 = obj.glassInfoFlowCard[0]; |
| | | this.tasklist2 = obj.StoragTaskeTaskFeed[0]; |
| | | this.tasklist1 = obj.StoragTaskeTaskOut[0]; |
| | | this.SelectSetting=obj.SelectSetting[0]; |
| | | this.SelectSetting = obj.SelectSetting[0]; |
| | | this.selectedOption1.films = obj.SelectMeasure[0]; |
| | | this.selectedOption2.thickness = obj.SelectMeasure[0]; |
| | | // if(obj.StorageCageForm.length == 0){ |
| | |
| | | // }else{ |
| | | // this.StorageCageForm = obj.StorageCageForm[0]; |
| | | // } |
| | | |
| | | |
| | | // console.log(obj.StorageCageForm[0]); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | this.tableData1 = obj.OrderTask[0]; |
| | | this.OutTask = obj.OutTask[0]; |
| | | this.OutLog = obj.OutLog[0]; |
| | | |
| | | |
| | | |
| | | this.tableData2 = obj.OrderTask[0]; |
| | | this.LastQueue = obj.LastQueue[0]; |
| | | |
| | |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | |
| | | load() { |
| | | //加载用户权限 |
| | | currentUsername().then(res => { |
| | |
| | | } |
| | | }); |
| | | },//选择开始工程 |
| | | StartChange(flowcard,orderstate) { |
| | | if(orderstate==1){ |
| | | |
| | | StartChange(flowcard,0).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | }else{ |
| | | StartChange(flowcard,1).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | } |
| | | StartChange(flowcard, orderstate) { |
| | | if (orderstate == 1) { |
| | | |
| | | StartChange(flowcard, 0).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | } else { |
| | | StartChange(flowcard, 1).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | //选择开始工程 |
| | | //开始/暂停出片队列 |
| | | UpdateOutTask(id, state) { |
| | | console.log(id + " 状态" + state); |
| | | if( state == 0){ |
| | | state=2 |
| | | }else{ |
| | | state=0 |
| | | } |
| | | UpdateOutTask(id, state).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | //删除工程 |
| | | deleteTasks(flowcard) { |
| | | deleteTasks(flowcard).then(res => { |
| | | console.log("@" + flowcard + "@"); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | //删除出片队列 |
| | | DeleteOutTask(id) { |
| | | DeleteOutTask(id).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | //保存测量膜系的参数 |
| | | SaveMeasure(films,thickness) { |
| | | SaveMeasure(films, thickness) { |
| | | console.log('Films:', films); // 打印 films |
| | | console.log('Thickness:', thickness); // 打印 thickness |
| | | SaveMeasure(films,thickness).then(res => { |
| | | SaveMeasure(films, thickness).then(res => { |
| | | if (res.data.message >= 1) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | } |
| | |
| | | //查询玻璃信息 |
| | | SelectGlassInfo() { |
| | | console.log(this.StorageCageForm.glasswidthmm); |
| | | |
| | | |
| | | SelectGlassInfo(this.StorageCageForm.glasswidthmm, this.StorageCageForm.glassheightmm, this.StorageCageForm.thickness, this.StorageCageForm.films).then(res => { |
| | | this.StorageCageAddInfo = res.data.StorageCageAddInfo; |
| | | }) |
| | |
| | | } |
| | | |
| | | }, |
| | | AddOutGlass(cell,glasstype) { |
| | | AddOutGlass(cell,glasstype).then(res => { |
| | | AddOutGlass(cell, glasstype) { |
| | | AddOutGlass(cell, glasstype).then(res => { |
| | | if (res.data.message == 200) { |
| | | this.$message.success(this.$t('Operation successful')); |
| | | }else { |
| | | } else { |
| | | this.$message.error(this.$t('Operation failed')); |
| | | } |
| | | }); |
| | | |
| | | |
| | | }, |
| | | //启用//理片笼禁用 |
| | | UpdateDisabled(cage, cell, disabled) { |