+
+
+ {{detail.createBy | dv}}
+ {{detail.createTime | dv}}
+ {{detail.updateBy | dv}}
+ {{detail.updateTime | dv}}
+
+
+ {{detail.deptName | dv}}
+ {{detail.category | dv}}
+ {{detail.size | dv}}
+ {{detail.name | dv}}
+ {{detail.subName | dv}}
+ {{detail.pattern | dv}}
+ {{detail.pattern | dv}}
+ {{detail.price | dv}} 元
+ {{detail.unit | dv}}
+ {{detail.classify | dv}}
+ {{detail.quantity | fix2 | dv}} 个
+ {{detail.remark | dv}}
+
+
通过
驳回
diff --git a/src/views/yh/price/index.vue b/src/views/yh/price/index.vue
index f0dede0..a287f83 100644
--- a/src/views/yh/price/index.vue
+++ b/src/views/yh/price/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -147,7 +147,13 @@
-
+
-
+
{{d.row.quantity | fix2 | dv}} 个
@@ -225,6 +231,14 @@
v-has-permi="['yh:price:disable']"
v-show="PriceStatus.canDisable(scope.row.status) && !scope.row.disabled"
>禁用
+ 启用
@@ -238,7 +252,7 @@
/>
-
+
@@ -263,7 +277,9 @@
-
+
+ 元
+
@@ -272,7 +288,7 @@
-
+
个
@@ -300,9 +316,9 @@ import {
updatePrice,
submitPrice,
disablePrice,
- cancelPrice
+ cancelPrice, enablePrice
} from "@/api/yh/price";
-import { $showColumns } from '@/utils/mixins';
+import { $showColumns} from '@/utils/mixins';
import DeptTreeSelect from "@/components/Business/Dept/DeptTreeSelect.vue";
import BooleanTag from "@/components/BooleanTag/index.vue";
import {PriceStatus} from "@/utils/constants";
@@ -317,16 +333,18 @@ const defaultSort = {
export default {
name: "Price",
+ mixins: [$showColumns],
+ dicts: ['price_status'],
+ components: {FormCol, VerifyPriceDialog, BooleanTag, DeptTreeSelect},
computed: {
PriceStatus() {
return PriceStatus
}
},
- components: {FormCol, VerifyPriceDialog, BooleanTag, DeptTreeSelect},
- mixins: [$showColumns],
- dicts: ['price_status'],
data() {
return {
+ gutter: 8,
+ span: 8,
// 审核弹窗
showVerifyDialog: false,
// 当前行
@@ -419,18 +437,9 @@ export default {
unit: [
{ required: true, message: "单位不能为空", trigger: "blur" }
],
- createTime: [
- { required: true, message: "创建时间不能为空", trigger: "blur" }
- ],
- createId: [
- { required: true, message: "创建人ID不能为空", trigger: "blur" }
- ],
- createBy: [
- { required: true, message: "创建人名称不能为空", trigger: "blur" }
- ],
- disabled: [
- { required: true, message: "是否禁用不能为空", trigger: "blur" }
- ],
+ name: [
+ { required: true, message: "工序不能为空", trigger: "blur" }
+ ]
}
};
},
@@ -576,6 +585,21 @@ export default {
})
})
},
+ // 启用
+ handleEnable(row) {
+ this.$confirm('确定启用吗?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ enablePrice(row.priceId).then(res => {
+ if (res.code === 200) {
+ this.$message.success("启用成功");
+ this.getList();
+ }
+ })
+ })
+ },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
diff --git a/src/views/yh/report/index.vue b/src/views/yh/report/index.vue
new file mode 100644
index 0000000..2af669d
--- /dev/null
+++ b/src/views/yh/report/index.vue
@@ -0,0 +1,509 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+ {{d.row[column.key]}}
+
+
+
+
+
+ {{d.row[column.key]}}
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+