修改svg-icon

dev_xd
haha 2025-08-03 18:18:48 +08:00
parent 5c921bed95
commit 4e127bf4cf
5 changed files with 222 additions and 125 deletions

View File

@ -22,5 +22,8 @@
"minapp-vscode.format.printWidth": 100,
"minapp-vscode.format.useTabs": false,
"minapp-vscode.disableCustomComponentAutocompletion": false,
"minapp-vscode.disableAutoWxssCompelte": false
"minapp-vscode.disableAutoWxssCompelte": false,
"less.compile": {
"outExt": ".wxss"
}
}

View File

@ -1,40 +1,36 @@
// pageage/project_checked/add/index.js
import config from '../../../config'
import fmt from '../../../utils/date.js'
import {
getToken,
getUserInfo
} from '../../../utils/auth'
import config from "../../../config";
import fmt from "../../../utils/date.js";
import { getToken, getUserInfo } from "../../../utils/auth";
import {
projectCheckedList,
projectCheckedListCount
} from '../../../api/project'
projectCheckedListCount,
} from "../../../api/project";
import {
findPlanDatas,
findRecursionPlan,
findPreviousSchedule,
submitPlanSchedule
} from '../../../api/project'
submitPlanSchedule,
} from "../../../api/project";
const app = getApp()
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
maxDate: new Date(2088, 1, 1).getTime(),
minDate: new Date().getTime() + (3600 * 48 * 1000),
minDate: new Date().getTime() + 3600 * 48 * 1000,
form: {
taskName: '',
taskName: "",
task: null,
intro: '',//验收描述
intro: "", //验收描述
imageUrls: [],
groupDeptUser: '',//班组长
checkingDate: '',//验收时间
technicianUser: '',//技术专员
superviseUser: '',//监理专员
groupDeptUser: "", //班组长
checkingDate: "", //验收时间
technicianUser: "", //技术专员
superviseUser: "", //监理专员
},
projectUserInfo: {},
projectId: "",
@ -55,8 +51,8 @@ Page({
onLoad(options) {
if (!getToken()) {
wx.redirectTo({
url: '../../../pages/login/login',
})
url: "../../../pages/login/login",
});
}
const proUserInfo = getUserInfo();
this.setData({
@ -72,11 +68,11 @@ Page({
listData: [],
total: 0,
form: {
taskName: '',
taskName: "",
task: null,
intro: '',
checkingDate: fmt(new Date()).format("YYYY-MM-DD HH:mm:ss"),
}
intro: "",
checkingDate: fmt(new Date()).format("YYYY-MM-DD"),
},
});
this.initPlanDatas();
},
@ -96,22 +92,22 @@ Page({
findPlanDatas(app.globalData.useProjectId).then((res) => {
let treeDatas = this.buildTree(res.data, 1, "");
this.setData({
planOptions: treeDatas
})
planOptions: treeDatas,
});
});
},
closePicker() {
this.setData({
picker: false
})
picker: false,
});
},
/**
* 打开选择窗
*/
openPicker() {
this.setData({
picker: true
})
picker: true,
});
},
/**
* 构建树结构
@ -134,65 +130,51 @@ Page({
this.setData({
form: {
task: item,
taskName: item.fullPath
taskName: item.fullPath,
},
picker: false
})
picker: false,
});
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
onShareAppMessage() {},
returnToPage: function () {
/*关闭当前页面,跳转到其它页面。*/
wx.redirectTo({
url: '../list/index',
})
url: "../list/index",
});
},
onScrollToLower() {
let nal = Math.ceil(this.data.total / this.data.pageSize);
@ -205,5 +187,4 @@ Page({
console.log("已经到底了,没有数据可加载!!!");
}
},
})
});

View File

@ -1,6 +1,6 @@
<wxs module="format" src="/utils/format.wxs"></wxs>
<view class="project-checked-add">
<view class="header_title ">
<view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="4">
@ -14,18 +14,32 @@
</van-row>
</view>
</view>
<scroll-view class="max_content_scroll" type="list" scroll-y bindscrolltolower="onScrollToLower"
style="padding:30rpx">
<project-select init="{{initData}}" bindchange="onProjectSelect" id="projectSel"></project-select>
<scroll-view
class="max_content_scroll"
type="list"
scroll-y
bindscrolltolower="onScrollToLower"
style="padding: 30rpx"
>
<project-select
init="{{ initData }}"
bindchange="onProjectSelect"
id="projectSel"
></project-select>
<view class="mt40">分包单位</view>
<view class="add-info">{{projectUserInfo.subDeptName}}</view>
<view class="add-info">{{ projectUserInfo.subDeptName }}</view>
<view class="mt40 markers inspect_info_title">工程部位</view>
<view class="inspect_info_content">
<textarea class="add_textarea" placeholder="请填写选择工程计划" placeholder-style="color:#6777aa;" bindtap="openPicker"
disabled model:value="{{form.taskName}}" />
<textarea
class="add_textarea"
placeholder="请填写选择工程计划"
placeholder-style="color:#6777aa;"
bindtap="openPicker"
disabled
model:value="{{ form.taskName }}"
/>
<van-popup show="{{ picker }}" bind:close="closePicker" position="bottom">
<view class="rectifier_max">
<view class="rectifier_title">
@ -36,8 +50,13 @@
</view>
<view class="rectifier_list">
<view class="rectifier_list_height">
<select-group-plan dataTree="{{planOptions}}" isOpenAll="{{fales}}" showCheckBox="{{fales}}"
multiple="{{false}}" bind:clickItem="handleClick" />
<select-group-plan
dataTree="{{ planOptions }}"
isOpenAll="{{ fales }}"
showCheckBox="{{ fales }}"
multiple="{{ false }}"
bind:clickItem="handleClick"
/>
</view>
</view>
</view>
@ -47,8 +66,14 @@
<view class="mt40 markers inspect_info_title">技术专员</view>
<view class="inspect_info_content">
<textarea class="add_textarea" placeholder="请填写选择工程计划" placeholder-style="color:#6777aa;" bindtap="openPicker"
disabled model:value="{{form.taskName}}" />
<textarea
class="add_textarea"
placeholder="请填写选择工程计划"
placeholder-style="color:#6777aa;"
bindtap="openPicker"
disabled
model:value="{{ form.taskName }}"
/>
<van-popup show="{{ picker }}" bind:close="closePicker" position="bottom">
<view class="rectifier_max">
<view class="rectifier_title">
@ -59,20 +84,30 @@
</view>
<view class="rectifier_list">
<view class="rectifier_list_height">
<select-group-plan dataTree="{{planOptions}}" isOpenAll="{{fales}}" showCheckBox="{{fales}}"
multiple="{{false}}" bind:clickItem="handleClick" />
<select-group-plan
dataTree="{{ planOptions }}"
isOpenAll="{{ fales }}"
showCheckBox="{{ fales }}"
multiple="{{ false }}"
bind:clickItem="handleClick"
/>
</view>
</view>
</view>
</van-popup>
</view>
<view class="mt40 markers inspect_info_title">监理员</view>
<view class="inspect_info_content">
<textarea class="add_textarea" placeholder="请填写选择工程计划" placeholder-style="color:#6777aa;" bindtap="openPicker"
disabled model:value="{{form.taskName}}" />
<textarea
class="add_textarea"
placeholder="请填写选择工程计划"
placeholder-style="color:#6777aa;"
bindtap="openPicker"
disabled
model:value="{{ form.taskName }}"
/>
<van-popup show="{{ picker }}" bind:close="closePicker" position="bottom">
<view class="rectifier_max">
<view class="rectifier_title">
@ -83,8 +118,13 @@
</view>
<view class="rectifier_list">
<view class="rectifier_list_height">
<select-group-plan dataTree="{{planOptions}}" isOpenAll="{{fales}}" showCheckBox="{{fales}}"
multiple="{{false}}" bind:clickItem="handleClick" />
<select-group-plan
dataTree="{{ planOptions }}"
isOpenAll="{{ fales }}"
showCheckBox="{{ fales }}"
multiple="{{ false }}"
bind:clickItem="handleClick"
/>
</view>
</view>
</view>
@ -94,31 +134,41 @@
<view class="mt40 markers inspect_info_title">结果描述</view>
<view class="inspect_info_content">
<textarea class="add_textarea" placeholder="请填写结果描述" placeholder-style="color:#6777aa;"
model:value="{{form.intro}}" />
<textarea
class="add_textarea"
placeholder="请填写结果描述"
placeholder-style="color:#6777aa;"
model:value="{{ form.intro }}"
/>
</view>
<view class="mt40 markers inspect_info_title">验收时间</view>
<view class="inspect_info_content">
<voucher-datetime counts="5" placeholder="请选择完成时间" minDate="{{minDate}}" maxDate="{{maxDate}}"
model:value="{{form.checkingDate}}" currentDate="{{form.checkingDate}}"></voucher-datetime>
<voucher-date
counts="5"
placeholder="请选择完成时间"
minDate="{{ minDate }}"
maxDate="{{ maxDate }}"
model:value="{{ form.checkingDate }}"
currentDate="{{ form.checkingDate }}"
></voucher-date>
</view>
<view class="mt40 markers inspect_info_title">验收照片</view>
<view class="inspect_info_content">
<view class="inspect_info_content" style="margin-left: 10px;">
<view class="inspect_info_content" style="margin-left: 10px">
<file-uploader bindimages="onImagesArr"></file-uploader>
</view>
</view>
<view class="problem_submit_to">
<view class="problem_submit_to_btn" bindtap="returnToPage">取消</view>
<view class="problem_submit_to_btn problem_submit_to_save" bindtap="submitSave">确认</view>
<view
class="problem_submit_to_btn problem_submit_to_save"
bindtap="submitSave"
>确认</view
>
</view>
</scroll-view>
</view>

View File

@ -12,22 +12,57 @@
</van-row>
</view>
</view>
<scroll-view class="max_content_scroll" type="list" scroll-y bindscrolltolower="onScrollToLower">
<project-select init="{{initData}}" bindchange="onProjectSelect" id="projectSel"></project-select>
<view class="modify_video_nav" style="margin-top: 5rpx;">
<view class="{{activeState=='qb'?'active':''}}" bindtap="trainJump" data-index="1"><text>全部({{qbCount}}</text></view>
<view class="{{activeState=='jxz'?'active':''}}" bindtap="trainJump" data-index="2"><text>进行中({{jxzCount}}</text></view>
<view class="{{activeState=='ywc'?'active':''}}" bindtap="trainJump" data-index="3"><text>已完成({{ywcCount}}</text></view>
<scroll-view
class="max_content_scroll"
type="list"
scroll-y
bindscrolltolower="onScrollToLower"
>
<project-select
init="{{ initData }}"
bindchange="onProjectSelect"
id="projectSel"
></project-select>
<view class="modify_video_nav" style="margin-top: 5rpx">
<view
class="{{ activeState == 'qb' ? 'active' : '' }}"
bindtap="trainJump"
data-index="1"
><text>全部({{ qbCount }}</text></view
>
<view
class="{{ activeState == 'jxz' ? 'active' : '' }}"
bindtap="trainJump"
data-index="2"
><text>进行中({{ jxzCount }}</text></view
>
<view
class="{{ activeState == 'ywc' ? 'active' : '' }}"
bindtap="trainJump"
data-index="3"
><text>已完成({{ ywcCount }}</text></view
>
</view>
<view class="inspect_max_scroll">
<!--专项检查样式zxjc-->
<view class="inspect_for_scroll" wx:if="{{ listData.length>0 }}" wx:for="{{listData}}" wx:key="index" data-set="{{item}}" bindtap="getInfo">
<view
class="inspect_for_scroll"
wx:if="{{ listData.length > 0 }}"
wx:for="{{ listData }}"
wx:key="index"
data-set="{{ item }}"
bindtap="getInfo"
>
<view class="inspect_for_bgd">
<view class="inspect_list_title">
<view class="inspect_list_title_label inspect_list_title_width">
<view class="inspect_list_title_number">{{index < 10 ? '0' + (index+1) : index+1}}</view>
<view class="module_title module_title_flex inspect_list_title_text_2">
{{item.createTime}}
<view class="inspect_list_title_number">{{
index < 10 ? "0" + (index + 1) : index + 1
}}</view>
<view
class="module_title module_title_flex inspect_list_title_text_2"
>
{{ item.createTime }}
</view>
<!-- <text class="timeline_for_state_1">常规验收</text> -->
</view>
@ -35,34 +70,60 @@
<view class="inspect_list_info">
<view class="inspect_list_info_details">
<view class="inspect_list_info_img">
<view wx:if="{{item.approveStatus==1}}" class="code_label code_label_yellow">待审批</view>
<view wx:if="{{item.approveStatus==3}}" class="code_label code_label_red">已驳回</view>
<view wx:if="{{item.approveStatus==4}}" class="code_label code_label_green">已完成</view>
<van-image width="120rpx" height="120rpx" fit="cover" src="{{imgBaseUrl+item.mainImage+'.min.jpg'}}" />
<view
wx:if="{{ item.approveStatus == 1 }}"
class="code_label code_label_yellow"
>待审批</view
>
<view
wx:if="{{ item.approveStatus == 3 }}"
class="code_label code_label_red"
>已驳回</view
>
<view
wx:if="{{ item.approveStatus == 4 }}"
class="code_label code_label_green"
>已完成</view
>
<van-image
width="120rpx"
height="120rpx"
fit="cover"
src="{{ imgBaseUrl + item.mainImage + '.min.jpg' }}"
/>
</view>
<view class="inspect_list_info_data">
<view class="inspect_list_info_data_prop color_blue">工序部位:<text>{{item.workingPosition}}</text></view>
<view class="inspect_list_info_data_prop">技术专员:<text>{{item.technicianUserName}}</text></view>
<view class="inspect_list_info_data_prop">监理专员:<text>{{item.superviseUserName}}</text></view>
<view class="inspect_list_info_data_prop">验收时间:<text>{{item.recheckSendUser}}</text></view>
<view class="inspect_list_info_data_prop color_blue"
>工序部位:<text>{{ item.workingPosition }}</text></view
>
<view class="inspect_list_info_data_prop"
>技术专员:<text>{{ item.technicianUserName }}</text></view
>
<view class="inspect_list_info_data_prop"
>监理专员:<text>{{ item.superviseUserName }}</text></view
>
<view class="inspect_list_info_data_prop"
>验收时间:<text>{{ item.recheckSendUser }}</text></view
>
</view>
</view>
<view class="inspect_list_info_position">
验收描述:<text class="color_purple">{{item.intro}}</text>
验收描述:<text class="color_purple">{{ item.intro }}</text>
</view>
</view>
</view>
</view>
<view wx:if="{{listData.length==0}}">
<view style="padding-top: 70px;text-align: -webkit-center;">
<image src="https://szgcwx.jhncidg.com/staticFiles/nodata.png" style="width: 130px;height: 105px;"></image>
<view style="color: #a5abbb;">暂无数据</view>
<view wx:if="{{ listData.length == 0 }}">
<view style="padding-top: 70px; text-align: -webkit-center">
<image
src="https://szgcwx.jhncidg.com/staticFiles/nodata.png"
style="width: 130px; height: 105px"
></image>
<view style="color: #a5abbb">暂无数据</view>
</view>
</view>
<svg-icon src="/images/svg/add.svg" colors="{{['#ff0000','#fff','#fff']}}" />
<svg-icon src="add2" color="green" size="64" />
<view wx:if="{{isGroup}}" class="inspect_add_to" bindtap="skipAdd">
<view style="padding-top: 22rpx;">
<view wx:if="{{ isGroup }}" class="inspect_add_to" bindtap="skipAdd">
<view style="padding-top: 22rpx">
<image src="/images/new_add.png"></image>
<view>新增</view>
</view>

View File

@ -19,6 +19,8 @@
"disablePlugins": [],
"outputPath": ""
},
"ignoreDevUnusedFiles": false,
"ignoreUploadUnusedFiles": false,
"condition": false,
"compileWorklet": false,
"uglifyFileName": false,