diff --git a/src/components/Business/ProdOrder/ProdOrderCheck.vue b/src/components/Business/ProdOrder/ProdOrderCheck.vue index 3b7dbcf..4e00626 100644 --- a/src/components/Business/ProdOrder/ProdOrderCheck.vue +++ b/src/components/Business/ProdOrder/ProdOrderCheck.vue @@ -9,59 +9,16 @@ @keyup.enter.native="handleQuery" /> - - - - - - - - - 全部 - 是 - 否 - + + 搜索 + 重置 - 搜索 - 重置 diff --git a/src/components/HoverShow/index.vue b/src/components/HoverShow/index.vue index ae74d2c..c49919f 100644 --- a/src/components/HoverShow/index.vue +++ b/src/components/HoverShow/index.vue @@ -16,7 +16,7 @@ export default { name: "HoverShow", props: { showValue: { - type: String, + type: [String, Number], default: '--' }, showIcon: { diff --git a/src/components/TableFormCol/index.vue b/src/components/TableFormCol/index.vue new file mode 100644 index 0000000..dda9a06 --- /dev/null +++ b/src/components/TableFormCol/index.vue @@ -0,0 +1,99 @@ + + + + + {{label}} + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index b69ec2b..5ee3db3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -83,7 +83,7 @@ export const constantRoutes = [ children: [ { path: 'report/:reportId?', - component: () => import('@/views/yh/report/edit/edit.vue'), + component: () => import('@/views/yh/report/edit-v2/index.vue'), name: 'ReportEdit', meta: { title: '编辑报表', noCache: false} }, diff --git a/src/views/login.vue b/src/views/login.vue index 11ae390..c6feccd 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -149,7 +149,8 @@ export default { Cookies.remove('rememberMe'); } this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + // this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + window.location.href = this.redirect || "/"; }).catch(() => { this.loading = false; if (this.captchaEnabled) { diff --git a/src/views/yh/report/edit-v2/components/ReportProductList.vue b/src/views/yh/report/edit-v2/components/ReportProductList.vue new file mode 100644 index 0000000..86f4334 --- /dev/null +++ b/src/views/yh/report/edit-v2/components/ReportProductList.vue @@ -0,0 +1,299 @@ + + + + + + + + TODO:修改所选员工产量 + 复制所选工序 + + + + + + + + + + + + + + + + + + + + + + + {{d.row.priceUnit | dv}} + + + + + + + 新增工序 + + + + + 复制 + 删除 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/yh/report/edit-v2/components/ReportProductOrderList.vue b/src/views/yh/report/edit-v2/components/ReportProductOrderList.vue new file mode 100644 index 0000000..356180f --- /dev/null +++ b/src/views/yh/report/edit-v2/components/ReportProductOrderList.vue @@ -0,0 +1,115 @@ + + + + + + + {{d.row.orderErpBillNo | dv}} + + + + + {{d.row.orderMaterialNumber | dv}} + + + + + + {{prod.priceUnit | dv}} + + + + + + 关联订单 + + + 删除 + + + + + + + + + + diff --git a/src/views/yh/report/edit-v2/components/ReportProductUserList.vue b/src/views/yh/report/edit-v2/components/ReportProductUserList.vue new file mode 100644 index 0000000..2795e8b --- /dev/null +++ b/src/views/yh/report/edit-v2/components/ReportProductUserList.vue @@ -0,0 +1,113 @@ + + + + + + + {{d.row.userName | dv}} ({{d.row.userNo | dv}}) + + + + + + {{prod.priceUnit | dv}} + + + + + + 关联员工 + + + 删除 + + + + + + + + + + diff --git a/src/views/yh/report/edit-v2/components/UserProductBatchDialog.vue b/src/views/yh/report/edit-v2/components/UserProductBatchDialog.vue new file mode 100644 index 0000000..278bc94 --- /dev/null +++ b/src/views/yh/report/edit-v2/components/UserProductBatchDialog.vue @@ -0,0 +1,185 @@ + + + + + + + + 产量 + 计分 + + + 请注意!计分模式下,需要提前输入选中行的 总产量 ,否则无法计算员工产量! + + + + + + 请注意!开启之后,将会根据员工产量汇总并覆盖原有的工序总产量。 + + + + + + + + + + 员工 + + + + + + {{d.row.userName | dv}} + + + + + + + 良品数 + + + 分数 + + + + + + + + + + + + + + 添加员工 + + + 删除 + + + + + + + 取 消 + 确 定 + + + + + + + + diff --git a/src/views/yh/report/edit-v2/index.vue b/src/views/yh/report/edit-v2/index.vue new file mode 100644 index 0000000..4790146 --- /dev/null +++ b/src/views/yh/report/edit-v2/index.vue @@ -0,0 +1,222 @@ + + + + + {{title}} + 员工产量汇总 + + 取消 + 仅保存 + 保存并提交 + + + + + + + + + + + + + {{totalPrice.toNumber() | dv}} 元 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/yh/report/edit/components/ReportProductRowEdit.vue b/src/views/yh/report/edit/components/ReportProductRowEdit.vue index 27aaef0..a2cd609 100644 --- a/src/views/yh/report/edit/components/ReportProductRowEdit.vue +++ b/src/views/yh/report/edit/components/ReportProductRowEdit.vue @@ -1,5 +1,5 @@ - + {{row.pricePrice | dv}} 元 @@ -64,7 +61,7 @@ - +