|
@@ -85,30 +85,29 @@
|
|
<el-button v-if="row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 10||row.statue == 12" style="display:inline-block" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
|
|
<el-button v-if="row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 10||row.statue == 12" style="display:inline-block" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
|
|
<el-button v-else style="display:none" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
|
|
<el-button v-else style="display:none" type="success" size="mini" @click="form_edit(row)">编辑</el-button>
|
|
<!-- 库管 -->
|
|
<!-- 库管 -->
|
|
- <el-button v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="handleExamine(row)">审核1</el-button>
|
|
|
|
- <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine(row)">审核1</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineKG && row.statue == 2" style="display:inline-block" type="success" size="mini" @click="handleExamine1(row)">审核1</el-button>
|
|
|
|
|
|
<!-- 设备 -->
|
|
<!-- 设备 -->
|
|
- <el-button v-if="isSubscribeExamineSBZG && row.statue == 3" style="display:inline-block" type="success" size="mini" @click="handleExamine22(row)">审核2</el-button>
|
|
|
|
- <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine22(row)">审核2</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineSBZG && row.statue == 3" style="display:inline-block" type="success" size="mini" @click="handleExamine2(row)">审核2</el-button>
|
|
|
|
|
|
<!-- 主管 -->
|
|
<!-- 主管 -->
|
|
- <el-button v-if="isSubscribeExamineZG && row.statue == 9" style="display:inline-block" type="success" size="mini" @click="handleExamine2(row)">审核3</el-button>
|
|
|
|
- <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine2(row)">审核3</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineZG && row.statue == 9" style="display:inline-block" type="success" size="mini" @click="handleExamine3(row)">审核3</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 场长 -->
|
|
<!-- 场长 -->
|
|
- <el-button v-if="sdchangzhangshenhe && row.statue == 5" style="display:inline-block" type="success" size="mini" @click="handleExamine33(row)">审核4</el-button>
|
|
|
|
- <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine33(row)">审核5</el-button>
|
|
|
|
|
|
+ <el-button v-if="sdchangzhangshenhe && row.statue == 5" style="display:inline-block" type="success" size="mini" @click="handleExamine4(row)">审核4</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 采购 -->
|
|
<!-- 采购 -->
|
|
- <el-button v-if="isSubscribeExamineCG && row.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine3(row)">审核5</el-button>
|
|
|
|
- <el-button v-else style="display:none" type="success" size="mini" @click="handleExamine3(row)">审核5</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineCG && row.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine5(row)">审核5</el-button>
|
|
|
|
+
|
|
|
|
+ <!-- 财务 -->
|
|
|
|
+ <el-button v-if="isSubscribeExamineCW && row.statue == 13 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">审核6</el-button>
|
|
|
|
+
|
|
<el-button v-if="isSubscribeDelete && (row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 12)" style="display:inline-block" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
|
|
<el-button v-if="isSubscribeDelete && (row.statue == 4||row.statue == 6||row.statue == 8||row.statue == 12)" style="display:inline-block" type="danger" size="mini" @click="form_delete(row)">删除</el-button>
|
|
|
|
|
|
|
|
|
|
@@ -190,8 +189,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" v-if="dialogStatus==='special' && createTemp.purchaseType == '2'">
|
|
<el-col :span="8" v-if="dialogStatus==='special' && createTemp.purchaseType == '2'">
|
|
- <el-form-item label="垫付人:" prop="providerId">
|
|
|
|
- <el-select v-model="createTemp.providerId" placeholder="垫付人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update'">
|
|
|
|
|
|
+ <el-form-item label="垫付人:" prop="funderId">
|
|
|
|
+ <el-select v-model="createTemp.funderId" placeholder="垫付人" class="filter-item" style="width:100%" :disabled="dialogStatus==='update'">
|
|
<el-option v-for="item in findAllEmploye" :key="item.id" :label="item.name" :value="item.id" />
|
|
<el-option v-for="item in findAllEmploye" :key="item.id" :label="item.name" :value="item.id" />
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -366,12 +365,30 @@
|
|
<el-date-picker v-model="seeTemp.createTime" :picker-options="pickerOptions" type="date" placeholder="申购日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" disabled />
|
|
<el-date-picker v-model="seeTemp.createTime" :picker-options="pickerOptions" type="date" placeholder="申购日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" disabled />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="8">
|
|
|
|
|
|
+ <el-col :span="8" v-if="seeTemp.purchase_type > 0">
|
|
|
|
+ <el-form-item label="供应商:" prop="providerName">
|
|
|
|
+ <el-input ref="providerName" v-model="seeTemp.providerName" disabled />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" v-if="seeTemp.purchase_type > 0">
|
|
|
|
+ <el-form-item label="垫付人:" prop="providerName">
|
|
|
|
+ <el-input ref="providerName" v-model="seeTemp.providerName" disabled />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8" v-else>
|
|
<el-form-item label="线上采购:" prop="providerName">
|
|
<el-form-item label="线上采购:" prop="providerName">
|
|
<el-input ref="providerName" v-model="seeTemp.providerName" disabled />
|
|
<el-input ref="providerName" v-model="seeTemp.providerName" disabled />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row v-if="seeTemp.purchase_type > 0">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="申购类型:" prop="purchaseType">
|
|
|
|
+ <el-radio v-model="seeTemp.purchaseType" label="1">暂估</el-radio>
|
|
|
|
+ <el-radio v-model="seeTemp.purchaseType" label="2">垫付</el-radio>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey"
|
|
:key="tableKey"
|
|
@@ -462,23 +479,21 @@
|
|
<el-col>
|
|
<el-col>
|
|
<el-form-item label="操作:">
|
|
<el-form-item label="操作:">
|
|
<!-- 库管 -->
|
|
<!-- 库管 -->
|
|
- <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine(row)">审核1</el-button>
|
|
|
|
- <el-button v-else type="success" style="display:none" @click="handleExamine(row)">审核1</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineKG && seeTemp.statue == 2" type="success" style="display:inline-block" @click="handleExamine1(row)">审核1</el-button>
|
|
<!-- 设备 -->
|
|
<!-- 设备 -->
|
|
- <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine22(row)">审核2</el-button>
|
|
|
|
- <el-button v-else type="success" style="display:none" @click="handleExamine22(row)">审核2</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineSBZG && seeTemp.statue == 3" type="success" style="display:inline-block" @click="handleExamine2(row)">审核2</el-button>
|
|
<!-- 主管 -->
|
|
<!-- 主管 -->
|
|
- <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine2(row)">审核3</el-button>
|
|
|
|
- <el-button v-else type="success" style="display:none" @click="handleExamine2(row)">审核3</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineZG && seeTemp.statue == 9" type="success" style="display:inline-block" @click="handleExamine3(row)">审核3</el-button>
|
|
|
|
|
|
<!-- 场长 -->
|
|
<!-- 场长 -->
|
|
- <el-button v-if=" sdchangzhangshenhe && seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine33(row)">审核4</el-button>
|
|
|
|
- <el-button v-else type="success" style="display:none" @click="handleExamine33(row)">审核5</el-button>
|
|
|
|
|
|
+ <el-button v-if=" sdchangzhangshenhe && seeTemp.statue == 5" type="success" style="display:inline-block" @click="handleExamine4(row)">审核4</el-button>
|
|
|
|
|
|
|
|
|
|
<!-- 采购 -->
|
|
<!-- 采购 -->
|
|
- <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine3(row)">审核5</el-button>
|
|
|
|
- <el-button v-else type="success" style="display:none" @click="handleExamine3(row)">审核5</el-button>
|
|
|
|
|
|
+ <el-button v-if="isSubscribeExamineCG && seeTemp.statue == 11 " type="success" style="display:inline-block" @click="handleExamine5(row)">审核5</el-button>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-button v-if="isSubscribeExamineCW && seeTemp.statue == 11 " style="display:inline-block" type="success" size="mini" @click="handleExamine6(row)">审核6</el-button>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -490,6 +505,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
<!-- 审核 -->
|
|
<!-- 审核 -->
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_Examine" :close-on-click-modal="false" width="30%">
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_Examine" :close-on-click-modal="false" width="30%">
|
|
<div class="app-examine">
|
|
<div class="app-examine">
|
|
@@ -511,11 +527,12 @@
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
- <el-button v-if="dialogStatus==='examine'" type="primary" :disabled="isokDisable" @click="createExamineData()">确认</el-button>
|
|
|
|
- <el-button v-if="dialogStatus==='examine22'" type="primary" :disabled="isokDisable" @click="createExamineData22()">确认</el-button>
|
|
|
|
|
|
+ <el-button v-if="dialogStatus==='examine1'" type="primary" :disabled="isokDisable" @click="createExamineData1()">确认</el-button>
|
|
<el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
|
|
<el-button v-if="dialogStatus==='examine2'" type="primary" :disabled="isokDisable" @click="createExamineData2()">确认</el-button>
|
|
- <el-button v-if="dialogStatus==='examine33'" type="primary" :disabled="isokDisable" @click="createExamineData33()">确认</el-button>
|
|
|
|
<el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
|
|
<el-button v-if="dialogStatus==='examine3'" type="primary" :disabled="isokDisable" @click="createExamineData3()">确认</el-button>
|
|
|
|
+ <el-button v-if="dialogStatus==='examine4'" type="primary" :disabled="isokDisable" @click="createExamineData4()">确认</el-button>
|
|
|
|
+ <el-button v-if="dialogStatus==='examine5'" type="primary" :disabled="isokDisable" @click="createExamineData5()">确认</el-button>
|
|
|
|
+ <el-button v-if="dialogStatus==='examine6'" type="primary" :disabled="isokDisable" @click="createExamineData6()">确认</el-button>
|
|
<el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
|
|
<el-button @click="dialogFormVisible_Examine = false;">关闭</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -541,7 +558,7 @@ export default {
|
|
directives: { waves },
|
|
directives: { waves },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- isSubscribeAdd: [],isSubscribeSpecial:[], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [], isSubscribeExamineZG: [],sdchangzhangshenhe: [],
|
|
|
|
|
|
+ isSubscribeAdd: [],isSubscribeSpecial:[], isSubscribeExamineSBZG:[],isSubscribeTemplate: [], isSubscribeImport: [], isSubscribeExport: [], isSubscribeSee: [], isSubscribeDelete: [], isSubscribeExamineKG: [], isSubscribeExamineCG: [],isSubscribeExamineCW:[], isSubscribeExamineZG: [],sdchangzhangshenhe: [],
|
|
isokDisable: false,
|
|
isokDisable: false,
|
|
findAllProvider: [],
|
|
findAllProvider: [],
|
|
findAllPasture: [],
|
|
findAllPasture: [],
|
|
@@ -566,12 +583,12 @@ export default {
|
|
textMap: {
|
|
textMap: {
|
|
update: '编辑',
|
|
update: '编辑',
|
|
create: '新增',
|
|
create: '新增',
|
|
- see: '查看',
|
|
|
|
- examine: '审核1',
|
|
|
|
- examine22: '审核2',
|
|
|
|
- examine2: '审核3',
|
|
|
|
- examine33: '审核4',
|
|
|
|
- examine3: '审核5',
|
|
|
|
|
|
+ see: '查看/特殊申购l',
|
|
|
|
+ examine1: '审核1',
|
|
|
|
+ examine2: '审核2',
|
|
|
|
+ examine3: '审核3',
|
|
|
|
+ examine4: '审核4',
|
|
|
|
+ examine5: '审核5',
|
|
special: '特殊申购'
|
|
special: '特殊申购'
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
@@ -624,7 +641,8 @@ export default {
|
|
employeId: this.$store.state.user.employeid,
|
|
employeId: this.$store.state.user.employeid,
|
|
createTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
createTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
providerId: '',
|
|
providerId: '',
|
|
- purchaseType:'1'
|
|
|
|
|
|
+ purchaseType:'1',
|
|
|
|
+ funderId:''
|
|
},
|
|
},
|
|
requestSparePart: {
|
|
requestSparePart: {
|
|
name: 'getPartsListSG',
|
|
name: 'getPartsListSG',
|
|
@@ -764,6 +782,11 @@ export default {
|
|
const SubscribeExamineCG = 'customs:subscribe:examineCG'
|
|
const SubscribeExamineCG = 'customs:subscribe:examineCG'
|
|
const isSubscribeExamineCG = checkButtons(this.$store.state.user.buttons, SubscribeExamineCG)
|
|
const isSubscribeExamineCG = checkButtons(this.$store.state.user.buttons, SubscribeExamineCG)
|
|
this.isSubscribeExamineCG = isSubscribeExamineCG
|
|
this.isSubscribeExamineCG = isSubscribeExamineCG
|
|
|
|
+
|
|
|
|
+ // 财务审核
|
|
|
|
+ const SubscribeExamineCW = 'customs:subscribe:examineCW'
|
|
|
|
+ const isSubscribeExamineCW = checkButtons(this.$store.state.user.buttons, SubscribeExamineCW)
|
|
|
|
+ this.isSubscribeExamineCW = isSubscribeExamineCW
|
|
},
|
|
},
|
|
getPendingList() {
|
|
getPendingList() {
|
|
this.pending.getdataListParm.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
|
|
this.pending.getdataListParm.parammaps.pastureName = this.getdataListParm.parammaps.pastureName
|
|
@@ -910,6 +933,7 @@ export default {
|
|
this.createTemp.createTime = parseTime(new Date(), '{y}-{m}-{d}')
|
|
this.createTemp.createTime = parseTime(new Date(), '{y}-{m}-{d}')
|
|
this.createTemp.orderNumber = ''
|
|
this.createTemp.orderNumber = ''
|
|
this.createTemp.providerId = ''
|
|
this.createTemp.providerId = ''
|
|
|
|
+ this.createTemp.funderId = ''
|
|
this.createTemp.purchaseType = '1'
|
|
this.createTemp.purchaseType = '1'
|
|
this.listAdd = []
|
|
this.listAdd = []
|
|
},
|
|
},
|
|
@@ -1216,6 +1240,7 @@ export default {
|
|
this.dialogStatus = 'see'
|
|
this.dialogStatus = 'see'
|
|
this.dialogFormVisibleSee = true
|
|
this.dialogFormVisibleSee = true
|
|
this.seeTemp = Object.assign({}, row)
|
|
this.seeTemp = Object.assign({}, row)
|
|
|
|
+ this.seeTemp.purchaseType = String(row.purchase_type)
|
|
console.log('查看上方数据(从table读取)', this.seeTemp)
|
|
console.log('查看上方数据(从table读取)', this.seeTemp)
|
|
this.listSee = []
|
|
this.listSee = []
|
|
this.getdataListSee.parammaps.id = this.seeTemp.id
|
|
this.getdataListSee.parammaps.id = this.seeTemp.id
|
|
@@ -1225,8 +1250,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- // if (this.seeTemp.priceClass === 1) {
|
|
|
|
-
|
|
|
|
|
|
+ if (this.seeTemp.purchase_type >0) {
|
|
if (this.seeTemp.statue === 2) {
|
|
if (this.seeTemp.statue === 2) {
|
|
this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '场长审核' },{ title: '采购审核' }]
|
|
this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '场长审核' },{ title: '采购审核' }]
|
|
this.active = 1
|
|
this.active = 1
|
|
@@ -1264,44 +1288,9 @@ export default {
|
|
this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason }]
|
|
this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '场长审核', date: this.seeTemp.fielddate, name: this.seeTemp.fieldPerson },{ title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason }]
|
|
this.active = 6
|
|
this.active = 6
|
|
}
|
|
}
|
|
- // } else {
|
|
|
|
- // if (this.seeTemp.statue === 2) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核' },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '采购审核' }]
|
|
|
|
- // this.active = 1
|
|
|
|
- // } else if (this.seeTemp.statue === 3) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson },{ title: '设备主管审核' }, { title: '供应主管审核' }, { title: '采购审核' }]
|
|
|
|
- // this.active = 2
|
|
|
|
- // } else if (this.seeTemp.statue === 4) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson, status: 'error', reason: reason },{ title: '设备主管审核' }, { title: '供应主管审核' },{ title: '采购审核' }]
|
|
|
|
- // this.active = 2
|
|
|
|
- // } else if (this.seeTemp.statue === 9) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson },{ title: '供应主管审核' }, { title: '采购审核' }]
|
|
|
|
- // this.active = 3
|
|
|
|
- // } else if (this.seeTemp.statue === 10) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson, status: 'error', reason: reason }, { title: '供应主管审核' }, { title: '采购审核' }]
|
|
|
|
- // this.active = 3
|
|
|
|
- // } else if (this.seeTemp.statue === 5) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '采购审核' }]
|
|
|
|
- // this.active = 4
|
|
|
|
- // } else if (this.seeTemp.statue === 6) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson, status: 'error', reason: reason }, { title: '采购审核' }]
|
|
|
|
- // this.active = 4
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // } else if (this.seeTemp.statue === 7) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson }]
|
|
|
|
- // this.active = 6
|
|
|
|
- // } else if (this.seeTemp.statue === 8) {
|
|
|
|
- // this.activeList = [{ title: '备件申购', date: this.seeTemp.inputTime, name: this.seeTemp.empname }, { title: '库管审核', date: this.seeTemp.KGChargedate, name: this.seeTemp.KGChargePerson }, { title: '设备主管审核', date: this.seeTemp.equipmentdate, name: this.seeTemp.equipmentPerson }, { title: '供应主管审核', date: this.seeTemp.chargeDate, name: this.seeTemp.chargePerson }, { title: '采购审核', date: this.seeTemp.CGChargedate, name: this.seeTemp.CGChargePerson, status: 'error', reason: reason }]
|
|
|
|
- // this.active = 6
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ } else {
|
|
|
|
+ // 待写
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -1565,7 +1554,7 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleExamine(row) {
|
|
|
|
|
|
+ handleExamine1(row) {
|
|
console.log('点击了库管审核')
|
|
console.log('点击了库管审核')
|
|
if (row == undefined) {
|
|
if (row == undefined) {
|
|
this.examineTemp = this.seeTemp
|
|
this.examineTemp = this.seeTemp
|
|
@@ -1576,7 +1565,7 @@ export default {
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
}
|
|
}
|
|
- this.dialogStatus = 'examine'
|
|
|
|
|
|
+ this.dialogStatus = 'examine1'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
},
|
|
},
|
|
@@ -1587,7 +1576,7 @@ export default {
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- createExamineData() {
|
|
|
|
|
|
+ createExamineData1() {
|
|
console.log('点击了库管审核')
|
|
console.log('点击了库管审核')
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1627,7 +1616,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- handleExamine22(row) {
|
|
|
|
|
|
+ handleExamine2(row) {
|
|
console.log('点击了设备主管审核')
|
|
console.log('点击了设备主管审核')
|
|
if (row == undefined) {
|
|
if (row == undefined) {
|
|
this.examineTemp = this.seeTemp
|
|
this.examineTemp = this.seeTemp
|
|
@@ -1638,11 +1627,11 @@ export default {
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
}
|
|
}
|
|
- this.dialogStatus = 'examine22'
|
|
|
|
|
|
+ this.dialogStatus = 'examine2'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
},
|
|
},
|
|
- createExamineData22() {
|
|
|
|
|
|
+ createExamineData2() {
|
|
console.log('点击了设备主管审核')
|
|
console.log('点击了设备主管审核')
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1681,7 +1670,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleExamine2(row) {
|
|
|
|
|
|
+ handleExamine3(row) {
|
|
console.log('点击了供应主管审核')
|
|
console.log('点击了供应主管审核')
|
|
if (row == undefined) {
|
|
if (row == undefined) {
|
|
this.examineTemp = this.seeTemp
|
|
this.examineTemp = this.seeTemp
|
|
@@ -1692,11 +1681,11 @@ export default {
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
}
|
|
}
|
|
- this.dialogStatus = 'examine2'
|
|
|
|
|
|
+ this.dialogStatus = 'examine3'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
},
|
|
},
|
|
- createExamineData2() {
|
|
|
|
|
|
+ createExamineData3() {
|
|
console.log('点击了供应主管审核')
|
|
console.log('点击了供应主管审核')
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1735,7 +1724,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleExamine33(row) {
|
|
|
|
|
|
+ handleExamine4(row) {
|
|
console.log('点击了场长审核')
|
|
console.log('点击了场长审核')
|
|
if (row == undefined) {
|
|
if (row == undefined) {
|
|
this.examineTemp = this.seeTemp
|
|
this.examineTemp = this.seeTemp
|
|
@@ -1746,11 +1735,11 @@ export default {
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
}
|
|
}
|
|
- this.dialogStatus = 'examine33'
|
|
|
|
|
|
+ this.dialogStatus = 'examine4'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
},
|
|
},
|
|
- createExamineData33() {
|
|
|
|
|
|
+ createExamineData4() {
|
|
console.log('点击了场长审核')
|
|
console.log('点击了场长审核')
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1797,7 +1786,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleExamine3(row) {
|
|
|
|
|
|
+ handleExamine5(row) {
|
|
console.log('点击了采购审核')
|
|
console.log('点击了采购审核')
|
|
if (row == undefined) {
|
|
if (row == undefined) {
|
|
this.examineTemp = this.seeTemp
|
|
this.examineTemp = this.seeTemp
|
|
@@ -1808,11 +1797,11 @@ export default {
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
}
|
|
}
|
|
- this.dialogStatus = 'examine3'
|
|
|
|
|
|
+ this.dialogStatus = 'examine5'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
},
|
|
},
|
|
- createExamineData3() {
|
|
|
|
|
|
+ createExamineData5() {
|
|
console.log('点击了采购审核')
|
|
console.log('点击了采购审核')
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -1857,6 +1846,66 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ handleExamine6(row) {
|
|
|
|
+ console.log('点击了财务审核')
|
|
|
|
+ if (row == undefined) {
|
|
|
|
+ this.examineTemp = this.seeTemp
|
|
|
|
+ this.$set(this.seeTemp, 'statue', 1)
|
|
|
|
+ this.$set(this.seeTemp, 'workflowNote', '')
|
|
|
|
+ } else {
|
|
|
|
+ this.examineTemp = Object.assign({}, row)
|
|
|
|
+ this.$set(this.examineTemp, 'workflowNote', '')
|
|
|
|
+ this.$set(this.examineTemp, 'statue', 1)
|
|
|
|
+ }
|
|
|
|
+ this.dialogStatus = 'examine6'
|
|
|
|
+ this.dialogFormVisible_Examine = true
|
|
|
|
+ this.statueReason = false
|
|
|
|
+ },
|
|
|
|
+ createExamineData6() {
|
|
|
|
+ console.log('点击了财务审核')
|
|
|
|
+ this.isokDisable = true
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.isokDisable = false
|
|
|
|
+ }, 1000)
|
|
|
|
+ this.$refs['examineTemp'].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.requestParam = {}
|
|
|
|
+ this.requestParam.parammaps = {}
|
|
|
|
+ this.requestParam.common = { 'returnmap': '0' }
|
|
|
|
+ this.requestParam.data = []
|
|
|
|
+ if (this.examineTemp.statue == 1) {
|
|
|
|
+ this.requestParam.data[0] = { 'name': 'partpurchaseCharge1', 'type': 'e', 'parammaps': {
|
|
|
|
+ id: this.examineTemp.id,
|
|
|
|
+ statue: 7,
|
|
|
|
+ empId: Cookies.get('employeid'),
|
|
|
|
+ workflowNote: this.examineTemp.workflowNote
|
|
|
|
+ }}
|
|
|
|
+ this.requestParam.data[1] = { 'name': 'createBuydetailBySG', 'type': 'e', 'parammaps': {
|
|
|
|
+ id: this.examineTemp.id,
|
|
|
|
+ pastureId: this.examineTemp.pastureId
|
|
|
|
+ }}
|
|
|
|
+ } else if (this.examineTemp.statue == 2) {
|
|
|
|
+ this.requestParam.data[0] = { 'name': 'partpurchaseCharge1', 'type': 'e', 'parammaps': {
|
|
|
|
+ id: this.examineTemp.id,
|
|
|
|
+ statue: 8,
|
|
|
|
+ empId: Cookies.get('employeid'),
|
|
|
|
+ workflowNote: this.examineTemp.workflowNote
|
|
|
|
+ }}
|
|
|
|
+ }
|
|
|
|
+ ExecDataByConfig(this.requestParam).then(response => {
|
|
|
|
+ if (response.msg !== 'fail') {
|
|
|
|
+ this.get_table_data()
|
|
|
|
+ this.dialogFormVisible_Examine = false
|
|
|
|
+ this.dialogFormVisible_See = false
|
|
|
|
+ this.statueReason = false
|
|
|
|
+ this.$notify({ title: '成功', message: '审核成功', type: 'success', duration: 2000 })
|
|
|
|
+ } else {
|
|
|
|
+ failproccess(response, this.$notify)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handle_specialSubscription(){
|
|
handle_specialSubscription(){
|
|
this.resetCreateTemp()
|
|
this.resetCreateTemp()
|
|
this.edit = 1
|
|
this.edit = 1
|
|
@@ -1952,6 +2001,9 @@ export default {
|
|
"purchaseType": parseInt(this.createTemp.purchaseType),
|
|
"purchaseType": parseInt(this.createTemp.purchaseType),
|
|
"spot_list":this.listAdd
|
|
"spot_list":this.listAdd
|
|
}
|
|
}
|
|
|
|
+ if(this.createTemp.funderId){
|
|
|
|
+ data.funderId = this.createTemp.funderId
|
|
|
|
+ }
|
|
postJson(url, data).then(response => {
|
|
postJson(url, data).then(response => {
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
@@ -1971,7 +2023,7 @@ export default {
|
|
})
|
|
})
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|