diff --git a/src/api/partspare/partsparePurchase.js b/src/api/partspare/partsparePurchase.js
new file mode 100644
index 0000000..153d053
--- /dev/null
+++ b/src/api/partspare/partsparePurchase.js
@@ -0,0 +1,21 @@
+import { createAPI } from "@/utils/httpRequest.js";
+
+// 待采购申请列表(分页)
+export const queryPurchaseApplyPage = data =>
+ createAPI(`/pms/partspare/purchase/apply/queryPage`, "post", data);
+
+// 保存采购申请(写入中间表)
+export const savePurchaseApply = data =>
+ createAPI(`/pms/partspare/purchase/apply/save`, "post", data);
+
+// 修改采购申请
+export const updatePurchaseApply = data =>
+ createAPI(`/pms/partspare/purchase/apply/update`, "post", data);
+
+// 删除采购申请
+export const deletePurchaseApply = data =>
+ createAPI(`/pms/partspare/purchase/apply/delete`, "post", data);
+
+// 采购(落库到 purchase_order_head + purchase_order)
+export const doPurchase = data =>
+ createAPI(`/pms/partspare/purchase/apply/purchase`, "post", data);
diff --git a/src/views/modules/partspare/partsparePurchase.vue b/src/views/modules/partspare/partsparePurchase.vue
new file mode 100644
index 0000000..a40a81e
--- /dev/null
+++ b/src/views/modules/partspare/partsparePurchase.vue
@@ -0,0 +1,665 @@
+
+
+
+
+
+ 带 * 的字段为必填项
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 件
+
+
+
+
+
+
+
+
+
+
+
+ 清空
+ 保存申请
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看链接
+ -
+
+
+
+
+
+
+ 修改
+ | 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/repairSkill/maintenanceSkillCard.vue b/src/views/modules/repairSkill/maintenanceSkillCard.vue
index c5a6e0d..6846d2c 100644
--- a/src/views/modules/repairSkill/maintenanceSkillCard.vue
+++ b/src/views/modules/repairSkill/maintenanceSkillCard.vue
@@ -298,9 +298,14 @@ export default {
return d.getFullYear() + '-' + p(d.getMonth() + 1) + '-' + p(d.getDate()) + ' 00:00:00'
},
onMasteryChange (row) {
- // 选择“是”时,若未填掌握时间则默认今天
- if (row.masteryStatus === 'Y' && !row.masterDate) {
- row.masterDate = this.todayStr()
+ // 掌握情况为“是”:分数默认取模板满分,未填掌握时间则默认今天;为“否”:分数置 0
+ if (row.masteryStatus === 'Y') {
+ row.score = Number(row.maxScore) || 0
+ if (!row.masterDate) {
+ row.masterDate = this.todayStr()
+ }
+ } else if (row.masteryStatus === 'N') {
+ row.score = 0
}
},
getDataList (flag) {