|
@@ -17,27 +17,11 @@
|
|
|
<Edit v-if="tool.checkAuth($route.name,'update') && mainData.status == '新建'" class="inline-16" @onSuccess="queryMainData()" :data="mainData" />
|
|
<Edit v-if="tool.checkAuth($route.name,'update') && mainData.status == '新建'" class="inline-16" @onSuccess="queryMainData()" :data="mainData" />
|
|
|
<el-button v-if="tool.checkAuth($route.name,'confirmDate')" :disabled="mainData.status !== '交期待确认'" class="inline-16" type="primary" size="mini" @click="confirmdate">确认交期</el-button>
|
|
<el-button v-if="tool.checkAuth($route.name,'confirmDate')" :disabled="mainData.status !== '交期待确认'" class="inline-16" type="primary" size="mini" @click="confirmdate">确认交期</el-button>
|
|
|
<confirmDate v-if="tool.checkAuth($route.name,'replyDate')" class="inline-16" :data="mainData" @onSuccess="queryMainData"></confirmDate>
|
|
<confirmDate v-if="tool.checkAuth($route.name,'replyDate')" class="inline-16" :data="mainData" @onSuccess="queryMainData"></confirmDate>
|
|
|
- <el-popover
|
|
|
|
|
- placement="top"
|
|
|
|
|
- v-model="visible">
|
|
|
|
|
- <p class="mt-10 normal-title">选择评审类型</p>
|
|
|
|
|
- <el-select class="mt-10" v-model="value" placeholder="请选择" size="mini">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in options"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.value + '-' + item.remarks"
|
|
|
|
|
- :value="item.value">
|
|
|
|
|
- <span style="float: left">{{ item.value }}</span>
|
|
|
|
|
- <span style="float: right; color: #8492a6; font-size: 12px">{{ item.remarks?item.remarks:'暂无描述' }}</span>
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- <div style="text-align: right; margin: 0">
|
|
|
|
|
- <el-button size="mini" type="text" @click="visible = false">取消</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" @click="onSubmit('审核')">确定</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <el-button class="inline-16" v-if="tool.checkAuth($route.name,'examine')" :disabled="mainData.status !== '提交' && mainData.status !== '交期确认'" type="primary" size="mini" slot="reference">审 核</el-button>
|
|
|
|
|
- </el-popover>
|
|
|
|
|
|
|
|
|
|
|
|
+ <Check v-if="tool.checkAuth($route.name,'examine') && (mainData.status == '提交' || mainData.status == '交期确认')" class="inline-16" :data="mainData" @onSubmit="onSubmit" @onSuccess="queryMainData"></Check>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<el-button v-if="tool.checkAuth($route.name,'examine')" :disabled="mainData.status !== '审核'" type="primary" size="mini" @click="onReturnCheck">反审核</el-button>
|
|
<el-button v-if="tool.checkAuth($route.name,'examine')" :disabled="mainData.status !== '审核'" type="primary" size="mini" @click="onReturnCheck">反审核</el-button>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'reback')" type="primary" size="mini" @click="dialogVisible = true">退 回</el-button>
|
|
<el-button v-if="tool.checkAuth($route.name,'reback')" type="primary" size="mini" @click="dialogVisible = true">退 回</el-button>
|
|
|
<el-button v-if="tool.checkAuth($route.name,'submit')" :disabled="mainData.status !== '新建'" type="primary" size="mini" @click="onSubmit('提交')">提 交</el-button>
|
|
<el-button v-if="tool.checkAuth($route.name,'submit')" :disabled="mainData.status !== '新建'" type="primary" size="mini" @click="onSubmit('提交')">提 交</el-button>
|
|
@@ -78,7 +62,7 @@ import logistics from './tabs/logistics.vue'
|
|
|
import revenue from './tabs/revenueAndExp.vue'
|
|
import revenue from './tabs/revenueAndExp.vue'
|
|
|
import Edit from '../modules/edit'
|
|
import Edit from '../modules/edit'
|
|
|
import erpHistory from './tabs/erpHistory.vue'
|
|
import erpHistory from './tabs/erpHistory.vue'
|
|
|
-
|
|
|
|
|
|
|
+import Check from '../modules/check'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "detail",
|
|
name: "detail",
|
|
@@ -87,10 +71,9 @@ export default {
|
|
|
mainData:{},
|
|
mainData:{},
|
|
|
mainAreaData:{},
|
|
mainAreaData:{},
|
|
|
backreason:'',
|
|
backreason:'',
|
|
|
- options:[],
|
|
|
|
|
dialogVisible:false,
|
|
dialogVisible:false,
|
|
|
visible:false,
|
|
visible:false,
|
|
|
- value:''
|
|
|
|
|
|
|
+ value:'',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
provide () {
|
|
provide () {
|
|
@@ -105,14 +88,11 @@ export default {
|
|
|
logistics,
|
|
logistics,
|
|
|
revenue,
|
|
revenue,
|
|
|
Edit,
|
|
Edit,
|
|
|
- erpHistory
|
|
|
|
|
|
|
+ erpHistory,
|
|
|
|
|
+ Check
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
- async orderreviewtype () {
|
|
|
|
|
- const res = await this.$store.dispatch('optiontypeselect','orderreviewtype')
|
|
|
|
|
- this.options = res.data
|
|
|
|
|
- this.value = res.data[0].value
|
|
|
|
|
- },
|
|
|
|
|
|
|
+
|
|
|
onEditSuccess(){
|
|
onEditSuccess(){
|
|
|
this.queryMainData()
|
|
this.queryMainData()
|
|
|
this.queryTool()
|
|
this.queryTool()
|
|
@@ -129,7 +109,6 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.mainData = res.data
|
|
this.mainData = res.data
|
|
|
this.changeDataStructure()
|
|
this.changeDataStructure()
|
|
|
- this.orderreviewtype()
|
|
|
|
|
},
|
|
},
|
|
|
changeDataStructure() {
|
|
changeDataStructure() {
|
|
|
let that = this
|
|
let that = this
|