张诺
5 小时以前 4743d5644fb9c1a4d4a8038331526a0890a453e9
src/views/productionManagement/productionOrder/BindRouteDialog.vue
@@ -155,9 +155,9 @@
      </el-descriptions-item>
    </el-descriptions>
    <!-- ================= 切料图示 ================= -->
    <div class="section-title" v-if="formData.cuttingFileVo.length > 0">切料图示</div>
    <div class="section-title" v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)">切料图示</div>
    <ActionFileUpload
    v-if="formData.cuttingFileVo.length > 0"
        v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)"
        style="width: 50%;float: left;"
        v-model:file-list="formData.cuttingFileVo"
        :action="upload.url"
@@ -171,7 +171,7 @@
        :onDownload="onDownload"
        :onRemove="onRemove"
        :onPreview="onPreview"
        :onView="type === 'detail' ? false : true"
        :onView="type!=='detail'"
        :tip-text="type === 'detail' ? '' : '支持图片(jpg, jpeg, png)格式'"
    />
    <el-image
@@ -192,7 +192,7 @@
        <el-input v-model="formData.cutNum" placeholder="切料尺寸" :disabled="isDetail" />
      </el-descriptions-item>
      <el-descriptions-item label="切料数量" align="center">
        <el-input v-model="formData.cutSize" placeholder="切料尺寸" :disabled="isDetail" />
        <el-input v-model="formData.cutSize" placeholder="切料数量" :disabled="isDetail" />
      </el-descriptions-item>
      <el-descriptions-item label="中盒数量" align="center">
        <el-input v-model="formData.mediumBoxQty" placeholder="中盒数量" :disabled="isDetail" />
@@ -451,6 +451,10 @@
  headers: { Authorization: 'Bearer ' + getToken() }
})
const showCuttingFile = computed(() => {
  return props.type === 'detail' && Array.isArray(formData.cuttingFileVo) && formData.cuttingFileVo.length > 0
})
const filePreviewRef = ref()
const formData = reactive({
  productOrderList:null,
@@ -462,6 +466,7 @@
  no: "",
  productName: "",
  productDescription: "",
  cuttingDiagramCheckout:"",
  clientName: "",
  finishedSize: "",
  cutNum: "",
@@ -484,7 +489,6 @@
  ],
  processContent: [
    {
      id: "1",
      processId: "",
      processName: "",
      mediumBoxQty: "",
@@ -500,7 +504,6 @@
  ],
  materialInfo: [
    {
      id: "1",
      productId: "",
      name: "",
      productModelId: "",
@@ -558,6 +561,7 @@
  no: "",
  productName: "",
  productDescription: "",
  cuttingDiagramCheckout:"平张",
  clientName: "",
  finishedSize: "",
  cutNum: "",
@@ -580,7 +584,6 @@
  ],
  processContent: [
    {
      id: "1",
      processId: "",
      processName: "",
      mediumBoxQty: "",
@@ -596,7 +599,6 @@
  ],
  materialInfo: [
    {
      id: "1",
      productId: "",
      name: "",
      productModelId: "",
@@ -892,7 +894,6 @@
const addProcessRow = () => {
  formData.processContent.push({
    id: Date.now().toString(),
    processId: "",
    processName: "",
    openCount: "",