|
@@ -1,66 +1,39 @@
|
|
|
<template>
|
|
|
<div class="tenant">
|
|
|
<div class="content">
|
|
|
- <byTable
|
|
|
- :source="sourceList.data"
|
|
|
- :pagination="sourceList.pagination"
|
|
|
- :config="config"
|
|
|
- :loading="loading"
|
|
|
- highlight-current-row
|
|
|
- :selectConfig="selectConfig"
|
|
|
- :table-events="{}"
|
|
|
- :action-list="[]"
|
|
|
- @get-list="getList"
|
|
|
- >
|
|
|
+ <byTable :source="sourceList.data" :pagination="sourceList.pagination" :config="config" :loading="loading" highlight-current-row
|
|
|
+ :selectConfig="selectConfig" :table-events="{}" :action-list="[]" @get-list="getList">
|
|
|
</byTable>
|
|
|
</div>
|
|
|
- <el-dialog
|
|
|
- :title="'任务流转'"
|
|
|
- v-model="dialogVisible"
|
|
|
- :width="submitType == '20' ? '60%' : '600'"
|
|
|
- v-loading="loading"
|
|
|
- destroy-on-close
|
|
|
- >
|
|
|
- <byForm
|
|
|
- :formConfig="formConfig"
|
|
|
- :formOption="formOption"
|
|
|
- v-model="formData.data"
|
|
|
- :rules="rules"
|
|
|
- ref="byform"
|
|
|
- >
|
|
|
+ <el-dialog :title="'任务流转'" v-model="dialogVisible" :width="submitType == '20' ? '60%' : '600'" v-loading="loading" destroy-on-close>
|
|
|
+ <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="byform">
|
|
|
<template #right>
|
|
|
<div style="width: 100%; padding-left: 54%; margin-bottom: -330px">
|
|
|
<el-form-item label="条形码">
|
|
|
<div id="pdfDom" style="border: 1px solid #000; padding: 10px">
|
|
|
<svg id="barCode"></svg>
|
|
|
<div>
|
|
|
- <div
|
|
|
- style="
|
|
|
+ <div style="
|
|
|
font-size: 14px;
|
|
|
font-weight: 700;
|
|
|
color: #000;
|
|
|
line-height: 32px;
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
产品:{{ printData.productName }}
|
|
|
</div>
|
|
|
- <div
|
|
|
- style="
|
|
|
+ <div style="
|
|
|
font-size: 14px;
|
|
|
font-weight: 700;
|
|
|
color: #000;
|
|
|
line-height: 32px;
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
客户:{{ printData.customerName }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<div style="text-align: center; margin-top: 10px">
|
|
|
- <el-button type="primary" v-print="printObj" size="large"
|
|
|
- >打 印</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" v-print="printObj" size="large">打 印</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -71,68 +44,41 @@
|
|
|
</template>
|
|
|
<template #file>
|
|
|
<div style="width: 100%">
|
|
|
- <el-upload
|
|
|
- v-model:fileList="formData.data.fileList"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="uploadData"
|
|
|
- multiple
|
|
|
- :before-upload="uploadFile"
|
|
|
- :on-preview="onPreviewFile"
|
|
|
- >
|
|
|
+ <el-upload v-model:fileList="formData.data.fileList" action="https://winfaster.obs.cn-south-1.myhuaweicloud.com" :data="uploadData"
|
|
|
+ multiple :before-upload="uploadFile" :on-preview="onPreviewFile">
|
|
|
<el-button>选择</el-button>
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #fileOne>
|
|
|
- <div
|
|
|
- style="width: 100%"
|
|
|
- v-if="
|
|
|
+ <div style="width: 100%" v-if="
|
|
|
formData.data.fileListOne && formData.data.fileListOne.length > 0
|
|
|
- "
|
|
|
- >
|
|
|
- <span
|
|
|
- v-for="item in formData.data.fileListOne"
|
|
|
- :key="item.id"
|
|
|
- @click="onPreviewFile(item)"
|
|
|
- style="margin-right: 10px; cursor: pointer; color: #409eff"
|
|
|
- >
|
|
|
+ ">
|
|
|
+ <span v-for="item in formData.data.fileListOne" :key="item.id" @click="onPreviewFile(item)"
|
|
|
+ style="margin-right: 10px; cursor: pointer; color: #409eff">
|
|
|
{{ item.name }}
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="width: 100%" v-else>无</div>
|
|
|
</template>
|
|
|
<template #fileTwo>
|
|
|
- <div
|
|
|
- style="width: 100%"
|
|
|
- v-if="
|
|
|
+ <div style="width: 100%" v-if="
|
|
|
formData.data.fileListTwo && formData.data.fileListTwo.length > 0
|
|
|
- "
|
|
|
- >
|
|
|
- <span
|
|
|
- v-for="item in formData.data.fileListTwo"
|
|
|
- :key="item.id"
|
|
|
- @click="onPreviewFile(item)"
|
|
|
- style="margin-right: 10px; cursor: pointer; color: #409eff"
|
|
|
- >
|
|
|
+ ">
|
|
|
+ <span v-for="item in formData.data.fileListTwo" :key="item.id" @click="onPreviewFile(item)"
|
|
|
+ style="margin-right: 10px; cursor: pointer; color: #409eff">
|
|
|
{{ item.name }}
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="width: 100%" v-else>无</div>
|
|
|
</template>
|
|
|
<template #fileThree>
|
|
|
- <div
|
|
|
- style="width: 100%"
|
|
|
- v-if="
|
|
|
+ <div style="width: 100%" v-if="
|
|
|
formData.data.fileListThree &&
|
|
|
formData.data.fileListThree.length > 0
|
|
|
- "
|
|
|
- >
|
|
|
- <span
|
|
|
- v-for="item in formData.data.fileListThree"
|
|
|
- :key="item.id"
|
|
|
- @click="onPreviewFile(item)"
|
|
|
- style="margin-right: 10px; cursor: pointer; color: #409eff"
|
|
|
- >
|
|
|
+ ">
|
|
|
+ <span v-for="item in formData.data.fileListThree" :key="item.id" @click="onPreviewFile(item)"
|
|
|
+ style="margin-right: 10px; cursor: pointer; color: #409eff">
|
|
|
{{ item.name }}
|
|
|
</span>
|
|
|
</div>
|
|
@@ -141,20 +87,10 @@
|
|
|
</byForm>
|
|
|
<template #footer>
|
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="submitForm(true)"
|
|
|
- size="large"
|
|
|
- :loading="submitLoading"
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="submitForm(true)" size="large" :loading="submitLoading">
|
|
|
{{ submitText }}
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- @click="submitForm()"
|
|
|
- size="large"
|
|
|
- :loading="submitLoading"
|
|
|
- >
|
|
|
+ <el-button type="danger" @click="submitForm()" size="large" :loading="submitLoading">
|
|
|
退回任务池
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -403,6 +339,7 @@ const submitForm = (flag) => {
|
|
|
id: formData.data.id,
|
|
|
receivedUserId: formData.data.receivedUserId,
|
|
|
fileList: formData.data.fileList,
|
|
|
+ taskProgressId: formData.data.taskProgressId,
|
|
|
};
|
|
|
proxy.post("/productionTaskDetail/circulation", data).then(
|
|
|
(res) => {
|
|
@@ -427,6 +364,7 @@ const submitForm = (flag) => {
|
|
|
.post("/productionTaskDetail/productStorage", {
|
|
|
id: formData.data.id,
|
|
|
fileList: formData.data.fileList,
|
|
|
+ taskProgressId: formData.data.taskProgressId,
|
|
|
})
|
|
|
.then(
|
|
|
(res) => {
|
|
@@ -454,7 +392,10 @@ const submitForm = (flag) => {
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
proxy
|
|
|
- .post("/productionTaskDetail/revokeTask", { id: formData.data.id })
|
|
|
+ .post("/productionTaskDetail/revokeTask", {
|
|
|
+ id: formData.data.id,
|
|
|
+ taskProgressId: formData.data.taskProgressId,
|
|
|
+ })
|
|
|
.then(
|
|
|
(res) => {
|
|
|
ElMessage({
|