|
|
@@ -37,8 +37,8 @@
|
|
|
type="warning"
|
|
|
size="mini"
|
|
|
:loading="btnLoading"
|
|
|
- @click="onToggleUsed(0, '禁用')"
|
|
|
- >{{ $t("禁 用") }}</el-button
|
|
|
+ @click="onToggleUsed(0, '停用')"
|
|
|
+ >{{ $t("停 用") }}</el-button
|
|
|
>
|
|
|
<el-button type="danger" @click="onDelete" size="mini">{{
|
|
|
$t(`删 除`)
|
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
methods: {
|
|
|
onToggleUsed(value, actionText) {
|
|
|
this.$confirm(
|
|
|
- this.$t(`确认${actionText}当前工单模板吗`) + "?",
|
|
|
+ this.$t('确认') + this.$t(actionText) + this.$t('当前工单模板')+'?',
|
|
|
this.$t("提示"),
|
|
|
{
|
|
|
confirmButtonText: this.$t("确定"),
|
|
|
@@ -305,6 +305,24 @@ export default {
|
|
|
return style;
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "是否工单完结时生成质保卡",
|
|
|
+ value: this.mainData.iswarrantycard ? "是" : "否",
|
|
|
+ style: function () {
|
|
|
+ let style = {};
|
|
|
+ switch (that.mainData.iswarrantycard) {
|
|
|
+ case 1:
|
|
|
+ style = { color: "#ff0000" };
|
|
|
+ break;
|
|
|
+ case 0:
|
|
|
+ style = { color: "#666666" };
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ return style;
|
|
|
+ },
|
|
|
+ },
|
|
|
],
|
|
|
systemInfo: [
|
|
|
{ label: "创建人", value: this.mainData.createby },
|