|
@@ -212,6 +212,7 @@
|
|
|
<!-- <el-button v-if="hasPermission('cw:workContract:view')" text type="primary" size="small" @click="view(scope.row.id)">查看</el-button>-->
|
|
|
<el-button v-if="hasPermission('cw:workContract:edit') && (scope.row.createId === $store.state.user.id) &&
|
|
|
(scope.row.filedPaperType !== '2' && scope.row.filedPaperType !== '5'&& scope.row.filedPaperType !== '4')" text type="primary" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('cw:update:fileNumber') && scope.row.filedPaperType === '5'" text type="primary" size="small" @click="editFileNumber(scope.row)">修改</el-button>
|
|
|
<!-- <el-button v-if="hasPermission('cw:workContract:edit') && scope.row.status === '5' && isAdmin && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === '1' || scope.row.filedPaperType === '3')" text type="primary" size="small" @click="editForm(scope.row.id)">修改</el-button>-->
|
|
|
<!--<el-button v-else-if="hasPermission('cw:workContract:edit') && scope.row.status === '5' && scope.row.createId === $store.state.user.id && (scope.row.filedPaperType === '0' || scope.row.filedPaperType === '1' || scope.row.filedPaperType === '3' || commonJS.isEmpty(scope.row.filedPaperType))" text type="primary" size="small" @click="editForm(scope.row.id)">修改</el-button>-->
|
|
|
<!-- 审核-->
|
|
@@ -269,6 +270,7 @@
|
|
|
<WorkClientChooseRadio ref="workClientChooseRadio" @getWorkClientRadioChoose="getWorkClientChoose2"></WorkClientChooseRadio>
|
|
|
<WorkContractBorrowMessageForm ref="workContractBorrowMessageForm" @refreshDataList="refreshList"></WorkContractBorrowMessageForm>
|
|
|
<user-select ref="userSelect2" @doSubmit="selectUser"></user-select>
|
|
|
+ <ContractUpdateFileNumberForm ref="contractUpdateFileNumberForm" @refreshDataList="refreshList"></ContractUpdateFileNumberForm>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -290,7 +292,8 @@
|
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
import WorkClientChooseRadio from '@/views/cw/workClientInfo/WorkClientChooseRadioList'
|
|
|
import UserSelect from '@/views/utils/UserTreeSelect'
|
|
|
- export default {
|
|
|
+ import ContractUpdateFileNumberForm from "./contractRegisitionAddForm/ContractUpdateFileNumberForm"
|
|
|
+ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
searchVisible: true,
|
|
@@ -348,7 +351,8 @@
|
|
|
SelectUserTree,
|
|
|
SelectTree,
|
|
|
WorkClientChooseRadio,
|
|
|
- UserSelect
|
|
|
+ UserSelect,
|
|
|
+ ContractUpdateFileNumberForm
|
|
|
},
|
|
|
activated () {
|
|
|
this.is()
|
|
@@ -455,6 +459,9 @@
|
|
|
// this.editWithHold(row)
|
|
|
// }
|
|
|
},
|
|
|
+ editFileNumber(row){
|
|
|
+ this.$refs.contractUpdateFileNumberForm.init('edit',row.id)
|
|
|
+ },
|
|
|
// 管理员修改
|
|
|
editForm (id) {
|
|
|
id = id || this.$refs.workClientTable.getCheckboxRecords().map(item => {
|