| | |
| | | field="dayProduceType" |
| | | title="日产出类型" |
| | | min-width="160" |
| | | :edit-render="{}" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <vxe-select |
| | | v-model="row.dayProduceType" |
| | | :options="dayProduceTypeOptions" |
| | | ></vxe-select> --> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-select |
| | | clearable |
| | | v-model="row.dayProduceType" |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ formatTypeLabel([row.dayProduceType]) }}</span> |
| | |
| | | clearable |
| | | v-model="row.dayProduceType" |
| | | style="width: 140px" |
| | | @change="handlechangeDayproduceType($event,row)" |
| | | > |
| | | <el-option |
| | | v-for="type in dayProduceTypeOptions" |
| | |
| | | field="dayProduceNum" |
| | | title="日产出数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.dayProduceNum" size="mini" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.dayProduceNum }}</span> |
| | |
| | | field="dayProduceUnit" |
| | | title="日产出单位" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input v-model="row.dayProduceUnit" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.dayProduceUnit }}</span> |
| | |
| | | field="personnelNumber" |
| | | title="人员数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.personnelNumber" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.personnelNumber }}</span> |
| | |
| | | field="dayProduceAllNum" |
| | | title="日产出总数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.dayProduceAllNum" disabled /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.dayProduceAllNum }}</span> |
| | |
| | | field="days" |
| | | title="天数" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.days" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.days }}</span> |
| | |
| | | field="monthProduceAllNum" |
| | | title="月产出数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.monthProduceAllNum" disabled /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.monthProduceAllNum }}</span> |
| | |
| | | field="remark" |
| | | title="备注" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- :edit-render="{ autoFocus: 'input' }" --> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input |
| | | type="text" |
| | | v-model="row.remark" |
| | | /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRef"> |
| | | <span>{{ row.remark }}</span> |
| | |
| | | :height="height" |
| | | :edit-config="{ mode: 'row', trigger: 'click', showStatus: true }" |
| | | :data="gasPlanList" |
| | | @cell-click="cellClickEventGas" |
| | | @cell-click="cellClickEvent" |
| | | > |
| | | <vxe-column field="processName" title="标准工序名称" min-width="150" fixed="left"> |
| | | </vxe-column> |
| | |
| | | field="dayProduceType" |
| | | title="日产出类型" |
| | | min-width="160" |
| | | :edit-render="{}" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <vxe-select |
| | | v-model="row.dayProduceType" |
| | | :options="dayProduceTypeOptions" |
| | | ></vxe-select> --> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-select |
| | | clearable |
| | | v-model="row.dayProduceType" |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ formatTypeLabel([row.dayProduceType]) }}</span> |
| | |
| | | clearable |
| | | v-model="row.dayProduceType" |
| | | style="width: 140px" |
| | | @change="handlechangeDayproduceType($event,row)" |
| | | > |
| | | <el-option |
| | | v-for="type in dayProduceTypeOptions" |
| | |
| | | field="dayProduceNum" |
| | | title="日产出数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.dayProduceNum" size="mini" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.dayProduceNum }}</span> |
| | |
| | | field="dayProduceUnit" |
| | | title="日产出单位" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input v-model="row.dayProduceUnit" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.dayProduceUnit }}</span> |
| | |
| | | field="personnelNumber" |
| | | title="人员数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.personnelNumber" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.personnelNumber }}</span> |
| | |
| | | field="dayProduceAllNum" |
| | | title="日产出总数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.dayProduceAllNum" disabled /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.dayProduceAllNum }}</span> |
| | |
| | | field="days" |
| | | title="天数" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.days" /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.days }}</span> |
| | |
| | | field="monthProduceAllNum" |
| | | title="月产出数量" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input-number v-model="row.monthProduceAllNum" disabled /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.monthProduceAllNum }}</span> |
| | |
| | | field="remark" |
| | | title="备注" |
| | | min-width="200" |
| | | :edit-render="{ autoFocus: 'input' }" |
| | | > |
| | | <template #edit="{ row }"> |
| | | <!-- <template #edit="{ row }"> |
| | | <el-input |
| | | type="text" |
| | | v-model="row.remark" |
| | | /> |
| | | </template> |
| | | </template> --> |
| | | <template #default="{ row }"> |
| | | <div v-if="!clickedTableRefGas"> |
| | | <span>{{ row.remark }}</span> |
| | |
| | | loading2.value = false; |
| | | } |
| | | function cellClickEvent({ row, column }) { |
| | | console.log(row,column,"cellClickEvent") |
| | | if(row.dayProduceType==="单人日产出"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |
| | | }else{ |
| | | |
| | | row.dayProduceAllNum = row.dayProduceNum |
| | | } |
| | | |
| | | row.monthProduceAllNum = row.dayProduceAllNum * row.days; |
| | | } |
| | | function handlechangeDayproduceType(e,row){ |
| | | row.dayProduceAllNum = "0"; |
| | | row.monthProduceAllNum = "0"; |
| | | if(e=="1"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |
| | | }else if(e=="2"){ |
| | | row.dayProduceAllNum = row.dayProduceNum |
| | | } |
| | | row.monthProduceAllNum = row.dayProduceAllNum * row.days; |
| | | console.log(e,row,"erow") |
| | | } |
| | | const handleDayProduceNum = (e,row)=>{ |
| | | console.log(row,"222") |
| | | if(row.dayProduceType==="单人日产出"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |
| | | }else if(row.dayProduceType==="固定日产出"){ |
| | | row.dayProduceAllNum = row.dayProduceNum |
| | | } |
| | | row.monthProduceAllNum = row.dayProduceAllNum * row.days; |
| | | } |
| | | const handleDayProduceType = (e,row)=>{ |
| | | console.log(e,row.dayProduceType,"222") |
| | | if(e==="1"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |
| | | }else if(e==="2"){ |
| | | row.dayProduceAllNum = row.dayProduceNum |
| | | } |
| | | row.monthProduceAllNum = row.dayProduceAllNum * row.days; |
| | | } |
| | | function cellClickEventGas({ row, column }) { |
| | | if(row.dayProduceType==="单人日产出"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |