|
@@ -111,8 +111,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
@click="form_search"
|
|
@click="form_search"
|
|
- >搜索</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >搜索</el-button>
|
|
<div>
|
|
<div>
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeAdd"
|
|
v-if="isSubscribeAdd"
|
|
@@ -120,24 +119,21 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="apply_subscribe"
|
|
@click="apply_subscribe"
|
|
- >新增</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >新增</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeSpecial"
|
|
v-if="isSubscribeSpecial"
|
|
class="filter-item"
|
|
class="filter-item"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handle_specialSubscription"
|
|
@click="handle_specialSubscription"
|
|
- >特殊申购</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >特殊申购</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeMilk"
|
|
v-if="isSubscribeMilk"
|
|
class="filter-item"
|
|
class="filter-item"
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handle_milkSubscription"
|
|
@click="handle_milkSubscription"
|
|
- >奶厅申购</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >奶厅申购</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeExport"
|
|
v-if="isSubscribeExport"
|
|
v-waves
|
|
v-waves
|
|
@@ -145,8 +141,7 @@
|
|
type="success"
|
|
type="success"
|
|
icon="el-icon-upload2"
|
|
icon="el-icon-upload2"
|
|
@click="handleDownload"
|
|
@click="handleDownload"
|
|
- >导出</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >导出</el-button>
|
|
<el-radio-group
|
|
<el-radio-group
|
|
v-model="radioAll"
|
|
v-model="radioAll"
|
|
style="margin-top: -9px"
|
|
style="margin-top: -9px"
|
|
@@ -225,68 +220,62 @@
|
|
type="primary"
|
|
type="primary"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_see(row)"
|
|
@click="form_see(row)"
|
|
- >查看</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >查看</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
row.statue == 4 ||
|
|
row.statue == 4 ||
|
|
- row.statue == 6 ||
|
|
|
|
- row.statue == 8 ||
|
|
|
|
- row.statue == 10 ||
|
|
|
|
- row.statue == 12 ||
|
|
|
|
- row.statue == 14
|
|
|
|
|
|
+ row.statue == 6 ||
|
|
|
|
+ row.statue == 8 ||
|
|
|
|
+ row.statue == 10 ||
|
|
|
|
+ row.statue == 12 ||
|
|
|
|
+ row.statue == 14
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_edit(row)"
|
|
@click="form_edit(row)"
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >编辑</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-else
|
|
v-else
|
|
style="display: none"
|
|
style="display: none"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_edit(row)"
|
|
@click="form_edit(row)"
|
|
- >编辑</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >编辑</el-button>
|
|
<!-- 库管 -->
|
|
<!-- 库管 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineKG &&
|
|
isSubscribeExamineKG &&
|
|
- row.statue == 2 &&
|
|
|
|
- row.departmentName == '挤奶处'
|
|
|
|
|
|
+ row.statue == 2 &&
|
|
|
|
+ row.departmentName == '挤奶处'
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine1(row)"
|
|
@click="handleExamine1(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineKG &&
|
|
isSubscribeExamineKG &&
|
|
- row.statue == 2 &&
|
|
|
|
- row.departmentName !== '挤奶处'
|
|
|
|
|
|
+ row.statue == 2 &&
|
|
|
|
+ row.departmentName !== '挤奶处'
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_edit1(row)"
|
|
@click="form_edit1(row)"
|
|
- >合单</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >合单</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineKG &&
|
|
isSubscribeExamineKG &&
|
|
- row.statue == 2 &&
|
|
|
|
- row.departmentName !== '挤奶处'
|
|
|
|
|
|
+ row.statue == 2 &&
|
|
|
|
+ row.departmentName !== '挤奶处'
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_modify1(row)"
|
|
@click="form_modify1(row)"
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >提交</el-button>
|
|
|
|
|
|
<!-- 设备 -->
|
|
<!-- 设备 -->
|
|
<el-button
|
|
<el-button
|
|
@@ -295,8 +284,7 @@
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine2(row)"
|
|
@click="handleExamine2(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 供应商主管 -->
|
|
<!-- 供应商主管 -->
|
|
<el-button
|
|
<el-button
|
|
@@ -305,50 +293,42 @@
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine3(row)"
|
|
@click="handleExamine3(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 场长 -->
|
|
<!-- 场长 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- row.statue == 5 &&
|
|
|
|
- row.departmentName == '挤奶处' &&
|
|
|
|
- row.examine == 1
|
|
|
|
|
|
+ row.statue == 5 &&
|
|
|
|
+ row.departmentName == '挤奶处' &&
|
|
|
|
+ row.examine == 1
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-else-if="
|
|
v-else-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- row.statue == 5 &&
|
|
|
|
- row.departmentName !== '挤奶处'
|
|
|
|
|
|
+ row.statue == 5 &&
|
|
|
|
+ row.departmentName !== '挤奶处'
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 采购 -->
|
|
<!-- 采购 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
- (isSubscribeExamineCG &&
|
|
|
|
- row.departmentName == '挤奶处' &&
|
|
|
|
- row.statue == 15) ||
|
|
|
|
- (row.departmentName !== '挤奶处' && row.statue == 11)
|
|
|
|
- "
|
|
|
|
|
|
+ isSubscribeExamineCG && (row.statue == 11 && row.departmentName != '挤奶处') || (row.departmentName == '挤奶处' && row.statue == 15) "
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine5(row)"
|
|
@click="handleExamine5(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 财务 -->
|
|
<!-- 财务 -->
|
|
<el-button
|
|
<el-button
|
|
@@ -359,26 +339,24 @@
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine6(row)"
|
|
@click="handleExamine6(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 奶厅 -->
|
|
<!-- 奶厅 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineNT &&
|
|
isSubscribeExamineNT &&
|
|
- row.departmentName == '挤奶处' &&
|
|
|
|
- ((row.examine !== 1 && row.statue == 5) || row.statue == 11)
|
|
|
|
|
|
+ row.departmentName == '挤奶处' &&
|
|
|
|
+ ((row.examine !== 1 && row.statue == 5) || row.statue == 11)
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine7(row)"
|
|
@click="handleExamine7(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeDelete &&
|
|
isSubscribeDelete &&
|
|
- (row.statue == 4 ||
|
|
|
|
|
|
+ (row.statue == 4 ||
|
|
row.statue == 6 ||
|
|
row.statue == 6 ||
|
|
row.statue == 8 ||
|
|
row.statue == 8 ||
|
|
row.statue == 10 ||
|
|
row.statue == 10 ||
|
|
@@ -390,8 +368,7 @@
|
|
type="danger"
|
|
type="danger"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_delete(row)"
|
|
@click="form_delete(row)"
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >删除</el-button>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
v-else
|
|
v-else
|
|
@@ -399,8 +376,7 @@
|
|
type="danger"
|
|
type="danger"
|
|
size="mini"
|
|
size="mini"
|
|
@click="form_delete(row)"
|
|
@click="form_delete(row)"
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -555,10 +531,7 @@
|
|
<div class="name" style="display: inline">
|
|
<div class="name" style="display: inline">
|
|
{{ item.partCode }}
|
|
{{ item.partCode }}
|
|
</div>
|
|
</div>
|
|
- | <b>备件名称:</b
|
|
|
|
- ><span class="addr">{{ item.partName }}</span
|
|
|
|
- > | <b>备件规格:</b
|
|
|
|
- ><span class="addr">{{ item.specification }}</span>
|
|
|
|
|
|
+ | <b>备件名称:</b><span class="addr">{{ item.partName }}</span> | <b>备件规格:</b><span class="addr">{{ item.specification }}</span>
|
|
</template>
|
|
</template>
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -624,14 +597,14 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
- <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath" />
|
|
|
|
|
|
+ <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
|
|
<img
|
|
<img
|
|
v-if="scope.row.picpath !== ''"
|
|
v-if="scope.row.picpath !== ''"
|
|
slot="reference"
|
|
slot="reference"
|
|
:src="scope.row.picpath"
|
|
:src="scope.row.picpath"
|
|
:alt="scope.row.srcpath"
|
|
:alt="scope.row.srcpath"
|
|
style="height: 100px; width: 100px"
|
|
style="height: 100px; width: 100px"
|
|
- />
|
|
|
|
|
|
+ >
|
|
</el-popover>
|
|
</el-popover>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -670,10 +643,9 @@
|
|
<span
|
|
<span
|
|
v-if="
|
|
v-if="
|
|
createTemp.providerId == '' ||
|
|
createTemp.providerId == '' ||
|
|
- parseFloat(createTemp.purchaseType) > 0
|
|
|
|
|
|
+ parseFloat(createTemp.purchaseType) > 0
|
|
"
|
|
"
|
|
- >{{ scope.row.reportery }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ >{{ scope.row.reportery }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -686,8 +658,8 @@
|
|
<div
|
|
<div
|
|
v-if="
|
|
v-if="
|
|
scope.row.contractId == '' ||
|
|
scope.row.contractId == '' ||
|
|
- parseInt(scope.row.contractId) < 0 ||
|
|
|
|
- parseInt(scope.row.contractId) == 0
|
|
|
|
|
|
+ parseInt(scope.row.contractId) < 0 ||
|
|
|
|
+ parseInt(scope.row.contractId) == 0
|
|
"
|
|
"
|
|
>
|
|
>
|
|
<el-form :model="scope.row" :rules="rules">
|
|
<el-form :model="scope.row" :rules="rules">
|
|
@@ -718,7 +690,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
v-if="
|
|
v-if="
|
|
dialogStatus === 'create' ||
|
|
dialogStatus === 'create' ||
|
|
- (createTemp.purchase_type !== 1 && createTemp.purchase_type !== 3)
|
|
|
|
|
|
+ (createTemp.purchase_type !== 1 && createTemp.purchase_type !== 3)
|
|
"
|
|
"
|
|
label="使用周期"
|
|
label="使用周期"
|
|
min-width="120px"
|
|
min-width="120px"
|
|
@@ -744,7 +716,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
v-if="
|
|
v-if="
|
|
dialogStatus === 'create' ||
|
|
dialogStatus === 'create' ||
|
|
- (createTemp.purchase_type !== 1 && createTemp.purchase_type !== 3)
|
|
|
|
|
|
+ (createTemp.purchase_type !== 1 && createTemp.purchase_type !== 3)
|
|
"
|
|
"
|
|
label="合同差异项"
|
|
label="合同差异项"
|
|
min-width="120px"
|
|
min-width="120px"
|
|
@@ -822,22 +794,19 @@
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="add_dialog_save()"
|
|
@click="add_dialog_save()"
|
|
- >保存并关闭</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >保存并关闭</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-else-if="dialogStatus === 'update'"
|
|
v-else-if="dialogStatus === 'update'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="edit_dialog_save()"
|
|
@click="edit_dialog_save()"
|
|
- >保存并关闭</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >保存并关闭</el-button>
|
|
<el-button
|
|
<el-button
|
|
@click="
|
|
@click="
|
|
dialogFormVisible = false
|
|
dialogFormVisible = false
|
|
get_table_data()
|
|
get_table_data()
|
|
"
|
|
"
|
|
- >取消并关闭</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >取消并关闭</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -941,7 +910,7 @@
|
|
v-if="
|
|
v-if="
|
|
(dialogStatus === 'special' &&
|
|
(dialogStatus === 'special' &&
|
|
createTemp.purchaseType == '1') ||
|
|
createTemp.purchaseType == '1') ||
|
|
- createTemp.purchaseType == '3'
|
|
|
|
|
|
+ createTemp.purchaseType == '3'
|
|
"
|
|
"
|
|
:span="8"
|
|
:span="8"
|
|
>
|
|
>
|
|
@@ -1011,15 +980,13 @@
|
|
v-model="createTemp.purchaseType"
|
|
v-model="createTemp.purchaseType"
|
|
label="1"
|
|
label="1"
|
|
@change="changeType()"
|
|
@change="changeType()"
|
|
- >暂估</el-radio
|
|
|
|
- >
|
|
|
|
|
|
+ >暂估</el-radio>
|
|
<!-- <el-radio v-model="createTemp.purchaseType" label="2" @change="changeType()">垫付</el-radio> -->
|
|
<!-- <el-radio v-model="createTemp.purchaseType" label="2" @change="changeType()">垫付</el-radio> -->
|
|
<el-radio
|
|
<el-radio
|
|
v-model="createTemp.purchaseType"
|
|
v-model="createTemp.purchaseType"
|
|
label="3"
|
|
label="3"
|
|
@change="changeType()"
|
|
@change="changeType()"
|
|
- >赠品</el-radio
|
|
|
|
- >
|
|
|
|
|
|
+ >赠品</el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -1041,10 +1008,7 @@
|
|
<div class="name" style="display: inline">
|
|
<div class="name" style="display: inline">
|
|
{{ item.partCode }}
|
|
{{ item.partCode }}
|
|
</div>
|
|
</div>
|
|
- | <b>备件名称:</b
|
|
|
|
- ><span class="addr">{{ item.partName }}</span
|
|
|
|
- > | <b>备件规格:</b
|
|
|
|
- ><span class="addr">{{ item.specification }}</span>
|
|
|
|
|
|
+ | <b>备件名称:</b><span class="addr">{{ item.partName }}</span> | <b>备件规格:</b><span class="addr">{{ item.specification }}</span>
|
|
</template>
|
|
</template>
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -1108,14 +1072,14 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
- <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath" />
|
|
|
|
|
|
+ <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
|
|
<img
|
|
<img
|
|
v-if="scope.row.picpath !== ''"
|
|
v-if="scope.row.picpath !== ''"
|
|
slot="reference"
|
|
slot="reference"
|
|
:src="scope.row.picpath"
|
|
:src="scope.row.picpath"
|
|
:alt="scope.row.srcpath"
|
|
:alt="scope.row.srcpath"
|
|
style="height: 100px; width: 100px"
|
|
style="height: 100px; width: 100px"
|
|
- />
|
|
|
|
|
|
+ >
|
|
</el-popover>
|
|
</el-popover>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -1165,10 +1129,9 @@
|
|
<span
|
|
<span
|
|
v-if="
|
|
v-if="
|
|
createTemp.providerId == '' ||
|
|
createTemp.providerId == '' ||
|
|
- parseFloat(createTemp.purchaseType) > 0
|
|
|
|
|
|
+ parseFloat(createTemp.purchaseType) > 0
|
|
"
|
|
"
|
|
- >{{ scope.row.reportery }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ >{{ scope.row.reportery }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- <el-table-column v-if="createTemp.purchaseType == '1'" label="价格" prop="price" align="center" min-width="150">
|
|
<!-- <el-table-column v-if="createTemp.purchaseType == '1'" label="价格" prop="price" align="center" min-width="150">
|
|
@@ -1252,15 +1215,13 @@
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="special_dialog_save()"
|
|
@click="special_dialog_save()"
|
|
- >保存并关闭</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >保存并关闭</el-button>
|
|
<el-button
|
|
<el-button
|
|
@click="
|
|
@click="
|
|
dialogFormVisible2 = false
|
|
dialogFormVisible2 = false
|
|
get_table_data()
|
|
get_table_data()
|
|
"
|
|
"
|
|
- >取消并关闭</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >取消并关闭</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -1383,9 +1344,11 @@
|
|
<el-form-item label="申购类型:" prop="purchaseType">
|
|
<el-form-item label="申购类型:" prop="purchaseType">
|
|
<!-- <el-radio v-model="seeTemp.purchaseType" disabled label="1">暂估</el-radio> -->
|
|
<!-- <el-radio v-model="seeTemp.purchaseType" disabled label="1">暂估</el-radio> -->
|
|
<!-- <el-radio v-model="seeTemp.purchaseType" disabled label="2">垫付</el-radio> -->
|
|
<!-- <el-radio v-model="seeTemp.purchaseType" disabled label="2">垫付</el-radio> -->
|
|
- <el-radio v-model="seeTemp.purchaseType" disabled label="3"
|
|
|
|
- >赠品</el-radio
|
|
|
|
- >
|
|
|
|
|
|
+ <el-radio
|
|
|
|
+ v-model="seeTemp.purchaseType"
|
|
|
|
+ disabled
|
|
|
|
+ label="3"
|
|
|
|
+ >赠品</el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -1448,14 +1411,14 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
<el-popover placement="right" title="" trigger="hover">
|
|
- <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath" />
|
|
|
|
|
|
+ <img v-if="scope.row.picpath !== ''" :src="scope.row.picpath">
|
|
<img
|
|
<img
|
|
v-if="scope.row.picpath !== ''"
|
|
v-if="scope.row.picpath !== ''"
|
|
slot="reference"
|
|
slot="reference"
|
|
:src="scope.row.picpath"
|
|
:src="scope.row.picpath"
|
|
:alt="scope.row.srcpath"
|
|
:alt="scope.row.srcpath"
|
|
style="height: 100px; width: 100px"
|
|
style="height: 100px; width: 100px"
|
|
- />
|
|
|
|
|
|
+ >
|
|
</el-popover>
|
|
</el-popover>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -1618,99 +1581,85 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineKG &&
|
|
isSubscribeExamineKG &&
|
|
- seeTemp.statue == 2 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处'
|
|
|
|
|
|
+ seeTemp.statue == 2 &&
|
|
|
|
+ seeTemp.departmentName == '挤奶处'
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine1(row)"
|
|
@click="handleExamine1(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 设备 -->
|
|
<!-- 设备 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeExamineSBZG && seeTemp.statue == 3"
|
|
v-if="isSubscribeExamineSBZG && seeTemp.statue == 3"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine2(row)"
|
|
@click="handleExamine2(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 供应商主管 -->
|
|
<!-- 供应商主管 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeExamineZG && seeTemp.statue == 9"
|
|
v-if="isSubscribeExamineZG && seeTemp.statue == 9"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine3(row)"
|
|
@click="handleExamine3(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 场长 -->
|
|
<!-- 场长 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- seeTemp.statue == 5 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- seeTemp.examine == 1
|
|
|
|
|
|
+ seeTemp.statue == 5 &&
|
|
|
|
+ seeTemp.departmentName == '挤奶处' &&
|
|
|
|
+ seeTemp.examine == 1
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-else-if="
|
|
v-else-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- seeTemp.statue == 5 &&
|
|
|
|
- seeTemp.departmentName !== '挤奶处'
|
|
|
|
|
|
+ seeTemp.statue == 5 &&
|
|
|
|
+ seeTemp.departmentName !== '挤奶处'
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 采购 -->
|
|
<!-- 采购 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
- (isSubscribeExamineCG &&
|
|
|
|
- seeTemp.statue == 11 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- seeTemp.statue == 15) ||
|
|
|
|
- (seeTemp.departmentName !== '挤奶处' &&
|
|
|
|
- seeTemp.statue == 11)
|
|
|
|
- "
|
|
|
|
|
|
+ isSubscribeExamineCG && (seeTemp.statue == 11 && seeTemp.departmentName != '挤奶处') || (seeTemp.departmentName == '挤奶处' && seeTemp.statue == 15)"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine5(row)"
|
|
@click="handleExamine5(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 财务 -->
|
|
<!-- 财务 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineCW &&
|
|
isSubscribeExamineCW &&
|
|
- seeTemp.purchase_type > 0 &&
|
|
|
|
- seeTemp.statue == 7
|
|
|
|
|
|
+ seeTemp.purchase_type > 0 &&
|
|
|
|
+ seeTemp.statue == 7
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine6(row)"
|
|
@click="handleExamine6(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 奶厅 -->
|
|
<!-- 奶厅 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineNT &&
|
|
isSubscribeExamineNT &&
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- ((seeTemp.examine !== 1 && seeTemp.statue == 5) ||
|
|
|
|
|
|
+ seeTemp.departmentName == '挤奶处' &&
|
|
|
|
+ ((seeTemp.examine !== 1 && seeTemp.statue == 5) ||
|
|
seeTemp.statue == 11)
|
|
seeTemp.statue == 11)
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExamine7(row)"
|
|
@click="handleExamine7(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -1768,50 +1717,43 @@
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData1()"
|
|
@click="createExamineData1()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine2'"
|
|
v-if="dialogStatus === 'examine2'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData2()"
|
|
@click="createExamineData2()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine3'"
|
|
v-if="dialogStatus === 'examine3'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData3()"
|
|
@click="createExamineData3()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine4'"
|
|
v-if="dialogStatus === 'examine4'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData4()"
|
|
@click="createExamineData4()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine5'"
|
|
v-if="dialogStatus === 'examine5'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData5()"
|
|
@click="createExamineData5()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine6'"
|
|
v-if="dialogStatus === 'examine6'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData6()"
|
|
@click="createExamineData6()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="dialogStatus === 'examine7'"
|
|
v-if="dialogStatus === 'examine7'"
|
|
type="primary"
|
|
type="primary"
|
|
:disabled="isokDisable"
|
|
:disabled="isokDisable"
|
|
@click="createExamineData7()"
|
|
@click="createExamineData7()"
|
|
- >确认</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >确认</el-button>
|
|
<el-button @click="dialogFormVisible_Examine = false">关闭</el-button>
|
|
<el-button @click="dialogFormVisible_Examine = false">关闭</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -1836,8 +1778,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
icon="el-icon-search"
|
|
icon="el-icon-search"
|
|
@click="seepart_search"
|
|
@click="seepart_search"
|
|
- >搜索</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >搜索</el-button>
|
|
<h3
|
|
<h3
|
|
v-if="seepartList.length == 0"
|
|
v-if="seepartList.length == 0"
|
|
style="text-align: center; height: 300px; line-height: 300px"
|
|
style="text-align: center; height: 300px; line-height: 300px"
|
|
@@ -1900,14 +1841,14 @@
|
|
<img
|
|
<img
|
|
v-if="scope.row.picpath !== ''"
|
|
v-if="scope.row.picpath !== ''"
|
|
:src="scope.row.picpath"
|
|
:src="scope.row.picpath"
|
|
- />
|
|
|
|
|
|
+ >
|
|
<img
|
|
<img
|
|
v-if="scope.row.picpath !== ''"
|
|
v-if="scope.row.picpath !== ''"
|
|
slot="reference"
|
|
slot="reference"
|
|
:src="scope.row.picpath"
|
|
:src="scope.row.picpath"
|
|
:alt="scope.row.srcpath"
|
|
:alt="scope.row.srcpath"
|
|
style="height: 100px; width: 100px"
|
|
style="height: 100px; width: 100px"
|
|
- />
|
|
|
|
|
|
+ >
|
|
</el-popover>
|
|
</el-popover>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -1967,16 +1908,17 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" :disabled="isokDisable" @click="form_add()"
|
|
|
|
- >继续申购</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="isokDisable"
|
|
|
|
+ @click="form_add()"
|
|
|
|
+ >继续申购</el-button>
|
|
<el-button
|
|
<el-button
|
|
@click="
|
|
@click="
|
|
dialogFormVisible_seepart = false
|
|
dialogFormVisible_seepart = false
|
|
seepart.getdataListParm.parammaps.partName = ''
|
|
seepart.getdataListParm.parammaps.partName = ''
|
|
"
|
|
"
|
|
- >取消</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >取消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 合单 -->
|
|
<!-- 合单 -->
|
|
@@ -2029,8 +1971,7 @@
|
|
<span
|
|
<span
|
|
v-if="modifyTemp.purchase_type == 1"
|
|
v-if="modifyTemp.purchase_type == 1"
|
|
style="float: right; font-size: 16px; margin-bottom: 10px"
|
|
style="float: right; font-size: 16px; margin-bottom: 10px"
|
|
- >总金额:{{ modifyTemp.sumPrices }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ >总金额:{{ modifyTemp.sumPrices }}</span>
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey"
|
|
:key="tableKey"
|
|
v-loading="listLoading"
|
|
v-loading="listLoading"
|
|
@@ -2205,9 +2146,11 @@
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button type="primary" :disabled="isokDisable" @click="form_modify()"
|
|
|
|
- >提交</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ :disabled="isokDisable"
|
|
|
|
+ @click="form_modify()"
|
|
|
|
+ >提交</el-button>
|
|
<el-button @click="dialogFormVisible_modify = false">取消</el-button>
|
|
<el-button @click="dialogFormVisible_modify = false">取消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -2260,8 +2203,7 @@
|
|
<span
|
|
<span
|
|
v-if="seeTemp.purchase_type == 1"
|
|
v-if="seeTemp.purchase_type == 1"
|
|
style="float: right; font-size: 16px; margin-bottom: 10px"
|
|
style="float: right; font-size: 16px; margin-bottom: 10px"
|
|
- >总金额:{{ seeTemp.sumPrices }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ >总金额:{{ seeTemp.sumPrices }}</span>
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey"
|
|
:key="tableKey"
|
|
v-loading="listLoadingSee"
|
|
v-loading="listLoadingSee"
|
|
@@ -2480,96 +2422,82 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineKG &&
|
|
isSubscribeExamineKG &&
|
|
- seeTemp.statue == 2 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处'
|
|
|
|
|
|
+ seeTemp.statue == 2 &&
|
|
|
|
+ seeTemp.departmentName == '挤奶处'
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine1(row)"
|
|
@click="handleExamine1(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 设备 -->
|
|
<!-- 设备 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeExamineSBZG && seeTemp.statue == 3"
|
|
v-if="isSubscribeExamineSBZG && seeTemp.statue == 3"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine2(row)"
|
|
@click="handleExamine2(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 供应商主管 -->
|
|
<!-- 供应商主管 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="isSubscribeExamineZG && seeTemp.statue == 9"
|
|
v-if="isSubscribeExamineZG && seeTemp.statue == 9"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine3(row)"
|
|
@click="handleExamine3(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 场长 -->
|
|
<!-- 场长 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- seeTemp.statue == 5 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- seeTemp.examine == 1
|
|
|
|
|
|
+ seeTemp.statue == 5 &&
|
|
|
|
+ seeTemp.departmentName == '挤奶处' &&
|
|
|
|
+ seeTemp.examine == 1
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-else-if="
|
|
v-else-if="
|
|
sdchangzhangshenhe &&
|
|
sdchangzhangshenhe &&
|
|
- seeTemp.statue == 5 &&
|
|
|
|
- seeTemp.departmentName !== '挤奶处'
|
|
|
|
|
|
+ seeTemp.statue == 5 &&
|
|
|
|
+ seeTemp.departmentName !== '挤奶处'
|
|
"
|
|
"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine4(row)"
|
|
@click="handleExamine4(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
|
|
|
|
<!-- 采购 -->
|
|
<!-- 采购 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
- (isSubscribeExamineCG &&
|
|
|
|
- seeTemp.statue == 11 &&
|
|
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- seeTemp.statue == 15) ||
|
|
|
|
- (seeTemp.departmentName !== '挤奶处' &&
|
|
|
|
- seeTemp.statue == 11)
|
|
|
|
- "
|
|
|
|
|
|
+ isSubscribeExamineCG && (seeTemp.statue == 11 && seeTemp.departmentName != '挤奶处') || (seeTemp.departmentName == '挤奶处' && seeTemp.statue == 15)"
|
|
type="success"
|
|
type="success"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
@click="handleExamine5(row)"
|
|
@click="handleExamine5(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 财务 -->
|
|
<!-- 财务 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineCW &&
|
|
isSubscribeExamineCW &&
|
|
- seeTemp.purchase_type > 0 &&
|
|
|
|
- seeTemp.statue == 7
|
|
|
|
|
|
+ seeTemp.purchase_type > 0 &&
|
|
|
|
+ seeTemp.statue == 7
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
@click="handleExamine6(row)"
|
|
@click="handleExamine6(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
<!-- 奶厅 -->
|
|
<!-- 奶厅 -->
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
isSubscribeExamineNT &&
|
|
isSubscribeExamineNT &&
|
|
- seeTemp.departmentName == '挤奶处' &&
|
|
|
|
- ((seeTemp.examine !== 1 && seeTemp.statue == 5) ||
|
|
|
|
|
|
+ seeTemp.departmentName == '挤奶处' &&
|
|
|
|
+ ((seeTemp.examine !== 1 && seeTemp.statue == 5) ||
|
|
seeTemp.statue == 11)
|
|
seeTemp.statue == 11)
|
|
"
|
|
"
|
|
style="display: inline-block"
|
|
style="display: inline-block"
|
|
type="success"
|
|
type="success"
|
|
@click="handleExamine7(row)"
|
|
@click="handleExamine7(row)"
|
|
- >审核</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ >审核</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -2653,7 +2581,7 @@ export default {
|
|
pagecount: 0,
|
|
pagecount: 0,
|
|
parammaps: { pastureId: Cookies.get('pastureid') }
|
|
parammaps: { pastureId: Cookies.get('pastureid') }
|
|
},
|
|
},
|
|
- { name: 'getflexProviderList', offset: 0, pagecount: 0, parammaps: {} }
|
|
|
|
|
|
+ { name: 'getflexProviderList', offset: 0, pagecount: 0, parammaps: {}}
|
|
],
|
|
],
|
|
getDepartParam: {
|
|
getDepartParam: {
|
|
name: 'findAllDepart',
|
|
name: 'findAllDepart',
|
|
@@ -2854,6 +2782,7 @@ export default {
|
|
|
|
|
|
created() {
|
|
created() {
|
|
const that = this
|
|
const that = this
|
|
|
|
+
|
|
GetDataByName({
|
|
GetDataByName({
|
|
name: 'getUserPCButtons',
|
|
name: 'getUserPCButtons',
|
|
parammaps: { jwt_username: Cookies.get('name') }
|
|
parammaps: { jwt_username: Cookies.get('name') }
|
|
@@ -3016,6 +2945,7 @@ export default {
|
|
Cookies.get('pastureid')
|
|
Cookies.get('pastureid')
|
|
this.pending.getdataListParm.parammaps.deptId =
|
|
this.pending.getdataListParm.parammaps.deptId =
|
|
Cookies.get('departmentid')
|
|
Cookies.get('departmentid')
|
|
|
|
+
|
|
GetDataByName(this.pending.getdataListParm).then((response) => {
|
|
GetDataByName(this.pending.getdataListParm).then((response) => {
|
|
this.pending.total = response.data.total3
|
|
this.pending.total = response.data.total3
|
|
})
|
|
})
|
|
@@ -3110,7 +3040,7 @@ export default {
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- statue: function (cellValue) {
|
|
|
|
|
|
+ statue: function(cellValue) {
|
|
// console.log(cellValue)
|
|
// console.log(cellValue)
|
|
// departmentName
|
|
// departmentName
|
|
// purchase_type
|
|
// purchase_type
|
|
@@ -3386,7 +3316,7 @@ export default {
|
|
this.seepartList = []
|
|
this.seepartList = []
|
|
this.dialogFormVisible_seepart = true
|
|
this.dialogFormVisible_seepart = true
|
|
// 点击新增 判断是否是在 挤奶处 id=46
|
|
// 点击新增 判断是否是在 挤奶处 id=46
|
|
- this.isDepartmentId = parseInt(Cookies.get('departmentid')) == 46 ? true : false
|
|
|
|
|
|
+ this.isDepartmentId = parseInt(Cookies.get('departmentid')) == 46
|
|
},
|
|
},
|
|
seepart_search() {
|
|
seepart_search() {
|
|
this.get_seepart_data()
|
|
this.get_seepart_data()
|
|
@@ -5417,7 +5347,7 @@ export default {
|
|
this.listAdd = response.data.list
|
|
this.listAdd = response.data.list
|
|
this.modifylist = response.data.list
|
|
this.modifylist = response.data.list
|
|
var sumPrices = 0
|
|
var sumPrices = 0
|
|
- response.data.list.forEach(function (i, j) {
|
|
|
|
|
|
+ response.data.list.forEach(function(i, j) {
|
|
sumPrices = sumPrices + parseFloat(i.price1) * parseFloat(i.amount)
|
|
sumPrices = sumPrices + parseFloat(i.price1) * parseFloat(i.amount)
|
|
})
|
|
})
|
|
this.$set(this.seeTemp, 'sumPrices', sumPrices)
|
|
this.$set(this.seeTemp, 'sumPrices', sumPrices)
|
|
@@ -5425,7 +5355,7 @@ export default {
|
|
console.log('总价sumPrices', sumPrices)
|
|
console.log('总价sumPrices', sumPrices)
|
|
var priceObj = false
|
|
var priceObj = false
|
|
var priceArr = []
|
|
var priceArr = []
|
|
- response.data.list.forEach(function (i, j) {
|
|
|
|
|
|
+ response.data.list.forEach(function(i, j) {
|
|
if (parseFloat(i.price1) >= 500) {
|
|
if (parseFloat(i.price1) >= 500) {
|
|
priceArr.push(true)
|
|
priceArr.push(true)
|
|
} else {
|
|
} else {
|
|
@@ -5703,15 +5633,15 @@ export default {
|
|
)
|
|
)
|
|
) {
|
|
) {
|
|
// 如果是新增并且在挤奶处 则申请部门名称和id为数组的第一个 TODO:
|
|
// 如果是新增并且在挤奶处 则申请部门名称和id为数组的第一个 TODO:
|
|
- if(this.isDepartmentId){
|
|
|
|
- this.createTemp.departmentId = this.createDepartList[0].id;
|
|
|
|
- this.createTemp.departmentName=this.createDepartList[0].name;
|
|
|
|
- }else{
|
|
|
|
- this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
|
|
|
|
- this.createTemp.departmentName = this.createDepartList.find(
|
|
|
|
- (obj) => obj.id == Cookies.get('departmentid')
|
|
|
|
- ).name
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.isDepartmentId) {
|
|
|
|
+ this.createTemp.departmentId = this.createDepartList[0].id
|
|
|
|
+ this.createTemp.departmentName = this.createDepartList[0].name
|
|
|
|
+ } else {
|
|
|
|
+ this.createTemp.departmentId = parseInt(Cookies.get('departmentid'))
|
|
|
|
+ this.createTemp.departmentName = this.createDepartList.find(
|
|
|
|
+ (obj) => obj.id == Cookies.get('departmentid')
|
|
|
|
+ ).name
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
this.createTemp.departmentId = response.data.list[0].id
|
|
this.createTemp.departmentId = response.data.list[0].id
|
|
this.createTemp.departmentName = response.data.list[0].name
|
|
this.createTemp.departmentName = response.data.list[0].name
|