Kaynağa Gözat

维修物料处理

lipenghui 1 hafta önce
ebeveyn
işleme
2b3fbf2ed7

+ 4 - 1
src/locales/en.ts

@@ -911,7 +911,8 @@ export default {
     maintainItem:'Please enter maintainItem',
     kmHour: 'operating km/hour',
     kmHourHolder:'please enter operating km/hour',
-    oaFlowNo:'oaFlowNo'
+    oaFlowNo:'oaFlowNo',
+    quantityHolder:'Please enter quantity',
   },
   workOrderMaterial:{
     materialCode:'MaterialCode',
@@ -927,7 +928,9 @@ export default {
     costCenter:'CostCenter',
     storageLocation:'StorageLocation',
     unit:'Unit',
+    unitHolder:'Please enter unit',
     unitPrice:'UnitPrice',
+    unitPriceHolder:'Please enter unitPrice',
     total:'Total',
     source:'Source',
     ConsumptionQuantity:'ConsumptionQuantity',

+ 4 - 1
src/locales/zh-CN.ts

@@ -907,7 +907,8 @@ export default {
     maintainItem:'维修项目',
     kmHour: '运行公里/小时',
     kmHourHolder:'请输入运转公里/小时',
-    oaFlowNo:'oa流程号'
+    oaFlowNo:'oa流程号',
+    quantityHolder:'请输入数量'
   },
   workOrderMaterial:{
     materialCode:'物料编码',
@@ -923,7 +924,9 @@ export default {
     costCenter:'成本中心',
     storageLocation:'库存地点',
     unit:'单位',
+    unitHolder:'请输入单位',
     unitPrice:'单价',
+    unitPriceHolder:'请输入单价',
     total:'总库存数量',
     source:'来源',
     ConsumptionQuantity:'消耗数量',

+ 8 - 30
src/views/pms/maintain/IotMaintainAddEdit.vue

@@ -356,42 +356,16 @@
     <ContentWrap>
       <el-table :data="filteredMaterials" style="width: 100%">
         <el-table-column prop="bomNodeId" :label="t('bomList.bomNode')" width="180" v-if="false"/>
-        <el-table-column prop="factory" :label="t('workOrderMaterial.factory')" width="180" v-if="!hideExtraColumns">
-          <template #default="scope">
-            <el-input
-              v-model="scope.row.factory"
-              size="small"
-              v-if="scope.row.materialSource === '手动添加'"
-            />
-            <span v-else>{{ scope.row.factory }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="costCenter" :label="t('workOrderMaterial.costCenter')" width="180" v-if="!hideExtraColumns">
-          <template #default="scope">
-            <el-input
-              v-model="scope.row.costCenter"
-              size="small"
-              v-if="scope.row.materialSource === '手动添加'"
-            />
-            <span v-else>{{ scope.row.costCenter }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column prop="projectDepartment" :label="t('workOrderMaterial.storageLocation')"  width="180" v-if="!hideExtraColumns">
-          <template #default="scope">
-            <el-input
-              v-model="scope.row.projectDepartment"
-              size="small"
-              v-if="scope.row.materialSource === '手动添加'"
-            />
-            <span v-else>{{ scope.row.costCenter }}</span>
-          </template>
-        </el-table-column>
+        <el-table-column prop="factory" :label="t('workOrderMaterial.factory')" width="180" v-if="!hideExtraColumns" />
+        <el-table-column prop="costCenter" :label="t('workOrderMaterial.costCenter')" width="180" v-if="!hideExtraColumns"/>
+        <el-table-column prop="projectDepartment" :label="t('workOrderMaterial.storageLocation')"  width="180" v-if="!hideExtraColumns" />
         <el-table-column prop="materialName" :label="t('workOrderMaterial.materialName')" width="180" >
           <template #default="scope">
             <el-input
               v-model="scope.row.materialName"
               size="small"
               v-if="scope.row.materialSource === '手动添加'"
+              :placeholder="t('workOrderMaterial.nameHolder')"
             />
             <span v-else>{{ scope.row.materialName }}</span>
           </template>
@@ -402,6 +376,7 @@
               v-model="scope.row.materialCode"
               size="small"
               v-if="scope.row.materialSource === '手动添加'"
+              :placeholder="t('workOrderMaterial.codeHolder')"
             />
             <span v-else>{{ scope.row.materialCode }}</span>
           </template>
@@ -412,6 +387,7 @@
               v-model="scope.row.unit"
               size="small"
               v-if="scope.row.materialSource === '手动添加'"
+              :placeholder="t('workOrderMaterial.unitHolder')"
             />
             <span v-else>{{ scope.row.unit }}</span>
           </template>
@@ -422,6 +398,7 @@
               v-model="scope.row.unitPrice"
               size="small"
               v-if="scope.row.materialSource === '手动添加'"
+              :placeholder="t('workOrderMaterial.unitPriceHolder')"
             />
             <span v-else>{{ scope.row.unitPrice }}</span>
           </template>
@@ -435,6 +412,7 @@
               @click.stop=""
               @blur="(event) => handleQuantityBlur(event, scope.row)"
               size="small"
+              :placeholder="t('iotMaintain.quantityHolder')"
             />
           </template>
         </el-table-column>