diff --git a/hb_client/src/api/equipment.js b/hb_client/src/api/equipment.js
index 2eadc6b..d4707e9 100644
--- a/hb_client/src/api/equipment.js
+++ b/hb_client/src/api/equipment.js
@@ -36,34 +36,34 @@ export function deleteEquipment(id, data) {
}
export function getEquipmentrecordList(query) {
return request({
- url: '/em/equipmentrecord/',
+ url: '/em/echeck_record/',
method: 'get',
params: query
})
}
export function getEquipmentrecordAll() {
return request({
- url: '/em/equipmentrecord/',
+ url: '/em/echeck_record/',
method: 'get'
})
}
export function createEquipmentrecord(data) {
return request({
- url: '/em/equipmentrecord/',
+ url: '/em/echeck_record/',
method: 'post',
data
})
}
export function updateEquipmentrecord(id, data) {
return request({
- url: `/em/equipmentrecord/${id}/`,
+ url: `/em/echeck_record/${id}/`,
method: 'put',
data
})
}
export function deleteEquipmentrecord(id, data) {
return request({
- url: `/em/equipmentrecord/${id}/`,
+ url: `/em/echeck_record/${id}/`,
method: 'delete',
data
})
diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js
index 76affca..5653ac6 100644
--- a/hb_client/src/api/wpm.js
+++ b/hb_client/src/api/wpm.js
@@ -357,4 +357,14 @@ export function getCard(id) {
url: `/wpm/wproduct/${id}/card/`,
method: 'GET',
})
-}
\ No newline at end of file
+}
+
+//指派发货订单
+
+export function toorder(data) {
+ return request({
+ url: '/wpm/wproduct/to_order/',
+ method: 'post',
+ data
+ })
+}
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index f849876..61be661 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -273,12 +273,6 @@ export const asyncRoutes = [
name: 'record',
component: () => import('@/views/em/record'),
meta: { title: '校准检定记录', icon: 'example', perms: ['em_record'] }
- },
- {
- path: 'detection ',
- name: 'detection ',
- component: () => import('@/views/em/detection'),
- meta: { title: '运维记录', icon: 'example', perms: ['em_detection'] }
}
]
},
@@ -399,6 +393,12 @@ export const asyncRoutes = [
name: 'producttest',
component: () => import('@/views/qm/producttest'),
meta: { title: '成品检验', icon: 'example', perms: ['index_manage'] }
+ },
+ {
+ path: 'unproduct',
+ name: 'unproduct',
+ component: () => import('@/views/qm/unproduct'),
+ meta: { title: '不合格品', icon: 'example', perms: ['index_manage'] }
}
]
diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue
index 4091991..c45bf3c 100644
--- a/hb_client/src/views/em/detection.vue
+++ b/hb_client/src/views/em/detection.vue
@@ -2,109 +2,116 @@
- 新增设备
-
- 搜索
- 重置
-
-
+ 新增设备
+
+ 搜索
+ 重置
+
-
+
-
+
{{ scope.row.number }}
-
+
- {{ mgmtype_[scope.row.mgmtype] }}
+ {{
+ mgmtype_[scope.row.mgmtype]
+ }}
-
+
{{ waytype_[scope.row.way] }}
-
+
{{ scope.row.standard }}
-
+
{{ scope.row.cycle }}
-
+
+ {{ scope.row.check_date }}
+
+
+
+ {{ scope.row.next_check_date }}
+
+
+
{{ scope.row.name }}
-
+
{{ scope.row.model }}
-
-
+
+
{{ scope.row.factory }}
-
+
{{ usetype_[scope.row.way] }}
-
- {{ state_[scope.row.statedm] }}
+
+ {{ state_[scope.row.state] }}
-
+
- {{ scope.row.keeper_.username }}
+ {{
+ scope.row.keeper_.username
+ }}
-
+
{{ scope.row.place }}
-
-
- {{item.name}}
-
-
+
+
+ {{ item.name }}
{{ scope.row.description }}
-
-
+
-
编辑
@@ -137,130 +144,153 @@
label-position="right"
:rules="rule1"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ :value="item.value"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
取消
@@ -285,13 +307,19 @@
+
diff --git a/hb_client/src/views/sam/order.vue b/hb_client/src/views/sam/order.vue
index f64155d..116d226 100644
--- a/hb_client/src/views/sam/order.vue
+++ b/hb_client/src/views/sam/order.vue
@@ -206,8 +206,8 @@ export default {
dialogVisible: false,
dialogType: "new",
rule1: {
- number: [{ required: true, message: "请输入", trigger: "blur" }],
- customer: [{ required: true, message: "请输入", trigger: "blur" }],
+
+
product: [{ required: true, message: "请输入", trigger: "blur" }],
delivery_date: [{ required: true, message: "请输入", trigger: "blur" }],
},
diff --git a/hb_client/src/views/sam/sales.vue b/hb_client/src/views/sam/sales.vue
index a85a9b1..46d04df 100644
--- a/hb_client/src/views/sam/sales.vue
+++ b/hb_client/src/views/sam/sales.vue
@@ -262,7 +262,7 @@ export default {
if (response.data) {
this.sale.customer = response.data.customer;
this.sale.product = response.data.product;
- getiproductList({page:0,material__type:1,material:this.sale.product}).then((response) => {
+ getiproductList({page:0,to_order:response.data.id}).then((response) => {
if (response.data) {
this.iproductoptions=response.data;
}
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index d6806ca..3cf6c68 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -3,8 +3,10 @@
基本信息
+
- 查看作业指导书
+
+ 查看作业指导书
-
-
-
-
- {{ scope.row.file_.name }}
-
-
-
+ size="70%">
+
@@ -602,7 +599,7 @@ import {
createOutputs,
deleteOperationeinput
} from "@/api/wpm";
-
+import mammoth from "mammoth";
import { getrffieldList,gettechdocList } from "@/api/mtm";
import checkPermission from "@/utils/permission";
import { getprogressList } from "@/api/pm";
@@ -731,13 +728,15 @@ export default {
outputData: [],
tprogressData: [],
tool:"",
+ wordText: "",
+
};
},
computed: {},
watch: {},
created() {
this.id = this.$route.params.id; //操作ID
-
+ this.readbook();
this.getList(); //边角料
this.getpwpList(); //半成品
this.getequList(); //设备
@@ -752,11 +751,35 @@ export default {
checkPermission,
//作业指导书
+
+ getWordText() {
+ this.drawer=true;
+ const xhr = new XMLHttpRequest();
+
+ xhr.open("get", this.techdocList, true);
+
+ xhr.responseType = "arraybuffer";
+
+ xhr.onload = () => {
+ if (xhr.status == 200) {
+
+ mammoth.convertToHtml({ arrayBuffer: new Uint8Array(xhr.response) }).then((resultObject) => {
+ this.$nextTick(() => {
+
+ this.wordText = resultObject.value;
+
+ });
+ });
+ }
+ };
+ xhr.send();
+ },
readbook(){
- this.drawer=true;
+
gettechdocList({operation:this.id,page:0}).then((response) => {
if (response.data) {
- this.techdocList= response.data;
+ this.techdocList= response.data[0].file_.file;
+ console.log( this.techdocList);
}
});
},
diff --git a/hb_client/src/views/wpm/productjy.vue b/hb_client/src/views/wpm/productjy.vue
index 3719cb4..7878be1 100644
--- a/hb_client/src/views/wpm/productjy.vue
+++ b/hb_client/src/views/wpm/productjy.vue
@@ -12,9 +12,11 @@
highlight-current-row
max-height="600"
>
-
+
- {{ scope.row.material_.name }}
+ {{
+ scope.row.material_.name
+ }}
@@ -25,7 +27,7 @@
{{ actstate_[scope.row.act_state] }}
-
+
{{ scope.row.step_.name }}
@@ -33,14 +35,17 @@
检验
+ >检验
检验记录
+ >检验记录
@@ -58,9 +63,12 @@
批量入库
-
+ >批量入库
+
+ 批量选择订单
+
+
-
-
-
+
+
- {{ scope.row.material_.name }}
+ {{
+ scope.row.material_.name
+ }}
@@ -88,19 +95,32 @@
{{ actstate_[scope.row.act_state] }}
-
-
- {{ scope.row.step_.name }}
+
+
+ {{scope.row.to_order_.number }}
+
+
+
+ {{scope.row.to_order_.customer_.name }}
+
+
+
+
+ {{scope.row.to_order_.contract_.name }}
+
+
+
+
+
入库
-
+ >入库
+
@@ -115,8 +135,17 @@
-
-
+
+
-
+
@@ -187,18 +183,20 @@
/>
-
-
-
+
+
+
{{ scope.row.form_.name }}
- {{ checkTypes[scope.row.type] }}
+ {{
+ checkTypes[scope.row.type]
+ }}
@@ -211,17 +209,10 @@
检验
-
- 查看
-
- 删除
+ >检验
+ 查看
+ 删除
@@ -230,164 +221,11 @@
确 定
-
-
+
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+