feat: 完善仓库建筑绑定、质检预警规则与大屏展示
这个提交包含在:
@@ -395,6 +395,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
image: '',
|
||||
storage: '成都直属库有限公司本部',
|
||||
num: '',
|
||||
screenPosition: '',
|
||||
granary_type: 1,
|
||||
varieties: '菜籽油',
|
||||
content: []
|
||||
@@ -413,6 +414,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
image: item.image,
|
||||
storage: item.storage,
|
||||
num: item.num,
|
||||
screenPosition: (item.content || {}).screenPosition || '',
|
||||
old_num: item.num,
|
||||
granary_type: item.granary_type || (item.num > 18 ? 2 : 1),
|
||||
varieties: item.varieties,
|
||||
@@ -433,7 +435,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
this.varietiesType = 'two';
|
||||
}
|
||||
|
||||
this.contentFields[this.contentType] = item.content || {};
|
||||
this.contentFields[this.contentType] = JSON.parse(JSON.stringify(item.content || {}));
|
||||
}
|
||||
},
|
||||
// 查看详情
|
||||
@@ -503,6 +505,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
}
|
||||
}
|
||||
fields['varieties'] = this.formData.varieties;
|
||||
fields['screenPosition'] = this.formData.screenPosition || '';
|
||||
|
||||
// 提交
|
||||
let loading = this.$loading({
|
||||
@@ -512,12 +515,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
background: 'rgba(0, 0, 0, 0.3)'
|
||||
});
|
||||
|
||||
this.formData.content = fields;
|
||||
const payload = Object.assign({}, this.formData, {content: fields});
|
||||
delete payload.screenPosition;
|
||||
|
||||
$.ajax({
|
||||
url: 'granary/add',
|
||||
type: 'POST',
|
||||
data: this.formData,
|
||||
data: payload,
|
||||
success: res => {
|
||||
loading.close();
|
||||
if (res.code === 200) {
|
||||
|
||||
在新工单中引用
屏蔽一个用户