|
|
|
@ -7,7 +7,7 @@ |
|
|
|
<!-- 扫描工具实例编码 --> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="'工具实例编号:'"> |
|
|
|
<el-form-item :label=labels.toolInstanceId> |
|
|
|
<el-input ref="toolInstanceId" v-model="pageData.toolInstanceId" |
|
|
|
@keyup.enter.native="checkConnectToolInstanceIdBun" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -16,36 +16,36 @@ |
|
|
|
<!-- 换刀模 --> |
|
|
|
<el-container> |
|
|
|
<fieldset class="customer-fieldset" style="width: 230px;"> |
|
|
|
<legend>换刀模</legend> |
|
|
|
<legend>{{labels.replaceToolTitle}}</legend> |
|
|
|
<el-row> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<el-checkbox disabled="disabled" true-label="Y" false-label="N" |
|
|
|
v-model="pageData.replaceFlag">换刀模</el-checkbox> |
|
|
|
v-model="pageData.replaceFlag">{{labels.replaceTool}}</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- 原工具信息 --> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="原工具实例编码:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.oriToolInstanceId> |
|
|
|
<el-input v-model="pageData.oriToolInstanceId" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="本卷生产数量:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.currentProdQty> |
|
|
|
<el-input v-model="pageData.consumeQty" type="number" @blur="changeToolQty" style="width: 100px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="之前卷以生产数量:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.oriProdQty> |
|
|
|
<el-input v-model="pageData.oriConsumeQty" type="number" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="累计生产数量:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.totalProdQty> |
|
|
|
<el-input v-model="pageData.totalConsumeQty" type="number" :readonly="readonlyFlag" style="width: 100px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -56,19 +56,19 @@ |
|
|
|
<!-- 停机信息 --> |
|
|
|
<el-container style="margin-left: 235px; margin-top: -144px;"> |
|
|
|
<fieldset class="customer-fieldset" style="width: 210px;"> |
|
|
|
<legend>停机</legend> |
|
|
|
<legend>{{ labels.downTimeTitle }}</legend> |
|
|
|
<el-row> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-form-item class="customer-item"> |
|
|
|
<el-checkbox disabled="disabled" true-label="Y" false-label="N" |
|
|
|
v-model="pageData.downTimeFlag">停机</el-checkbox> |
|
|
|
v-model="pageData.downTimeFlag">{{ labels.downTime }}</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- 原工具信息 --> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="开始时间:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.startTime> |
|
|
|
<el-date-picker v-model="pageData.reportDate" format="yyyy-MM-dd" |
|
|
|
value-format="yyyy-MM-dd" style="width: 100px;"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item class="customer-item" label="时长:"> |
|
|
|
<el-form-item class="customer-item" :label=labels.downTimes> |
|
|
|
<el-input v-model="pageData.downTimeQty" @blur="changeTimeQty"type="number" style="width: 100px;" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -93,8 +93,9 @@ |
|
|
|
</el-form> |
|
|
|
</el-container> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="connectToolInstanceIdBun">确 定</el-button> |
|
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
|
<el-button type="primary" @click="connectToolInstanceIdBun">{{ buttons.confirmButton }}</el-button> |
|
|
|
<el-button type="primary" @click="closeDialog">{{buttons.closeButton}}</el-button> |
|
|
|
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
@ -105,12 +106,28 @@ import { |
|
|
|
countToolUsedQty, |
|
|
|
checkConnectToolInstanceId, |
|
|
|
connectToolInstanceId, |
|
|
|
} |
|
|
|
from '@/api/yieldReport/com_replace_tool.js'; |
|
|
|
} from '@/api/yieldReport/com_replace_tool.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
searchSysLanguagePackList, |
|
|
|
searchSysLanguageParam, |
|
|
|
searchFunctionButtonList, |
|
|
|
saveButtonList, |
|
|
|
searchSysLanguage, |
|
|
|
searchLanguageListByLanguageCode, |
|
|
|
saveSysLanguageOne, |
|
|
|
searchPageLanguageData, |
|
|
|
removerLanguage, |
|
|
|
saveSysLanguageList |
|
|
|
} from "@/api/sysLanguage.js"; |
|
|
|
|
|
|
|
var functionId = 'C10000019'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
titleCon: '刀模替换', |
|
|
|
showDefault: false, |
|
|
|
readonlyFlag: true, |
|
|
|
scheduleData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -176,6 +193,126 @@ export default { |
|
|
|
toolInstanceId: '' |
|
|
|
}, |
|
|
|
dataListLoading: false, |
|
|
|
buttons: { |
|
|
|
confirmButton: '确定', |
|
|
|
closeButton: '关闭', |
|
|
|
}, |
|
|
|
buttonList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '确定', |
|
|
|
objectId: 'confirmButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '关闭', |
|
|
|
objectId: 'closeButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, |
|
|
|
], |
|
|
|
queryButton: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'button' |
|
|
|
}, |
|
|
|
labels: { |
|
|
|
titleCon: '刀模替换', |
|
|
|
toolInstanceId: '工具实例编码:', |
|
|
|
replaceToolTitle: '换刀模', |
|
|
|
replaceTool: '换刀模', |
|
|
|
oriToolInstanceId: '原工具实例编码:', |
|
|
|
currentProdQty: '本卷生产数量:', |
|
|
|
oriProdQty: '之前卷以生产数量:', |
|
|
|
totalProdQty: '累计生产数量:', |
|
|
|
downTimeTitle: '停机', |
|
|
|
downTime: '停机', |
|
|
|
startTime: '开始时间:', |
|
|
|
downTimes: '时长:', |
|
|
|
}, |
|
|
|
labelsList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '刀模替换', |
|
|
|
objectId: 'titleCon', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '工具实例编码:', |
|
|
|
objectId: 'toolInstanceId', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '换刀模', |
|
|
|
objectId: 'replaceToolTitle', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '换刀模', |
|
|
|
objectId: 'replaceTool', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '原工具实例编码:', |
|
|
|
objectId: 'oriToolInstanceId', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '本卷生产数量:', |
|
|
|
objectId: 'currentProdQty', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '之前卷以生产数量:', |
|
|
|
objectId: 'oriProdQty', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '累计生产数量:', |
|
|
|
objectId: 'totalProdQty', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '停机', |
|
|
|
objectId: 'downTimeTitle', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '停机', |
|
|
|
objectId: 'downTime', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '开始时间:', |
|
|
|
objectId: 'startTime', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '时长:', |
|
|
|
objectId: 'downTimes', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, |
|
|
|
], |
|
|
|
queryLabel: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'label' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -215,6 +352,9 @@ export default { |
|
|
|
}); |
|
|
|
//刷新当前工具实例的数量数据 |
|
|
|
this.refreshToolUsedQty(); |
|
|
|
|
|
|
|
//重置标题 |
|
|
|
this.titleCon = this.labels.titleCon; |
|
|
|
}, |
|
|
|
|
|
|
|
/*添加刀模记录*/ |
|
|
|
@ -338,10 +478,42 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 保存 默认配置 列 |
|
|
|
async saveMultiLanguage() { |
|
|
|
// 保存页面 button label title 属性 |
|
|
|
let buttons = this.buttonList; |
|
|
|
let labels = this.labelsList; |
|
|
|
await saveButtonList(buttons) |
|
|
|
await saveButtonList(labels) |
|
|
|
this.getMultiLanguageList() |
|
|
|
}, |
|
|
|
|
|
|
|
getMultiLanguageList() { |
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.buttons = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
//其次查询当前标签的多语言 |
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.labels = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
// this.factoryList() |
|
|
|
// this.getLanguageList() |
|
|
|
this.getMultiLanguageList();//刷新多语言的信息 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|