调整工程目录
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<span class="icon">*</span>
|
||||
<span> 审批意见:</span>
|
||||
</span>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="opinion" class="textarea" clearable="false"> </textarea>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="opinion" class="textarea"
|
||||
clearable="false"> </textarea>
|
||||
<div class="clearn" @click="clearn">清空内容</div>
|
||||
<div class="msg_length">
|
||||
<span class="font">{{ opinion.length }}</span>
|
||||
@@ -26,7 +27,8 @@
|
||||
<span class="icon" v-if="item.mustFill == 1">*</span>
|
||||
<span> {{ item.fieldName }}:</span>
|
||||
</span>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="item.fieldValue" class="textarea" clearable="false"> </textarea>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="item.fieldValue" class="textarea"
|
||||
clearable="false"> </textarea>
|
||||
<div class="clearn" @click="clearn">清空内容</div>
|
||||
<div class="msg_length">
|
||||
<span class="font">{{ item.fieldValue.length }}</span>
|
||||
@@ -42,7 +44,8 @@
|
||||
<span> {{ item.fieldName }}:</span>
|
||||
</div>
|
||||
<div class="left">
|
||||
<u-input type="text" @click="timeSelect(index)" class="right" placeholder="请选择" disabled v-model="item.fieldValue"></u-input>
|
||||
<u-input type="text" @click="timeSelect(index)" class="right" placeholder="请选择" disabled
|
||||
v-model="item.fieldValue"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,7 +59,8 @@
|
||||
<!-- 单个文件最大10MB.zip、.rar、.doc、.docx、.xls、.xlsx、.ppt、.pptx、.pdf、.txt、.jpg、.png格式 -->
|
||||
<div class="upload">
|
||||
<div class="info">
|
||||
<ai-uploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file" placeholder="添加文件" preview />
|
||||
<ai-uploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file"
|
||||
placeholder="添加文件" preview/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,7 +71,7 @@
|
||||
<text class="img_text">(最多9张)</text>
|
||||
<div class="upload">
|
||||
<div class="info">
|
||||
<ai-uploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview />
|
||||
<ai-uploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -76,8 +80,8 @@
|
||||
<div class="btn" @click="btn">确定</div>
|
||||
|
||||
<!-- 日期选择器 -->
|
||||
<u-calendar v-model="show" :mode="mode" @change="calendar" />
|
||||
<back />
|
||||
<u-calendar v-model="show" :mode="mode" @change="calendar"/>
|
||||
<back/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -119,9 +123,11 @@ export default {
|
||||
// 监听
|
||||
watch: {},
|
||||
// 实例创建后
|
||||
onShow() {},
|
||||
onShow() {
|
||||
},
|
||||
// 实例渲染后
|
||||
mounted() {},
|
||||
mounted() {
|
||||
},
|
||||
// 方法
|
||||
methods: {
|
||||
timeSelect(index) {
|
||||
@@ -139,23 +145,23 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
this.$http
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${this.type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.fieldInfos.map((item) => {
|
||||
if (item.fieldDataType == 1) {
|
||||
item.fieldValue = ''
|
||||
}
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${this.type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.fieldInfos.map((item) => {
|
||||
if (item.fieldDataType == 1) {
|
||||
item.fieldValue = ''
|
||||
}
|
||||
|
||||
if (item.fieldType == 3) {
|
||||
this.list.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
// this.$u.toast(err)
|
||||
})
|
||||
if (item.fieldType == 3) {
|
||||
this.list.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
// this.$u.toast(err)
|
||||
})
|
||||
},
|
||||
// 提交确定
|
||||
btn() {
|
||||
@@ -169,15 +175,15 @@ export default {
|
||||
// var isConfirm = true
|
||||
|
||||
if (
|
||||
this.list.some((item) => {
|
||||
if (item.mustFill == 1 && !item.fieldValue) {
|
||||
uni.showToast({
|
||||
title: item.fieldName + '为必填',
|
||||
icon: 'none',
|
||||
})
|
||||
return true
|
||||
}
|
||||
})
|
||||
this.list.some((item) => {
|
||||
if (item.mustFill == 1 && !item.fieldValue) {
|
||||
uni.showToast({
|
||||
title: item.fieldName + '为必填',
|
||||
icon: 'none',
|
||||
})
|
||||
return true
|
||||
}
|
||||
})
|
||||
)
|
||||
return
|
||||
|
||||
@@ -208,27 +214,27 @@ export default {
|
||||
})
|
||||
|
||||
this.$http
|
||||
.post(`/app/approv-alapply-info/approval`, params)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=1`,
|
||||
})
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
.post(`/app/approv-alapply-info/approval`, params)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=0`,
|
||||
url: `/pages/workonline/truemsg?flag=1`,
|
||||
})
|
||||
// this.$u.toast(err)
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
})
|
||||
// this.$u.toast(err || '网络异常')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=0`,
|
||||
})
|
||||
// this.$u.toast(err)
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
})
|
||||
// this.$u.toast(err || '网络异常')
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
data(e) {
|
||||
this.files.push(e)
|
||||
|
||||
Reference in New Issue
Block a user