|
@@ -236,7 +236,7 @@
|
|
<el-button type="primary" size="small" @click="confirms">确认</el-button>
|
|
<el-button type="primary" size="small" @click="confirms">确认</el-button>
|
|
<el-button type="primary" size="small" @click="cancels">取消</el-button>
|
|
<el-button type="primary" size="small" @click="cancels">取消</el-button>
|
|
<el-button type="primary" size="small" @click="audits">审核</el-button>
|
|
<el-button type="primary" size="small" @click="audits">审核</el-button>
|
|
- <!-- <el-button type="primary" size="small" @click="cancelAudits">弃审</el-button> -->
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="closeLine">行关闭</el-button>
|
|
|
|
|
|
<el-dropdown size="small" @command="handleCommand">
|
|
<el-dropdown size="small" @command="handleCommand">
|
|
<el-button size="small" type="primary" style="margin: 0 10px;">
|
|
<el-button size="small" type="primary" style="margin: 0 10px;">
|
|
@@ -306,14 +306,14 @@
|
|
<el-table-column show-overflow-tooltip label="四级品类" align="center" prop="materialClassifyFourName" width="150px"/>
|
|
<el-table-column show-overflow-tooltip label="四级品类" align="center" prop="materialClassifyFourName" width="150px"/>
|
|
<el-table-column show-overflow-tooltip label="采购员" align="center" prop="buyerName" width="150px">
|
|
<el-table-column show-overflow-tooltip label="采购员" align="center" prop="buyerName" width="150px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.buyerName">
|
|
|
|
|
|
+ <el-input readonly :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.buyerName">
|
|
<el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'CONTACTS_PARAM', true, '采购员')"></el-button>
|
|
<el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'CONTACTS_PARAM', true, '采购员')"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="purchaseOrgName" width="280px">
|
|
<el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="purchaseOrgName" width="280px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.purchaseOrgName">
|
|
|
|
|
|
+ <el-input readonly :disabled="scope.row.status !== '1' || lineDisable" size="small" v-model="scope.row.purchaseOrgName">
|
|
<el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
|
|
<el-button size="small" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseSon(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</template>
|
|
</template>
|
|
@@ -374,7 +374,7 @@ import Refers from '@/components/Refers/refers.vue'
|
|
import TreeRefers from '@/components/Refers/treeRefer.vue'
|
|
import TreeRefers from '@/components/Refers/treeRefer.vue'
|
|
import popDialog from '@/components/PopDialog/index.vue'
|
|
import popDialog from '@/components/PopDialog/index.vue'
|
|
import CollapseTransition from '@/components/MyCollapse/collapse.vue'
|
|
import CollapseTransition from '@/components/MyCollapse/collapse.vue'
|
|
-import {getSummaryList, auditSummary, confirmSummary , cancelSummary , cancelAuditSummary, editSummaryList } from '@/api/purchase/DemandSummary.js'
|
|
|
|
|
|
+import {getSummaryList, auditSummary, confirmSummary , cancelSummary , shutDownSummary, editSummaryList } from '@/api/purchase/DemandSummary.js'
|
|
export default {
|
|
export default {
|
|
name: 'demandSummary',
|
|
name: 'demandSummary',
|
|
dicts: ['sys_row_status', 'predictive_classify', 'sys_period_unit', 'sys_business', 'sys_bill_source'],
|
|
dicts: ['sys_row_status', 'predictive_classify', 'sys_period_unit', 'sys_business', 'sys_bill_source'],
|
|
@@ -649,18 +649,19 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- cancelAudits() {
|
|
|
|
|
|
+ // 行关闭
|
|
|
|
+ closeLine() {
|
|
if (this.ids.length == 0) {
|
|
if (this.ids.length == 0) {
|
|
this.$modal.msgWarning("请选中至少一条数据");
|
|
this.$modal.msgWarning("请选中至少一条数据");
|
|
} else {
|
|
} else {
|
|
let param = this.ids.join()
|
|
let param = this.ids.join()
|
|
- cancelAuditSummary(param).then(res => {
|
|
|
|
|
|
+ shutDownSummary(param).then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.$modal.msgSuccess("操作成功");
|
|
this.$modal.msgSuccess("操作成功");
|
|
this.getList(this.queryParams)
|
|
this.getList(this.queryParams)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 搜索区参照选择
|
|
// 搜索区参照选择
|
|
chooseRefer(type, isPage, title, stordocId) {
|
|
chooseRefer(type, isPage, title, stordocId) {
|