-
@@ -345,3 +345,37 @@ export default {
padding: 18px;
}
-->
+
diff --git a/src/views/base/packagingPrintType/index.vue b/src/views/base/packagingPrintType/index.vue
index 740d250a..0cb35009 100644
--- a/src/views/base/packagingPrintType/index.vue
+++ b/src/views/base/packagingPrintType/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-22 14:36:33
+ * @LastEditTime: 2023-12-04 13:44:01
* @Description:
-->
@@ -122,7 +122,8 @@ export default {
// name: 'reset',
// },
{
- type: 'separate',
+ type: 'label',
+ label: '标签类型'
},
{
type: this.$auth.hasPermi('base:packaging-print-type:create') ? 'button' : '',
diff --git a/src/views/core/mixins/basic-add.js b/src/views/core/mixins/basic-add.js
index 5b0754dd..2f725af8 100644
--- a/src/views/core/mixins/basic-add.js
+++ b/src/views/core/mixins/basic-add.js
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-08-24 11:19:43
* @LastEditors: zhp
- * @LastEditTime: 2023-11-06 15:59:53
+ * @LastEditTime: 2023-12-13 15:52:53
* @Description:
*/
export default {
@@ -38,7 +38,7 @@ export default {
this.$refs["dataForm"].resetFields();
if (this.dataForm.id) {
this.urlOptions.infoURL(id).then(response => {
- this.dataForm = response.data;
+ this.dataForm = response.data
if (this.setData) {
this.setDataForm()
}
@@ -80,7 +80,7 @@ export default {
if (this.dataForm.id) {
this.urlOptions.updateURL(this.dataForm).then(response => {
this.$modal.msgSuccess("修改成功");
- this.visible = false;
+ this.visible = false;
this.$emit("refreshDataList");
});
return;
diff --git a/src/views/energy/base/energyQuantityManual/index.vue b/src/views/energy/base/energyQuantityManual/index.vue
index 39d25b8b..49b80890 100644
--- a/src/views/energy/base/energyQuantityManual/index.vue
+++ b/src/views/energy/base/energyQuantityManual/index.vue
@@ -106,7 +106,7 @@ export default {
},
{
type: 'datePicker',
- label: '时间',
+ label: '抄表日期',
dateType: 'daterange',
format: 'yyyy-MM-dd',
valueFormat: "timestamp",
diff --git a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue
index 6a26d269..0650b380 100644
--- a/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue
+++ b/src/views/energy/monitoring/energyLimit/components/energyLimitAdd.vue
@@ -118,8 +118,8 @@ export default {
type: '',
plcParamId: '',
limitType: '',
- minValue: null,
- maxValue: null
+ minValue: 0,
+ maxValue: 0
},
objIds: [],// 回显数组
isEdit: false, //是否是编辑
@@ -239,7 +239,8 @@ export default {
return false
}
}
- // this.form.limitType = Number(this.form.limitType)
+ this.form.minValue = this.form.minValue || 0
+ this.form.maxValue = this.form.maxValue || 0
if (this.isEdit) {
// 编辑
updateEnergyLimit({...this.form}).then((res) => {
diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
index 84f0d9cf..079f999e 100644
--- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
@@ -9,8 +9,7 @@
-
diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
index f5a87fbf..036fd885 100644
--- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
@@ -9,8 +9,7 @@
-
+
取消
确定
diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue
index 03cd2c9d..81c2295d 100644
--- a/src/views/equipment/base/config/BindGroup/index.vue
+++ b/src/views/equipment/base/config/BindGroup/index.vue
@@ -34,7 +34,7 @@
diff --git a/src/views/equipment/base/config/DataCollection/TableConfig.vue b/src/views/equipment/base/config/DataCollection/TableConfig.vue
index 1037d075..2f9dda7a 100644
--- a/src/views/equipment/base/config/DataCollection/TableConfig.vue
+++ b/src/views/equipment/base/config/DataCollection/TableConfig.vue
@@ -25,7 +25,6 @@
v-if="tableBtn.length"
slot="handleBtn"
label="操作"
- :width="90"
:method-list="tableBtn"
@clickBtn="handleTableBtnClick" />
@@ -42,7 +41,7 @@
@@ -128,7 +127,7 @@ export default {
// width: 180,
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
// },
- { prop: 'code', label: '编码', showOverflowtooltip: true },
+ { prop: 'code', label: '编码' },
{ prop: 'plcTableName', label: '关联表名' },
{ prop: 'name', label: '标识名称' },
{ prop: 'enName', label: '英文名称' },
@@ -137,7 +136,7 @@ export default {
label: '是否采集',
subcomponent: switchBtn,
},
- { prop: 'description', label: '描述', showOverflowtooltip: true },
+ { prop: 'description', label: '描述' },
],
searchBarFormConfig: [
{
@@ -214,28 +213,16 @@ export default {
},
],
[
- // {
- // switch: true,
- // label: '是否采集', // 是否采集 0 代表不采集, 1 代表采集
- // prop: 'collection',
- // bind: {
- // 'active-value': 1,
- // 'inactive-value': 0,
- // value: 1,
- // },
- // },
{
- select: true,
- options: [
- { label: '否', value: 0 },
- { label: '是', value: 1 }
- ],
- label: '是否采集',
+ switch: true,
+ label: '是否采集', // 是否采集 0 代表不采集, 1 代表采集
prop: 'collection',
bind: {
- clearable: true, filterable: true
- }
- }
+ 'active-value': 1,
+ 'inactive-value': 0,
+ value: 1,
+ },
+ },
],
[
{
diff --git a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
index 4ac442ce..a2f09855 100644
--- a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
@@ -9,8 +9,7 @@
-
diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue
index 8f5699ef..961fda3e 100644
--- a/src/views/equipment/base/inspection/Record/addRecord.vue
+++ b/src/views/equipment/base/inspection/Record/addRecord.vue
@@ -1,8 +1,8 @@
-
@@ -112,7 +112,7 @@
-
+
@@ -125,7 +125,7 @@
diff --git a/src/views/equipment/base/repair/index.vue b/src/views/equipment/base/repair/index.vue
index c1551fa9..7144bf92 100644
--- a/src/views/equipment/base/repair/index.vue
+++ b/src/views/equipment/base/repair/index.vue
@@ -17,7 +17,7 @@
v-if="tableBtn.length"
slot="handleBtn"
label="操作"
- :width="120"
+ :width="180"
:method-list="tableBtn"
@clickBtn="handleTableBtnClick" />
@@ -48,8 +48,7 @@
+ @refreshDataList="getList" />
@@ -71,6 +70,12 @@ export default {
addOrUpdateVisible: false,
searchBarKeys: ['maintenanceStatus', 'createTime', 'equipmentId'],
tableBtn: [
+ this.$auth.hasPermi('equipment:repair:update')
+ ? {
+ type: 'detail',
+ btnName: '详情',
+ }
+ : undefined,
this.$auth.hasPermi('equipment:repair:finish')
? {
type: 'finish',
@@ -79,16 +84,10 @@ export default {
: undefined,
this.$auth.hasPermi('equipment:repair:update')
? {
- type: 'detail',
- btnName: '详情',
+ type: 'edit',
+ btnName: '修改',
}
: undefined,
- // this.$auth.hasPermi('equipment:repair:update')
- // ? {
- // type: 'edit',
- // btnName: '修改',
- // }
- // : undefined,
this.$auth.hasPermi('equipment:repair:delete')
? {
type: 'delete',
@@ -101,24 +100,22 @@ export default {
prop: 'createTime',
label: '添加时间',
fixed: true,
- width: 150,
+ width: 180,
filter: parseTime,
},
- { prop: 'repairOrderNumber', label: '设备维修单号', minWidth: 100, showOverflowtooltip: true },
- { prop: 'maintenanceStartTime', label: '开始时间', filter: parseTime, minWidth: 150, showOverflowtooltip: true },
+ { prop: 'repairOrderNumber', label: '设备维修单号' },
+ { prop: 'maintenanceStartTime', label: '开始时间', filter: parseTime },
{
prop: 'maintenanceFinishTime',
label: '结束时间',
filter: parseTime,
- minWidth: 150,
- showOverflowtooltip: true
},
{
prop: 'maintenanceStatus',
label: '维修状态',
filter: (v) => (v != null ? ['未完成', '完成', '进行中'][v] : ''),
},
- { prop: 'maintenanceDuration', label: '维修时长(h)', width: 110 },
+ { prop: 'maintenanceDuration', label: '维修时长(h)' },
{ prop: 'lineName', label: '产线' },
{ prop: 'sectionName', label: '工段' },
{ prop: 'equipmentName', label: '设备名称', minWidth: 100, showOverflowtooltip: true },
@@ -196,7 +193,8 @@ export default {
select: true,
label: '设备名称',
prop: 'equipmentId',
- url: '/base/core-equipment/listAll',
+ // url: '/base/core-equipment/listAll',
+ url: '/base/core-equipment/page?special=false&pageNo=1&pageSize=99',
bind: {
filterable: true,
clearable: true,
@@ -254,6 +252,7 @@ export default {
queryParams: {
pageNo: 1,
pageSize: 10,
+ special: false,
maintenanceStatus: null,
createTime: null,
equipmentId: null,
@@ -270,11 +269,15 @@ export default {
},
methods: {
initSearchBar() {
- this.http('/base/core-equipment/listAll', 'get').then(({ data }) => {
+ this.http('/base/core-equipment/page', 'get', {
+ special: false,
+ pageNo: 1,
+ pageSize: 99,
+ }).then(({ data }) => {
this.$set(
this.searchBarFormConfig[0],
'selectOptions',
- data.map((item) => ({
+ (data?.list || []).map((item) => ({
name: item.name,
id: item.id,
}))
diff --git a/src/views/extend/processEquMaterialBom/add-or-updata.vue b/src/views/extend/processEquMaterialBom/add-or-updata.vue
index fe1d6c57..0cb1aed6 100644
--- a/src/views/extend/processEquMaterialBom/add-or-updata.vue
+++ b/src/views/extend/processEquMaterialBom/add-or-updata.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: zhp
- * @LastEditTime: 2023-11-28 10:03:20
+ * @LastEditTime: 2023-12-08 13:59:20
* @Description:
-->
@@ -11,11 +11,11 @@
{{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
-
+
-
-
+
+
@@ -23,44 +23,39 @@
-
+
-
-
-
+
-
+
+
+
-
-
-
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
- 取消
-
- 编辑
-
- 确定
-
-
+
设备物料明细
@@ -80,14 +75,12 @@
-
-
- 关闭
-
-
-
+
+ 取消
+ 确定
+
@@ -200,6 +193,29 @@ export default {
mounted() {
},
methods: {
+ dataFormSubmit() {
+ this.$refs["dataForm"].validate((valid) => {
+ if (!valid) {
+ return false;
+ }
+ // 修改的提交
+ if (this.dataForm.id) {
+ this.urlOptions.updateURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("修改成功");
+ this.visible = false;
+ this.$emit("refreshDataList");
+ });
+ return;
+ }
+ // 添加的提交
+ this.urlOptions.createURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("新增成功");
+ this.idAttrShow = true;
+ this.dataForm.id = res.data
+ this.$emit("refreshDataList");
+ });
+ });
+ },
getCode(val) {
this.equipmentList.forEach((ele) => {
if (val === ele.id) {
@@ -232,8 +248,8 @@ export default {
this.$confirm(
`确定对${
raw.data.materialName
- ? '[物料名称为' + raw.data.materialName + ']'
- : '[序号为' + raw.data.materialName + ']'
+ ? '[物料名为' + raw.data.materialName + ']'
+ : '[序号为' + raw.data.id + ']'
}进行删除操作?`,
'提示',
{
@@ -374,7 +390,7 @@ export default {
}
.action_btn {
float: right;
- margin: 5px 15px;
+ margin: -40px 15px;
font-size: 14px;
}
.add {
diff --git a/src/views/extend/processEquValueBom/add-or-updata.vue b/src/views/extend/processEquValueBom/add-or-updata.vue
index 3abaf2e4..366de7ae 100644
--- a/src/views/extend/processEquValueBom/add-or-updata.vue
+++ b/src/views/extend/processEquValueBom/add-or-updata.vue
@@ -1,13 +1,8 @@
@@ -16,11 +11,11 @@
{{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
-
+
-
-
+
+
@@ -28,43 +23,44 @@
-
+
-
-
-
+
-
+
+
+
-
-
-
+
-
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
- 取消
-
- 编辑
-
- 确定
-
+
+
@@ -85,14 +81,12 @@
-
-
- 关闭
-
-
-
+
+ 取消
+ 确定
+
@@ -173,7 +167,17 @@ export default {
tableBtn,
tableProps,
topBtnConfig,
- addOrUpdateVisible: false,
+ addOrUpdateVisible: false,
+ enableList: [
+ {
+ id: 0,
+ name: '停用'
+ },
+ {
+ id: 1,
+ name:'启用'
+ }
+ ],
urlOptions: {
isGetCode: false,
// codeURL: getCode,
@@ -248,8 +252,8 @@ export default {
this.$confirm(
`确定对${
raw.data.valueName
- ? '[物料名称为' + raw.data.valueName + ']'
- : '[序号为' + raw.data.valueName + ']'
+ ? '[参数名为' + raw.data.valueName + ']'
+ : '[序号为' + raw.data.id + ']'
}进行删除操作?`,
'提示',
{
@@ -274,7 +278,30 @@ export default {
} else {
this.addNew(raw.data.id);
}
- },
+ },
+ dataFormSubmit() {
+ this.$refs["dataForm"].validate((valid) => {
+ if (!valid) {
+ return false;
+ }
+ // 修改的提交
+ if (this.dataForm.id) {
+ this.urlOptions.updateURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("修改成功");
+ this.visible = false;
+ this.$emit("refreshDataList");
+ });
+ return;
+ }
+ // 添加的提交
+ this.urlOptions.createURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("新增成功");
+ this.idAttrShow = true;
+ this.dataForm.id = res.data
+ this.$emit("refreshDataList");
+ });
+ });
+ },
getList() {
// 获取产品属性列表
processEquValueBomDetPage({
@@ -389,12 +416,13 @@ export default {
justify-content: flex-end;
padding: 18px;
}
-.action_btn {
- float: right;
- margin: 5px 15px;
- font-size: 14px;
-}
+
.add {
color: #0b58ff;
}
+.action_btn {
+ float: right;
+ margin: -40px 15px;
+ font-size: 14px;
+}
diff --git a/src/views/extend/processEquValueBom/attr-add.vue b/src/views/extend/processEquValueBom/attr-add.vue
index e60ccc6a..873cf7a3 100644
--- a/src/views/extend/processEquValueBom/attr-add.vue
+++ b/src/views/extend/processEquValueBom/attr-add.vue
@@ -1,7 +1,7 @@
@@ -15,36 +15,40 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
取消
确定
diff --git a/src/views/group/base/groupClasses/components/groupClassAdd.vue b/src/views/group/base/groupClasses/components/groupClassAdd.vue
index e25a79c9..628bf6b4 100644
--- a/src/views/group/base/groupClasses/components/groupClassAdd.vue
+++ b/src/views/group/base/groupClasses/components/groupClassAdd.vue
@@ -116,7 +116,16 @@ export default {
getGroupClasses(id).then((res) => {
if (res.code === 0) {
this.form = res.data
- this.form.disableTime = res.data.disableTime || ''
+ this.form.name = res.data.name
+ this.form.code = res.data.code
+ this.form.enableTime = res.data.enableTime
+ // this.form.disableTime = res.data.disableTime || null
+ this.$set(this.form, 'disableTime', res.data.disableTime || null)
+ this.form.startTime = res.data.startTime
+ this.form.endTime = res.data.endTime
+ this.form.daySpan = res.data.daySpan
+ this.form.remark = res.data.remark
+ console.log(this.form)
}
})
} else {
diff --git a/src/views/order/base/orderManage/orderDetailData.vue b/src/views/order/base/orderManage/orderDetailData.vue
index cffafbe2..d0e22226 100644
--- a/src/views/order/base/orderManage/orderDetailData.vue
+++ b/src/views/order/base/orderManage/orderDetailData.vue
@@ -165,7 +165,7 @@ const tableProps1 = [
{
prop: 'status',
label: '状态',
- filter: publicFormatter('order_status')
+ filter: publicFormatter('work_order_status')
},
{
prop: 'startProduceTime',
diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue
index 0cae68d9..d81dd42e 100644
--- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue
+++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue
@@ -6,7 +6,7 @@
-->
-
+
-
-
+
+
+
+
{{ item.typeName}}
+
+
+
+ {{ i.content }}
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/mixins/basic-add.js b/src/views/quality/base/mixins/basic-add.js
new file mode 100644
index 00000000..d966b3b2
--- /dev/null
+++ b/src/views/quality/base/mixins/basic-add.js
@@ -0,0 +1,100 @@
+/*
+ * @Author: zwq
+ * @Date: 2022-08-24 11:19:43
+ * @LastEditors: zhp
+ * @LastEditTime: 2023-12-13 15:57:27
+ * @Description:
+ */
+export default {
+ data() {
+ /* eslint-disable */
+ return {
+ urlOptions: {
+ createURL: '',
+ updateURL: '',
+ infoURL: '',
+ codeURL: '',
+ getOption: false,
+ isGetCode: false,
+ optionArrUrl: [],
+ optionArr: {}
+ },
+ visible: false,
+ setData: false
+ }
+ },
+ created() {
+ },
+ activated() {
+ },
+ methods: {
+ init(id) {
+ this.dataForm.id = id || "";
+ this.visible = true;
+ if (this.urlOptions.getOption) {
+ this.getArr()
+ }
+ this.$nextTick(() => {
+ this.$refs["dataForm"].resetFields();
+ if (this.dataForm.id) {
+ this.urlOptions.infoURL(id).then(response => {
+ this.dataForm = response.data
+ if (this.setData) {
+ this.setDataForm()
+ }
+ });
+ } else {
+ if (this.urlOptions.isGetCode) {
+ this.getCode()
+ }
+ }
+ });
+ },
+ getCode() {
+ this.urlOptions.codeURL()
+ .then(({ data: res }) => {
+ this.dataForm.code = res;
+ })
+ .catch(() => {});
+ },
+ getArr() {
+ const params = {
+ pageSize: 100,
+ pageNo: 1,
+ }
+ this.urlOptions.optionArrUrl.forEach((item, index) => {
+ item(params).then(({ data: res }) => {
+ this.$set(this.urlOptions.optionArr, `arr${index}`, res.list)
+ })
+ .catch(() => {
+ });
+ });
+ },
+ // 表单提交
+ dataFormSubmit() {
+ this.$refs["dataForm"].validate((valid) => {
+ if (!valid) {
+ return false;
+ }
+ // 修改的提交
+ if (this.dataForm.id) {
+ this.urlOptions.updateURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("修改成功");
+ this.visible = false;
+ this.$emit("refreshDataList");
+ });
+ return;
+ }
+ // 添加的提交
+ this.urlOptions.createURL(this.dataForm).then(response => {
+ this.$modal.msgSuccess("新增成功");
+ this.visible = false;
+ this.$emit("refreshDataList");
+ });
+ });
+ },
+ formClear() {
+ this.$refs.dataForm.resetFields()
+ }
+ }
+}
diff --git a/src/views/quality/base/mixins/basic-page.js b/src/views/quality/base/mixins/basic-page.js
new file mode 100644
index 00000000..b661a271
--- /dev/null
+++ b/src/views/quality/base/mixins/basic-page.js
@@ -0,0 +1,168 @@
+/*
+ * @Author: zwq
+ * @Date: 2022-08-24 11:19:43
+ * @LastEditors: zhp
+ * @LastEditTime: 2023-12-13 16:19:04
+ * @Description:
+ */
+export default {
+ data() {
+ /* eslint-disable */
+ return {
+ urlOptions: {
+ getDataListURL: '',
+ deleteURL: '',
+ statusUrl: '',
+ exportURL: ''
+ },
+ tableData: [],
+ listQuery: {
+ pageSize: 10,
+ pageNo: 1,
+ total: 1,
+ },
+ exportLoading: false,
+ dataListLoading: false,
+ addOrEditTitle: '',
+ addOrUpdateVisible: false,
+ }
+ },
+ created() {
+ },
+ mounted() {
+ this.getDataList()
+ },
+ methods: {
+ // 获取数据列表
+ getDataList() {
+ this.dataListLoading = true;
+ this.urlOptions.getDataListURL(this.listQuery).then(response => {
+ this.tableData = response.data.list;
+ this.listQuery.total = response.data.total;
+ this.dataListLoading = false;
+ });
+ },
+ // 每页数
+ sizeChangeHandle(val) {
+ this.listQuery.pageSize = val;
+ this.listQuery.pageNo = 1;
+ this.getDataList();
+ },
+ // 当前页
+ currentChangeHandle(val) {
+ this.listQuery.pageNo = val;
+ this.getDataList();
+ },
+ // 新增 / 修改
+ addOrUpdateHandle(id) {
+ this.addOrUpdateVisible = true;
+ this.$nextTick(() => {
+ this.$refs.addOrUpdate.init(id);
+ });
+ },
+ cancel(id) {
+ this.$refs["popover-" + id].showPopper = false;
+ },
+ //改变状态
+ changeStatus(id) {
+ this.$http
+ .post(this.urlOptions.statusUrl, { id })
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ }
+ this.$refs["popover-" + id].showPopper = false;
+ this.$message({
+ message: this.$t("prompt.success"),
+ type: "success",
+ duration: 500,
+ onClose: () => {
+ this.getDataList();
+ },
+ });
+ })
+ .catch(() => { });
+ },
+ //tableBtn点击
+ handleClick(val) {
+ if (val.type === "edit") {
+ this.addOrUpdateVisible = true;
+ this.addOrEditTitle = "编辑";
+ this.$nextTick(() => {
+ this.$refs.addOrUpdate.init(val.data);
+ });
+ } else if (val.type === "delete") {
+ this.deleteHandle(val.data.id, val.data.name, val.data._pageIndex)
+ } else if (val.type === "change") {
+ this.changeStatus(val.data.id)
+ } else {
+ this.otherMethods(val)
+ }
+ },
+ // 删除
+ deleteHandle(id, name, index) {
+ this.$confirm(`确定对${name ? '[名称=' + name + ']' : '[序号=' + index + ']'}进行删除操作?`, "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.urlOptions.deleteURL(id).then(({ data }) => {
+ this.$message({
+ message: "操作成功",
+ type: "success",
+ duration: 1500,
+ onClose: () => {
+ this.getDataList();
+ },
+ });
+ });
+ })
+ .catch(() => { });
+ },
+ //search-bar点击
+ buttonClick(val) {
+ switch (val.btnName) {
+ case "search":
+ this.listQuery.xm1 = val.xm1;
+ this.listQuery.xm2 = val.xm2;
+ this.listQuery.pageNo = 1;
+ this.getDataList();
+ break;
+ case "add":
+ this.addOrEditTitle = '新增'
+ this.addOrUpdateVisible = true;
+ this.addOrUpdateHandle()
+ break;
+ default:
+ console.log(val)
+ }
+ },
+ handleCancel() {
+ this.$refs.addOrUpdate.formClear()
+ this.addOrUpdateVisible = false
+ this.addOrEditTitle = ''
+ },
+ handleConfirm() {
+ this.$refs.addOrUpdate.dataFormSubmit()
+ },
+ successSubmit() {
+ this.handleCancel()
+ this.getDataList()
+ },
+ /** 导出按钮操作 */
+ handleExport() {
+ // 处理查询参数
+ let params = { ...this.queryParams };
+ params.pageNo = undefined;
+ params.pageSize = undefined;
+ this.$modal.confirm('是否确认导出所有数据项?').then(() => {
+ this.exportLoading = true;
+ return this.urlOptions.exportURL(params);
+ }).then(response => {
+ this.$download.excel(response, '工厂.xls');
+ this.exportLoading = false;
+ }).catch(() => { });
+ }
+ }
+}
diff --git a/src/views/quality/base/mixins/code-filter.js b/src/views/quality/base/mixins/code-filter.js
new file mode 100644
index 00000000..30c5f12e
--- /dev/null
+++ b/src/views/quality/base/mixins/code-filter.js
@@ -0,0 +1,69 @@
+
+/*
+ * @Date: 2020-12-29 16:49:28
+ * @LastEditors: DY
+ * @LastEditTime: 2023-09-12 11:13:34
+ * @FilePath: \basic-admin\src\filters\basicData\index.js
+ * @Description:
+ */
+
+const table = {
+ lineStatus: {
+ 1: '生产中',
+ 2: '停止',
+ 3: '未知',
+ },
+ reportType: {
+ 1: '日',
+ 2: '周',
+ 3: '月'
+ }
+}
+
+// 日期格式化
+export function parseTime(time, pattern) {
+ if (arguments.length === 0 || !time) {
+ return null
+ }
+ const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'
+ let date
+ if (typeof time === 'object') {
+ date = time
+ } else {
+ if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
+ time = parseInt(time)
+ } else if (typeof time === 'string') {
+ time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.\d{3}/gm),'');
+ }
+ if ((typeof time === 'number') && (time.toString().length === 10)) {
+ time = time * 1000
+ }
+ date = new Date(time)
+ }
+ const formatObj = {
+ y: date.getFullYear(),
+ m: date.getMonth() + 1,
+ d: date.getDate(),
+ h: date.getHours(),
+ i: date.getMinutes(),
+ s: date.getSeconds(),
+ a: date.getDay()
+ }
+ const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => {
+ let value = formatObj[key]
+ // Note: getDay() returns 0 on Sunday
+ if (key === 'a') {
+ return ['日', '一', '二', '三', '四', '五', '六'][value]
+ }
+ if (result.length > 0 && value < 10) {
+ value = '0' + value
+ }
+ return value || 0
+ })
+ return time_str
+}
+export default function (dictTable) {
+ return function (val) {
+ return table?.[dictTable]?.[val]
+ }
+}
diff --git a/src/views/quality/base/qualityHotMaterial/SmallTitle.vue b/src/views/quality/base/qualityHotMaterial/SmallTitle.vue
new file mode 100644
index 00000000..2090ecc2
--- /dev/null
+++ b/src/views/quality/base/qualityHotMaterial/SmallTitle.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/qualityHotMaterial/add-or-updata.vue b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue
new file mode 100644
index 00000000..e3f14998
--- /dev/null
+++ b/src/views/quality/base/qualityHotMaterial/add-or-updata.vue
@@ -0,0 +1,375 @@
+
+
+
+
+ {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/qualityHotMaterial/index.vue b/src/views/quality/base/qualityHotMaterial/index.vue
new file mode 100644
index 00000000..5d48cef5
--- /dev/null
+++ b/src/views/quality/base/qualityHotMaterial/index.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
diff --git a/src/views/quality/base/qualityInspectionDet/index.vue b/src/views/quality/base/qualityInspectionDet/index.vue
index 602f9fb2..881414c3 100644
--- a/src/views/quality/base/qualityInspectionDet/index.vue
+++ b/src/views/quality/base/qualityInspectionDet/index.vue
@@ -15,7 +15,7 @@
@pagination="getList" />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/qualityIsra/index.vue b/src/views/quality/base/qualityIsra/index.vue
new file mode 100644
index 00000000..1feeb73c
--- /dev/null
+++ b/src/views/quality/base/qualityIsra/index.vue
@@ -0,0 +1,494 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 图表时间维度
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/base/qualityScrapLog/detail-or-updata.vue b/src/views/quality/base/qualityScrapLog/detail-or-updata.vue
index a689f27f..ae115c5d 100644
--- a/src/views/quality/base/qualityScrapLog/detail-or-updata.vue
+++ b/src/views/quality/base/qualityScrapLog/detail-or-updata.vue
@@ -1,12 +1,12 @@
-
+
{{ '详情' }}
@@ -118,7 +118,7 @@ export default {
name: '自动',
}
],
- dialogVisible:false,
+ visible:false,
dataForm: {
id: undefined,
logTime: undefined,
@@ -144,79 +144,79 @@ export default {
};
},
mounted() {
- // this.getDict()
+ this.getDict()
console.log('我看看', this.dataForm)
this.getCurrentTime()
},
methods: {
- init() {
- this.dialogVisible = true
- },
+ // init() {
+ // this.dialogVisible = true
+ // },
getCurrentTime() {
// new Date().Format("yyyy-MM-dd HH:mm:ss")
this.dataForm.logTime = new Date()
// this.dataForm.logTime = year + "-" + month + "-" + day;
console.log(this.dataForm.logTime);
},
- // async getDict() {
- // // 物料列表
- // const res = await getList()
- // this.typeList = res.data
- // getWorkOrderList().then((res) => {
- // console.log(res);
- // // console.log(response);
- // this.workOrderList = res.data.map((item) => {
- // return {
- // name: item.name,
- // id: item.id
- // }
- // })
- // // console.log(this.formConfig[0].selectOptions);
- // // this.listQuery.total = response.data.total;
- // })
- // getLineList().then((res) => {
- // console.log(res);
- // // console.log(response);
- // this.lineList = res.data.map((item) => {
- // return {
- // name: item.name,
- // id: item.id
- // }
- // })
- // // console.log(this.formConfig[0].selectOptions);
- // // this.listQuery.total = response.data.total;
- // })
- // getDetList().then((res) => {
- // console.log(res);
- // // console.log(response);
- // this.workOrderList = res.data.map((item) => {
- // return {
- // name: item.name,
- // id: item.id
- // }
- // })
- // // console.log(this.formConfig[0].selectOptions);
- // // this.listQuery.total = response.data.total;
- // })
- // getTeamList().then((res) => {
- // console.log(res);
- // // console.log(response);
- // this.teamList = res.data.map((item) => {
- // return {
- // name: item.name,
- // id: item.id
- // }
- // })
- // // console.log(this.formConfig[0].selectOptions);
- // // this.listQuery.total = response.data.total;
- // })
- // },
- // setMaterialCode() {
- // const chooseM = this.materialList.filter(item => {
- // return item.id === this.dataForm.materialId
- // })
- // this.dataForm.materialCode = chooseM[0].code
- // }
+ async getDict() {
+ // 物料列表
+ const res = await getList()
+ this.typeList = res.data
+ getWorkOrderList().then((res) => {
+ console.log(res);
+ // console.log(response);
+ this.workOrderList = res.data.map((item) => {
+ return {
+ name: item.name,
+ id: item.id
+ }
+ })
+ // console.log(this.formConfig[0].selectOptions);
+ // this.listQuery.total = response.data.total;
+ })
+ getLineList().then((res) => {
+ console.log(res);
+ // console.log(response);
+ this.lineList = res.data.map((item) => {
+ return {
+ name: item.name,
+ id: item.id
+ }
+ })
+ // console.log(this.formConfig[0].selectOptions);
+ // this.listQuery.total = response.data.total;
+ })
+ getDetList().then((res) => {
+ console.log(res);
+ // console.log(response);
+ this.workOrderList = res.data.map((item) => {
+ return {
+ name: item.name,
+ id: item.id
+ }
+ })
+ // console.log(this.formConfig[0].selectOptions);
+ // this.listQuery.total = response.data.total;
+ })
+ getTeamList().then((res) => {
+ console.log(res);
+ // console.log(response);
+ this.teamList = res.data.map((item) => {
+ return {
+ name: item.name,
+ id: item.id
+ }
+ })
+ // console.log(this.formConfig[0].selectOptions);
+ // this.listQuery.total = response.data.total;
+ })
+ },
+ setMaterialCode() {
+ const chooseM = this.materialList.filter(item => {
+ return item.id === this.dataForm.materialId
+ })
+ this.dataForm.materialCode = chooseM[0].code
+ }
},
};
diff --git a/src/views/quality/base/qualityScrapLog/index.vue b/src/views/quality/base/qualityScrapLog/index.vue
index 5237cb8d..b88d1891 100644
--- a/src/views/quality/base/qualityScrapLog/index.vue
+++ b/src/views/quality/base/qualityScrapLog/index.vue
@@ -40,7 +40,7 @@ const tableProps = [
label: '工单'
},
{
- prop: 'teamId',
+ prop: 'teamName',
label: '班组'
},
{
diff --git a/src/views/quality/base/qualityScrapType/add-or-updata.vue b/src/views/quality/base/qualityScrapType/add-or-updata.vue
index 6ef00826..a0b602e0 100644
--- a/src/views/quality/base/qualityScrapType/add-or-updata.vue
+++ b/src/views/quality/base/qualityScrapType/add-or-updata.vue
@@ -1,19 +1,20 @@
-
+
-
+
@@ -21,12 +22,12 @@
-
+
-
-
+
+
diff --git a/src/views/quality/monitoring/currentData/index.vue b/src/views/quality/monitoring/currentData/index.vue
index 0125ab85..c74ea2ac 100644
--- a/src/views/quality/monitoring/currentData/index.vue
+++ b/src/views/quality/monitoring/currentData/index.vue
@@ -307,6 +307,10 @@ export default {
type: 'category',
data: arrXAxis
},
+ grid: {
+ left: '5%',
+ top:'2%'
+ },
yAxis: {
type: 'value'
},
diff --git a/src/views/quality/monitoring/materielDateFrom/index.vue b/src/views/quality/monitoring/materielDateFrom/index.vue
index 07efb7d2..4929b7e8 100644
--- a/src/views/quality/monitoring/materielDateFrom/index.vue
+++ b/src/views/quality/monitoring/materielDateFrom/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-24 10:55:54
+ * @LastEditTime: 2023-12-01 16:41:40
* @Description:
-->
@@ -57,7 +57,8 @@ const tableProps = [
},
{
prop: 'userName',
- label: '操作人'
+ label: '操作人',
+ showOverflowtooltip: true
},
{
prop: 'source',
@@ -128,7 +129,7 @@ export default {
},
{
type: 'button',
- btnName: '搜索',
+ btnName: '查询',
name: 'search',
color: 'primary',
},
@@ -161,7 +162,8 @@ export default {
type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '',
btnName: '导出',
name: 'export',
- color: 'warning',
+ color: 'primary',
+ plain: true
},
],
};
diff --git a/src/views/quality/monitoring/originalGlassRetrace/index.vue b/src/views/quality/monitoring/originalGlassRetrace/index.vue
new file mode 100644
index 00000000..4b0d12a0
--- /dev/null
+++ b/src/views/quality/monitoring/originalGlassRetrace/index.vue
@@ -0,0 +1,252 @@
+
+
+
+
+
+
diff --git a/src/views/quality/monitoring/processTraceability/index.vue b/src/views/quality/monitoring/processTraceability/index.vue
index 413e6889..531ce856 100644
--- a/src/views/quality/monitoring/processTraceability/index.vue
+++ b/src/views/quality/monitoring/processTraceability/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-28 10:51:44
+ * @LastEditTime: 2023-12-01 16:43:10
* @Description:
-->
@@ -134,7 +134,7 @@ export default {
},
{
type: 'button',
- btnName: '搜索',
+ btnName: '查询',
name: 'search',
color: 'primary',
},
diff --git a/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
index 9199e2fc..c25e4690 100644
--- a/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
+++ b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
@@ -124,7 +124,8 @@ export default {
// immediate: true,
// },
dataForm: {
- handler: function (dataForm) {
+ handler: function (dataForm) {
+ console.log(dataForm);
this.innerDataForm = Object.assign({}, dataForm);
if (dataForm.productionLineId)
diff --git a/src/views/quality/monitoring/qualityInspectionRecord/index.vue b/src/views/quality/monitoring/qualityInspectionRecord/index.vue
index baac3742..38650b71 100644
--- a/src/views/quality/monitoring/qualityInspectionRecord/index.vue
+++ b/src/views/quality/monitoring/qualityInspectionRecord/index.vue
@@ -66,7 +66,19 @@ export default {
mixins: [basicPageMixin],
data() {
return {
- rows: [
+ rows: [
+ [
+ {
+ select: true,
+ label: '工单名称',
+ url: 'base/core-work-order/listbyfilter',
+ prop: 'workOrderId',
+ rules: [{ required: true, message: '工单名称不能为空', trigger: 'change' }],
+ bind: {
+ filterable: true,
+ },
+ }
+ ],
[
{
select: true,
@@ -122,18 +134,7 @@ export default {
label: '检测人员',
prop: 'checkPerson',
},
- {
- datetime: true,
- label: '检测时间',
- prop: 'checkTime',
- rules: [{ required: true, message: '检测时间不能为空', trigger: 'blur' }],
- bind: {
- format: 'yyyy-MM-dd HH:mm:ss',
- 'value-format': 'timestamp',
- // 'value-format': 'yyyy-MM-dd HH:mm:ss',
- clearable: true,
- },
- },
+
],
[{ textarea: true, label: '描述', prop: 'explainText' }],
[{ input: true, label: '备注', prop: 'remark' }],
@@ -224,7 +225,7 @@ export default {
},
{
// width: 128,
- prop: 'lineName',
+ prop: 'productionLineName',
label: '产线',
},
{
@@ -247,9 +248,10 @@ export default {
},
],
// 搜索框需要的 keys, 与上面 queryParams 的除 pageNo, pageSize 之外的 key 一一对应
- searchBarKeys: ['inspectionDetContent', 'checkTime', 'productionLineId'],
+ searchBarKeys: ['inspectionDetContent', 'checkTime', 'workOrderId'],
form: {
- id: undefined,
+ id: undefined,
+ // workOrderId:undefined,
inspectionDetId: undefined,
inspectionDetContent: undefined,
productionLineId: undefined,
@@ -354,7 +356,8 @@ export default {
inspectionDetContent: undefined,
sectionId: undefined,
checkPerson: undefined,
- checkTime: undefined,
+ checkTime: undefined,
+ workOrderId:undefined,
source: undefined,
explainText: undefined,
remark: undefined,
@@ -383,12 +386,14 @@ export default {
this.reset();
const id = row.id;
getQualityInspectionRecord(id).then((response) => {
- /** 因为后端返回的时间是时间戳格式,需转换 */
+ /** 因为后端返回的时间是时间戳格式,需转换 */
+ console.log(response.data);
const info = {}
Object.keys(this.form).forEach(key => {
info[key] = response.data[key]
});
- this.form = info;
+ this.form = info;
+ console.log(this.form);
this.open = true;
this.title = '修改质量检查信息记录表';
});
diff --git a/src/views/quality/monitoring/rawMaterialTraceability/index.vue b/src/views/quality/monitoring/rawMaterialTraceability/index.vue
index af0ab14e..8616468b 100644
--- a/src/views/quality/monitoring/rawMaterialTraceability/index.vue
+++ b/src/views/quality/monitoring/rawMaterialTraceability/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2023-11-10 16:26:45
+ * @LastEditTime: 2023-12-06 08:57:53
* @Description:
-->
@@ -75,21 +75,21 @@ export default {
// // exportURL: exportPackingExcel,
// },
tableProps,
- tableBtn: [
- this.$auth.hasPermi(`base:packaging-print-log:update`)
- ? {
- type: 'edit',
- btnName: '编辑',
- }
- : undefined,
- this.$auth.hasPermi(`base:packaging-print-log:delete`)
- ? {
- type: 'delete',
- btnName: '删除',
- }
- : undefined,
+ // tableBtn: [
+ // this.$auth.hasPermi(`base:packaging-print-log:update`)
+ // ? {
+ // type: 'edit',
+ // btnName: '编辑',
+ // }
+ // : undefined,
+ // this.$auth.hasPermi(`base:packaging-print-log:delete`)
+ // ? {
+ // type: 'delete',
+ // btnName: '删除',
+ // }
+ // : undefined,
- ].filter((v) => v),
+ // ].filter((v) => v),
list: [],
listQuery: {
pageSize: 10,
@@ -123,7 +123,7 @@ export default {
// },
{
type: 'button',
- btnName: '搜索',
+ btnName: '查询',
name: 'search',
color: 'primary',
},
diff --git a/src/views/quality/monitoring/statisticalData/index.vue b/src/views/quality/monitoring/statisticalData/index.vue
index e4db32b7..4fcb15db 100644
--- a/src/views/quality/monitoring/statisticalData/index.vue
+++ b/src/views/quality/monitoring/statisticalData/index.vue
@@ -351,7 +351,7 @@ export default {
...keyValuePairs,
sumInput: item.sumInput,
productionName: item.productionName,
- workOrderId: item.workOrderId,
+ workOrderName: item.workOrderName,
scrapRatio: item.scrapRatio,
};
});
diff --git a/src/views/report/glass/inputTable.vue b/src/views/report/glass/inputTable.vue
new file mode 100644
index 00000000..2cd4aa3c
--- /dev/null
+++ b/src/views/report/glass/inputTable.vue
@@ -0,0 +1,213 @@
+
+
+
+
+ 编辑
+ 保存
+
+
+
+
+
+
+ {{ scope.row[y.prop] }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/report/glass/month.vue b/src/views/report/glass/month.vue
new file mode 100644
index 00000000..caa0b23b
--- /dev/null
+++ b/src/views/report/glass/month.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+ 查询
+ 导出
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/glass/weekly.vue b/src/views/report/glass/weekly.vue
new file mode 100644
index 00000000..cf36a70b
--- /dev/null
+++ b/src/views/report/glass/weekly.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 导出
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/glass/year.vue b/src/views/report/glass/year.vue
new file mode 100644
index 00000000..ff487c79
--- /dev/null
+++ b/src/views/report/glass/year.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+ 查询
+ 导出
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/productionMonthReport/InputArea.vue b/src/views/report/productionMonthReport/InputArea.vue
new file mode 100644
index 00000000..7e518162
--- /dev/null
+++ b/src/views/report/productionMonthReport/InputArea.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/views/report/productionMonthReport/index.vue b/src/views/report/productionMonthReport/index.vue
new file mode 100644
index 00000000..767d2722
--- /dev/null
+++ b/src/views/report/productionMonthReport/index.vue
@@ -0,0 +1,530 @@
+
+
+
+
+
+
+
+
+ 查询
+ 编辑
+ 保存
+
+
+
+
+
+
+
+ {{ scope.row.lineId }}
+
+
+
+
+
+
+ {{ scope.row.inputNow }}
+
+
+
+
+
+ {{ scope.row.inputHis }}
+
+
+
+
+
+ {{ scope.row.inputTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductTrend }}
+
+
+
+
+
+
+
+ {{ scope.row.missCheckNow }}
+
+
+
+
+
+ {{ scope.row.missCheckHis }}
+
+
+
+
+
+
+ {{ scope.row.missCheckTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductPassNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassTrend }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/productionShipmentsReport/InputArea.vue b/src/views/report/productionShipmentsReport/InputArea.vue
new file mode 100644
index 00000000..7e518162
--- /dev/null
+++ b/src/views/report/productionShipmentsReport/InputArea.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/views/report/productionShipmentsReport/index.vue b/src/views/report/productionShipmentsReport/index.vue
new file mode 100644
index 00000000..e296bbb9
--- /dev/null
+++ b/src/views/report/productionShipmentsReport/index.vue
@@ -0,0 +1,532 @@
+
+
+
+
+
+
+
+
+ 查询
+ 编辑
+ 保存
+
+
+
+
+
+
+
+ {{ scope.row.glassType }}
+
+
+
+
+
+
+ {{ scope.row.inputNow }}
+
+
+
+
+
+ {{ scope.row.inputHis }}
+
+
+
+
+
+ {{ scope.row.inputTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductTrend }}
+
+
+
+
+
+
+
+ {{ scope.row.missCheckNow }}
+
+
+
+
+
+ {{ scope.row.missCheckHis }}
+
+
+
+
+
+
+ {{ scope.row.missCheckTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductPassNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassTrend }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/productionWeekReport/InputArea.vue b/src/views/report/productionWeekReport/InputArea.vue
new file mode 100644
index 00000000..7e518162
--- /dev/null
+++ b/src/views/report/productionWeekReport/InputArea.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/views/report/productionWeekReport/index.vue b/src/views/report/productionWeekReport/index.vue
new file mode 100644
index 00000000..ea922744
--- /dev/null
+++ b/src/views/report/productionWeekReport/index.vue
@@ -0,0 +1,455 @@
+
+
+
+
+
+
+ -
+
+
+
+ 查询
+ 编辑
+ 保存
+
+
+
+
+
+
+
+ {{ scope.row.lineId }}
+
+
+
+
+
+
+ {{ scope.row.inputNow }}
+
+
+
+
+
+ {{ scope.row.inputHis }}
+
+
+
+
+
+ {{ scope.row.inputTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductTrend }}
+
+
+
+
+
+
+
+ {{ scope.row.missCheckNow }}
+
+
+
+
+
+ {{ scope.row.missCheckHis }}
+
+
+
+
+
+
+ {{ scope.row.missCheckTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductPassNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassTrend }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/report/productionYearReport/InputArea.vue b/src/views/report/productionYearReport/InputArea.vue
new file mode 100644
index 00000000..7e518162
--- /dev/null
+++ b/src/views/report/productionYearReport/InputArea.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/views/report/productionYearReport/index.vue b/src/views/report/productionYearReport/index.vue
new file mode 100644
index 00000000..2d6a12eb
--- /dev/null
+++ b/src/views/report/productionYearReport/index.vue
@@ -0,0 +1,459 @@
+
+
+
+
+
+
+ -
+
+
+
+ 查询
+ 编辑
+ 保存
+
+
+
+
+
+
+
+
+ {{ scope.row.lineId }}
+
+
+
+
+
+
+ {{ scope.row.inputNow }}
+
+
+
+
+
+ {{ scope.row.inputHis }}
+
+
+
+
+
+ {{ scope.row.inputTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductTrend }}
+
+
+
+
+
+
+
+ {{ scope.row.missCheckNow }}
+
+
+
+
+
+ {{ scope.row.missCheckHis }}
+
+
+
+
+
+
+ {{ scope.row.missCheckTrend }}
+
+
+
+
+
+
+
+
+ {{ scope.row.goodProductPassNow }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassHis }}
+
+
+
+
+
+
+ {{ scope.row.goodProductPassTrend }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/safetyEnvironmental/environmental/components/lineChart.vue b/src/views/safetyEnvironmental/environmental/components/lineChart.vue
index 05860c12..0db397d9 100644
--- a/src/views/safetyEnvironmental/environmental/components/lineChart.vue
+++ b/src/views/safetyEnvironmental/environmental/components/lineChart.vue
@@ -68,7 +68,6 @@ export default {
}
obj.name = item
obj.type = 'line'
- obj.stack = 'Total'
obj.symbol = 'none'
obj.data = data
seriesData.push(obj)
@@ -118,7 +117,7 @@ export default {
}
},
grid: {
- left: '3%',
+ left: '4%',
right: '2%',
bottom: '3%',
containLabel: true
diff --git a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue
index 356822e0..21444f6f 100644
--- a/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue
+++ b/src/views/safetyEnvironmental/environmental/voc/vocDetectionIndication/index.vue
@@ -56,7 +56,7 @@ const tableProps = [
},
{
prop: 'code',
- label: '指示编码',
+ label: '指标编码',
minWidth: 120
},
{
diff --git a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue
index eaf0dccd..ab5ccdd5 100644
--- a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue
+++ b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue
@@ -35,13 +35,14 @@
import { environmentalCheckRealtime, environmentalCheckRealtimeTrend } from '@/api/safetyEnvironmental/environmental'
import LineChart from './../../components/lineChart'
import SearchArea from './../../components/searchArea'
+import moment from 'moment'
export default {
name: 'Voc',
data(){
return {
realtimeList:[],
queryParams:{
- checkType: 1,
+ checkType: 3,
timeDim: null,
timeRange: []
},
@@ -51,6 +52,9 @@ export default {
components: { LineChart, SearchArea },
mounted() {
this.getMsg()
+ this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时
+ this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000]
+ this.getTrend()
},
methods: {
getMsg() {
@@ -59,19 +63,21 @@ export default {
this.realtimeList = res.data || []
})
},
- getTrend(params) {
- console.log(params)
- this.queryParams.timeDim = params.timeDim
- this.queryParams.timeRange[0] = params.startTime
- this.queryParams.timeRange[1] = params.endTime
+ getTrend() {
environmentalCheckRealtimeTrend({...this.queryParams}).then(res => {
- console.log(res)
if (res.code === 0) {
this.chartData = res.data
} else {
this.chartData = {}
}
})
+ },
+ submitClick(params) {
+ console.log(params)
+ this.queryParams.timeDim = params.timeDim
+ this.queryParams.timeRange[0] = params.startTime
+ this.queryParams.timeRange[1] = params.endTime
+ this.getTrend()
}
}
}
diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue
index 58c113b9..3a4a5fe5 100644
--- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue
+++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasDetectionIndication/index.vue
@@ -56,7 +56,7 @@ const tableProps = [
},
{
prop: 'code',
- label: '指示编码',
+ label: '指标编码',
minWidth: 120
},
{
diff --git a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue
index 854cb516..3e0e80f4 100644
--- a/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue
+++ b/src/views/safetyEnvironmental/environmental/wasteGas/wasteGasManagement/index.vue
@@ -35,6 +35,7 @@
import { environmentalCheckRealtime, environmentalCheckRealtimeTrend } from '@/api/safetyEnvironmental/environmental'
import LineChart from './../../components/lineChart'
import SearchArea from './../../components/searchArea'
+import moment from 'moment'
export default {
name: 'WasteGasManagement',
data(){
@@ -51,6 +52,9 @@ export default {
components: { LineChart, SearchArea },
mounted() {
this.getMsg()
+ this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时
+ this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000]
+ this.getTrend()
},
methods: {
getMsg() {
@@ -59,19 +63,21 @@ export default {
this.realtimeList = res.data || []
})
},
- getTrend(params) {
- console.log(params)
- this.queryParams.timeDim = params.timeDim
- this.queryParams.timeRange[0] = params.startTime
- this.queryParams.timeRange[1] = params.endTime
+ getTrend() {
environmentalCheckRealtimeTrend({...this.queryParams}).then(res => {
- console.log(res)
if (res.code === 0) {
this.chartData = res.data
} else {
this.chartData = {}
}
})
+ },
+ submitClick(params) {
+ console.log(params)
+ this.queryParams.timeDim = params.timeDim
+ this.queryParams.timeRange[0] = params.startTime
+ this.queryParams.timeRange[1] = params.endTime
+ this.getTrend()
}
}
}
diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue
index 7a54de38..818ab7fe 100644
--- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue
+++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterDetectionIndication/index.vue
@@ -56,7 +56,7 @@ const tableProps = [
},
{
prop: 'code',
- label: '指示编码',
+ label: '指标编码',
minWidth: 120
},
{
diff --git a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue
index 0545cb4c..c9a5d6f5 100644
--- a/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue
+++ b/src/views/safetyEnvironmental/environmental/wasteWater/wasteWaterManagement/index.vue
@@ -22,7 +22,7 @@
检测指标趋势图
-