From 1c13bd7a2cd2c8ba69a185da69344c8b59f4e561 Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期四, 04 七月 2024 09:29:15 +0800
Subject: [PATCH] 选中求和功能以及还原双击回车才能点击单元格
---
north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue | 35 +++++++++++++++++------------------
1 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
index 6b0517b..b520c74 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
@@ -127,7 +127,7 @@
titleSelectJson.value.processType = res.data.process
gridOptions.loading = false
- //绂佺敤鍒犻櫎銆佷繚瀛樻寜閽�
+ //绂佺敤鍒犻櫎銆佸鏍告寜閽�
gridOptions.toolbarConfig.buttons[0].disabled = true
gridOptions.toolbarConfig.buttons[1].disabled = true
} else {
@@ -155,7 +155,6 @@
total.pageTotal = res.data.total.pageTotal
pageTotal.value = res.data.total
xGrid.value.loadData(res.data.data)
- console.log(res.data.data)
gridOptions.loading = false
if (selectState==1){
//绂佺敤鍒犻櫎銆佸鏍告寜閽�
@@ -164,11 +163,11 @@
//鍚敤淇濆瓨
gridOptions.toolbarConfig.buttons[2].disabled = false
}else{
- //绂佺敤鍒犻櫎銆佸鏍告寜閽�
+ //鍚敤鍒犻櫎銆佸鏍告寜閽�
gridOptions.toolbarConfig.buttons[0].disabled = false
gridOptions.toolbarConfig.buttons[1].disabled = false
- //鍚敤淇濆瓨
- gridOptions.toolbarConfig.buttons[2].disabled = false
+ //绂佺敤淇濆瓨
+ gridOptions.toolbarConfig.buttons[2].disabled = true
}
} else {
@@ -420,7 +419,7 @@
if ($table) {
const selectRecords = $table.getCheckboxRecords()
if (selectRecords.length == 0) {
- ElMessage.warning(t('processCard.checkProductionScheduling'))
+ ElMessage.warning("璇峰嬀閫夋帓浜ф暟鎹�")
return;
}
for (let i = 0; i < selectRecords.length; i++) {
@@ -429,13 +428,13 @@
let number = selectRecords[i].schedulingQuantity
//璁″垝寮�濮嬨�佺粨鏉熸椂闂达紝鎺掍骇鏁伴噺涓嶈兘涓虹┖
if (start == null || end == null || number == null) {
- ElMessage.warning(t('processCard.saveCorrespondingValues'))
+ ElMessage.warning("璇峰~鍏ュ搴旂殑鍊煎啀杩涜淇濆瓨")
return;
}
}
let selectProcesses = processVal.value
if (selectProcesses == null || selectProcesses == "") {
- ElMessage.warning(t('processCard.selectProductionSchedulingProcess'))
+ ElMessage.warning("璇烽�夋嫨鎺掍骇宸ュ簭")
return;
}
@@ -449,7 +448,7 @@
//淇濆瓨鎺掍骇鏁版嵁
request.post("/productionScheduling/addScheduling", schedulingData.value).then((res) => {
if (res.code == 200) {
- ElMessage.success(t('basicData.msg.saveSuccess'))
+ ElMessage.success("淇濆瓨鎴愬姛")
// 鍚敤淇濆瓨
gridOptions.toolbarConfig.buttons[2].disabled = false
router.push({
@@ -474,10 +473,10 @@
const selectRecords = $table.getCheckboxRecords()
if ($table) {
if (selectRecords.length == 0) {
- ElMessage.warning(t('processCard.checkProductionScheduling'))
+ ElMessage.warning("璇峰嬀閫夋帓浜ф暟鎹�")
return;
}
- const type = await VXETable.modal.confirm(t('processCard.deleteThisData'))
+ const type = await VXETable.modal.confirm('鎮ㄧ‘瀹氳鍒犻櫎璇ユ暟鎹�?')
if (type === 'confirm') {
let schedulingData = ref({
scheduling: selectRecords,
@@ -485,7 +484,7 @@
request.post("/productionScheduling/deleteScheduling", schedulingData.value).then((res) => {
if (res.code == 200) {
- ElMessage.success(t('basicData.msg.deleteSuccess'))
+ ElMessage.success("鍒犻櫎鎴愬姛")
location.reload();
} else {
ElMessage.warning(res.msg)
@@ -501,7 +500,7 @@
const selectRecords = $table.getCheckboxRecords()
if ($table) {
if (selectRecords.length == 0) {
- ElMessage.warning(t('processCard.checkProductionScheduling'))
+ ElMessage.warning("璇峰嬀閫夋帓浜ф暟鎹�")
return;
}
let schedulingData = ref({
@@ -510,7 +509,7 @@
})
request.post("/productionScheduling/examineScheduling", schedulingData.value).then((res) => {
if (res.code == 200) {
- ElMessage.success(t('basicData.msg.ReviewSuccess'))
+ ElMessage.success("瀹℃牳鎴愬姛")
location.reload();
} else {
ElMessage.warning(res.msg)
@@ -585,7 +584,7 @@
let selectState = stateValue.value
table.forEach((selectRecords) => {
if (selectRecords.scheduling_quantity > selectRecords.pendingProductionQuantity && selectState == 1) {
- ElMessage.warning(t('processCard.schedulingQuantityNoQuantityScheduled'))
+ ElMessage.warning("鎺掍骇鏁伴噺涓嶈兘澶т簬寰呮帓浜ф暟閲�")
//绂佺敤淇濆瓨鎸夐挳
//gridOptions.toolbarConfig.buttons[2].disabled = true
}
@@ -604,9 +603,9 @@
<el-date-picker
v-model="form.date1"
:default-time="defaultTime"
- :start-placeholder="$t('basicData.startDate')"
- :end-placeholder="$t('basicData.endDate')"
+ end-placeholder="缁撴潫鏃堕棿"
format="YYYY/MM/DD"
+ start-placeholder="寮�濮嬫椂闂�"
type="daterange"
value-format="YYYY-MM-DD"
@@ -623,7 +622,7 @@
/>
</el-select>
- <el-select v-model="stateValue" class="m-2" :placeholder="$t('processCard.whetherToScheduleProduction')" style="width: 120px">
+ <el-select v-model="stateValue" class="m-2" placeholder="鏄惁鎺掍骇" style="width: 120px">
<el-option
v-for="item in stateOptions"
:key="item.value"
--
Gitblit v1.8.0