|
@@ -5,39 +5,40 @@
|
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
>
|
|
|
<!-- <p>{{ status }}---{{ powers }}</p> -->
|
|
|
- <div class="detail-page-title">
|
|
|
+ <!-- <div class="detail-page-title">
|
|
|
<span>采购工差单编号:</span><span v-if="sitem">{{ sitem.id }}</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- <status-bar
|
|
|
v-if="newTime !== ''"
|
|
|
:newTime="newTime"
|
|
|
:options="statusOptions"
|
|
|
:status="status"
|
|
|
/> -->
|
|
|
- <el-tabs v-model="activeTabs" >
|
|
|
+ <el-tabs v-model="activeTabs">
|
|
|
<el-tab-pane label="业务详情" name="1">
|
|
|
- <el-collapse v-model="activeNames" style="margin:-18px 0 0 0">
|
|
|
- <el-collapse-item title="采购工差单详情" name="0">
|
|
|
- <show-data-table
|
|
|
- :newTime="newTime"
|
|
|
- v-if="newTime !== ''"
|
|
|
- :sitem="sitem"
|
|
|
- :columns="ShowDataTableColumns"
|
|
|
- >
|
|
|
- <template slot="status">
|
|
|
- <el-tag
|
|
|
- :size="'mini'"
|
|
|
- :type="sitem.status == '0' ? 'warning' : ''"
|
|
|
- v-text="
|
|
|
- (
|
|
|
- statusOptions.find((item) => item.value == sitem.status) ||
|
|
|
- {}
|
|
|
- ).label || '--'
|
|
|
- "
|
|
|
- ></el-tag>
|
|
|
- </template>
|
|
|
- </show-data-table>
|
|
|
- <!-- <purchase-order-addEdit
|
|
|
+ <el-collapse v-model="activeNames" style="margin: -18px 0 0 0">
|
|
|
+ <el-collapse-item title="采购工差单详情" name="0">
|
|
|
+ <show-data-table
|
|
|
+ :newTime="newTime"
|
|
|
+ v-if="newTime !== ''"
|
|
|
+ :sitem="sitem"
|
|
|
+ :columns="ShowDataTableColumns"
|
|
|
+ >
|
|
|
+ <template slot="status">
|
|
|
+ <el-tag
|
|
|
+ :size="'mini'"
|
|
|
+ :type="sitem.status == '0' ? 'warning' : ''"
|
|
|
+ v-text="
|
|
|
+ (
|
|
|
+ statusOptions.find(
|
|
|
+ (item) => item.id === sitem.status
|
|
|
+ ) || {}
|
|
|
+ ).label || '--'
|
|
|
+ "
|
|
|
+ ></el-tag>
|
|
|
+ </template>
|
|
|
+ </show-data-table>
|
|
|
+ <!-- <purchase-order-addEdit
|
|
|
style="padding: 0 0 20px 0"
|
|
|
:newTime="newTime"
|
|
|
v-if="newTime !== ''"
|
|
@@ -45,40 +46,40 @@
|
|
|
:id="queryId"
|
|
|
@refresh="initData()"
|
|
|
/> -->
|
|
|
- </el-collapse-item>
|
|
|
- <!-- && status === '3' -->
|
|
|
- <el-collapse-item
|
|
|
- title="通知采购部门"
|
|
|
- name="1"
|
|
|
- v-if="status === '2' && powers.some((item) => item == '038')"
|
|
|
- >
|
|
|
- <div style="height: 50px; padding: 0 0px 20px 0">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- class="fr"
|
|
|
- size="mini"
|
|
|
- @click="statusConfirm('3', '确定我已知晓并同意')"
|
|
|
- >我已知晓</el-button
|
|
|
+ </el-collapse-item>
|
|
|
+ <!-- && status === '3' -->
|
|
|
+ <el-collapse-item
|
|
|
+ title="通知采购部门"
|
|
|
+ name="1"
|
|
|
+ v-if="status === '2' && powers.some((item) => item == '038')"
|
|
|
>
|
|
|
- </div>
|
|
|
- </el-collapse-item>
|
|
|
- <el-collapse-item
|
|
|
- title="通知财务部门"
|
|
|
- name="2"
|
|
|
- v-if="status === '3' && powers.some((item) => item == '039')"
|
|
|
- >
|
|
|
- <div style="height: 50px; padding: 0 0px 20px 0">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- class="fr"
|
|
|
- size="mini"
|
|
|
- @click="statusConfirm('4', '确定我已知晓并同意')"
|
|
|
- >我已知晓</el-button
|
|
|
+ <div style="height: 50px; padding: 0 0px 20px 0">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ class="fr"
|
|
|
+ size="mini"
|
|
|
+ @click="statusConfirm('3', '确定我已知晓并同意')"
|
|
|
+ >我已知晓</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-collapse-item>
|
|
|
+ <el-collapse-item
|
|
|
+ title="通知财务部门"
|
|
|
+ name="2"
|
|
|
+ v-if="status === '3' && powers.some((item) => item == '039')"
|
|
|
>
|
|
|
- </div>
|
|
|
- </el-collapse-item>
|
|
|
- </el-collapse>
|
|
|
- </el-tab-pane>
|
|
|
+ <div style="height: 50px; padding: 0 0px 20px 0">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ class="fr"
|
|
|
+ size="mini"
|
|
|
+ @click="statusConfirm('4', '确定我已知晓并同意')"
|
|
|
+ >我已知晓</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-collapse-item>
|
|
|
+ </el-collapse>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="审批记录" name="2">
|
|
|
<process-time-line
|
|
|
v-if="newTime !== ''"
|
|
@@ -126,15 +127,14 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- activeTabs:"1",
|
|
|
+ activeTabs: "1",
|
|
|
ShowDataTableColumns: ShowDataTableColumns,
|
|
|
statusOptions: [
|
|
|
- { value: "2", label: "通知采购部门" },
|
|
|
- { value: "3", label: "通知财务部门" },
|
|
|
- { value: "4", label: "工差单审核完成" },
|
|
|
+ { id: "1", label: "待业务部门审核" },
|
|
|
+ { id: "2", label: "工差单审核完成" },
|
|
|
],
|
|
|
finishStatus: "finish",
|
|
|
- activeNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9",],
|
|
|
+ activeNames: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
|
sitem: null,
|
|
|
status: "",
|
|
|
newTime: "",
|