| | |
| | | <el-button type="primary" @click="isAllowReorderingState()" :disabled="this.isAllowQueue">{{
|
| | | this.isAllowReordering == true ? $t('Not Allow') : $t('Allow')
|
| | | }}</el-button>
|
| | | <el-table :data="this.OutSlice" :height="700" :span-method="objectSpanMethod" border
|
| | | <el-table :data="this.OutSlice" :height="700" :span-method="objectSpanMethod" border :cell-style="cellStyle"
|
| | | style="width: 100%;overflow: auto;">
|
| | | <el-table-column prop="glassId" :label="$t('Barcode')"></el-table-column>
|
| | | <el-table-column prop="storageCage.orderId" :label="$t('Order No')"></el-table-column>
|
| | |
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column prop="sequence" :label="$t('Sequence')"></el-table-column>
|
| | | <el-table-column prop="position" :label="$t('Position')"></el-table-column>
|
| | | <el-table-column prop="position" :label="$t('Position')">
|
| | | <template slot-scope='scope'>
|
| | | {{ scope.row.position==1?$t('Yes'):$t('No') }}
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column prop="position" :label="$t('Flip')">
|
| | | <template slot-scope='scope'>
|
| | | {{ scope.row.flip==1?$t('Yes'):$t('No') }}
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column prop="barcode" :label="$t('Frame No')"></el-table-column>
|
| | |
|
| | | <el-table-column prop="barcode" :label="$t('Complete')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" :disabled="!isAllowQueue"
|
| | | @click="CompleteQueue(scope.row.id,scope.row.barcode)">{{ $t('Complete') }}</el-button>
|
| | | @click="CompleteQueue(scope.row.id,scope.row.barcode,scope.row.glassId)">{{ $t('Complete') }}</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column :width="280" :label="$t('Operate')">
|
| | |
| | | ManuallyInfeedGlass: true,
|
| | | OutingQueue: true,
|
| | | OrderInfo: true,
|
| | | CageDetails: true
|
| | | CageDetails: true,
|
| | | |
| | | };
|
| | | },
|
| | | created() {
|
| | | this.load();
|
| | | this.init();
|
| | | },
|
| | | }
|
| | | ,
|
| | | methods: {
|
| | | |
| | | |
| | | init() {
|
| | | let viewname = "Home";
|
| | | if (typeof (WebSocket) == "undefined") {
|
| | |
| | | if (item.permissionId == "32" && item.state == 1) {
|
| | | this.ManuallyInfeedGlass = false;
|
| | | }
|
| | | if (item.permissionId == "32" && item.state == 1) {
|
| | | if (item.permissionId == "33" && item.state == 1) {
|
| | | this.OutingQueue = false;
|
| | | }
|
| | | if (item.permissionId == "33" && item.state == 1) {
|
| | | if (item.permissionId == "34" && item.state == 1) {
|
| | | this.OrderInfo = false;
|
| | | }
|
| | | if (item.permissionId == "34" && item.state == 1) {
|
| | | if (item.permissionId == "35" && item.state == 1) {
|
| | | this.CageDetails = false;
|
| | | }
|
| | | });
|
| | |
| | | });
|
| | | }
|
| | | ,
|
| | | cellStyle({ row, column, rowIndex, columnIndex }) {
|
| | | // console.log(row, column, "ss");
|
| | | column=rowIndex;
|
| | | rowIndex=column;
|
| | | let style="";
|
| | | if (columnIndex === 8&&row.position==1) {
|
| | | style="background-Color:yellow;";
|
| | | }
|
| | | if (columnIndex === 9&&row.flip==1) {
|
| | | style="background-Color:yellow;";
|
| | | }
|
| | | return style;
|
| | | }
|
| | | ,
|
| | | //合并行
|
| | | objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
| | | // console.log(row, column, "ss");
|
| | |
| | | if (rowIndex != 0) {
|
| | | barcode2 = arrOutSlice[rowIndex - 1].barcode;
|
| | | }
|
| | | if (columnIndex === 11) {
|
| | | if (columnIndex === 12) {
|
| | | if (barcode != barcode2) {
|
| | | // this.FrameNoFlag = barcode;
|
| | | for (let i = rowIndex; i < this.OutSlice.length; i++) {
|
| | |
| | | this.form5 = {};
|
| | | },
|
| | | //手动完成出片任务
|
| | | CompleteQueue(id,frameid) {
|
| | | CompleteQueue(id,frameid).then(res => {
|
| | | CompleteQueue(id,frameid,glassid) {
|
| | | CompleteQueue(id,frameid,glassid).then(res => {
|
| | | if (res.data.message == 200) {
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|