|
@@ -36,7 +36,7 @@
|
|
|
import { ref } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
|
-
|
|
|
+import {queryStationByLineId} from "@/api/station"
|
|
|
import { useDictionaryStoreHook } from "@/store";
|
|
|
import { getStatistics } from "@/api/order/index";
|
|
|
import * as echarts from "echarts";
|
|
@@ -55,9 +55,12 @@ const { selectionChange, multipleDelete } = Methords; //选中和批量删除事
|
|
|
const { checkBtnPerm, downloadTemplate, exportData } = Utils; //按钮权限等工具
|
|
|
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
-
|
|
|
+const stationList = ref([])
|
|
|
const charts = ref(null);
|
|
|
const handleEdit =(row,index) =>{
|
|
|
+ queryStationByLineId(row.productLineId).then((data)=>{
|
|
|
+ stationList.value = data.data
|
|
|
+ })
|
|
|
crudRef.value && crudRef.value.rowEdit(row, index);
|
|
|
}
|
|
|
onMounted(() => {
|
|
@@ -119,7 +122,21 @@ option.value = Object.assign(option.value, {
|
|
|
label: "工位名称",
|
|
|
prop: "stationName",
|
|
|
search: true,
|
|
|
- editDisabled: true,
|
|
|
+ display: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "工位名称",
|
|
|
+ hide: true,
|
|
|
+ editDisabled: false,
|
|
|
+ type: 'select',
|
|
|
+ dicData: stationList,
|
|
|
+ prop: "stationId",
|
|
|
+ props: { label: "name", value: "id" },
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: "请选择工位名称",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
},
|
|
|
{
|
|
|
label: "工单编码",
|
|
@@ -128,7 +145,6 @@ option.value = Object.assign(option.value, {
|
|
|
width: 125,
|
|
|
editDisabled: true,
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
label: "产线名称",
|
|
|
prop: "productLineName",
|