|
@@ -133,6 +133,7 @@
|
|
<!-- 接单 -->
|
|
<!-- 接单 -->
|
|
<!-- <el-button v-if="(row.orderStatue == 0 && isReceipt && (row.pickId == getdataListParm.parammaps.loginId))" style="display:inline-block" type="success" size="mini" @click="handleReceipt(row)">接单</el-button> -->
|
|
<!-- <el-button v-if="(row.orderStatue == 0 && isReceipt && (row.pickId == getdataListParm.parammaps.loginId))" style="display:inline-block" type="success" size="mini" @click="handleReceipt(row)">接单</el-button> -->
|
|
<el-button v-if="roleSet1(row)" style="display:inline-block" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
|
|
<el-button v-if="roleSet1(row)" style="display:inline-block" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
|
|
|
|
+ <!-- <el-button v-else-if="(row.orderStatue == 1)" style="display:none" type="success" size="mini" @click="handleReceipt(row)">接单</el-button> -->
|
|
<el-button v-else-if="(row.orderStatue == 1 ||row.orderStatue == 2 )" style="display:none" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
|
|
<el-button v-else-if="(row.orderStatue == 1 ||row.orderStatue == 2 )" style="display:none" type="success" size="mini" @click="handleReceipt(row)">接单</el-button>
|
|
<!-- 维修及领用 -->
|
|
<!-- 维修及领用 -->
|
|
<!-- <el-button v-if="(row.orderStatue == 1 && row.SHStatue== 1 || row.SHStatue== 4 || row.SHStatue== 6) && isMaintenanceRequisition && (row.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="handleMaintenanceRequisition(row)">维修及领用</el-button> -->
|
|
<!-- <el-button v-if="(row.orderStatue == 1 && row.SHStatue== 1 || row.SHStatue== 4 || row.SHStatue== 6) && isMaintenanceRequisition && (row.pickId == getdataListParm.parammaps.loginId)" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="handleMaintenanceRequisition(row)">维修及领用</el-button> -->
|
|
@@ -155,7 +156,7 @@
|
|
|
|
|
|
<el-button v-if="isshengweiwaidan && row.outsourcing == 1" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="form_add_cont(row)">生成委外单</el-button>
|
|
<el-button v-if="isshengweiwaidan && row.outsourcing == 1" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="form_add_cont(row)">生成委外单</el-button>
|
|
|
|
|
|
- <el-button v-if="roleSet1(row) && row.outsourcing == 0" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="form_add_cont_sure(row)">委外维修</el-button>
|
|
|
|
|
|
+ <el-button v-if="roleSet1(row) && row.outsourcing == 0" style="display:inline-block" type="success" size="mini" class="successRequisition" @click="form_add_cont_sure(row)">委外维修</el-button>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -163,9 +164,9 @@
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
<pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
|
|
<pagination v-show="total>0" :total="total" :page.sync="getdataListParm.offset" :limit.sync="getdataListParm.pagecount" @pagination="get_table_data" />
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
<!-- 新增委外维修单 -->
|
|
<!-- 新增委外维修单 -->
|
|
<el-dialog title="新增委外维修单" :visible.sync="dialogFormVisibleCont" :close-on-click-modal="false" width="90%">
|
|
<el-dialog title="新增委外维修单" :visible.sync="dialogFormVisibleCont" :close-on-click-modal="false" width="90%">
|
|
<div >
|
|
<div >
|
|
@@ -199,7 +200,7 @@
|
|
<el-radio-group v-model="createTempCont.contract" @change="change_contract" >
|
|
<el-radio-group v-model="createTempCont.contract" @change="change_contract" >
|
|
<el-radio :label="0" >无合同</el-radio>
|
|
<el-radio :label="0" >无合同</el-radio>
|
|
<el-radio :label="1" checked>有合同</el-radio>
|
|
<el-radio :label="1" checked>有合同</el-radio>
|
|
-
|
|
|
|
|
|
+
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -216,11 +217,16 @@
|
|
<el-date-picker v-model="createTempCont.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" />
|
|
<el-date-picker v-model="createTempCont.date" :picker-options="pickerOptions" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width:100%" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
|
|
+ <el-form-item label="故障描述:" prop="description">
|
|
|
|
+ <el-input v-model="createTempCont.description" type="textarea" autosize :disabled="dialogStatus==='see'" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="8">
|
|
<el-form-item label="报修单号:" prop="RUCode">
|
|
<el-form-item label="报修单号:" prop="RUCode">
|
|
<el-input ref="RUCode" v-model="createTempCont.RUCode" disabled />
|
|
<el-input ref="RUCode" v-model="createTempCont.RUCode" disabled />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -228,7 +234,7 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey"
|
|
:key="tableKey"
|
|
@@ -244,26 +250,26 @@
|
|
class="elTable"
|
|
class="elTable"
|
|
>
|
|
>
|
|
<!-- table表格 -->
|
|
<!-- table表格 -->
|
|
- <el-table-column label="序号" align="center" type="index" width="50px" />
|
|
|
|
- <el-table-column label="供应商" prop="providerName" align="center" min-width="80px">
|
|
|
|
|
|
+ <el-table-column :key="0" label="序号" align="center" type="index" width="50px" />
|
|
|
|
+ <el-table-column :key="1" label="供应商" prop="providerName" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select v-model="scope.row.providerName" placeholder="供应商" class="filter-item" style="width: 120px; margin-top:10px" >
|
|
<el-select v-model="scope.row.providerName" placeholder="供应商" class="filter-item" style="width: 120px; margin-top:10px" >
|
|
<el-option v-for="item in providerNameList" :key="item.name" :label="item.name" :value="item.name" />
|
|
<el-option v-for="item in providerNameList" :key="item.name" :label="item.name" :value="item.name" />
|
|
</el-select>
|
|
</el-select>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="金额" prop="amount" align="center" min-width="80px">
|
|
|
|
|
|
+ <el-table-column :key="2" label="金额" v-if="createTempCont.contract == 0" prop="amount" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span >
|
|
<span >
|
|
<el-input v-model="scope.row.amount" style="margin-top:10px" />
|
|
<el-input v-model="scope.row.amount" style="margin-top:10px" />
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="设备名称" prop="eqName" align="center" min-width="250">
|
|
|
|
|
|
+ <el-table-column :key="3" label="设备名称" prop="eqName" align="center" min-width="250">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-autocomplete style="margin-top:10px"
|
|
|
|
|
|
+ <el-autocomplete style="margin-top:10px"
|
|
v-model="scope.row.eqName"
|
|
v-model="scope.row.eqName"
|
|
class="inline-input"
|
|
class="inline-input"
|
|
:fetch-suggestions="querySearchEqNameCont"
|
|
:fetch-suggestions="querySearchEqNameCont"
|
|
@@ -279,12 +285,12 @@
|
|
|<span class="addr">{{ item.eqCode }}</span>
|
|
|<span class="addr">{{ item.eqCode }}</span>
|
|
</template>
|
|
</template>
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="设备内部编号" prop="eqCode" align="center" min-width="150">
|
|
|
|
|
|
+ <el-table-column :key="4" label="设备内部编号" prop="eqCode" align="center" min-width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-autocomplete style="margin-top:10px"
|
|
|
|
|
|
+ <el-autocomplete style="margin-top:10px"
|
|
v-model="scope.row.eqCode"
|
|
v-model="scope.row.eqCode"
|
|
class="inline-input"
|
|
class="inline-input"
|
|
:fetch-suggestions="querySearchCodeCont"
|
|
:fetch-suggestions="querySearchCodeCont"
|
|
@@ -295,53 +301,53 @@
|
|
@blur="(value)=>
|
|
@blur="(value)=>
|
|
{blurSelectEqCodeCont(value, scope.row)}"
|
|
{blurSelectEqCodeCont(value, scope.row)}"
|
|
/>
|
|
/>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
-
|
|
|
|
- <el-table-column label="费用类型" prop="typea" align="center" min-width="80px">
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column :key="5" label="费用类型" prop="typea" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
-
|
|
|
|
|
|
+
|
|
<el-select v-model="scope.row.typea" placeholder="费用类型" class="filter-item" style="width: 120px; margin-top:10px " >
|
|
<el-select v-model="scope.row.typea" placeholder="费用类型" class="filter-item" style="width: 120px; margin-top:10px " >
|
|
<el-option v-for="item in costTypeList" :key="item.id" :label="item.name" :value="item.name" />
|
|
<el-option v-for="item in costTypeList" :key="item.id" :label="item.name" :value="item.name" />
|
|
</el-select>
|
|
</el-select>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
|
|
|
|
|
|
+ <!-- <el-table-column label="交付日期" prop="date" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v >
|
|
<span v >
|
|
-
|
|
|
|
|
|
+
|
|
<el-date-picker v-model="scope.row.date" style="margin-top:10px" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
|
|
<el-date-picker v-model="scope.row.date" style="margin-top:10px" type="date" placeholder="日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" />
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column v-if="createTempCont.contract == 1" label="合同编号" prop="contractCode" align="center" min-width="80px">
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
+ <el-table-column :key="6" v-if="createTempCont.contract == 1" label="合同编号" prop="contractCode" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span >
|
|
<span >
|
|
<el-input v-model="scope.row.contractCode" style="margin-top:10px" />
|
|
<el-input v-model="scope.row.contractCode" style="margin-top:10px" />
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="备注" prop="remark" align="center" min-width="80px">
|
|
|
|
|
|
+ <el-table-column :key="7" label="备注" prop="remark" align="center" min-width="80px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span >
|
|
<span >
|
|
<el-input v-model="scope.row.remark" style="margin-top:10px" />
|
|
<el-input v-model="scope.row.remark" style="margin-top:10px" />
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
<div slot="footer" class="dialog-footer" style="bottom:10px">
|
|
<div slot="footer" class="dialog-footer" style="bottom:10px">
|
|
<el-button type="primary" :disabled="isokDisable" @click="add_dialog_save_cont()">保存并关闭</el-button>
|
|
<el-button type="primary" :disabled="isokDisable" @click="add_dialog_save_cont()">保存并关闭</el-button>
|
|
@@ -349,7 +355,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
-
|
|
|
|
|
|
+
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_Create" :close-on-click-modal="false" width="90%">
|
|
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible_Create" :close-on-click-modal="false" width="90%">
|
|
<div class="app-create">
|
|
<div class="app-create">
|
|
<el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
|
|
<el-form ref="createTemp" :rules="rules" :model="createTemp" label-position="right" label-width="120px" style="width: 90%;margin:0 auto;">
|
|
@@ -401,7 +407,7 @@
|
|
</el-col> -->
|
|
</el-col> -->
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="维修人:" prop="pickId">
|
|
<el-form-item label="维修人:" prop="pickId">
|
|
-
|
|
|
|
|
|
+
|
|
<el-input v-model="pickNameArr" disabled />
|
|
<el-input v-model="pickNameArr" disabled />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -414,8 +420,8 @@
|
|
<el-select v-model="createTemp.details" multiple placeholder="故障情况" filterable class="filter-item" style="width:100%" @change="changeDetails">
|
|
<el-select v-model="createTemp.details" multiple placeholder="故障情况" filterable class="filter-item" style="width:100%" @change="changeDetails">
|
|
<el-option v-for="item in DetailList" :key="item.describe" :label="item.describe" :value="item.describe" />
|
|
<el-option v-for="item in DetailList" :key="item.describe" :label="item.describe" :value="item.describe" />
|
|
</el-select>
|
|
</el-select>
|
|
-
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -893,8 +899,8 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
@@ -1581,7 +1587,7 @@ export default {
|
|
dialogFormVisibleCont:false,
|
|
dialogFormVisibleCont:false,
|
|
|
|
|
|
createTempCont: {
|
|
createTempCont: {
|
|
-
|
|
|
|
|
|
+
|
|
RUCode: '',
|
|
RUCode: '',
|
|
pastureId: this.$store.state.user.pastureid,
|
|
pastureId: this.$store.state.user.pastureid,
|
|
departmentId: this.$store.state.user.departmentid,
|
|
departmentId: this.$store.state.user.departmentid,
|
|
@@ -1599,7 +1605,7 @@ export default {
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
},
|
|
},
|
|
- departNameList2: [],
|
|
|
|
|
|
+ departNameList2: [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1635,7 +1641,8 @@ export default {
|
|
eqCode: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
eqCode: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
deptName: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
deptName: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
details: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
details: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
- shutdownReason: [{ required: true, message: '必填', trigger: 'blur' }]
|
|
|
|
|
|
+ shutdownReason: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
|
|
+ description: [{ required: true, message: '必填', trigger: 'blur' }],
|
|
},
|
|
},
|
|
getdataListParm: {
|
|
getdataListParm: {
|
|
name: 'getRepirsList',
|
|
name: 'getRepirsList',
|
|
@@ -1771,14 +1778,14 @@ export default {
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
},
|
|
},
|
|
- pastureNameList: [],
|
|
|
|
- employeNameList: [],
|
|
|
|
- departNameList1: [],
|
|
|
|
|
|
+ pastureNameList: [],
|
|
|
|
+ employeNameList: [],
|
|
|
|
+ departNameList1: [],
|
|
getDepartParam2: {
|
|
getDepartParam2: {
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
name: 'findAllDepart', offset: 0, pagecount: 0,
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
parammaps: { 'pastureId': Cookies.get('pastureid'), 'eId': Cookies.get('employeid') }
|
|
},
|
|
},
|
|
- departNameList2: [],
|
|
|
|
|
|
+ departNameList2: [],
|
|
listAddCont:[
|
|
listAddCont:[
|
|
{providerName:"",providerId: "0",eqId: "0",contractId: "0",}
|
|
{providerName:"",providerId: "0",eqId: "0",contractId: "0",}
|
|
],
|
|
],
|
|
@@ -1862,7 +1869,7 @@ export default {
|
|
returntype: 'Map',
|
|
returntype: 'Map',
|
|
parammaps: {
|
|
parammaps: {
|
|
pastureId: Cookies.get('pastureid'),
|
|
pastureId: Cookies.get('pastureid'),
|
|
- codeType: 'LY'
|
|
|
|
|
|
+ codeType: 'WW'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
requestSparePart: {
|
|
requestSparePart: {
|
|
@@ -1994,19 +2001,19 @@ export default {
|
|
} else{
|
|
} else{
|
|
result = false
|
|
result = false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
result = false
|
|
result = false
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
return result
|
|
return result
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
roleSet2(row){
|
|
roleSet2(row){
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
console.log("isMaintenanceRequisition",this.isMaintenanceRequisition)
|
|
console.log("isMaintenanceRequisition",this.isMaintenanceRequisition)
|
|
|
|
|
|
console.log("roleSet2",((row.orderStatue == 1 && row.SHStatue == 1 || row.SHStatue == 4 || row.SHStatue == 6) && this.isMaintenanceRequisition ))
|
|
console.log("roleSet2",((row.orderStatue == 1 && row.SHStatue == 1 || row.SHStatue == 4 || row.SHStatue == 6) && this.isMaintenanceRequisition ))
|
|
@@ -2025,14 +2032,14 @@ export default {
|
|
} else{
|
|
} else{
|
|
result = false
|
|
result = false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
result = false
|
|
result = false
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
return result
|
|
return result
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
roleSet3(row){
|
|
roleSet3(row){
|
|
console.log("roleSet3",((row.orderStatue == 1 && (row.SHStatue == 1 || row.SHStatue == 4 || row.SHStatue == 6)) && this.isRepairComplete ))
|
|
console.log("roleSet3",((row.orderStatue == 1 && (row.SHStatue == 1 || row.SHStatue == 4 || row.SHStatue == 6)) && this.isRepairComplete ))
|
|
@@ -2055,7 +2062,7 @@ export default {
|
|
result = false
|
|
result = false
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
return result
|
|
return result
|
|
|
|
|
|
},
|
|
},
|
|
@@ -2072,7 +2079,7 @@ export default {
|
|
get_auto_buttons() {
|
|
get_auto_buttons() {
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
const shengweiwaidan = 'shengweiwaidan'
|
|
const shengweiwaidan = 'shengweiwaidan'
|
|
const isshengweiwaidan = checkButtons(this.buttons, shengweiwaidan)
|
|
const isshengweiwaidan = checkButtons(this.buttons, shengweiwaidan)
|
|
@@ -2131,15 +2138,15 @@ export default {
|
|
this.findAllPasture = response.data.findAllPasture.list
|
|
this.findAllPasture = response.data.findAllPasture.list
|
|
this.findAllDepart = response.data.findAllDepart1.list
|
|
this.findAllDepart = response.data.findAllDepart1.list
|
|
this.findAllEmploye = response.data.findAllEmploye.list
|
|
this.findAllEmploye = response.data.findAllEmploye.list
|
|
-
|
|
|
|
|
|
+
|
|
this.pastureNameList = response.data.findAllPasture.list
|
|
this.pastureNameList = response.data.findAllPasture.list
|
|
console.log("牧场下拉框", this.pastureNameList)
|
|
console.log("牧场下拉框", this.pastureNameList)
|
|
this.employeNameList = response.data.findAllEmploye.list
|
|
this.employeNameList = response.data.findAllEmploye.list
|
|
console.log("申请人下拉框", this.employeNameList)
|
|
console.log("申请人下拉框", this.employeNameList)
|
|
this.providerNameList = response.data.findAllProviderByCt.list
|
|
this.providerNameList = response.data.findAllProviderByCt.list
|
|
-
|
|
|
|
|
|
+
|
|
this.get_depart_list1()
|
|
this.get_depart_list1()
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -2148,7 +2155,7 @@ export default {
|
|
this.departNameList1 = response.data.list
|
|
this.departNameList1 = response.data.list
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
change_pasture2(item) {
|
|
change_pasture2(item) {
|
|
this.getDepartParam2.parammaps.pastureId = item
|
|
this.getDepartParam2.parammaps.pastureId = item
|
|
@@ -2334,14 +2341,14 @@ export default {
|
|
|
|
|
|
//this.createTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
|
|
//this.createTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
console.log(val)
|
|
console.log(val)
|
|
} else {
|
|
} else {
|
|
this.distributeLeafletsTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
|
|
this.distributeLeafletsTemp.repairDept = this.maintainers.find(obj => obj.id == val).deptid
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
add_dialog_save_cont() {
|
|
add_dialog_save_cont() {
|
|
@@ -2370,7 +2377,85 @@ export default {
|
|
|
|
|
|
|
|
|
|
add_dialog_cont_saveSave() {
|
|
add_dialog_cont_saveSave() {
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ // for (var j = 0; j < this.listAddCont.length; j++) {
|
|
|
|
+ // console.log(this.listAddCont[j].amount)
|
|
|
|
+ // if (this.createTempCont.contract == 1){
|
|
|
|
+ // if (this.listAddCont[j].contractCode == null || this.listAddCont[j].contractCode === '') {
|
|
|
|
+ // this.$message({ type: 'warning', message: '请检查合同编号是否未填写', duration: 2000 })
|
|
|
|
+ // return false
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // var send_data = {
|
|
|
|
+ // "common": { "returnmap": "0" },
|
|
|
|
+ // "data": [
|
|
|
|
+ // {
|
|
|
|
+ // "name": "addBigoutsourcing", "type": "e",
|
|
|
|
+ // "parammaps": this.createTempCont
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // "name": "insertSpotList",
|
|
|
|
+ // "resultmaps": { "list": this.listAddCont },
|
|
|
|
+ // "children": [
|
|
|
|
+ // {
|
|
|
|
+ // "name": "addOutsourcing", "type": "e",
|
|
|
|
+ // "parammaps": {
|
|
|
|
+ // "bigId": "@addBigoutsourcing.LastInsertId",
|
|
|
|
+ // "providerId": "@insertSpotList.providerId",
|
|
|
|
+ // "amount": "@insertSpotList.amount",
|
|
|
|
+ // "eqId": "@insertSpotList.eqId",
|
|
|
|
+ // "eqCode": "@insertSpotList.eqCode",
|
|
|
|
+ // "eqName": "@insertSpotList.eqName",
|
|
|
|
+ // "typea": "@insertSpotList.typea",
|
|
|
|
+ // "date": "@insertSpotList.date",
|
|
|
|
+ // "contractId": "@insertSpotList.contractId",
|
|
|
|
+ // "providerName": "@insertSpotList.providerName",
|
|
|
|
+ // "RUCode": "@insertSpotList.RUCode",
|
|
|
|
+ // "contractCode": "@insertSpotList.contractCode"
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // "name": "takeOutsourcing", "type": "e",
|
|
|
|
+ // "parammaps": {
|
|
|
|
+ // departmentId:this.createTempCont.departmentId,
|
|
|
|
+ // id:this.createTempCont.id,
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // ]
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // ExecDataByConfig(send_data).then(response => {
|
|
|
|
+ // console.log('新增保存发送参数', send_data)
|
|
|
|
+ // if (response.msg === 'fail') {
|
|
|
|
+ // this.$notify({
|
|
|
|
+ // title: '保存失败',
|
|
|
|
+ // message: response.data,
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // duration: 2000
|
|
|
|
+ // })
|
|
|
|
+ // } else {
|
|
|
|
+ // this.dialogFormVisibleCont = false
|
|
|
|
+
|
|
|
|
+ // this.get_table_data()
|
|
|
|
+
|
|
|
|
+ // this.$notify({
|
|
|
|
+ // title: '',
|
|
|
|
+ // message: '保存成功',
|
|
|
|
+ // type: 'success',
|
|
|
|
+ // duration: 2000
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // return true
|
|
|
|
+ // ========================
|
|
for (var j = 0; j < this.listAddCont.length; j++) {
|
|
for (var j = 0; j < this.listAddCont.length; j++) {
|
|
console.log(this.listAddCont[j].amount)
|
|
console.log(this.listAddCont[j].amount)
|
|
if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
|
|
if (this.listAddCont[j].amount == null || this.listAddCont[j].amount === '') {
|
|
@@ -2392,10 +2477,22 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ var amount = 0
|
|
|
|
+ if(this.createTempCont.contract==0){
|
|
|
|
+ amount = "@insertSpotList.amount"
|
|
|
|
+ }else{
|
|
|
|
+ amount = 0
|
|
|
|
+ }
|
|
|
|
+ if(this.createTempCont.contract == 0){
|
|
|
|
+ // 无合同
|
|
|
|
+ this.$set(this.createTempCont,'status',0)
|
|
|
|
+ }else{
|
|
|
|
+ // 有合同
|
|
|
|
+ this.$set(this.createTempCont,'status',1)
|
|
|
|
+ }
|
|
var send_data = {
|
|
var send_data = {
|
|
"common": { "returnmap": "0" },
|
|
"common": { "returnmap": "0" },
|
|
"data": [
|
|
"data": [
|
|
@@ -2406,13 +2503,14 @@ export default {
|
|
{
|
|
{
|
|
"name": "insertSpotList",
|
|
"name": "insertSpotList",
|
|
"resultmaps": { "list": this.listAddCont },
|
|
"resultmaps": { "list": this.listAddCont },
|
|
- "children": [
|
|
|
|
|
|
+
|
|
|
|
+ "children": [
|
|
{
|
|
{
|
|
"name": "addOutsourcing", "type": "e",
|
|
"name": "addOutsourcing", "type": "e",
|
|
"parammaps": {
|
|
"parammaps": {
|
|
"bigId": "@addBigoutsourcing.LastInsertId",
|
|
"bigId": "@addBigoutsourcing.LastInsertId",
|
|
"providerId": "@insertSpotList.providerId",
|
|
"providerId": "@insertSpotList.providerId",
|
|
- "amount": "@insertSpotList.amount",
|
|
|
|
|
|
+ "amount": amount,
|
|
"eqId": "@insertSpotList.eqId",
|
|
"eqId": "@insertSpotList.eqId",
|
|
"eqCode": "@insertSpotList.eqCode",
|
|
"eqCode": "@insertSpotList.eqCode",
|
|
"eqName": "@insertSpotList.eqName",
|
|
"eqName": "@insertSpotList.eqName",
|
|
@@ -2420,25 +2518,22 @@ export default {
|
|
"date": "@insertSpotList.date",
|
|
"date": "@insertSpotList.date",
|
|
"contractId": "@insertSpotList.contractId",
|
|
"contractId": "@insertSpotList.contractId",
|
|
"providerName": "@insertSpotList.providerName",
|
|
"providerName": "@insertSpotList.providerName",
|
|
- "RUCode": "@insertSpotList.RUCode",
|
|
|
|
- "contractCode": "@insertSpotList.contractCode"
|
|
|
|
|
|
+ "contractCode": "@insertSpotList.contractCode",
|
|
|
|
+ "status":this.createTempCont.status
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- },
|
|
|
|
- {
|
|
|
|
- "name": "takeOutsourcing", "type": "e",
|
|
|
|
- "parammaps": {
|
|
|
|
- departmentId:this.createTempCont.departmentId,
|
|
|
|
- id:this.createTempCont.id,
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "takeOutsourcing", "type": "e",
|
|
|
|
+ "parammaps": {
|
|
|
|
+ departmentId:this.createTempCont.departmentId,
|
|
|
|
+ id:this.createTempCont.id,
|
|
|
|
+ outsourcing:2
|
|
|
|
+ }
|
|
|
|
+ },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
-
|
|
|
|
ExecDataByConfig(send_data).then(response => {
|
|
ExecDataByConfig(send_data).then(response => {
|
|
console.log('新增保存发送参数', send_data)
|
|
console.log('新增保存发送参数', send_data)
|
|
if (response.msg === 'fail') {
|
|
if (response.msg === 'fail') {
|
|
@@ -2449,10 +2544,13 @@ export default {
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
|
|
+ if(this.createTempCont.contract==1){
|
|
|
|
+ this.add_dialog_saveSave2()
|
|
|
|
+ }
|
|
this.dialogFormVisibleCont = false
|
|
this.dialogFormVisibleCont = false
|
|
-
|
|
|
|
|
|
+
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
-
|
|
|
|
|
|
+
|
|
this.$notify({
|
|
this.$notify({
|
|
title: '',
|
|
title: '',
|
|
message: '保存成功',
|
|
message: '保存成功',
|
|
@@ -2462,8 +2560,54 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
return true
|
|
return true
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
+ add_dialog_saveSave2() {
|
|
|
|
+ console.log(this.examineTemp,'=======contract')
|
|
|
|
+ // this.examineTemp.iscontract =
|
|
|
|
+
|
|
|
|
+ //牧场
|
|
|
|
+ var mydata = {
|
|
|
|
+ // acceptanceCode:this.createTemp.acceptanceCode,
|
|
|
|
+ pastureId: parseInt(Cookies.get('pastureid')),
|
|
|
|
+ departmentId: parseInt(Cookies.get('departmentid')),
|
|
|
|
+ applicant:Cookies.get('employeid'),
|
|
|
|
+ outsourcingCode:this.createTempCont.outsourcingCode,
|
|
|
|
+ applyType:0,
|
|
|
|
+ date:parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
|
+ status:1
|
|
|
|
+ }
|
|
|
|
+ if(this.examineTemp.contract == 0){
|
|
|
|
+ mydata.iscontract = 1
|
|
|
|
+ }else{
|
|
|
|
+ mydata.iscontract = 0
|
|
|
|
+ }
|
|
|
|
+ var send_data = {
|
|
|
|
+ "common": { "returnmap": "0" },
|
|
|
|
+ "data": [
|
|
|
|
+ {
|
|
|
|
+ "name": "insertBigacceptance",
|
|
|
|
+ "type": "e",
|
|
|
|
+ "parammaps": mydata
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ExecDataByConfig(send_data).then(response => {
|
|
|
|
+ console.log('新增保存发送参数', send_data)
|
|
|
|
+ if (response.msg === 'fail') {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '保存失败',
|
|
|
|
+ message: response.data,
|
|
|
|
+ type: 'warning',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
change_contract(val) {
|
|
change_contract(val) {
|
|
console.log(val)
|
|
console.log(val)
|
|
// if(val == 1){
|
|
// if(val == 1){
|
|
@@ -2473,10 +2617,10 @@ export default {
|
|
// }
|
|
// }
|
|
|
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
- form_add_cont_sure(row) {
|
|
|
|
|
|
+ form_add_cont_sure(row) {
|
|
console.log('点击了是否确认委外维修?',row)
|
|
console.log('点击了是否确认委外维修?',row)
|
|
MessageBox.confirm('是否确认委外维修?', {
|
|
MessageBox.confirm('是否确认委外维修?', {
|
|
confirmButtonText: '确认',
|
|
confirmButtonText: '确认',
|
|
@@ -2485,14 +2629,22 @@ export default {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
var send_data = {
|
|
var send_data = {
|
|
"common": { "returnmap": "0" },
|
|
"common": { "returnmap": "0" },
|
|
- "data": [
|
|
|
|
- {
|
|
|
|
|
|
+ "data": [
|
|
|
|
+ {
|
|
"name": "editMaintainoutsourcing", "type": "e",
|
|
"name": "editMaintainoutsourcing", "type": "e",
|
|
"parammaps": { "outsourcing": 1, "id":row.id }
|
|
"parammaps": { "outsourcing": 1, "id":row.id }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "name": "takeOutsourcing", "type": "e",
|
|
|
|
+ "parammaps": {
|
|
|
|
+ departmentId:this.createTempCont.departmentId,
|
|
|
|
+ id:row.id,
|
|
|
|
+ outsourcing:1
|
|
|
|
+ }
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
ExecDataByConfig(send_data).then(response => {
|
|
ExecDataByConfig(send_data).then(response => {
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -2510,12 +2662,16 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
form_add_cont(row) {
|
|
form_add_cont(row) {
|
|
|
|
|
|
this.createTempCont = Object.assign({}, row)
|
|
this.createTempCont = Object.assign({}, row)
|
|
-
|
|
|
|
|
|
+ console.log(this.createTempCont.description)
|
|
|
|
+ if(this.createTempCont.description == undefined || this.createTempCont.description == null){
|
|
|
|
+ this.$set(this.createTempCont,'description','')
|
|
|
|
+ }
|
|
|
|
+ console.log(this.createTempCont.description,'====')
|
|
this.reset_create_cont()
|
|
this.reset_create_cont()
|
|
this.getDepartParam2.parammaps.pastureId = this.createTempCont.pastureId
|
|
this.getDepartParam2.parammaps.pastureId = this.createTempCont.pastureId
|
|
this.get_depart_list2()
|
|
this.get_depart_list2()
|
|
@@ -2541,7 +2697,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
reset_create_cont() {
|
|
reset_create_cont() {
|
|
-
|
|
|
|
|
|
+
|
|
this.createTempCont.pastureId = parseInt(Cookies.get('pastureid'))
|
|
this.createTempCont.pastureId = parseInt(Cookies.get('pastureid'))
|
|
this.createTempCont.departmentId = parseInt(Cookies.get('departmentid'))
|
|
this.createTempCont.departmentId = parseInt(Cookies.get('departmentid'))
|
|
|
|
|
|
@@ -2552,22 +2708,22 @@ export default {
|
|
this.createTempCont.departmentName = Cookies.get('departmentname')
|
|
this.createTempCont.departmentName = Cookies.get('departmentname')
|
|
this.createTempCont.employeId = parseInt(Cookies.get('employeid'))
|
|
this.createTempCont.employeId = parseInt(Cookies.get('employeid'))
|
|
this.createTempCont.date = parseTime(new Date(), '{y}-{m}-{d}')
|
|
this.createTempCont.date = parseTime(new Date(), '{y}-{m}-{d}')
|
|
-
|
|
|
|
|
|
+
|
|
this.createTempCont.outsourcingCode = ''
|
|
this.createTempCont.outsourcingCode = ''
|
|
this.createTempCont.applicant = parseInt(Cookies.get('employeid'))
|
|
this.createTempCont.applicant = parseInt(Cookies.get('employeid'))
|
|
this.createTempCont.providerId = ''
|
|
this.createTempCont.providerId = ''
|
|
this.createTempCont.contract = 1
|
|
this.createTempCont.contract = 1
|
|
|
|
|
|
this.createTempCont.repairCode = ""
|
|
this.createTempCont.repairCode = ""
|
|
-
|
|
|
|
|
|
+
|
|
this.createTempCont.description = ''
|
|
this.createTempCont.description = ''
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
|
|
this.listAddCont = [{providerName:"",providerId: "0",eqId: "0",contractId: "0",amount:"",contractCode:"",date:"",eqCode:"",eqName:"",remark:"",typea:"",}]
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
change_pasture2(item) {
|
|
change_pasture2(item) {
|
|
@@ -2608,7 +2764,7 @@ export default {
|
|
details : this.createTemp.details,
|
|
details : this.createTemp.details,
|
|
requestTime : parseTime(new Date(), '{y}-{m}-{d}')
|
|
requestTime : parseTime(new Date(), '{y}-{m}-{d}')
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
getRepairNumber() {
|
|
getRepairNumber() {
|
|
GetDataByName(this.getRepairNumberParm).then(response => {
|
|
GetDataByName(this.getRepairNumberParm).then(response => {
|
|
@@ -2665,10 +2821,10 @@ export default {
|
|
this.requestParam.parammaps.details = detailString
|
|
this.requestParam.parammaps.details = detailString
|
|
|
|
|
|
if(this.requestParam.parammaps.pickId.length != 0 && this.requestParam.parammaps.pickId){
|
|
if(this.requestParam.parammaps.pickId.length != 0 && this.requestParam.parammaps.pickId){
|
|
-
|
|
|
|
|
|
+
|
|
this.requestParam.parammaps.pickId = this.requestParam.parammaps.pickId.toString()
|
|
this.requestParam.parammaps.pickId = this.requestParam.parammaps.pickId.toString()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
PostDataByName(this.requestParam).then(response => {
|
|
PostDataByName(this.requestParam).then(response => {
|
|
console.log('新增保存发送参数', this.requestParam)
|
|
console.log('新增保存发送参数', this.requestParam)
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
@@ -2743,10 +2899,10 @@ export default {
|
|
this.$set(this.createTemp, 'deptName', '')
|
|
this.$set(this.createTemp, 'deptName', '')
|
|
this.$set(this.createTemp, 'departmentId', '')
|
|
this.$set(this.createTemp, 'departmentId', '')
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
this.getdataListParmDetail.parammaps.eqClassId = item.eqClassId
|
|
this.getdataListParmDetail.parammaps.eqClassId = item.eqClassId
|
|
this.getDetail()
|
|
this.getDetail()
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
@@ -2861,17 +3017,17 @@ export default {
|
|
pickNameArr.push(item.empNameAndmt)
|
|
pickNameArr.push(item.empNameAndmt)
|
|
pickidArr.push(item.id)
|
|
pickidArr.push(item.id)
|
|
depTiDArr.push(item.deptid)
|
|
depTiDArr.push(item.deptid)
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
_this.pickNameArr = pickNameArr
|
|
_this.pickNameArr = pickNameArr
|
|
_this.pickidArr = pickidArr
|
|
_this.pickidArr = pickidArr
|
|
_this.depTiDArr = depTiDArr
|
|
_this.depTiDArr = depTiDArr
|
|
|
|
|
|
_this.createTemp.pickId = pickidArr
|
|
_this.createTemp.pickId = pickidArr
|
|
-
|
|
|
|
|
|
+
|
|
_this.createTemp.repairDept = depTiDArr[0]
|
|
_this.createTemp.repairDept = depTiDArr[0]
|
|
|
|
|
|
console.log(pickNameArr,pickidArr,depTiDArr)
|
|
console.log(pickNameArr,pickidArr,depTiDArr)
|
|
@@ -3117,7 +3273,7 @@ export default {
|
|
this.requestParam.name = 'takeRepirsEmp'
|
|
this.requestParam.name = 'takeRepirsEmp'
|
|
this.requestParam.parammaps = {}
|
|
this.requestParam.parammaps = {}
|
|
this.requestParam.parammaps.id = this.receiptTemp.id
|
|
this.requestParam.parammaps.id = this.receiptTemp.id
|
|
- this.requestParam.parammaps.empid = Cookies.get('employeid')
|
|
|
|
|
|
+ this.requestParam.parammaps.empid = Cookies.get('employeid')
|
|
PostDataByName(this.requestParam).then((response) => {
|
|
PostDataByName(this.requestParam).then((response) => {
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
@@ -3146,7 +3302,7 @@ export default {
|
|
this.getFaultList()
|
|
this.getFaultList()
|
|
|
|
|
|
var send_data2 = {
|
|
var send_data2 = {
|
|
- "name": "getpartapplyListBybig",
|
|
|
|
|
|
+ "name": "getpartapplyListBybig",
|
|
"parammaps":{ "RUCode": row.repairCode }
|
|
"parammaps":{ "RUCode": row.repairCode }
|
|
}
|
|
}
|
|
GetDataByName(send_data2).then(response => {
|
|
GetDataByName(send_data2).then(response => {
|
|
@@ -3161,8 +3317,8 @@ export default {
|
|
}, 100)
|
|
}, 100)
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
changeIsOldProducts(val) {
|
|
changeIsOldProducts(val) {
|
|
console.log(val)
|
|
console.log(val)
|