|
@@ -737,6 +737,14 @@ option.value = Object.assign(option.value, {
|
|
|
label: "dictLabel",
|
|
|
value: "dictValue",
|
|
|
},
|
|
|
+ change: ({ value, column }) => {
|
|
|
+ if(form.value.opType&&form.value.workOrderCode&&form.value.orderCode){
|
|
|
+ // 只有新增的时候需要调用,编辑的时候可能只限编辑先工序
|
|
|
+ if (column.boxType && column.boxType === "add") {
|
|
|
+ getOrderType(value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
label: "产品编号",
|
|
@@ -853,6 +861,17 @@ option.value = Object.assign(option.value, {
|
|
|
label: "dictLabel",
|
|
|
value: "dictValue",
|
|
|
},
|
|
|
+ click: ({ value, column }) => {
|
|
|
+ if (column.boxType) {
|
|
|
+ if (!form.value.orderType) {
|
|
|
+ ElMessage({
|
|
|
+ message: "请先选择订单类型",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
change: ({ value, column }) => {
|
|
|
option.value.column.forEach((item) => {
|
|
|
if (value) {
|
|
@@ -1204,11 +1223,17 @@ onMounted(() => {
|
|
|
|
|
|
// 选择完前工序或者后工序后获取这个
|
|
|
const getOpGroup = (value) => {
|
|
|
- getJobInfo(form.value.orderCode, value + "").then((res) => {
|
|
|
+ getJobInfo(form.value.orderCode, value + "",form.value.orderType).then((res) => {
|
|
|
form.value.workOrderCode = res.data;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const getOrderType = (value) => {
|
|
|
+ getJobInfo(form.value.orderCode, form.value.opType,value+"").then((res) => {
|
|
|
+ form.value.workOrderCode = res.data;
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
// 输入完最大值和最小值计算工单数量
|
|
|
const countPlanNum = () => {
|
|
|
if (form.value.seqMax && form.value.seqMin) {
|