|
|
|
@ -92,24 +92,35 @@ |
|
|
|
{{ labels.primaryMenu }}<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
</el-button> |
|
|
|
<el-dropdown-menu v-show="menuShow" slot="dropdown"> |
|
|
|
<el-dropdown-item class="customer-li" command="0" :disabled="menuButton.prdButton"><span>{{ labels.shopOrderLabel }}</span> |
|
|
|
<el-dropdown-item class="customer-li" command="0" :disabled="menuButton.prdButton"> |
|
|
|
<span>{{ labels.shopOrderLabel }}</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="1" :disabled="menuButton.closedButton">{{ labels.closeLabel }}</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="1" :disabled="menuButton.closedButton">{{ |
|
|
|
labels.closeLabel |
|
|
|
}} |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="2" :disabled="menuButton.openButton">{{ labels.openLabel }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="3" :disabled="menuButton.pauseButton">{{ labels.pauseLabel }}</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="4" :disabled="menuButton.openReverseButton">{{ labels.reopenLabel }} |
|
|
|
<el-dropdown-item class="customer-li" command="3" :disabled="menuButton.pauseButton">{{ |
|
|
|
labels.pauseLabel |
|
|
|
}} |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="4" :disabled="menuButton.openReverseButton"> |
|
|
|
{{ labels.reopenLabel }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="5" :disabled="menuButton.createRecheckButton">{{ labels.createReCheckSeqNo }} |
|
|
|
<el-dropdown-item class="customer-li" command="5" :disabled="menuButton.createRecheckButton"> |
|
|
|
{{ labels.createReCheckSeqNo }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="6" :disabled="menuButton.canceledAllPrdButton">{{ labels.cancelAllScheduleOperations }} |
|
|
|
<el-dropdown-item class="customer-li" command="6" :disabled="menuButton.canceledAllPrdButton"> |
|
|
|
{{ labels.cancelAllScheduleOperations }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="7" :disabled="menuButton.costRollUpFlagButton">{{ labels.prodIssued }} |
|
|
|
<el-dropdown-item class="customer-li" command="7" :disabled="menuButton.costRollUpFlagButton"> |
|
|
|
{{ labels.prodIssued }} |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="8" :disabled="menuButton.canceledCostRollUpFlagButton"> |
|
|
|
{{ labels.cancelProdIssued }} |
|
|
|
@ -118,20 +129,39 @@ |
|
|
|
:disabled="menuButton.partStockFlag">{{ labels.viewPartStock }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="9" :disabled="menuButton.manualFlagButton">{{ labels.toolIssued }} |
|
|
|
<el-dropdown-item class="customer-li" command="9" :disabled="menuButton.manualFlagButton"> |
|
|
|
{{ labels.toolIssued }} |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="10" :disabled="menuButton.canceledManualFlagButton">{{ labels.cancelToolIssued }} |
|
|
|
<el-dropdown-item class="customer-li" command="10" :disabled="menuButton.canceledManualFlagButton"> |
|
|
|
{{ labels.cancelToolIssued }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
<el-dropdown-item class="customer-li" command="11" :disabled="menuButton.repairSOFlagButton">{{ labels.printIssued }} |
|
|
|
<el-dropdown-item class="customer-li" command="11" :disabled="menuButton.repairSOFlagButton"> |
|
|
|
{{ labels.printIssued }} |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item class="customer-li" command="12" :disabled="menuButton.canceledRepairSOFlagButton">{{ labels.cancelPrintIssued }} |
|
|
|
<el-dropdown-item class="customer-li" command="12" :disabled="menuButton.canceledRepairSOFlagButton"> |
|
|
|
{{ labels.cancelPrintIssued }} |
|
|
|
</el-dropdown-item> |
|
|
|
<hr width="95%"/> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
<el-button @click="userSetting" type="primary">{{ buttons.settingTable }}</el-button> |
|
|
|
<el-button v-if="showDefault" @click="saveColumnList()" type="primary">{{ buttons.defaultTable }}</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
type="xls" |
|
|
|
:name="exportName" |
|
|
|
:header="exportHeader" |
|
|
|
:footer="exportFooter" |
|
|
|
:defaultValue="exportDefaultValue" |
|
|
|
:fetch="createExportData" |
|
|
|
:before-generate="startDownload" |
|
|
|
:before-finish="finishDownload" |
|
|
|
worksheet="导出信息" |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ buttons.download||'导出' }} |
|
|
|
</download-excel> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<!-- 工单主表信息 --> |
|
|
|
@ -1241,6 +1271,13 @@ export default { |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'label' |
|
|
|
}, |
|
|
|
// 导出 start |
|
|
|
exportData: [], |
|
|
|
exportName: "生产工单", |
|
|
|
exportHeader: [], |
|
|
|
exportFooter: [], |
|
|
|
exportDefaultValue: "这一行这一列没有数据", |
|
|
|
// 导出 end |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -2202,10 +2239,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//获取按钮的权限数据 |
|
|
|
getButtonAuthData(){ |
|
|
|
let updateFlag = this.isAuth(this.menuId+":revise"); |
|
|
|
let fullControFlag = this.isAuth(this.menuId+":fullContro"); |
|
|
|
let deleteFlag = this.isAuth(this.menuId+":remove"); |
|
|
|
getButtonAuthData() { |
|
|
|
let updateFlag = this.isAuth(this.menuId + ":revise"); |
|
|
|
let fullControFlag = this.isAuth(this.menuId + ":fullContro"); |
|
|
|
let deleteFlag = this.isAuth(this.menuId + ":remove"); |
|
|
|
//处理页面的权限数据 |
|
|
|
this.authEdit = !updateFlag && !fullControFlag; |
|
|
|
this.authAdd = !fullControFlag; |
|
|
|
@ -2217,7 +2254,7 @@ export default { |
|
|
|
getMultiLanguageList() { |
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
if (data && data.code == 0 ) { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.buttons = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
@ -2226,7 +2263,7 @@ export default { |
|
|
|
}); |
|
|
|
//其次查询当前标签的多语言 |
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
if (data && data.code == 0 ) { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.labels = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
@ -2234,6 +2271,30 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
fields() { |
|
|
|
let json = "{" |
|
|
|
this.columnList.forEach((item, index) => { |
|
|
|
if (index == this.columnList.length - 1) { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" |
|
|
|
} else { |
|
|
|
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," |
|
|
|
} |
|
|
|
}) |
|
|
|
json += "}" |
|
|
|
let s = eval("(" + json + ")") |
|
|
|
return s |
|
|
|
}, |
|
|
|
createExportData() { |
|
|
|
// 点击导出按钮之后,开始导出数据之前的执行函数,返回值为需要下载的数据 |
|
|
|
return this.produceScheduleList; |
|
|
|
}, |
|
|
|
startDownload() { |
|
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
}, |
|
|
|
finishDownload() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
|