master
lion 4 months ago
parent 40ed5dcbc8
commit ff8c69b070

@ -72,6 +72,9 @@
<view class="task-info">
<text class="task-name">物资名称</text>
</view>
<view class="task-info" style="flex-direction: row; align-items: center; gap: 8rpx;">
<text class="task-time">顺序号</text>
</view>
<view class="task-info" style="flex-direction: row; align-items: center; gap: 8rpx;">
<text class="task-time">库存</text>
</view>
@ -84,6 +87,9 @@
<view class="task-info">
<text class="task-name">{{item.zichanmingcheng}}</text>
</view>
<view class="task-info" style="flex-direction: row; align-items: center; gap: 8rpx;">
<text class="task-time">{{item.shunxuhao}}</text>
</view>
<view class="task-info" style="flex-direction: row; align-items: center; gap: 8rpx;">
<text class="task-time">{{item.total_num}}</text>
</view>

@ -58,8 +58,11 @@
<text class="material-list-title">盘点物资列表</text>
<text class="material-count"> {{materialTotal}} </text>
</view>
<!-- 表头 -->
<view class="material-search-bar">
<input type="text" placeholder="请输入物资名称" v-model="materialKeyword" />
<button size="mini" type="primary" @click="searchMaterials"></button>
</view>
<view class="material-list">
<view class="material-item" style="font-weight:600;">
<view class="material-info material-name-col">
@ -122,10 +125,11 @@
planInfo: {}, //
materialList: [], //
materialPage: 1, //
materialPageSize: 10, //
materialPageSize: 100, //
materialTotal: 0, //
materialLoading: false, //
materialHasMore: true //
materialHasMore: true,
materialKeyword:'' //
}
},
@ -154,6 +158,11 @@
},
methods: {
//
searchMaterials() {
this.getMaterialList(true);
},
//
async getMaterialList(isRefresh = false) {
if (this.materialLoading || !this.planId) return;
@ -170,9 +179,15 @@
const params = {
page: this.materialPage,
page_size: this.materialPageSize,
sort_type: 'DESC',
sort_name: 'status',
keyword:this.materialKeyword,
'filter[0][key]': 'material_infos_plan_id',
'filter[0][op]': 'eq',
'filter[0][value]': this.planId
'filter[0][value]': this.planId,
// 'filter[1][key]': 'status',
// 'filter[1][op]': 'eq',
// 'filter[1][value]': 0
};
const res = await getInventoryMaterialList(params);
@ -302,7 +317,11 @@
box-sizing: border-box;
width: 100%;
}
.material-search-bar{
display: flex;
align-items: center;
margin-bottom:20rpx;
}
/* 计划信息卡片样式 */
.plan-info-card {
background: #fff;

File diff suppressed because one or more lines are too long

@ -0,0 +1,19 @@
{
"name": "HHWUHFController",
"id": "HL-HHWUHFController",
"version": "1.9",
"description": "调用超高频的原生插件",
"_dp_type":"nativeplugin",
"_dp_nativeplugin":{
"android": {
"plugins": [
{
"type": "module",
"name": "HL-HHWUHFController",
"class": "com.hhw.hl.uhf.HHWUHFController"
}
],
"integrateType": "aar"
}
}
}

@ -1 +1 @@
.plan-detail-container{height:100vh;background:#f5f5f5;padding:.625rem;box-sizing:border-box;width:100%}.plan-info-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem;margin-bottom:.75rem}.plan-info-header{margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.plan-info-title{font-size:1rem;color:#222;font-weight:700}.plan-info-content{display:flex;flex-direction:column;gap:.625rem}.info-row{display:flex;justify-content:space-between;gap:.625rem}.info-item{flex:1;display:flex;flex-direction:column;gap:.25rem}.info-label{font-size:.6875rem;color:#999;font-weight:500}.info-value{font-size:.8125rem;color:#333;font-weight:600}.type-text{color:#409eff}.count-text{color:#52c41a}.status-row{display:flex;justify-content:center;margin-top:.5rem}.status-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.status-label{font-size:.6875rem;color:#999;font-weight:500}.status-badge{padding:.375rem .75rem;border-radius:.75rem;font-size:.75rem;font-weight:600}.status-badge.status-0{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#f57c00;border:1px solid #ffcc80}.status-badge.status-1{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1976d2;border:1px solid #90caf9}.status-badge.status-2{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#388e3c;border:1px solid #a5d6a7}.material-list-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem .5625rem;flex:1;width:100%;box-sizing:border-box;overflow:hidden}.material-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5625rem}.material-list-title{font-size:.875rem;color:#222;font-weight:700}.material-count{font-size:.75rem;color:#409eff;font-weight:600}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:9.375rem;color:#999}.empty-text{font-size:.875rem;margin-bottom:.3125rem}.empty-desc{font-size:.6875rem}.material-list{display:flex;flex-direction:column;gap:.4375rem}.material-item{display:flex;justify-content:space-between;align-items:center;padding:.4375rem 0;border-bottom:1px solid #f0f0f0;width:100%;box-sizing:border-box}.material-item:last-child{border-bottom:none}.material-info{display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.material-name-col{flex:1;min-width:0;max-width:6.25rem}.material-model-col{width:5.625rem;min-width:0}.material-spec-col{width:3.75rem;min-width:0}.material-status-col{width:3.125rem;align-items:center}.material-action-col{width:3.125rem;display:flex;justify-content:flex-end;align-items:center}.material-name{font-size:.75rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-time{font-size:.625rem;color:#999;margin-top:.0625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-status{font-size:.5625rem;padding:.125rem .3125rem;border-radius:.5rem;white-space:nowrap}.material-status.status-0{background-color:#fff7e6;color:#fa8c16}.material-status.status-1{background-color:#e8f5e9;color:#388e3c}.completed-text{color:#388e3c;font-size:.625rem;font-weight:500}.inventory-action-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:500;box-shadow:0 2px 8px rgba(64,158,255,.3);transition:all .3s ease;display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:2.5rem}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 1px 4px rgba(64,158,255,.4);opacity:.9}.inventory-btn-text{color:#fff;font-size:.6875rem;font-weight:500}.load-more{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.9375rem .625rem;font-size:.75rem;color:#999}.loading-spinner{width:1rem;height:1rem;border:.09375rem solid #f0f0f0;border-top:.09375rem solid #409eff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{color:#409eff;font-weight:500}.no-more-text{color:#ccc;font-size:.6875rem}
.plan-detail-container{height:100vh;background:#f5f5f5;padding:.625rem;box-sizing:border-box;width:100%}.material-search-bar{display:flex;align-items:center;margin-bottom:.625rem}.plan-info-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem;margin-bottom:.75rem}.plan-info-header{margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.plan-info-title{font-size:1rem;color:#222;font-weight:700}.plan-info-content{display:flex;flex-direction:column;gap:.625rem}.info-row{display:flex;justify-content:space-between;gap:.625rem}.info-item{flex:1;display:flex;flex-direction:column;gap:.25rem}.info-label{font-size:.6875rem;color:#999;font-weight:500}.info-value{font-size:.8125rem;color:#333;font-weight:600}.type-text{color:#409eff}.count-text{color:#52c41a}.status-row{display:flex;justify-content:center;margin-top:.5rem}.status-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.status-label{font-size:.6875rem;color:#999;font-weight:500}.status-badge{padding:.375rem .75rem;border-radius:.75rem;font-size:.75rem;font-weight:600}.status-badge.status-0{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#f57c00;border:1px solid #ffcc80}.status-badge.status-1{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1976d2;border:1px solid #90caf9}.status-badge.status-2{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#388e3c;border:1px solid #a5d6a7}.material-list-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem .5625rem;flex:1;width:100%;box-sizing:border-box;overflow:hidden}.material-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5625rem}.material-list-title{font-size:.875rem;color:#222;font-weight:700}.material-count{font-size:.75rem;color:#409eff;font-weight:600}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:9.375rem;color:#999}.empty-text{font-size:.875rem;margin-bottom:.3125rem}.empty-desc{font-size:.6875rem}.material-list{display:flex;flex-direction:column;gap:.4375rem}.material-item{display:flex;justify-content:space-between;align-items:center;padding:.4375rem 0;border-bottom:1px solid #f0f0f0;width:100%;box-sizing:border-box}.material-item:last-child{border-bottom:none}.material-info{display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.material-name-col{flex:1;min-width:0;max-width:6.25rem}.material-model-col{width:5.625rem;min-width:0}.material-spec-col{width:3.75rem;min-width:0}.material-status-col{width:3.125rem;align-items:center}.material-action-col{width:3.125rem;display:flex;justify-content:flex-end;align-items:center}.material-name{font-size:.75rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-time{font-size:.625rem;color:#999;margin-top:.0625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-status{font-size:.5625rem;padding:.125rem .3125rem;border-radius:.5rem;white-space:nowrap}.material-status.status-0{background-color:#fff7e6;color:#fa8c16}.material-status.status-1{background-color:#e8f5e9;color:#388e3c}.completed-text{color:#388e3c;font-size:.625rem;font-weight:500}.inventory-action-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:500;box-shadow:0 2px 8px rgba(64,158,255,.3);transition:all .3s ease;display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:2.5rem}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 1px 4px rgba(64,158,255,.4);opacity:.9}.inventory-btn-text{color:#fff;font-size:.6875rem;font-weight:500}.load-more{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.9375rem .625rem;font-size:.75rem;color:#999}.loading-spinner{width:1rem;height:1rem;border:.09375rem solid #f0f0f0;border-top:.09375rem solid #409eff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{color:#409eff;font-weight:500}.no-more-text{color:#ccc;font-size:.6875rem}

File diff suppressed because one or more lines are too long

@ -1 +1 @@
.plan-detail-container{height:100vh;background:#f5f5f5;padding:.625rem;box-sizing:border-box;width:100%}.plan-info-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem;margin-bottom:.75rem}.plan-info-header{margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.plan-info-title{font-size:1rem;color:#222;font-weight:700}.plan-info-content{display:flex;flex-direction:column;gap:.625rem}.info-row{display:flex;justify-content:space-between;gap:.625rem}.info-item{flex:1;display:flex;flex-direction:column;gap:.25rem}.info-label{font-size:.6875rem;color:#999;font-weight:500}.info-value{font-size:.8125rem;color:#333;font-weight:600}.type-text{color:#409eff}.count-text{color:#52c41a}.status-row{display:flex;justify-content:center;margin-top:.5rem}.status-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.status-label{font-size:.6875rem;color:#999;font-weight:500}.status-badge{padding:.375rem .75rem;border-radius:.75rem;font-size:.75rem;font-weight:600}.status-badge.status-0{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#f57c00;border:1px solid #ffcc80}.status-badge.status-1{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1976d2;border:1px solid #90caf9}.status-badge.status-2{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#388e3c;border:1px solid #a5d6a7}.material-list-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem .5625rem;flex:1;width:100%;box-sizing:border-box;overflow:hidden}.material-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5625rem}.material-list-title{font-size:.875rem;color:#222;font-weight:700}.material-count{font-size:.75rem;color:#409eff;font-weight:600}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:9.375rem;color:#999}.empty-text{font-size:.875rem;margin-bottom:.3125rem}.empty-desc{font-size:.6875rem}.material-list{display:flex;flex-direction:column;gap:.4375rem}.material-item{display:flex;justify-content:space-between;align-items:center;padding:.4375rem 0;border-bottom:1px solid #f0f0f0;width:100%;box-sizing:border-box}.material-item:last-child{border-bottom:none}.material-info{display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.material-name-col{flex:1;min-width:0;max-width:6.25rem}.material-model-col{width:5.625rem;min-width:0}.material-spec-col{width:3.75rem;min-width:0}.material-status-col{width:3.125rem;align-items:center}.material-action-col{width:3.125rem;display:flex;justify-content:flex-end;align-items:center}.material-name{font-size:.75rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-time{font-size:.625rem;color:#999;margin-top:.0625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-status{font-size:.5625rem;padding:.125rem .3125rem;border-radius:.5rem;white-space:nowrap}.material-status.status-0{background-color:#fff7e6;color:#fa8c16}.material-status.status-1{background-color:#e8f5e9;color:#388e3c}.completed-text{color:#388e3c;font-size:.625rem;font-weight:500}.inventory-action-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:500;box-shadow:0 2px 8px rgba(64,158,255,.3);transition:all .3s ease;display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:2.5rem}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 1px 4px rgba(64,158,255,.4);opacity:.9}.inventory-btn-text{color:#fff;font-size:.6875rem;font-weight:500}.load-more{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.9375rem .625rem;font-size:.75rem;color:#999}.loading-spinner{width:1rem;height:1rem;border:.09375rem solid #f0f0f0;border-top:.09375rem solid #409eff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{color:#409eff;font-weight:500}.no-more-text{color:#ccc;font-size:.6875rem}
.plan-detail-container{height:100vh;background:#f5f5f5;padding:.625rem;box-sizing:border-box;width:100%}.material-search-bar{display:flex;align-items:center;margin-bottom:.625rem}.plan-info-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem;margin-bottom:.75rem}.plan-info-header{margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.plan-info-title{font-size:1rem;color:#222;font-weight:700}.plan-info-content{display:flex;flex-direction:column;gap:.625rem}.info-row{display:flex;justify-content:space-between;gap:.625rem}.info-item{flex:1;display:flex;flex-direction:column;gap:.25rem}.info-label{font-size:.6875rem;color:#999;font-weight:500}.info-value{font-size:.8125rem;color:#333;font-weight:600}.type-text{color:#409eff}.count-text{color:#52c41a}.status-row{display:flex;justify-content:center;margin-top:.5rem}.status-item{display:flex;flex-direction:column;align-items:center;gap:.375rem}.status-label{font-size:.6875rem;color:#999;font-weight:500}.status-badge{padding:.375rem .75rem;border-radius:.75rem;font-size:.75rem;font-weight:600}.status-badge.status-0{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#f57c00;border:1px solid #ffcc80}.status-badge.status-1{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1976d2;border:1px solid #90caf9}.status-badge.status-2{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#388e3c;border:1px solid #a5d6a7}.material-list-card{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem .5625rem;flex:1;width:100%;box-sizing:border-box;overflow:hidden}.material-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5625rem}.material-list-title{font-size:.875rem;color:#222;font-weight:700}.material-count{font-size:.75rem;color:#409eff;font-weight:600}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:9.375rem;color:#999}.empty-text{font-size:.875rem;margin-bottom:.3125rem}.empty-desc{font-size:.6875rem}.material-list{display:flex;flex-direction:column;gap:.4375rem}.material-item{display:flex;justify-content:space-between;align-items:center;padding:.4375rem 0;border-bottom:1px solid #f0f0f0;width:100%;box-sizing:border-box}.material-item:last-child{border-bottom:none}.material-info{display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.material-name-col{flex:1;min-width:0;max-width:6.25rem}.material-model-col{width:5.625rem;min-width:0}.material-spec-col{width:3.75rem;min-width:0}.material-status-col{width:3.125rem;align-items:center}.material-action-col{width:3.125rem;display:flex;justify-content:flex-end;align-items:center}.material-name{font-size:.75rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-time{font-size:.625rem;color:#999;margin-top:.0625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-status{font-size:.5625rem;padding:.125rem .3125rem;border-radius:.5rem;white-space:nowrap}.material-status.status-0{background-color:#fff7e6;color:#fa8c16}.material-status.status-1{background-color:#e8f5e9;color:#388e3c}.completed-text{color:#388e3c;font-size:.625rem;font-weight:500}.inventory-action-btn{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:500;box-shadow:0 2px 8px rgba(64,158,255,.3);transition:all .3s ease;display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:2.5rem}.inventory-action-btn:active{transform:scale(.95);box-shadow:0 1px 4px rgba(64,158,255,.4);opacity:.9}.inventory-btn-text{color:#fff;font-size:.6875rem;font-weight:500}.load-more{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.9375rem .625rem;font-size:.75rem;color:#999}.loading-spinner{width:1rem;height:1rem;border:.09375rem solid #f0f0f0;border-top:.09375rem solid #409eff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{color:#409eff;font-weight:500}.no-more-text{color:#ccc;font-size:.6875rem}

@ -1 +1 @@
import{E as n,G as a,H as e,J as t}from"./index-aGYdYpDa.js";function o(e,t){return new Promise(((o,s)=>{n({url:a+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:o,fail:s})}))}function s(){const t=e("token");return new Promise(((e,o)=>{n({url:a+"api/admin/auth/me",method:"POST",data:{token:t},success:e,fail:o})}))}function i(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/show",method:"GET",data:{id:t,token:o},success:e,fail:s})}))}function r(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function c(t){const o=e("token");return new Promise(((e,s)=>{console.log("confirm接口"),n({url:a+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...t,token:o},success:e,fail:s})}))}function u(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function m(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan-link/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function l(n){const o=e("token");return new Promise(((e,s)=>{t({url:a+"api/admin/upload-file",filePath:n,name:"file",formData:{token:o},success:n=>{try{const a=JSON.parse(n.data);e(a)}catch(a){s(a)}},fail:s})}))}export{r as a,s as b,i as c,m as d,u as g,o as l,c as s,l as u};
import{E as n,G as a,H as e,J as t}from"./index-AvyRkr7C.js";function o(e,t){return new Promise(((o,s)=>{n({url:a+"api/admin/auth/login",method:"POST",data:{username:e,password:t},success:o,fail:s})}))}function s(){const t=e("token");return new Promise(((e,o)=>{n({url:a+"api/admin/auth/me",method:"POST",data:{token:t},success:e,fail:o})}))}function i(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/show",method:"GET",data:{id:t,token:o},success:e,fail:s})}))}function r(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/inventory/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function c(t){const o=e("token");return new Promise(((e,s)=>{console.log("confirm接口"),n({url:a+"api/admin/material-infos-plan-link/confirm",method:"POST",data:{...t,token:o},success:e,fail:s})}))}function u(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function m(t){const o=e("token");return new Promise(((e,s)=>{n({url:a+"api/admin/material-infos-plan-link/index",method:"GET",data:{...t,token:o},success:e,fail:s})}))}function l(n){const o=e("token");return new Promise(((e,s)=>{t({url:a+"api/admin/upload-file",filePath:n,name:"file",formData:{token:o},success:n=>{try{const a=JSON.parse(n.data);e(a)}catch(a){s(a)}},fail:s})}))}export{r as a,s as b,i as c,m as d,u as g,o as l,c as s,l as u};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
import{s as a,b as e,h as s,y as l,z as o,c as t,w as n,m as d,o as r,d as c,e as i,p as u,I as m,l as p}from"./index-aGYdYpDa.js";import{l as f}from"./api.qV-fdkUH.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=_({data:()=>({username:"",password:""}),methods:{handleLogin(){this.username&&this.password?(e({title:"登录中...",mask:!0}),f(this.username,this.password).then((e=>{s(),console.log(e),e.data&&void 0!==e.data.errcode?a({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(console.log(e.data.access_token),e.data.access_token&&l("token",e.data.access_token),a({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{o({url:"/pages/index/index"})}),1500))})).catch((()=>{s(),a({title:"网络错误",icon:"none"})}))):a({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(a,e,s,l,o,f){const _=d,g=u,h=m,b=p;return r(),t(_,{class:"login-bg"},{default:n((()=>[c(_,{class:"login-card"},{default:n((()=>[c(_,{class:"login-title"},{default:n((()=>[i("欢迎登录")])),_:1}),c(_,{class:"login-subtitle"},{default:n((()=>[i("河道防汛物资管理系统")])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("用户名")])),_:1}),c(h,{class:"form-input",type:"text",modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=a=>o.username=a),placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("密码")])),_:1}),c(h,{class:"form-input",type:"password",modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=a=>o.password=a),placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),c(b,{class:"login-btn",onClick:f.handleLogin},{default:n((()=>[i("登 录")])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-973a11b9"]]);export{g as default};
import{s as a,b as e,h as s,y as l,z as o,c as t,w as n,m as d,o as r,d as c,e as i,p as u,I as m,l as p}from"./index-AvyRkr7C.js";import{l as f}from"./api.BGBfCZZa.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const g=_({data:()=>({username:"",password:""}),methods:{handleLogin(){this.username&&this.password?(e({title:"登录中...",mask:!0}),f(this.username,this.password).then((e=>{s(),console.log(e),e.data&&void 0!==e.data.errcode?a({title:e.data.errmsg||"登录失败",icon:"none"}):e.data&&(console.log(e.data.access_token),e.data.access_token&&l("token",e.data.access_token),a({title:"登录成功",icon:"success",duration:1500}),setTimeout((()=>{o({url:"/pages/index/index"})}),1500))})).catch((()=>{s(),a({title:"网络错误",icon:"none"})}))):a({title:"请输入用户名和密码",icon:"none"})}}},[["render",function(a,e,s,l,o,f){const _=d,g=u,h=m,b=p;return r(),t(_,{class:"login-bg"},{default:n((()=>[c(_,{class:"login-card"},{default:n((()=>[c(_,{class:"login-title"},{default:n((()=>[i("欢迎登录")])),_:1}),c(_,{class:"login-subtitle"},{default:n((()=>[i("河道防汛物资管理系统")])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("用户名")])),_:1}),c(h,{class:"form-input",type:"text",modelValue:o.username,"onUpdate:modelValue":e[0]||(e[0]=a=>o.username=a),placeholder:"请输入用户名"},null,8,["modelValue"])])),_:1}),c(_,{class:"form-group"},{default:n((()=>[c(g,{class:"form-label"},{default:n((()=>[i("密码")])),_:1}),c(h,{class:"form-input",type:"password",modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=a=>o.password=a),placeholder:"请输入密码"},null,8,["modelValue"])])),_:1}),c(b,{class:"login-btn",onClick:f.handleLogin},{default:n((()=>[i("登 录")])),_:1},8,["onClick"])])),_:1})])),_:1})}],["__scopeId","data-v-973a11b9"]]);export{g as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
import{s as a,v as s,r as e,c as t,w as l,m as o,o as n,d as c,e as r,t as u,x as f,p as i,l as d}from"./index-aGYdYpDa.js";import{b as m}from"./api.qV-fdkUH.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=_({data:()=>({userInfo:{}}),onShow(){m().then((s=>{s.data?(console.log("返回数据",s.data),this.userInfo=s.data):a({title:s.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{a({title:"网络错误",icon:"none"})}))},methods:{logout(){s("token"),e({url:"/pages/login/login"})}}},[["render",function(a,s,e,m,_,p){const g=f,v=o,I=i,b=d;return n(),t(v,{class:"profile-container"},{default:l((()=>[c(v,{class:"avatar-section"},{default:l((()=>[c(g,{class:"avatar",src:_.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])])),_:1}),c(v,{class:"info-section"},{default:l((()=>[c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("用户名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.username||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("姓名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.name||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("部门:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.department&&_.userInfo.department.name||"-"),1)])),_:1})])),_:1})])),_:1}),c(b,{class:"logout-btn",onClick:p.logout},{default:l((()=>[r("退出登录")])),_:1},8,["onClick"])])),_:1})}],["__scopeId","data-v-2ebc68cc"]]);export{p as default};
import{s as a,v as s,r as e,c as t,w as l,m as o,o as n,d as c,e as r,t as u,x as f,p as i,l as d}from"./index-AvyRkr7C.js";import{b as m}from"./api.BGBfCZZa.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";const p=_({data:()=>({userInfo:{}}),onShow(){m().then((s=>{s.data?(console.log("返回数据",s.data),this.userInfo=s.data):a({title:s.data.errmsg||"获取信息失败",icon:"none"})})).catch((()=>{a({title:"网络错误",icon:"none"})}))},methods:{logout(){s("token"),e({url:"/pages/login/login"})}}},[["render",function(a,s,e,m,_,p){const g=f,v=o,I=i,b=d;return n(),t(v,{class:"profile-container"},{default:l((()=>[c(v,{class:"avatar-section"},{default:l((()=>[c(g,{class:"avatar",src:_.userInfo.avatar||"/static/profile/avatar.png",mode:"aspectFill"},null,8,["src"])])),_:1}),c(v,{class:"info-section"},{default:l((()=>[c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("用户名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.username||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("姓名:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.name||"-"),1)])),_:1})])),_:1}),c(v,{class:"info-item"},{default:l((()=>[c(I,{class:"label"},{default:l((()=>[r("部门:")])),_:1}),c(I,{class:"value"},{default:l((()=>[r(u(_.userInfo.department&&_.userInfo.department.name||"-"),1)])),_:1})])),_:1})])),_:1}),c(b,{class:"logout-btn",onClick:p.logout},{default:l((()=>[r("退出登录")])),_:1},8,["onClick"])])),_:1})}],["__scopeId","data-v-2ebc68cc"]]);export{p as default};

@ -1 +1 @@
import{A as s,s as a,c as e,w as t,m as l,o as c,d as u,e as n,t as r,j as o,l as d,p as f}from"./index-aGYdYpDa.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=i({data:()=>({result:""}),methods:{doScan(){s({success:s=>{this.result=s.result},fail:()=>{a({title:"扫码失败",icon:"none"})}})}}},[["render",function(s,a,i,_,p,m){const b=l,h=d,j=f;return c(),e(b,{class:"scan-bg"},{default:t((()=>[u(b,{class:"scan-title"},{default:t((()=>[n("扫码盘点")])),_:1}),u(h,{class:"scan-btn",onClick:m.doScan},{default:t((()=>[n("点击开始扫码")])),_:1},8,["onClick"]),p.result?(c(),e(b,{key:0,class:"scan-result"},{default:t((()=>[u(j,{class:"result-label"},{default:t((()=>[n("扫码结果:")])),_:1}),u(j,{class:"result-value"},{default:t((()=>[n(r(p.result),1)])),_:1})])),_:1})):o("",!0)])),_:1})}],["__scopeId","data-v-237fd63b"]]);export{_ as default};
import{A as s,s as a,c as e,w as t,m as l,o as c,d as u,e as n,t as r,j as o,l as d,p as f}from"./index-AvyRkr7C.js";import{_ as i}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=i({data:()=>({result:""}),methods:{doScan(){s({success:s=>{this.result=s.result},fail:()=>{a({title:"扫码失败",icon:"none"})}})}}},[["render",function(s,a,i,_,p,m){const b=l,h=d,j=f;return c(),e(b,{class:"scan-bg"},{default:t((()=>[u(b,{class:"scan-title"},{default:t((()=>[n("扫码盘点")])),_:1}),u(h,{class:"scan-btn",onClick:m.doScan},{default:t((()=>[n("点击开始扫码")])),_:1},8,["onClick"]),p.result?(c(),e(b,{key:0,class:"scan-result"},{default:t((()=>[u(j,{class:"result-label"},{default:t((()=>[n("扫码结果:")])),_:1}),u(j,{class:"result-value"},{default:t((()=>[n(r(p.result),1)])),_:1})])),_:1})):o("",!0)])),_:1})}],["__scopeId","data-v-237fd63b"]]);export{_ as default};

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.plan-detail-container[data-v-432bede6]{height:100vh;background:#f5f5f5;padding:.625rem;box-sizing:border-box;width:100%}.plan-info-card[data-v-432bede6]{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem;margin-bottom:.75rem}.plan-info-header[data-v-432bede6]{margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.plan-info-title[data-v-432bede6]{font-size:1rem;color:#222;font-weight:700}.plan-info-content[data-v-432bede6]{display:flex;flex-direction:column;gap:.625rem}.info-row[data-v-432bede6]{display:flex;justify-content:space-between;gap:.625rem}.info-item[data-v-432bede6]{flex:1;display:flex;flex-direction:column;gap:.25rem}.info-label[data-v-432bede6]{font-size:.6875rem;color:#999;font-weight:500}.info-value[data-v-432bede6]{font-size:.8125rem;color:#333;font-weight:600}.type-text[data-v-432bede6]{color:#409eff}.count-text[data-v-432bede6]{color:#52c41a}.status-row[data-v-432bede6]{display:flex;justify-content:center;margin-top:.5rem}.status-item[data-v-432bede6]{display:flex;flex-direction:column;align-items:center;gap:.375rem}.status-label[data-v-432bede6]{font-size:.6875rem;color:#999;font-weight:500}.status-badge[data-v-432bede6]{padding:.375rem .75rem;border-radius:.75rem;font-size:.75rem;font-weight:600}.status-badge.status-0[data-v-432bede6]{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#f57c00;border:1px solid #ffcc80}.status-badge.status-1[data-v-432bede6]{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1976d2;border:1px solid #90caf9}.status-badge.status-2[data-v-432bede6]{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#388e3c;border:1px solid #a5d6a7}.material-list-card[data-v-432bede6]{background:#fff;border-radius:.6875rem;box-shadow:0 4px 18px rgba(64,158,255,.07);padding:.875rem .75rem .5625rem;flex:1;width:100%;box-sizing:border-box;overflow:hidden}.material-list-header[data-v-432bede6]{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5625rem}.material-list-title[data-v-432bede6]{font-size:.875rem;color:#222;font-weight:700}.material-count[data-v-432bede6]{font-size:.75rem;color:#409eff;font-weight:600}.empty-state[data-v-432bede6]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:9.375rem;color:#999}.empty-text[data-v-432bede6]{font-size:.875rem;margin-bottom:.3125rem}.empty-desc[data-v-432bede6]{font-size:.6875rem}.material-list[data-v-432bede6]{display:flex;flex-direction:column;gap:.4375rem}.material-item[data-v-432bede6]{display:flex;justify-content:space-between;align-items:center;padding:.4375rem 0;border-bottom:1px solid #f0f0f0;width:100%;box-sizing:border-box}.material-item[data-v-432bede6]:last-child{border-bottom:none}.material-info[data-v-432bede6]{display:flex;flex-direction:column;align-items:flex-start;overflow:hidden}.material-name-col[data-v-432bede6]{flex:1;min-width:0;max-width:6.25rem}.material-model-col[data-v-432bede6]{width:5.625rem;min-width:0}.material-spec-col[data-v-432bede6]{width:3.75rem;min-width:0}.material-status-col[data-v-432bede6]{width:3.125rem;align-items:center}.material-action-col[data-v-432bede6]{width:3.125rem;display:flex;justify-content:flex-end;align-items:center}.material-name[data-v-432bede6]{font-size:.75rem;color:#333;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-time[data-v-432bede6]{font-size:.625rem;color:#999;margin-top:.0625rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.material-status[data-v-432bede6]{font-size:.5625rem;padding:.125rem .3125rem;border-radius:.5rem;white-space:nowrap}.material-status.status-0[data-v-432bede6]{background-color:#fff7e6;color:#fa8c16}.material-status.status-1[data-v-432bede6]{background-color:#e8f5e9;color:#388e3c}.completed-text[data-v-432bede6]{color:#388e3c;font-size:.625rem;font-weight:500}.inventory-action-btn[data-v-432bede6]{background:linear-gradient(135deg,#409eff,#66b1ff);color:#fff;border:none;border-radius:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:500;box-shadow:0 2px 8px rgba(64,158,255,.3);transition:all .3s ease;display:flex;align-items:center;justify-content:center;cursor:pointer;min-width:2.5rem}.inventory-action-btn[data-v-432bede6]:active{transform:scale(.95);box-shadow:0 1px 4px rgba(64,158,255,.4);opacity:.9}.inventory-btn-text[data-v-432bede6]{color:#fff;font-size:.6875rem;font-weight:500}.load-more[data-v-432bede6]{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.9375rem .625rem;font-size:.75rem;color:#999}.loading-spinner[data-v-432bede6]{width:1rem;height:1rem;border:.09375rem solid #f0f0f0;border-top:.09375rem solid #409eff;border-radius:50%;animation:spin-432bede6 1s linear infinite}@keyframes spin-432bede6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text[data-v-432bede6]{color:#409eff;font-weight:500}.no-more-text[data-v-432bede6]{color:#ccc;font-size:.6875rem}

@ -14,7 +14,7 @@
<title>盘点系统</title>
<!--preload-links-->
<!--app-context-->
<script type="module" crossorigin src="/h5/assets/index-aGYdYpDa.js"></script>
<script type="module" crossorigin src="/h5/assets/index-AvyRkr7C.js"></script>
<link rel="stylesheet" crossorigin href="/h5/assets/index-wAAtYK8w.css">
</head>
<body>

@ -1,8 +1,8 @@
;(function(){
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"物资盘点","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"盘点管理","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.85","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#999999","selectedColor":"#007AFF","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","list":[{"pagePath":"pages/index/index","text":"盘点","iconPath":"/static/tabbar/inventory.png","selectedIconPath":"/static/tabbar/inventory-active.png"},{"pagePath":"pages/profile/profile","text":"个人中心","iconPath":"/static/tabbar/profile.png","selectedIconPath":"/static/tabbar/profile-active.png"}],"backgroundColor":"#ffffff","selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"isTabBar":true,"tabBarIndex":0,"navigationBar":{"titleText":"物资盘点","type":"default"},"isNVue":false}},{"path":"pages/profile/profile","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"navigationBar":{"titleText":"个人中心","type":"default"},"isNVue":false}},{"path":"pages/login/login","meta":{"navigationBar":{"titleText":"登录","type":"default"},"isNVue":false}},{"path":"pages/scan/scan","meta":{"navigationBar":{"titleText":"扫码盘点","type":"default"},"isNVue":false}},{"path":"pages/inventory/inventory","meta":{"navigationBar":{"titleText":"物资盘点","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"物资盘点","type":"default","titleColor":"#000000"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"应急保障物资盘点","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.76","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#999999","selectedColor":"#007AFF","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","list":[{"pagePath":"pages/index/index","text":"盘点","iconPath":"/static/tabbar/inventory.png","selectedIconPath":"/static/tabbar/inventory-active.png"},{"pagePath":"pages/profile/profile","text":"个人中心","iconPath":"/static/tabbar/profile.png","selectedIconPath":"/static/tabbar/profile-active.png"}],"backgroundColor":"#ffffff","selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}};
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"isTabBar":true,"tabBarIndex":0,"navigationBar":{"titleText":"物资盘点","type":"default"},"isNVue":false}},{"path":"pages/profile/profile","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"navigationBar":{"titleText":"个人中心","type":"default"},"isNVue":false}},{"path":"pages/login/login","meta":{"navigationBar":{"titleText":"登录","type":"default"},"isNVue":false}},{"path":"pages/scan/scan","meta":{"navigationBar":{"titleText":"扫码盘点","type":"default"},"isNVue":false}},{"path":"pages/inventory/inventory","meta":{"navigationBar":{"titleText":"物资盘点","type":"default"},"isNVue":false}},{"path":"pages/plan-detail/plan-detail","meta":{"navigationBar":{"titleText":"计划详情","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
__uniConfig.styles=[];//styles
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -5,7 +5,7 @@
"iPad"
],
"id": "__UNI__A789D1D",
"name": "盘点管理",
"name": "应急保障物资盘点",
"version": {
"name": "1.0.1",
"code": 101
@ -146,7 +146,7 @@
"uni-app": {
"control": "uni-v3",
"vueVersion": "3",
"compilerVersion": "4.85",
"compilerVersion": "4.76",
"nvueCompiler": "uni-app",
"renderer": "auto",
"nvue": {

@ -1,22 +1,17 @@
.index-bg {
min-height: 100vh;
height: 100vh;
background: linear-gradient(180deg, #eaf1fb 0%, #f7fafd 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.index-content {
width: 100%;
max-width: 600px;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4vw 0 6vw 0;
box-sizing: border-box;
margin: 0 auto;
}
.btn-group {
width: 90%;
@ -30,9 +25,9 @@
font-size: 1.1875rem;
font-weight: 800;
border-radius: 0.875rem;
background: linear-gradient(90deg, #409eff 0%, #3b7cff 100%);
background: linear-gradient(135deg, #409eff 0%, #3b7cff 100%);
color: #fff;
box-shadow: 0 8px 24px rgba(64,158,255,0.15);
box-shadow: 0 8px 24px rgba(64,158,255,0.25);
letter-spacing: 0.3125rem;
margin: 0;
border: none;
@ -41,29 +36,50 @@
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, box-shadow 0.2s;
transition: all 0.3s ease;
margin-bottom: 1.125rem;
position: relative;
overflow: hidden;
}
.main-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
transition: left 0.6s;
}
.main-btn:active::before {
left: 100%;
}
.main-btn:last-child {
margin-bottom: 0;
}
.main-btn:active {
background: linear-gradient(90deg, #337ecc 0%, #2a5db0 100%);
box-shadow: 0 4px 12px rgba(64,158,255,0.10);
background: linear-gradient(135deg, #337ecc 0%, #2a5db0 100%);
box-shadow: 0 4px 16px rgba(64,158,255,0.3);
transform: scale(0.98);
}
.main-btn.outline {
background: #fff;
color: #409eff;
border: 3px solid #409eff;
box-shadow: none;
box-shadow: 0 8px 24px rgba(64,158,255,0.15);
}
.main-btn.outline::before {
background: linear-gradient(90deg, transparent, rgba(64,158,255,0.1), transparent);
}
.main-btn.outline:active {
background: #f0f7ff;
transform: scale(0.98);
box-shadow: 0 4px 16px rgba(64,158,255,0.2);
}
.task-section {
width: 92%;
max-width: 520px;
margin: 0 auto;
margin: 0 auto 1.5rem auto;
background: #fff;
border-radius: 0.6875rem;
box-shadow: 0 4px 18px rgba(64,158,255,0.07);
@ -104,6 +120,35 @@
color: #999;
margin-top: 0.0625rem;
}
.task-list {
display: flex;
flex-direction: column;
gap: 0.4375rem;
}
.task-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4375rem 0;
border-bottom: 1px solid #f0f0f0;
}
.task-item:last-child {
border-bottom: none;
}
.task-info {
display: flex;
flex-direction: column;
}
.task-name {
font-size: 0.75rem;
color: #333;
font-weight: 600;
}
.task-time {
font-size: 0.625rem;
color: #999;
margin-top: 0.0625rem;
}
.task-status {
font-size: 0.625rem;
padding: 0.125rem 0.4375rem;
@ -281,3 +326,133 @@
flex: 0 0 3.125rem;
margin-top:0.3125rem;
}
/* 盘点计划区域样式 */
.inventory-plan-section {
width: 92%;
max-width: 520px;
margin: 0 auto 1.5rem auto;
background: #fff;
border-radius: 0.6875rem;
box-shadow: 0 4px 18px rgba(64,158,255,0.07);
padding: 0.875rem 0.625rem 0.5625rem 0.625rem;
}
.inventory-plan-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5625rem;
}
.inventory-plan-title {
font-size: 0.875rem;
color: #222;
font-weight: 700;
}
.plan-total {
font-size: 0.75rem;
color: #409eff;
font-weight: 600;
}
.plan-list {
display: flex;
flex-direction: column;
gap: 0.4375rem;
}
.plan-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4375rem 0;
border-bottom: 1px solid #f0f0f0;
}
.plan-item:last-child {
border-bottom: none;
}
.plan-info {
display: flex;
flex-direction: column;
}
.plan-name-col {
flex: 1;
min-width: 0;
}
.plan-status-col {
width: 3.75rem;
align-items: center;
}
.plan-date-col {
width: 4.375rem;
align-items: center;
}
.plan-action-col {
width: 3.75rem;
display: flex;
justify-content: flex-end;
align-items: center;
}
.plan-name {
font-size: 0.75rem;
color: #333;
font-weight: 600;
}
.plan-no {
font-size: 0.625rem;
color: #999;
margin-top: 0.125rem;
}
.plan-time {
font-size: 0.625rem;
color: #999;
margin-top: 0.0625rem;
}
.plan-status {
font-size: 0.625rem;
padding: 0.125rem 0.4375rem;
border-radius: 0.5rem;
white-space: nowrap;
}
.plan-status.status-0 {
background-color: #fff3e0;
color: #ff9800;
}
.plan-status.status-1 {
background-color: #e3f2fd;
color: #2196f3;
}
.plan-status.status-2 {
background-color: #e8f5e9;
color: #4caf50;
}
/* 加载更多样式优化 */
.load-more {
display: flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.9375rem 0.625rem;
font-size: 0.75rem;
color: #999;
}
.loading-spinner {
width: 1rem;
height: 1rem;
border: 0.09375rem solid #f0f0f0;
border-top: 0.09375rem solid #409eff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg);
}
100% { transform: rotate(360deg);
}
}
.loading-text {
color: #409eff;
font-weight: 500;
}
.no-more-text {
color: #ccc;
font-size: 0.6875rem;
}

@ -0,0 +1,286 @@
.plan-detail-container {
height: 100vh;
background: #f5f5f5;
padding: 0.625rem;
box-sizing: border-box;
width: 100%;
}
/* 计划信息卡片样式 */
.plan-info-card {
background: #fff;
border-radius: 0.6875rem;
box-shadow: 0 4px 18px rgba(64,158,255,0.07);
padding: 0.875rem 0.75rem;
margin-bottom: 0.75rem;
}
.plan-info-header {
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #f0f0f0;
}
.plan-info-title {
font-size: 1rem;
color: #222;
font-weight: 700;
}
.plan-info-content {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.info-row {
display: flex;
justify-content: space-between;
gap: 0.625rem;
}
.info-item {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.info-label {
font-size: 0.6875rem;
color: #999;
font-weight: 500;
}
.info-value {
font-size: 0.8125rem;
color: #333;
font-weight: 600;
}
.type-text {
color: #409eff;
}
.count-text {
color: #52c41a;
}
.status-row {
display: flex;
justify-content: center;
margin-top: 0.5rem;
}
.status-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.375rem;
}
.status-label {
font-size: 0.6875rem;
color: #999;
font-weight: 500;
}
.status-badge {
padding: 0.375rem 0.75rem;
border-radius: 0.75rem;
font-size: 0.75rem;
font-weight: 600;
}
.status-badge.status-0 {
background: linear-gradient(135deg, #fff3e0, #ffe0b2);
color: #f57c00;
border: 1px solid #ffcc80;
}
.status-badge.status-1 {
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
color: #1976d2;
border: 1px solid #90caf9;
}
.status-badge.status-2 {
background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
color: #388e3c;
border: 1px solid #a5d6a7;
}
/* 物资列表卡片样式 */
.material-list-card {
background: #fff;
border-radius: 0.6875rem;
box-shadow: 0 4px 18px rgba(64,158,255,0.07);
padding: 0.875rem 0.75rem 0.5625rem 0.75rem;
flex: 1;
width: 100%;
box-sizing: border-box;
overflow: hidden;
}
.material-list-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5625rem;
}
.material-list-title {
font-size: 0.875rem;
color: #222;
font-weight: 700;
}
.material-count {
font-size: 0.75rem;
color: #409eff;
font-weight: 600;
}
/* 空状态样式 */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 9.375rem;
color: #999;
}
.empty-text {
font-size: 0.875rem;
margin-bottom: 0.3125rem;
}
.empty-desc {
font-size: 0.6875rem;
}
/* 物资列表表格样式 */
.material-list {
display: flex;
flex-direction: column;
gap: 0.4375rem;
}
.material-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4375rem 0;
border-bottom: 1px solid #f0f0f0;
width: 100%;
box-sizing: border-box;
}
.material-item:last-child {
border-bottom: none;
}
.material-info {
display: flex;
flex-direction: column;
align-items: flex-start;
overflow: hidden;
}
.material-name-col {
flex: 1;
min-width: 0;
max-width: 6.25rem;
}
.material-model-col {
width: 5.625rem;
min-width: 0;
}
.material-spec-col {
width: 3.75rem;
min-width: 0;
}
.material-status-col {
width: 3.125rem;
align-items: center;
}
.material-action-col {
width: 3.125rem;
display: flex;
justify-content: flex-end;
align-items: center;
}
.material-name {
font-size: 0.75rem;
color: #333;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
.material-time {
font-size: 0.625rem;
color: #999;
margin-top: 0.0625rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
}
.material-status {
font-size: 0.5625rem;
padding: 0.125rem 0.3125rem;
border-radius: 0.5rem;
white-space: nowrap;
}
.material-status.status-0 {
background-color: #fff7e6;
color: #fa8c16;
}
.material-status.status-1 {
background-color: #e8f5e9;
color: #388e3c;
}
.completed-text {
color: #388e3c;
font-size: 0.625rem;
font-weight: 500;
}
.inventory-action-btn {
background: linear-gradient(135deg, #409eff, #66b1ff);
color: #fff;
border: none;
border-radius: 0.5rem;
padding: 0.25rem 0.5rem;
font-size: 0.6875rem;
font-weight: 500;
box-shadow: 0 2px 8px rgba(64,158,255,0.3);
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
min-width: 2.5rem;
}
.inventory-action-btn:active {
transform: scale(0.95);
box-shadow: 0 1px 4px rgba(64,158,255,0.4);
opacity: 0.9;
}
.inventory-btn-text {
color: #fff;
font-size: 0.6875rem;
font-weight: 500;
}
/* 加载更多样式 */
.load-more {
display: flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.9375rem 0.625rem;
font-size: 0.75rem;
color: #999;
}
.loading-spinner {
width: 1rem;
height: 1rem;
border: 0.09375rem solid #f0f0f0;
border-top: 0.09375rem solid #409eff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg);
}
100% { transform: rotate(360deg);
}
}
.loading-text {
color: #409eff;
font-weight: 500;
}
.no-more-text {
color: #ccc;
font-size: 0.6875rem;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save