chenlu
2024-07-02 4794038198fdfc1924559b22b482a8b99432758d
Merge branch 'master' of http://bore.pub:10439/r/ERP_override
3个文件已修改
214 ■■■■■ 已修改文件
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue 177 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabel1.vue
@@ -18,7 +18,7 @@
let titleList = ref([])
let dataList = ref([])
let list = ref([])
let lastList = ref([])
let lastList=ref([])
let filterData = ref({})
@@ -37,20 +37,21 @@
onMounted(() => {
      request.post(`/processCard/getSelectPrintCustomLabel/${type}`, data.value).then((res) => {
        if (res.code == 200) {
          console.log(res.data.data)
          produceList.value = deepClone(res.data.title)
          list.value = deepClone(res.data.data)
          const data = produceList.value[0].value
          dataList = JSON.parse(`[${data}]`);
          labelList = dataList[0]
          for (let i = 0; i < list.value.length; i++) {
            let count = list.value[i].data.length
            let count= list.value[i].data.length
            for (let j = 0; j < count; j++) {
              for (let k = 0; k < list.value[i].data[j].quantity; k++) {
              for (let k = 0; k < list.value[i].data[j].quantity; k++){
                lastList.value.push(list.value[i].data[j])
              }
            }
          }
          console.log(lastList.value)
        } else {
          ElMessage.warning(res.msg)
          router.push("/login")
@@ -58,15 +59,14 @@
      })
    }
)
// 打印方法
const printFlowCard = () => {
  // 需要打印的局部区域赋予"print-wrap"的id
  let el = document.getElementById("print");
  let el = document.getElementById("printFlowCard");
  let doc = document;
  let body = doc.body || doc.getElementsByTagName("body")[0];
  let printId = "print-" + Date.now();
@@ -104,20 +104,19 @@
<template>
  <el-button id="printButton" @click="printFlowCard();">{{ $t('basicData.print') }}</el-button>
  <div id="printFlowCard" >
    <div id="entirety" v-for="(item,id) in labelList" >
      <div class="row1">{{ item.customer_name }}</div>
    <div id="entirety" v-for="(item,id) in lastList" >
      <div class="row1">
        <span>{{ item.customerAbbreviation }}</span>&nbsp;
        <span>{{ item.orderId }}</span>
      </div>
      <div  class="row2">
        <span>{{ item.order_id }}</span>&nbsp;
        <span>{{ item.type_name }}</span>
        <span>{{ item.project }}</span>&nbsp;
        <span>{{ item.building_number }}</span>
      </div>
      <div class="row3">{{item.width}}*{{item.height}}={{item.quantity}}</div>
      <div class="row5">
        <span>{{item.project}}</span>&nbsp;
        <span>{{ item.building_number }}</span>
      </div>
      <div class="row6">
        <span>{{item.glass_child}}</span>&nbsp;
        <span>{{item.processing_note}}</span>
        <span>{{item.remarks}}</span>&nbsp;
        <span>{{ item.processingNote }}</span>
      </div>
    </div>
  </div>
@@ -130,141 +129,71 @@
  padding: 0;
}
body {
  font-weight: bolder;
  overflow: hidden;
}
#printButton {
  margin-top: -20px;
  /*margin-top: -20px;*/
  width: 100px;
}
/*成*/
.printFlowCard_finished {
  /*
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
  */
#printFlowCard {
  justify-content: left;
  flex-wrap: wrap;
  font-size: 12pt;
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  margin-top: 15px;
}
/*成*/
.entirety_finished {
  display: flex;
#entirety{
  text-align: center;
  flex-direction: column;
  margin-left: 10px;
  width: 100%;
  height: 100%;
  width: 337px;
  height: 120px;
}
/*div{
  font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}*/
.row1 {
  font-size: 12pt;
  font-weight: bold;
  height: 25px;
}
.row2 {
  font-size: 12pt;
  font-weight: bold;
  height: 25px;
}
span {
  font-size: 12pt;
  font-weight: bold;
}
.row3 {
  text-align: center;
  font-weight: bolder;
  font-size: 22px;
  /*display: flex;
  justify-content:space-evenly;*/
}
.row3 label {
  font-size: 22px;
  margin-top: 28px;
}
.contentRow {
  font-weight: bolder;
  display: flex;
  text-align: center;
  width: 100%;
}
label {
  font-weight: bolder;
  /*font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;*/
}
.contentRow .row1 {
  width: 30%;
  margin-top: -5px;
  height: 30px;
  font-size: 20pt;
  font-weight: bolder;
}
.entirety_finished .row4 {
  font-weight: bolder;
  text-align: right;
  margin-right: 10px;
.row5 {
  height: 25px;
  font-weight: bold;
  font-size: 12pt;
}
.contentRow .row1, .contentRow .row2 {
  text-align: left;
  font-weight: bolder;
.row6 {
  height: 15px;
  font-weight: bold;
  font-size: 8pt;
}
@page {
  size: auto;  /* auto is the initial value */
  margin: 13mm 4mm 0mm 6mm;  /* this affects the margin in the printer settings */
  margin: 7mm 4mm 2mm 6mm  /* this affects the margin in the printer settings */
}
@media print {
  div {
    page-break-inside: avoid;
  }
  .entirety_finished {
    page-break-before: always;
  }
}
.printFlowCard_finished1 {
  flex-wrap: wrap;
  font-size: 8pt;
  display: flex;
  flex-direction: column;
}
/*成*/
.entirety_finished1 {
  display: flex;
  text-align: center;
  flex-direction: column;
  margin-left: 10px;
  width: 337px;
  height: 120px;
}
.contentRow1 {
  font-weight: bolder;
  display: flex;
  text-align: center;
  width: 100%;
}
.contentRow1 .row1 {
  width: 30%;
  font-weight: bolder;
}
.entirety_finished1 .row4 {
  font-weight: bolder;
  text-align: right;
  margin-right: 10px;
}
.contentRow1 .row1, .contentRow1 .row2 {
  text-align: left;
  font-weight: bolder;
}
</style>
north-glass-erp/northglass-erp/src/views/pp/processCard/PrintCustomLabelSemi1.vue
@@ -66,7 +66,7 @@
// 打印方法
const printFlowCard = () => {
  // 需要打印的局部区域赋予"print-wrap"的id
  let el = document.getElementById("print");
  let el = document.getElementById("printFlowCard");
  let doc = document;
  let body = doc.body || doc.getElementsByTagName("body")[0];
  let printId = "print-" + Date.now();
@@ -116,7 +116,7 @@
      <div class="row3">{{item.width}}*{{item.height}}={{item.quantity}}</div>
      <div class="row5">
        <span>{{item.remarks}}</span>&nbsp;
        <span>{{ item.processing_note }}</span>
        <span>{{ item.processingNote }}</span>
      </div>
    </div>
  </div>
@@ -130,7 +130,7 @@
}
#printButton {
  margin-top: -20px;
  /*margin-top: -20px;*/
  width: 100px;
}
@@ -144,38 +144,37 @@
#entirety{
  text-align: center;
  width: 185px;
  height: 87px;
  margin-bottom: 10px;
  width: 50%;
  height: 105px;
}
.row1 {
  font-size: 8pt;
  font-size: 12pt;
  font-weight: bold;
  height: 16px;
  height: 25px;
}
.row2 {
  font-size: 8pt;
  font-size: 12pt;
  font-weight: bold;
  height: 16px;
  height: 25px;
}
span {
  font-size: 8pt;
  font-size: 12pt;
  font-weight: bold;
}
.row3 {
  margin-top: -5px;
  height: 19px;
  font-size: 12pt;
  height: 30px;
  font-size: 20pt;
  font-weight: bolder;
}
.row5 {
  height: 15px;
  height: 25px;
  font-weight: bold;
  font-size: 8pt;
  font-size: 12pt;
}
.row6 {
@@ -188,7 +187,7 @@
@page {
  size: auto;  /* auto is the initial value */
  margin: 8mm 4mm 0mm 6mm  /* this affects the margin in the printer settings */
  margin: 2mm 2mm 2mm 2mm  /* this affects the margin in the printer settings */
}
north-glass-erp/northglass-erp/src/views/sd/order/CreateOrder.vue
@@ -346,6 +346,7 @@
              ElMessage.error("请先取消筛选")
              return
            }
            xGrid.value.clearSort()
            let order ={
              title:titleUploadData.value,
              detail:$grid.getTableData().tableData,
@@ -1148,6 +1149,10 @@
  }
}
const inputFocus = ()=>{
  xGrid.value.clearSelected()
}
</script>
<template>
@@ -1295,6 +1300,7 @@
            <div v-for="(option, index) in column.filters" :key="index">
              <input type="text"
                     v-model="option.data"
                     @focus="inputFocus"
                     @input="changeFilterEvent($event, option, $panel)"/>
            </div>
          </div>