diff --git a/src/App.vue b/src/App.vue
index cbf302d..3284eec 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -62,7 +62,10 @@ watch(
async newValue => {
// console.log('newValue ==> ', newValue);
// console.log('JSON.parse(newValue) ==> ', JSON.parse(newValue));
-
+ if (!window.hiwebSocket.opened && !window.hiwebSocket.printerList?.length) {
+ window.$message?.error('打印失败,请连接打印机');
+ return;
+ }
if (!newValue) return;
if (isValidJSON(newValue)) {
// const msgData = JSON.parse(JSON.parse(newValue));
diff --git a/src/assets/img/sys.png b/src/assets/img/sys.png
index efcf3d1..bea3d32 100644
Binary files a/src/assets/img/sys.png and b/src/assets/img/sys.png differ
diff --git a/src/components/common/system-logo.vue b/src/components/common/system-logo.vue
index f8aaaed..d3b2841 100644
--- a/src/components/common/system-logo.vue
+++ b/src/components/common/system-logo.vue
@@ -5,7 +5,7 @@
-
+
diff --git a/src/layouts/common/global-logo/index.vue b/src/layouts/common/global-logo/index.vue
index 44eeac6..4b40e3d 100644
--- a/src/layouts/common/global-logo/index.vue
+++ b/src/layouts/common/global-logo/index.vue
@@ -1,6 +1,6 @@
-
+
{{ $t('system.title') }}
diff --git a/src/typings/page-route.d.ts b/src/typings/page-route.d.ts
index 3d08ea1..a98164f 100644
--- a/src/typings/page-route.d.ts
+++ b/src/typings/page-route.d.ts
@@ -170,6 +170,8 @@ declare namespace PageRoute {
| 'sale_saleOrder'
| 'scm'
| 'scm_accessorySupplier'
+ | 'scm_linkman'
+ | 'scm_register'
| 'storage'
| 'storage_auxiliaryProduceinfo'
| 'storage_copperWire'
@@ -362,6 +364,8 @@ declare namespace PageRoute {
| 'rapidmining_deviceRealtime'
| 'sale_saleOrder'
| 'scm_accessorySupplier'
+ | 'scm_linkman'
+ | 'scm_register'
| 'storage_auxiliaryProduceinfo'
| 'storage_copperWire'
| 'storage_earlyWarning'
diff --git a/src/views/index.ts b/src/views/index.ts
index 241f186..babebfb 100644
--- a/src/views/index.ts
+++ b/src/views/index.ts
@@ -137,6 +137,8 @@ export const views: Record<
rapidmining_deviceRealtime: () => import('./rapidmining/deviceRealtime/index.vue'),
sale_saleOrder: () => import('./sale/saleOrder/index.vue'),
scm_accessorySupplier: () => import('./scm/accessorySupplier/index.vue'),
+ scm_linkman: () => import('./scm/linkman/index.vue'),
+ scm_register: () => import('./scm/register/index.vue'),
storage_auxiliaryProduceinfo: () => import('./storage/auxiliaryProduceinfo/index.vue'),
storage_copperWire: () => import('./storage/copperWire/index.vue'),
storage_earlyWarning: () => import('./storage/earlyWarning/index.vue'),
diff --git a/src/views/plan/produceOrder/index.vue b/src/views/plan/produceOrder/index.vue
index ff7e589..2366ed1 100644
--- a/src/views/plan/produceOrder/index.vue
+++ b/src/views/plan/produceOrder/index.vue
@@ -1,33 +1,33 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ formModel.orderCode }}
-
-
- {{ formModel.productModel }}
-
-
- {{ formModel.productSpecification }}
-
-
- {{ formModel.onlyReadWeight }}
-
-
- {{ formModel.payTime }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formModel.orderCode }}
+
+
+ {{ formModel.productModel }}
+
+
+ {{ formModel.productSpecification }}
+
+
+ {{ formModel.onlyReadWeight }}
+
+
+ {{ formModel.payTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
enamelCoverData.axleNumber = null;
let axleNumber = '';
item.forEach(ele => {
@@ -133,25 +133,25 @@
getDetailData()
}
}"
- >
-
-
-
-
-
-
-
-
-
-
-
- {
+ >
+
+
+
+
+
+
+
+
+
+
+
+ {
let plantName = '';
if (itemList.length > 0) {
itemList.forEach(item => {
@@ -161,84 +161,84 @@
}
enamelCoverData.plantName = plantName
}"
- >
-
-
-
-
-
-
-
- {
+ >
+
+
+
+
+
+
+
+ {
enamelCoverData.wireDisc = item.label
}"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
enamelCoverData.standardName = item.label;
}"
- >
-
-
-
-
-
-
-
-
-
-
-
-
+ >
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/procure/procureOrder/index.vue b/src/views/procure/procureOrder/index.vue
index 23c1585..c25cb9a 100644
--- a/src/views/procure/procureOrder/index.vue
+++ b/src/views/procure/procureOrder/index.vue
@@ -130,6 +130,9 @@
+
+
+
@@ -146,13 +149,13 @@
-
+
(null);
const message = useMessage();
@@ -273,11 +276,11 @@ const detailColumns: DataTableColumns = [
key: 'weight',
width: 80
},
- {
- title: '数量',
- key: 'quantity',
- width: 80
- },
+ // {
+ // title: '数量',
+ // key: 'quantity',
+ // width: 80
+ // },
{
title: '规格型号',
key: 'specification',
@@ -750,8 +753,8 @@ function init() {
getPurchaseList(searchForm.value).then(res => {
data.value = res.rows;
searchForm.value.total = res.total;
+ endLoading();
});
- endLoading();
}
const itemOptions = ref<
{
@@ -773,7 +776,6 @@ function selectItem(form) {
} else {
form.numMeasureName = item.weightMeasureName;
}
- console.log('form.unitType', form.unitType);
}
});
}
diff --git a/src/views/produce/feed/index.vue b/src/views/produce/feed/index.vue
index e73868e..8e8f591 100644
--- a/src/views/produce/feed/index.vue
+++ b/src/views/produce/feed/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -34,7 +34,7 @@ const { loading, startLoading, endLoading } = useLoading();
const route = useRoute();
const router = useRouter();
-const title = ref
('投料记录');
+const title = ref('');
const searchForm = ref<{
pageNum: number;
@@ -64,8 +64,8 @@ const columns: Ref> = ref([
title: '工单类型',
key: 'taskType',
width: 100,
- render: row => {
- return row.taskType === '0' ? '拉丝' : '漆包';
+ render: () => {
+ return title.value;
}
},
{
@@ -173,25 +173,25 @@ function back() {
}
onMounted(() => {
- title.value = `${route.query.title}-${title.value}`;
+ title.value = `${route.query.title}`;
searchForm.value.taskId = Number(route.query.id);
- if (route.query.title === '漆包') {
+ if (route.query.title === '板材眼镜') {
searchForm.value.taskType = '1';
- columns.value = [
- ...columns.value,
- ...[
- {
- title: '轴号',
- key: 'axleNumber',
- width: 100
- },
- {
- title: '轴位置数',
- key: 'alexPositionNumber',
- width: 100
- }
- ]
- ];
+ // columns.value = [
+ // ...columns.value,
+ // ...[
+ // {
+ // title: '轴号',
+ // key: 'axleNumber',
+ // width: 100
+ // },
+ // {
+ // title: '轴位置数',
+ // key: 'alexPositionNumber',
+ // width: 100
+ // }
+ // ]
+ // ];
}
init();
});
diff --git a/src/views/produce/report/index.vue b/src/views/produce/report/index.vue
index adc96e3..cf99652 100644
--- a/src/views/produce/report/index.vue
+++ b/src/views/produce/report/index.vue
@@ -1,6 +1,6 @@
-
+
@@ -65,8 +65,8 @@ const columns: Ref
> = ref([
title: '工单类型',
key: 'taskType',
width: 100,
- render: row => {
- return row.taskType === '0' ? '拉丝' : '漆包';
+ render: () => {
+ return title.value;
}
},
{
@@ -187,25 +187,25 @@ function back() {
}
onMounted(() => {
- title.value = `${route.query.title}-${title.value}`;
+ title.value = `${route.query.title}`;
searchForm.value.taskId = Number(route.query.id);
- if (route.query.title === '漆包') {
+ if (route.query.title === '板材眼镜') {
searchForm.value.taskType = '1';
- columns.value = [
- ...columns.value,
- ...[
- {
- title: '轴位置数',
- key: 'alexPositionNumber',
- width: 100
- },
- {
- title: '批次',
- key: 'alexLot',
- width: 100
- }
- ]
- ];
+ // columns.value = [
+ // ...columns.value,
+ // ...[
+ // {
+ // title: '轴位置数',
+ // key: 'alexPositionNumber',
+ // width: 100
+ // },
+ // {
+ // title: '批次',
+ // key: 'alexLot',
+ // width: 100
+ // }
+ // ]
+ // ];
}
init();
});
diff --git a/src/views/quality/dailyInspectionPlan/index.vue b/src/views/quality/dailyInspectionPlan/index.vue
index a52a019..4d461d2 100644
--- a/src/views/quality/dailyInspectionPlan/index.vue
+++ b/src/views/quality/dailyInspectionPlan/index.vue
@@ -71,7 +71,7 @@
label-width="120px"
>
-
+
-
+
([]);
const columns: Ref> = ref([
{
- title: 'QB机台',
+ title: '机台',
key: 'dailyplanDevice',
align: 'center',
width: 100
},
- {
- title: '轴号',
- key: 'dailyplanAxle',
- align: 'center',
- width: 100
- },
+ // {
+ // title: '轴号',
+ // key: 'dailyplanAxle',
+ // align: 'center',
+ // width: 100
+ // },
{
title: '换规前规格',
key: 'dailyplanBeforeSpec',
diff --git a/src/views/scm/linkman/index.vue b/src/views/scm/linkman/index.vue
new file mode 100644
index 0000000..349ccf8
--- /dev/null
+++ b/src/views/scm/linkman/index.vue
@@ -0,0 +1,404 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/scm/register/index.vue b/src/views/scm/register/index.vue
new file mode 100644
index 0000000..7aee5e6
--- /dev/null
+++ b/src/views/scm/register/index.vue
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/storage/finishedProductInventory/index.vue b/src/views/storage/finishedProductInventory/index.vue
index af0dcc4..54a2ad7 100644
--- a/src/views/storage/finishedProductInventory/index.vue
+++ b/src/views/storage/finishedProductInventory/index.vue
@@ -2,20 +2,20 @@
-
+
-
+
> = ref([
width: 100,
align: 'center'
},
- {
- title: '线盘',
- key: 'wireDisc',
- width: 200,
- align: 'center'
- },
+ // {
+ // title: '线盘',
+ // key: 'wireDisc',
+ // width: 200,
+ // align: 'center'
+ // },
{
title: '箱数',
key: 'totalNumber',
@@ -441,19 +441,19 @@ function warningStatus(status: string) {
}
}
-function selectCondition() {
- if (!searchRequestComplete.value) {
- window.$message?.warning('搜索中请稍等');
- return;
- }
- if (searchForm.value.type === '1') {
- searchForm.value.type = '0';
- } else {
- searchForm.value.type = '1';
- }
-
- init();
-}
+// function selectCondition() {
+// if (!searchRequestComplete.value) {
+// window.$message?.warning('搜索中请稍等');
+// return;
+// }
+// if (searchForm.value.type === '1') {
+// searchForm.value.type = '0';
+// } else {
+// searchForm.value.type = '1';
+// }
+
+// init();
+// }
// function clearData() {
// const d = dialog.warning({
diff --git a/src/views/storage/stockTaking/index.vue b/src/views/storage/stockTaking/index.vue
index d164913..0b85e0e 100644
--- a/src/views/storage/stockTaking/index.vue
+++ b/src/views/storage/stockTaking/index.vue
@@ -127,6 +127,7 @@ import {
outWmsTakeStock,
deleteWmsTakeStock
} from '@/service/api/storage/stockTaking/index';
+import { getDictDataList } from '@/service/api/system/dictData';
import { useLoading } from '~/src/hooks';
import { useResetSearch } from '~/src/utils/common/searchReset';
type DataType = {
@@ -155,7 +156,7 @@ type DataType = {
type selectList = {
label: string;
- value: number;
+ value: string;
};
const { loading, startLoading, endLoading } = useLoading();
const { searchForm, reset } = useResetSearch({
@@ -169,11 +170,7 @@ const { searchForm, reset } = useResetSearch({
itemName: '',
warehouseName: ''
});
-const statusList = ref>([
- { label: '拉丝在制品', value: 0 },
- { label: '漆包在制品', value: 1 },
- { label: '油漆', value: 2 }
-]);
+const statusList = ref>([]);
const showDialog = ref(false);
const requestMiddle = ref(false);
const addForm = ref<{
@@ -350,16 +347,18 @@ function handleReset() {
}
function getStatusName(wmsType: string) {
- switch (wmsType) {
- case '0':
- return '拉丝在制品';
- case '1':
- return '漆包在制品';
- case '2':
- return '油漆';
- default:
- return '';
- }
+ return statusList.value.find(item => item.value === wmsType)?.label;
+}
+
+async function getList() {
+ await getDictDataList({ dictType: 'material_type', pageSize: 999 }).then(res => {
+ if (res.code === 200) {
+ const resultDat = res?.rows || [];
+ for (const item of resultDat) {
+ statusList.value.push({ label: item.dictLabel, value: item.dictValue });
+ }
+ }
+ });
}
function init() {
@@ -373,7 +372,8 @@ function init() {
}
});
}
-onMounted(() => {
+onMounted(async () => {
+ await getList();
init();
});
diff --git a/src/views/technology/operatingSpecification/index.vue b/src/views/technology/operatingSpecification/index.vue
index 393d9c7..d3c3860 100644
--- a/src/views/technology/operatingSpecification/index.vue
+++ b/src/views/technology/operatingSpecification/index.vue
@@ -59,13 +59,13 @@
:style="{ width: formItemWidth }"
/>
-
+
@@ -87,7 +87,7 @@
:headers="{ Authorization: 'Bearer ' + useAuthStore().token }"
:default-upload="true"
:max="1"
- :action="baseurl + '/file/upload'"
+ :action="baseurl + 'file/upload'"
:on-error="errorFile"
@finish="finish"
@remove="removeFile"
@@ -173,7 +173,7 @@ const enanellingWorkbenchList = ref([]);
const rules = {
operationName: createRequiredFormRule('请输入操作规范名称'),
operationCode: createRequiredFormRule('请输入操作规范编码'),
- enanellingWorkbenchId: createRequiredFormRule('请选择关联漆包机机型'),
+ enanellingWorkbenchId: createRequiredFormRule('请选择关联机台机型'),
ableTime: createRequiredFormRule('请输入生效日期'),
filePath: createRequiredFormRule('请选择上传文件')
};
@@ -201,7 +201,7 @@ const columns: Ref> = ref([
width: 100
},
{
- title: '关联漆包机机型',
+ title: '关联机台机型',
key: 'enanellingWorkbenchName',
align: 'center',
width: 100
diff --git a/src/views/technology/operationInstruction/index.vue b/src/views/technology/operationInstruction/index.vue
index a12146e..01830e7 100644
--- a/src/views/technology/operationInstruction/index.vue
+++ b/src/views/technology/operationInstruction/index.vue
@@ -59,13 +59,13 @@
:style="{ width: formItemWidth }"
/>
-
+
@@ -168,7 +168,7 @@ const enanellingWorkbenchList = ref([]);
const rules = {
operationName: createRequiredFormRule('请输入作业指导书名称'),
operationCode: createRequiredFormRule('请输入作业指导书编码'),
- enanellingWorkbenchId: createRequiredFormRule('请选择关联漆包机机型'),
+ enanellingWorkbenchId: createRequiredFormRule('请选择关联机台机型'),
ableTime: createRequiredFormRule('请输入生效日期'),
filePath: createRequiredFormRule('请选择上传文件')
};
@@ -196,7 +196,7 @@ const columns: Ref> = ref([
width: 100
},
{
- title: '关联漆包机机型',
+ title: '关联机台机型',
key: 'enanellingWorkbenchName',
align: 'center',
width: 100