备注
@@ -845,10 +888,13 @@ export default {
name: "",
type: "",
flow_mod_id: "",
+ dimension: '',
year: "",
department: "",
money: "",
content: "",
+ middle_special: 0,
+ is_chart: 1,
remark: "",
plan_department_link_id: [],
plan_department_links: [],
@@ -979,6 +1025,7 @@ export default {
},
departments: [], //部门类型
users: [],
+ dimensions: [],
//编辑信息
isShowEditor: false,
@@ -1122,8 +1169,8 @@ export default {
},
//获取科室
getDepartment() {
- listCommondepartment({show_tree:1}).then((res) => {
- this.departments = res;
+ listCommondepartment({ page: 1,page_size: 999,sort_name: 'sortnumber',sort_type: 'asc' }).then((res) => {
+ this.departments = res.data;
});
},
async getUsers () {
@@ -1133,6 +1180,17 @@ export default {
})
this.users = res.data;
},
+ //获取资金隶属维度
+ async getDimensions() {
+ try {
+ const res = await getparameter({
+ number: "dimensions"
+ })
+ this.dimensions = res.detail
+ } catch (err) {
+ console.error(err)
+ }
+ },
//事前流程
async getFlowIds () {
let copy = deepCopy(this.flowIds)
@@ -1209,7 +1267,10 @@ export default {
plan_admin_links: this.form.plan_admin_links,
remark: this.form.remark,
pid: this.form.pid,
- flow_mod_id: this.form.flow_mod_id
+ flow_mod_id: this.form.flow_mod_id,
+ dimension: this.form.dimension,
+ middle_special: this.form.middle_special,
+ is_chart: this.form.is_chart
}).then((res) => {
Message({
message: "操作成功",
@@ -1264,7 +1325,10 @@ export default {
plan_department_links: plan_department_links,
plan_admin_links: this.editorForm.plan_admin_links,
pid: this.editorForm.pid,
- flow_mod_id: this.editorForm.flow_mod_id
+ flow_mod_id: this.editorForm.flow_mod_id,
+ dimension: this.editorForm.dimension,
+ middle_special: this.editorForm.middle_special,
+ is_chart: this.editorForm.is_chart
}).then((res) => {
this.isShowEditor = false;
Message({
@@ -1291,6 +1355,7 @@ export default {
name: res.name,
type: res.type,
flow_mod_id: res.flow_mod_id,
+ dimension: res.dimension,
department: res.plan_department_id,
money: moneyFormatter(res.money),
update_money: moneyFormatter(res.update_money),
@@ -1300,6 +1365,8 @@ export default {
plan_department_links: res.plan_department_links,
plan_admin_links: res.plan_admin_links.map(i=> ({admin_id: i.admin_id})),
pid: res.pid,
+ is_chart: res.is_chart,
+ middle_special: res.middle_special
};
let ids = [];
res.plan_department_links.map((item) => {
@@ -1314,6 +1381,10 @@ export default {
},
},
created() {
+ this.getUsers();
+ this.getTypes();
+ this.getDepartment();
+ this.getDimensions();
this.getFlowIds();
this.table = this.tableItem;
this.initLoad();
@@ -1321,10 +1392,7 @@ export default {
this.select.year = this.$moment().format("YYYY");
},
mounted() {
- this.getTypes();
- this.getDepartment();
this.getBudgets();
- this.getUsers();
},
};
diff --git a/src/views/budget/seeBudget.vue b/src/views/budget/seeBudget.vue
index 849b780..24111a1 100644
--- a/src/views/budget/seeBudget.vue
+++ b/src/views/budget/seeBudget.vue
@@ -274,7 +274,7 @@
//获取科室
getDepartment() {
listdeptNoAuth().then(res => {
- this.departments = res
+ this.departments = res.data
})
},
//查询计划列表
diff --git a/src/views/budget/upload.vue b/src/views/budget/upload.vue
index a0a997b..0b296ab 100644
--- a/src/views/budget/upload.vue
+++ b/src/views/budget/upload.vue
@@ -142,7 +142,7 @@ export default {
},
methods: {
async getDept() {
- const res = await listdeptNoAuth({ page: 1, page_size: 999 });
+ const res = await listdeptNoAuth({ page: 1, page_size: 999,sort_name:'sortnumber',sort_type: 'asc' });
this.depts = res.data;
},
async getList() {
diff --git a/src/views/contract/components/EditContract.vue b/src/views/contract/components/EditContract.vue
index ffd4784..212b9cd 100644
--- a/src/views/contract/components/EditContract.vue
+++ b/src/views/contract/components/EditContract.vue
@@ -28,7 +28,7 @@
(无需采购流程,如水电邮寄费等)
-
+
@@ -69,7 +69,6 @@
multiple
size="small"
clearable
- disabled
placeholder="请选择资金渠道"
:value="
form.money_way_id
@@ -770,7 +769,7 @@ export default {
type: [
{
validator: (rule, value, callback) => {
- if (!this.form.is_simple || !this.isNeedMore) {
+ if (!this.form.is_simple || !this.isNeedMore || !this.form.is_common_purchase) {
if (!this.hasValue(value)) {
callback(new Error("必填"));
} else {
@@ -786,7 +785,7 @@ export default {
purchase_type_id: [
{
validator: (rule, value, callback) => {
- if (!this.form.is_simple || !this.isNeedMore) {
+ if (!this.form.is_simple || !this.isNeedMore || !this.form.is_common_purchase) {
if (!this.hasValue(value)) {
callback(new Error("必填"));
} else {
@@ -802,7 +801,7 @@ export default {
purchase_way_id: [
{
validator: (rule, value, callback) => {
- if (!this.form.is_simple || !this.isNeedMore) {
+ if (!this.form.is_simple || !this.isNeedMore || !this.form.is_common_purchase) {
if (!this.hasValue(value)) {
callback(new Error("必填"));
} else {
@@ -838,7 +837,7 @@ export default {
plan_money: [
{
validator: (rule, value, callback) => {
- if (!this.form.is_simple) {
+ if (!this.form.is_simple || !this.form.is_common_purchase) {
if (!this.hasValue(value)) {
callback(new Error("必填"));
} else {
@@ -858,7 +857,7 @@ export default {
money_way_id: [
{
validator: (rule, value, callback) => {
- if (!this.hasValue(value)) {
+ if (!this.hasValue(value) || !this.form.is_common_purchase) {
callback(new Error("必填"));
} else {
callback();
diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue
index 70021ab..e8d0e99 100644
--- a/src/views/contract/contractEdit.vue
+++ b/src/views/contract/contractEdit.vue
@@ -209,7 +209,7 @@
/>
-
+
@@ -1433,7 +1433,7 @@ export default {
getDepartment() {
listdeptNoAuth().then((res) => {
- this.departments = res;
+ this.departments = res.data;
});
},
async getPlanTypes() {
@@ -1538,24 +1538,6 @@ export default {
keyword: this.form.name,
},
})
- getContract({
- page: 1,
- page_size: 1,
- sort_name: "created_at"
- },true).then(res => {
- const openData = res.list.data[0]
- if (openData) {
- if (
- openData.is_simple !== 1 &&
- openData.purchase_status === 1 &&
- ((openData.req_status === 3 && openData.is_plan === 0) ||
- openData.is_plan === 1) &&
- !openData.is_substitute
- ) {
- this.buyProcess(openData)
- }
- }
- })
}).catch(_ => this.btnLoading = false)
}
if (this.type === 'edit') {
diff --git a/src/views/contract/contractLedger.vue b/src/views/contract/contractLedger.vue
index d890053..8565769 100644
--- a/src/views/contract/contractLedger.vue
+++ b/src/views/contract/contractLedger.vue
@@ -327,15 +327,7 @@
更多
-
+
-
-
+
+
- 关键字
+ 关键字
-
+
- 服务商/供应商
+ 服务商/供应商
-
+
-
-
预算计划
+
+
+ 预算计划
-
-
-
-
- 签订年份
-
- select.year = e">
+
-
-
创建日期
+
+ 签订年份
-
+ (select.year = e)"
+ >
-
-
保函有效期
+
+ 创建日期
-
+
-
-
-
- 保函金额
-
-
- -
-
-
-
-
- 项目类型
-
-
-
- 业务科室
-
-
-
+ 业务科室
+
+
-
-
- 采购形式
-
-
-
+
+ 采购形式
+
+
-
-
- 采购方式
-
-
-
+
+ 采购方式
+
+
-
-
- 预算金额
-
-
-
-
-
+
+ 预算金额
+
+ -
+
-
-
- 合同状态
-
-
-