<template>
  <div class="customer-css">
    <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
               width="210px" style="height: 680px;" class="customer-dialog">
      <el-form :inline="true" label-position="top" style="height: 60px;"
               label-width="80px">
        <!-- 半成品卷卷号 -->
        <el-row style="">
          <el-col :span="24">
            <el-form-item :label="'半成品卷卷号:'">
              <el-input v-model="scheduleData.orderNo" style="width: 120px;" ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="">确 定</el-button>
        <el-button type="primary" @click="closeDialog">关闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "com_merge_roll",
  data() {
    return {
      titleCon: '切换卷',
      sfdcTimeList: [],
      scheduleData: {
        site: this.$store.state.user.site,
        userName: this.$store.state.user.name,
        seqNo: '',
        orderNo: '',
        partNo: '',
        rollNo: '',
        partDesc: '',
        reportTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
        reportedFlag: 'N',
        qtyRequiredOriginal: 0,
        scheduledDate: '',
        shiftNo: '',
        preItemDesc: '',
        nextItemDesc: '',
        nextItemNo: 0,
        currentRollFlag: false
      },
      currentRollOps: {
        site: this.$store.state.user.site,
        seqNo: '',
        rollNo: '',
        finishedFlag: '',
      },
      operatorData: {
        site: this.$store.state.user.site,
        username: this.$store.state.user.name,
        operatorId: '',
        operatorName: '',
        status: '',
        seqNo: '',
        showFlag: false
      },
      buttonTags:{
        createRollFlag: true,
        switchRollFlag: true,
        separatorRollFlag: true,
        finishRollFlag: true,
        mergeRollFlag: true,
        tuningFlag: true,
        produceFlag: true,
        defectFlag: true,
        toolFlag: true,
        materialFlag: true,
        downTimeFlag: true
      },
      dataListLoading: false,
    }
  },
  methods: {

    /*关闭modal*/
    closeDialog(){
      this.$emit('update:visible', false);
    },









    init(seqNo, operatorData) {
      //初始化参数
      this.scheduleData.seqNo = seqNo;
      //初始化操作员对象
      this.operatorData = JSON.parse(JSON.stringify(operatorData));
      // this.currentRollOps.seqNo = seqNo;
      // this.currentRollOps.rollNo = rollNo;
      //刷新当前派工单的信息
      //this.refreshPageData();
    },

  },
  created() {
    // this.factoryList()
    // this.getLanguageList()
  }
}

</script>

<style scoped lang="scss">
/*调节页面button和input的上下间距*/
.customer-css .customer-button{
  margin-top: 25px;
}

/*调节fieldset下的样式*/
.customer-fieldset .customer-item{
  margin-top: -15px;
}

/*fieldset下table的样式*/
.customer-fieldset /deep/ .el-table__header th.is-leaf{
  line-height: 16px;
}

/deep/ .customer-tab .el-tabs__content{
  padding: 0px !important;
}

</style>
