|
@@ -32,7 +32,7 @@
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item
|
|
|
- @click="downloadTemplate('/api/v1/plan/order/template')"
|
|
|
+ @click="downloadTemplate('/api/v1/op/baseOperation/template')"
|
|
|
>
|
|
|
<i-ep-download />下载模板
|
|
|
</el-dropdown-item>
|
|
@@ -42,12 +42,12 @@
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
- <el-button
|
|
|
+ <!-- <el-button
|
|
|
class="ml-3"
|
|
|
@click="exportData('/api/v1/plan/order/export')"
|
|
|
>
|
|
|
<template #icon> <i-ep-download /> </template>导出
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
<ExcelUpload ref="uploadRef" @finished="uploadFinished" />
|
|
@@ -98,7 +98,7 @@ const uploadFinished = () => {
|
|
|
};
|
|
|
const importExcelData = () => {
|
|
|
if (uploadRef.value) {
|
|
|
- uploadRef.value.show("/api/v1/plan/order/import");
|
|
|
+ uploadRef.value.show("/api/v1/op/baseOperation/import");
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -116,20 +116,20 @@ const switchOp = [
|
|
|
option.value = Object.assign(option.value, {
|
|
|
selection: true,
|
|
|
column: [
|
|
|
- {
|
|
|
- label: "工序OP号",
|
|
|
- prop: "operationOp",
|
|
|
- search: true,
|
|
|
- span: 12,
|
|
|
- dispaly: false,
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "工序OP号不能为空",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "工序OP号",
|
|
|
+ // prop: "operationOp",
|
|
|
+ // search: true,
|
|
|
+ // span: 12,
|
|
|
+ // dispaly: false,
|
|
|
+ // rules: [
|
|
|
+ // {
|
|
|
+ // required: true,
|
|
|
+ // message: "工序OP号不能为空",
|
|
|
+ // trigger: "blur",
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
{
|
|
|
label: "工序名称",
|
|
|
prop: "operationName",
|
|
@@ -316,15 +316,15 @@ option.value = Object.assign(option.value, {
|
|
|
dicData: switchOp,
|
|
|
value: 0,
|
|
|
},
|
|
|
- {
|
|
|
- label: "是否外协",
|
|
|
- prop: "externalCooperation",
|
|
|
- span: 8,
|
|
|
- hide: true,
|
|
|
- type: "switch",
|
|
|
- dicData: switchOp,
|
|
|
- value: 0,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "是否外协",
|
|
|
+ // prop: "externalCooperation",
|
|
|
+ // span: 8,
|
|
|
+ // hide: true,
|
|
|
+ // type: "switch",
|
|
|
+ // dicData: switchOp,
|
|
|
+ // value: 0,
|
|
|
+ // },
|
|
|
{
|
|
|
label: "是否首检",
|
|
|
prop: "firstCheck",
|
|
@@ -352,24 +352,24 @@ option.value = Object.assign(option.value, {
|
|
|
dicData: switchOp,
|
|
|
value: 0,
|
|
|
},
|
|
|
- {
|
|
|
- label: "是否工艺数量",
|
|
|
- prop: "common",
|
|
|
- span: 8,
|
|
|
- hide: true,
|
|
|
- type: "switch",
|
|
|
- dicData: switchOp,
|
|
|
- value: 0,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "是否分批",
|
|
|
- prop: "batch",
|
|
|
- span: 8,
|
|
|
- hide: true,
|
|
|
- type: "switch",
|
|
|
- dicData: switchOp,
|
|
|
- value: 0,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "是否工艺数量",
|
|
|
+ // prop: "common",
|
|
|
+ // span: 8,
|
|
|
+ // hide: true,
|
|
|
+ // type: "switch",
|
|
|
+ // dicData: switchOp,
|
|
|
+ // value: 0,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "是否分批",
|
|
|
+ // prop: "batch",
|
|
|
+ // span: 8,
|
|
|
+ // hide: true,
|
|
|
+ // type: "switch",
|
|
|
+ // dicData: switchOp,
|
|
|
+ // value: 0,
|
|
|
+ // },
|
|
|
{
|
|
|
label: "是否合批",
|
|
|
prop: "merge",
|
|
@@ -378,35 +378,59 @@ option.value = Object.assign(option.value, {
|
|
|
type: "switch",
|
|
|
dicData: switchOp,
|
|
|
value: 0,
|
|
|
+ //联动隐藏
|
|
|
+ control: (val, form) =>{
|
|
|
+ return {
|
|
|
+ mergeNum: {
|
|
|
+ display: val == 1 ? true : false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "是否委外",
|
|
|
+ prop: "outsourcing",
|
|
|
+ span: 8,
|
|
|
+ hide: true,
|
|
|
+ type: "switch",
|
|
|
+ dicData: switchOp,
|
|
|
+ // click: ({ column,value }) => {
|
|
|
+ // if(value == 0){
|
|
|
+ // console.log('column',column)
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ //联动隐藏
|
|
|
+ control: (val, form) =>{
|
|
|
+ return {
|
|
|
+ outTime: {
|
|
|
+ display: val == 1 ? true : false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ value: 0,
|
|
|
+ },
|
|
|
{
|
|
|
label: "合批数量",
|
|
|
prop: "mergeNum",
|
|
|
span: 5,
|
|
|
hide: true,
|
|
|
- value: 0,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "是否委外",
|
|
|
- prop: "outsourcing",
|
|
|
- span: 8,
|
|
|
- hide: true,
|
|
|
- type: "switch",
|
|
|
- dicData: switchOp,
|
|
|
+ display: false,
|
|
|
value: 0,
|
|
|
},
|
|
|
{
|
|
|
label: "分批数量",
|
|
|
prop: "batchNum",
|
|
|
span: 5,
|
|
|
+ display: false,
|
|
|
hide: true,
|
|
|
value: 0,
|
|
|
// slot:true, // 自定义列
|
|
|
},
|
|
|
{
|
|
|
- label: "外协时间",
|
|
|
+ label: "委外时间",
|
|
|
prop: "outTime",
|
|
|
span: 5,
|
|
|
+ display: false,
|
|
|
hide: true,
|
|
|
value: 0,
|
|
|
// slot:true, // 自定义列
|