From fe3af72b806d42d60b099fe5795e40c390b1cd29 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 08 五月 2024 10:37:44 +0800
Subject: [PATCH] 提交一把
---
company/src/components/business/OperaSolutionsWindow.vue | 69 ++++++++++++++++++++++++++--------
1 files changed, 53 insertions(+), 16 deletions(-)
diff --git a/company/src/components/business/OperaSolutionsWindow.vue b/company/src/components/business/OperaSolutionsWindow.vue
index 61d2a8d..83b62fc 100644
--- a/company/src/components/business/OperaSolutionsWindow.vue
+++ b/company/src/components/business/OperaSolutionsWindow.vue
@@ -79,6 +79,31 @@
<el-input style="margin-left: 20px;" type="number" v-model="form.validTypeNum" placeholder="璇疯緭鍏ュ欢杩熷ぉ鏁�" v-if="form.validType === 0"></el-input>
</div>
</el-form-item>
+ <el-form-item label="鏄惁鏀寔" prop="addValidDays">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-checkbox :true-label="1" :false-label="0" v-model="form.canAdd">鍔犱繚</el-checkbox>
+ <el-checkbox :true-label="1" :false-label="0" v-model="form.canReduce">鍑忎繚</el-checkbox>
+ <el-checkbox :true-label="1" :false-label="0" v-model="form.canChangeUnit">鏇存崲娲鹃仯鍗曚綅</el-checkbox>
+ </div>
+ </el-form-item>
+ <el-form-item label="鎵瑰噺鍙敮鎸佹浛鎹紙鍑忎繚鎵规敼浠呮敮鎸佹浛鎹汉鍛樺嵆鍑忎繚浜哄憳灏戜簬鍔犱繚浜哄憳锛�" prop="delOnlyReplace">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-radio-group v-model="form.delOnlyReplace">
+ <el-radio :label="1">鏄�</el-radio>
+ <el-radio :label="0">鍚�</el-radio>
+ </el-radio-group>
+ </div>
+ </el-form-item>
+ <el-form-item label="鎵瑰鐢熸晥锛堝ぉ鏁帮級" prop="addValidDays">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-input style="margin-left: 20px;" type="number" v-model="form.addValidDays" placeholder="璇疯緭鍏ユ壒澧炵敓鏁堟椂闂达紙澶╂暟锛�" ></el-input>
+ </div>
+ </el-form-item>
+ <el-form-item label="鎵瑰噺鐢熸晥锛堝ぉ鏁帮級" prop="delValidDays">
+ <div style="width: 100%; display: flex; align-items: center;">
+ <el-input style="margin-left: 20px;" type="number" v-model="form.delValidDays" placeholder="璇疯緭鍏ユ壒鍑忕敓鏁堟椂闂达紙澶╂暟锛�" ></el-input>
+ </div>
+ </el-form-item>
<el-form-item label="鎶曚繚绫诲瀷" prop="type">
<el-radio-group v-model="form.type" :disabled="form.id!=null">
<el-radio :label="0" >鐩翠繚</el-radio>
@@ -160,11 +185,11 @@
import { all as allWorktype } from '@/api/business/worktype'
import { solutionsId } from '@/api/business/solutions'
import { pageAll as shopList } from '@/api/business/company'
-import UploadFile from "@/components/common/UploadFile";
+import UploadFile from '@/components/common/UploadFile'
export default {
name: 'OperaSolutionsWindow',
extends: BaseOpera,
- components: { GlobalWindow ,UploadFile},
+ components: { GlobalWindow, UploadFile },
data () {
var validType = (rule, value, callback) => {
if (this.form.validType === 0 && !value) {
@@ -196,8 +221,14 @@
ortherInfo: '',
signKeyword: '',
validTypeNum: '',
- fileList1:[],
- fanganFile:null,
+ canReduce: 0,
+ canChangeUnit: 0,
+ addValidDays: 0,
+ delValidDays: 0,
+ delOnlyReplace: 0,
+ canAdd: 0,
+ fileList1: [],
+ fanganFile: null,
worktypeIdList: [{ worktypeId: '' }]
},
// 楠岃瘉瑙勫垯
@@ -242,8 +273,8 @@
})
},
methods: {
- editFanganFile(data){
- this.form.fanganFile=data
+ editFanganFile (data) {
+ this.form.fanganFile = data
},
// 鍒囨崲鍏徃
getAllWorktype1 () {
@@ -258,9 +289,9 @@
if (!valid) {
return
}
- if(data.type===1 && (!data.fanganFile || !data.fanganFile.fileurl)){
+ if (data.type === 1 && (!data.fanganFile || !data.fanganFile.fileurl)) {
this.$message.error('璇蜂笂浼犳柟妗堢‘璁や功锛�')
- return;
+ return
}
// 璋冪敤鏂板缓鎺ュ彛
this.isWorking = true
@@ -293,8 +324,8 @@
}
})
},
- deleFile(){
- this.form.fanganFile={}
+ deleFile () {
+ this.form.fanganFile = {}
},
open (title, target) {
this.title = title
@@ -303,8 +334,14 @@
this.form.timeUnit = ''
this.form.insureCycleUnit = ''
this.form.validTypeNum = ''
- this.form.fanganFile=null
- this.form.fileList1= new Array();
+ this.form.fanganFile = null
+ this.form.canReduce = 0
+ this.form.canChangeUnit = 0
+ this.form.addValidDays = 0
+ this.form.delOnlyReplace = 0
+ this.form.delValidDays = 0
+ this.form.canAdd = 0
+ this.form.fileList1 = []
this.form.worktypeIdList = [{ worktypeId: '' }]
// this.$refs['$upload'].clearFiles()//鍒濆鍖栧鍏ョ粍浠�
this.allCompany()
@@ -317,8 +354,8 @@
this.form.timeUnit = ''
this.form.insureCycleUnit = ''
this.form.validTypeNum = ''
- this.form.fanganFile=null
- this.form.fileList1= new Array();
+ this.form.fanganFile = null
+ this.form.fileList1 = []
this.form.worktypeIdList = [{ worktypeId: '' }]
this.form[this.configData['field.id']] = null
})
@@ -331,8 +368,8 @@
for (const key in this.form) {
this.form[key] = res[key]
}
- if(this.form.fanganFile && this.form.fanganFile.fileurl){
- this.form.fileList1= [{url: this.form.fanganFile.fileurlFull, name:this.form.fanganFile.name}];
+ if (this.form.fanganFile && this.form.fanganFile.fileurl) {
+ this.form.fileList1 = [{ url: this.form.fanganFile.fileurlFull, name: this.form.fanganFile.name }]
}
console.log(this.form.fileList1)
this.form.worktypeIdList = res.worktypeList.map(item => {
--
Gitblit v1.9.3