|
@@ -25,6 +25,7 @@
|
|
|
<el-progress
|
|
|
:text-inside="true"
|
|
|
:stroke-width="35"
|
|
|
+ :font-color="'#ff0000'"
|
|
|
:percentage="item.completeNum/row.workOrderNum * 100"
|
|
|
status="success"
|
|
|
>{{item.operationName}}(完成{{item.completeNum}})
|
|
@@ -45,7 +46,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
link
|
|
|
- v-if="row.materialState === '0' || row.deviceState === '0'"
|
|
|
+ v-if="row.materialState === '-' || row.deviceState === '-' || row.bom === '-' || row.craftFile === '-'"
|
|
|
size="small"
|
|
|
@click="handleRefresh(row.workOrderCode)"
|
|
|
><i-ep-edit />刷新
|
|
@@ -88,6 +89,7 @@ import {prepareCheckInfo,refreshPrepareCheckInfo} from "@/api/order"
|
|
|
import {queryChildrenInfo} from "@/api/process"
|
|
|
import { useCommonStoreHook } from "@/store";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
+const router = useRouter();
|
|
|
const test = () => {
|
|
|
isShowTable.value = true;
|
|
|
tableType.value = tableType.value == 1 ? 2 : 1;
|
|
@@ -282,8 +284,8 @@ option.value = Object.assign(option.value, {
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- label: "工艺文件",
|
|
|
- width: 115,
|
|
|
+ label: "文件资料",
|
|
|
+ width: 350,
|
|
|
overHidden: true,
|
|
|
prop: "craftFile",
|
|
|
addDisplay: false,
|
|
@@ -291,10 +293,10 @@ option.value = Object.assign(option.value, {
|
|
|
editDisplay: false,
|
|
|
html: true,
|
|
|
formatter: (val) => {
|
|
|
- if (val.craftFile === '1') {
|
|
|
- return '<b class="el-tag el-tag--success el-tag--light">已齐套</b>';
|
|
|
+ if (val.craftFile !== '-') {
|
|
|
+ return '<b class="el-tag el-tag--success el-tag--light">'+val.craftFile+'</b>';
|
|
|
}
|
|
|
- return '<b class="el-tag el-tag--danger el-tag--light">未齐套</b>';
|
|
|
+ return '<b class="el-tag el-tag--danger el-tag--light">-</b>';
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -307,10 +309,10 @@ option.value = Object.assign(option.value, {
|
|
|
editDisplay: false,
|
|
|
html: true,
|
|
|
formatter: (val) => {
|
|
|
- if (val.bom === '1') {
|
|
|
- return '<b class="el-tag el-tag--success el-tag--light">已齐套</b>';
|
|
|
+ if (val.bom !== '-') {
|
|
|
+ return '<b class="el-tag el-tag--success el-tag--light">'+val.bom+'</b>';
|
|
|
}
|
|
|
- return '<b class="el-tag el-tag--danger el-tag--light">未齐套</b>';
|
|
|
+ return '<b class="el-tag el-tag--danger el-tag--light">-</b>';
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -323,13 +325,13 @@ option.value = Object.assign(option.value, {
|
|
|
prop: "routeId",
|
|
|
html: true,
|
|
|
formatter: (val) => {
|
|
|
- if (val.routeId === '1') {
|
|
|
- return '<b class="el-tag el-tag--success el-tag--light">已齐套</b>';
|
|
|
+ if (val.routeId !== '-') {
|
|
|
+ return '<b class="el-tag el-tag--success el-tag--light">'+val.routeId+'</b>';
|
|
|
}
|
|
|
- return '<b class="el-tag el-tag--danger el-tag--light">未齐套</b>';
|
|
|
+ return '<b class="el-tag el-tag--danger el-tag--light">-</b>';
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
+ /*{
|
|
|
label: "设计文件",
|
|
|
prop: "dataFile",
|
|
|
width: 115,
|
|
@@ -344,8 +346,8 @@ option.value = Object.assign(option.value, {
|
|
|
}
|
|
|
return '<b class="el-tag el-tag--danger el-tag--light">未齐套</b>';
|
|
|
},
|
|
|
- },
|
|
|
- {
|
|
|
+ },*/
|
|
|
+ /* {
|
|
|
label: "工艺文件",
|
|
|
width: 115,
|
|
|
overHidden: true,
|
|
@@ -374,8 +376,8 @@ option.value = Object.assign(option.value, {
|
|
|
hide: true,
|
|
|
prop: "routeIds",
|
|
|
dicData: [ { label: "已齐套", value: "1", }, ],
|
|
|
- },
|
|
|
- {
|
|
|
+ },*/
|
|
|
+ /* {
|
|
|
label: "设计文件",
|
|
|
prop: "dataFiles",
|
|
|
width: 150,
|
|
@@ -385,7 +387,7 @@ option.value = Object.assign(option.value, {
|
|
|
multiple: true,
|
|
|
hide: true,
|
|
|
dicData: [ { label: "已齐套", value: "1", }, ],
|
|
|
- },
|
|
|
+ },*/
|
|
|
{
|
|
|
label: "设备状况",
|
|
|
prop: "deviceState",
|
|
@@ -459,11 +461,20 @@ option.value = Object.assign(option.value, {
|
|
|
onMounted(() => {
|
|
|
form.value.routeId = "1"
|
|
|
form.value.materialState = 1
|
|
|
- // console.log("crudRef", crudRef)
|
|
|
+ let url = window.location.href
|
|
|
+ if(url.includes("workOrderCode")){
|
|
|
+ search.value.workOrderCode = url.substring(url.indexOf("workOrderCode")+ 14)
|
|
|
+ }
|
|
|
dataList();
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
-<style>
|
|
|
-
|
|
|
+<style scoped>
|
|
|
+:deep(.el-progress-bar__innerText) {
|
|
|
+ color: #737674;
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 12px;
|
|
|
+ margin: 0 5px;
|
|
|
+ vertical-align: middle;
|
|
|
+}
|
|
|
</style>
|