|
@@ -154,7 +154,7 @@ export default {
|
|
|
currentRow: null, // 当前选择的行
|
|
|
|
|
|
spanArr: [], // 【组序】合并单元格
|
|
|
- spanArr2: [], // 【优先级】合并单元格
|
|
|
+ spanArr2: [], // 【优先级】合并单元格
|
|
|
}
|
|
|
},
|
|
|
// 实例已经在内存中创建好,此时data和methods已将ok,如果要操作data中的数据或是调用methods中的方法,最早只能在created中操作
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
submitForm(){
|
|
|
// 更新改任务的开始时间
|
|
|
// TODO 写入rfid内容,工件信息、原材料R
|
|
|
- this.confirmDisabled = true
|
|
|
+ this.confirmDisabled = true
|
|
|
let valid = this.uniqueCode!=''? true: false;
|
|
|
if(!valid){
|
|
|
this.$message({
|
|
@@ -266,7 +266,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
generate(){
|
|
|
- this.uniqueCode = this.uuid(32,16)
|
|
|
+ taskMgrApi.generateMarkCode({ "id" : this.tenant.id}).then((res) => {
|
|
|
+ res = res.data;
|
|
|
+ if (res.isSuccess) {
|
|
|
+ this.uniqueCode = res.data.uniqueCode
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // this.uniqueCode = this.uuid(32,16)
|
|
|
},
|
|
|
|
|
|
uuid(len, radix) {
|