页面完善

This commit is contained in:
zmj 2023-10-31 18:40:32 +08:00
parent 6af119797a
commit 95ed5eebf2
15 changed files with 1169 additions and 814 deletions

View File

@ -33,3 +33,5 @@ export const delLandCropRecordAPI = (data) => syhttp.post('/LandPlant/delLandCro
export const ediLandCropRecordAPI = (data) => syhttp.post('/LandPlant/ediLandCropRecord', data) export const ediLandCropRecordAPI = (data) => syhttp.post('/LandPlant/ediLandCropRecord', data)
// 生长记录表 // 生长记录表
export const landCropRecordListAPI = (data) => syhttp.get('/LandPlant/landCropRecordList', data) export const landCropRecordListAPI = (data) => syhttp.get('/LandPlant/landCropRecordList', data)
// 全部成熟
export const landCropAllRipeAPI = (data) => syhttp.post('/LandPlant/landCropAllRipe', data)

View File

@ -9,34 +9,20 @@
</uni-tr> </uni-tr>
<!-- 表格数据行 --> <!-- 表格数据行 -->
<uni-tr v-for="(item,index) in props.dataList" :key="index"> <uni-tr v-for="(item,index) in props.dataList" :key="index">
<!-- <uni-td>{(item.create_time).slice(5,11)}}</uni-td> -->
<uni-td>{{item.create_time.substring(5, 10)}}</uni-td> <uni-td>{{item.create_time.substring(5, 10)}}</uni-td>
<uni-td style="text-align: center;">{{item.action_name}}</uni-td> <uni-td style="text-align: center;">{{item.action_name}}</uni-td>
<!-- <uni-td v-else> {{objFn()}}</uni-td> -->
<uni-td> <uni-td>
<!-- <view class="" v-for="item in objFn(item.action_content)"> <view class="" v-for="(items,indexs) in objFn(item.action_content)" :key="indexs">
{{item[0]}}:{{item[1]}} <view class="" v-for="item2 in items" :key="item2" v-show="item2.tit">
</view> -->
<view class="" v-for="(items,indexs) in objFn(item.action_content)" v-show="items.tit"
:key="indexs">
<view class="" v-if="indexs=='pic'"> <view class="" v-if="indexs=='pic'">
{{items.tit}}: <u--image :src="items.value" width="100%" height="210.28rpx" {{item2.tit}}: <u--image :src="item2.value" width="100%" height="210.28rpx"
alt=""></u--image> alt=""></u--image>
</view> </view>
<view style="margin-top: 10rpx;" v-if="indexs !='pic' && items.tit"> <view class="" v-if="indexs=='text'||indexs=='select'">
<!-- {{indexs}} --> {{item2.tit}}:{{item2.value}}
{{items.tit}}: {{items.value}} </view>
</view> </view>
<!-- {{index}} :{{ item}} -->
<!-- {{indexs}} : {{items}} -->
<!-- {{items}} -->
<!-- {{indexs}} -->
</view> </view>
</uni-td> </uni-td>
</uni-tr> </uni-tr>
@ -67,23 +53,13 @@
url: props.route url: props.route
}) })
} }
const objFn = (obj) => { const objFn = (obj) => {
if (typeof(obj) == 'object') { if (typeof(obj) == 'object') {
return obj return obj
} else { } else {
return JSON.parse(obj) return JSON.parse(obj)
} }
// if (typeof(obj) == 'object') {
// for (const [key, value] of Object.entries((obj))) {
// console.log((`${key}: ${value}`))
// return (`${key}: ${value}`);
// }
// } else {
// }
} }
</script> </script>

View File

@ -1,11 +1,11 @@
{ {
"hash": "615a5b64", "hash": "25035236",
"browserHash": "bf60a751", "browserHash": "1466e902",
"optimized": { "optimized": {
"uview-plus": { "uview-plus": {
"src": "../../uview-plus/index.js", "src": "../../uview-plus/index.js",
"file": "uview-plus.js", "file": "uview-plus.js",
"fileHash": "6e866713", "fileHash": "a0f19e5d",
"needsInterop": false "needsInterop": false
} }
}, },

234
node_modules/.vite/deps/uview-plus.js generated vendored
View File

@ -1,4 +1,4 @@
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mixin.js
var mixin_default = { var mixin_default = {
// 定义每个组件都可能需要用到的外部样式以及类名 // 定义每个组件都可能需要用到的外部样式以及类名
props: { props: {
@ -129,10 +129,10 @@ var mixin_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/mixin/mpMixin.js
var mpMixin_default = {}; var mpMixin_default = {};
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils.js
var { toString } = Object.prototype; var { toString } = Object.prototype;
function isArray(val) { function isArray(val) {
return toString.call(val) === "[object Array]"; return toString.call(val) === "[object Array]";
@ -188,7 +188,7 @@ function isUndefined(val) {
return typeof val === "undefined"; return typeof val === "undefined";
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/buildURL.js
function encode(val) { function encode(val) {
return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); return encodeURIComponent(val).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
} }
@ -231,17 +231,17 @@ function buildURL(url2, params) {
return url2; return url2;
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js
function isAbsoluteURL(url2) { function isAbsoluteURL(url2) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2); return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/helpers/combineURLs.js
function combineURLs(baseURL, relativeURL) { function combineURLs(baseURL, relativeURL) {
return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL; return relativeURL ? `${baseURL.replace(/\/+$/, "")}/${relativeURL.replace(/^\/+/, "")}` : baseURL;
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/buildFullPath.js
function buildFullPath(baseURL, requestedURL) { function buildFullPath(baseURL, requestedURL) {
if (baseURL && !isAbsoluteURL(requestedURL)) { if (baseURL && !isAbsoluteURL(requestedURL)) {
return combineURLs(baseURL, requestedURL); return combineURLs(baseURL, requestedURL);
@ -249,7 +249,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL; return requestedURL;
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/settle.js
function settle(resolve, reject, response) { function settle(resolve, reject, response) {
const { validateStatus: validateStatus2 } = response.config; const { validateStatus: validateStatus2 } = response.config;
const status = response.statusCode; const status = response.statusCode;
@ -260,7 +260,7 @@ function settle(resolve, reject, response) {
} }
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/adapters/index.js
var mergeKeys = (keys, config2) => { var mergeKeys = (keys, config2) => {
const config = {}; const config = {};
keys.forEach((prop) => { keys.forEach((prop) => {
@ -323,10 +323,10 @@ var adapters_default = (config) => new Promise((resolve, reject) => {
} }
}); });
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/dispatchRequest.js
var dispatchRequest_default = (config) => adapters_default(config); var dispatchRequest_default = (config) => adapters_default(config);
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/InterceptorManager.js
function InterceptorManager() { function InterceptorManager() {
this.handlers = []; this.handlers = [];
} }
@ -351,7 +351,7 @@ InterceptorManager.prototype.forEach = function forEach2(fn) {
}; };
var InterceptorManager_default = InterceptorManager; var InterceptorManager_default = InterceptorManager;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/mergeConfig.js
var mergeKeys2 = (keys, globalsConfig, config2) => { var mergeKeys2 = (keys, globalsConfig, config2) => {
const config = {}; const config = {};
keys.forEach((prop) => { keys.forEach((prop) => {
@ -413,7 +413,7 @@ var mergeConfig_default = (globalsConfig, config2 = {}) => {
return config; return config;
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/defaults.js
var defaults_default = { var defaults_default = {
baseURL: "", baseURL: "",
header: {}, header: {},
@ -428,7 +428,7 @@ var defaults_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/utils/clone.js
var clone = function() { var clone = function() {
"use strict"; "use strict";
function _instanceof(obj, type) { function _instanceof(obj, type) {
@ -625,7 +625,7 @@ var clone = function() {
}(); }();
var clone_default = clone; var clone_default = clone;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/core/Request.js
var Request = class { var Request = class {
/** /**
* @param {Object} arg - 全局配置 * @param {Object} arg - 全局配置
@ -763,10 +763,10 @@ var Request = class {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/luch-request/index.js
var luch_request_default = Request; var luch_request_default = Request;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/util/route.js
var Router = class { var Router = class {
constructor() { constructor() {
this.config = { this.config = {
@ -866,7 +866,7 @@ var Router = class {
}; };
var route_default = new Router().route; var route_default = new Router().route;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/colorGradient.js
function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) { function colorGradient(startColor = "rgb(0, 0, 0)", endColor = "rgb(255, 255, 255)", step = 10) {
const startRGB = hexToRgb(startColor, false); const startRGB = hexToRgb(startColor, false);
const startR = startRGB[0]; const startR = startRGB[0];
@ -978,7 +978,7 @@ var colorGradient_default = {
colorToRgba colorToRgba
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/test.js
function email(value) { function email(value) {
return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value); return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
} }
@ -1152,7 +1152,7 @@ var test_default = {
string string
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/debounce.js
var timeout = null; var timeout = null;
function debounce(func2, wait = 500, immediate = false) { function debounce(func2, wait = 500, immediate = false) {
if (timeout !== null) if (timeout !== null)
@ -1172,7 +1172,7 @@ function debounce(func2, wait = 500, immediate = false) {
} }
var debounce_default = debounce; var debounce_default = debounce;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/throttle.js
var timer; var timer;
var flag; var flag;
function throttle(func2, wait = 500, immediate = true) { function throttle(func2, wait = 500, immediate = true) {
@ -1194,7 +1194,7 @@ function throttle(func2, wait = 500, immediate = true) {
} }
var throttle_default = throttle; var throttle_default = throttle;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/digit.js
var _boundaryCheckingState = true; var _boundaryCheckingState = true;
function strip(num, precision = 15) { function strip(num, precision = 15) {
return +parseFloat(Number(num).toPrecision(precision)); return +parseFloat(Number(num).toPrecision(precision));
@ -1258,7 +1258,7 @@ function round(num, ratio) {
return result; return result;
} }
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/index.js
function range2(min = 0, max = 0, value = 0) { function range2(min = 0, max = 0, value = 0) {
return Math.max(min, Math.min(max, Number(value))); return Math.max(min, Math.min(max, Number(value)));
} }
@ -1732,7 +1732,7 @@ var function_default = {
setConfig setConfig
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/config.js
var version = "3"; var version = "3";
if (true) { if (true) {
console.log(` console.log(`
@ -1767,7 +1767,7 @@ var config_default = {
unit: "px" unit: "px"
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/actionSheet.js
var actionSheet_default = { var actionSheet_default = {
// action-sheet组件 // action-sheet组件
actionSheet: { actionSheet: {
@ -1785,7 +1785,7 @@ var actionSheet_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/album.js
var album_default = { var album_default = {
// album 组件 // album 组件
album: { album: {
@ -1803,7 +1803,7 @@ var album_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/alert.js
var alert_default = { var alert_default = {
// alert警告组件 // alert警告组件
alert: { alert: {
@ -1818,7 +1818,7 @@ var alert_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatar.js
var avatar_default = { var avatar_default = {
// avatar 组件 // avatar 组件
avatar: { avatar: {
@ -1839,7 +1839,7 @@ var avatar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/avatarGroup.js
var avatarGroup_default = { var avatarGroup_default = {
// avatarGroup 组件 // avatarGroup 组件
avatarGroup: { avatarGroup: {
@ -1855,7 +1855,7 @@ var avatarGroup_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/backtop.js
var backtop_default = { var backtop_default = {
// backtop组件 // backtop组件
backtop: { backtop: {
@ -1875,7 +1875,7 @@ var backtop_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/badge.js
var badge_default = { var badge_default = {
// 徽标数组件 // 徽标数组件
badge: { badge: {
@ -1895,7 +1895,7 @@ var badge_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/button.js
var button_default = { var button_default = {
// button组件 // button组件
button: { button: {
@ -1930,7 +1930,7 @@ var button_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/calendar.js
var calendar_default = { var calendar_default = {
// calendar 组件 // calendar 组件
calendar: { calendar: {
@ -1967,7 +1967,7 @@ var calendar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/carKeyboard.js
var carKeyboard_default = { var carKeyboard_default = {
// 车牌号键盘 // 车牌号键盘
carKeyboard: { carKeyboard: {
@ -1975,7 +1975,7 @@ var carKeyboard_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cell.js
var cell_default = { var cell_default = {
// cell组件的props // cell组件的props
cell: { cell: {
@ -2003,7 +2003,7 @@ var cell_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/cellGroup.js
var cellGroup_default = { var cellGroup_default = {
// cell-group组件的props // cell-group组件的props
cellGroup: { cellGroup: {
@ -2013,7 +2013,7 @@ var cellGroup_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkbox.js
var checkbox_default = { var checkbox_default = {
// checkbox组件 // checkbox组件
checkbox: { checkbox: {
@ -2033,7 +2033,7 @@ var checkbox_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/checkboxGroup.js
var checkboxGroup_default = { var checkboxGroup_default = {
// checkbox-group组件 // checkbox-group组件
checkboxGroup: { checkboxGroup: {
@ -2055,7 +2055,7 @@ var checkboxGroup_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/circleProgress.js
var circleProgress_default = { var circleProgress_default = {
// circleProgress 组件 // circleProgress 组件
circleProgress: { circleProgress: {
@ -2063,7 +2063,7 @@ var circleProgress_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/code.js
var code_default = { var code_default = {
// code 组件 // code 组件
code: { code: {
@ -2076,7 +2076,7 @@ var code_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/codeInput.js
var codeInput_default = { var codeInput_default = {
// codeInput 组件 // codeInput 组件
codeInput: { codeInput: {
@ -2098,7 +2098,7 @@ var codeInput_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/col.js
var col_default = { var col_default = {
// col 组件 // col 组件
col: { col: {
@ -2110,7 +2110,7 @@ var col_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapse.js
var collapse_default = { var collapse_default = {
// collapse 组件 // collapse 组件
collapse: { collapse: {
@ -2120,7 +2120,7 @@ var collapse_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/collapseItem.js
var collapseItem_default = { var collapseItem_default = {
// collapseItem 组件 // collapseItem 组件
collapseItem: { collapseItem: {
@ -2138,7 +2138,7 @@ var collapseItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/columnNotice.js
var columnNotice_default = { var columnNotice_default = {
// columnNotice 组件 // columnNotice 组件
columnNotice: { columnNotice: {
@ -2155,7 +2155,7 @@ var columnNotice_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countDown.js
var countDown_default = { var countDown_default = {
// u-count-down 计时器组件 // u-count-down 计时器组件
countDown: { countDown: {
@ -2166,7 +2166,7 @@ var countDown_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/countTo.js
var countTo_default = { var countTo_default = {
// countTo 组件 // countTo 组件
countTo: { countTo: {
@ -2184,7 +2184,7 @@ var countTo_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/datetimePicker.js
var datetimePicker_default = { var datetimePicker_default = {
// datetimePicker 组件 // datetimePicker 组件
datetimePicker: { datetimePicker: {
@ -2213,7 +2213,7 @@ var datetimePicker_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/divider.js
var divider_default = { var divider_default = {
// divider组件 // divider组件
divider: { divider: {
@ -2228,7 +2228,7 @@ var divider_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/empty.js
var empty_default = { var empty_default = {
// empty组件 // empty组件
empty: { empty: {
@ -2246,7 +2246,7 @@ var empty_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/form.js
var form_default = { var form_default = {
// form 组件 // form 组件
form: { form: {
@ -2261,7 +2261,7 @@ var form_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/formItem.js
var formItem_default = { var formItem_default = {
// formItem 组件 // formItem 组件
formItem: { formItem: {
@ -2276,7 +2276,7 @@ var formItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gap.js
var gap_default = { var gap_default = {
// gap组件 // gap组件
gap: { gap: {
@ -2288,7 +2288,7 @@ var gap_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/grid.js
var grid_default = { var grid_default = {
// grid组件 // grid组件
grid: { grid: {
@ -2298,7 +2298,7 @@ var grid_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/gridItem.js
var gridItem_default = { var gridItem_default = {
// grid-item组件 // grid-item组件
gridItem: { gridItem: {
@ -2307,7 +2307,7 @@ var gridItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/icon.js
var { var {
color color
} = config_default; } = config_default;
@ -2334,7 +2334,7 @@ var icon_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/image.js
var image_default = { var image_default = {
// image组件 // image组件
image: { image: {
@ -2357,7 +2357,7 @@ var image_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexAnchor.js
var indexAnchor_default = { var indexAnchor_default = {
// indexAnchor 组件 // indexAnchor 组件
indexAnchor: { indexAnchor: {
@ -2369,7 +2369,7 @@ var indexAnchor_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/indexList.js
var indexList_default = { var indexList_default = {
// indexList 组件 // indexList 组件
indexList: { indexList: {
@ -2381,7 +2381,7 @@ var indexList_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/input.js
var input_default = { var input_default = {
// index 组件 // index 组件
input: { input: {
@ -2422,7 +2422,7 @@ var input_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/keyboard.js
var keyboard_default = { var keyboard_default = {
// 键盘组件 // 键盘组件
keyboard: { keyboard: {
@ -2445,7 +2445,7 @@ var keyboard_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/line.js
var line_default = { var line_default = {
// line组件 // line组件
line: { line: {
@ -2458,7 +2458,7 @@ var line_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/lineProgress.js
var lineProgress_default = { var lineProgress_default = {
// lineProgress 组件 // lineProgress 组件
lineProgress: { lineProgress: {
@ -2470,7 +2470,7 @@ var lineProgress_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/link.js
var { var {
color: color2 color: color2
} = config_default; } = config_default;
@ -2487,7 +2487,7 @@ var link_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/list.js
var list_default = { var list_default = {
// list 组件 // list 组件
list: { list: {
@ -2508,7 +2508,7 @@ var list_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/listItem.js
var listItem_default = { var listItem_default = {
// listItem 组件 // listItem 组件
listItem: { listItem: {
@ -2516,7 +2516,7 @@ var listItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingIcon.js
var { var {
color: color3 color: color3
} = config_default; } = config_default;
@ -2537,7 +2537,7 @@ var loadingIcon_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadingPage.js
var loadingPage_default = { var loadingPage_default = {
// loading-page组件 // loading-page组件
loadingPage: { loadingPage: {
@ -2553,7 +2553,7 @@ var loadingPage_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/loadmore.js
var loadmore_default = { var loadmore_default = {
// loadmore 组件 // loadmore 组件
loadmore: { loadmore: {
@ -2578,7 +2578,7 @@ var loadmore_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/modal.js
var modal_default = { var modal_default = {
// modal 组件 // modal 组件
modal: { modal: {
@ -2601,7 +2601,7 @@ var modal_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/color.js
var color4 = { var color4 = {
primary: "#3c9cff", primary: "#3c9cff",
info: "#909399", info: "#909399",
@ -2617,7 +2617,7 @@ var color4 = {
}; };
var color_default = color4; var color_default = color4;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/navbar.js
var navbar_default = { var navbar_default = {
// navbar 组件 // navbar 组件
navbar: { navbar: {
@ -2640,7 +2640,7 @@ var navbar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noNetwork.js
var noNetwork_default = { var noNetwork_default = {
// noNetwork // noNetwork
noNetwork: { noNetwork: {
@ -2650,7 +2650,7 @@ var noNetwork_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/noticeBar.js
var noticeBar_default = { var noticeBar_default = {
// noticeBar // noticeBar
noticeBar: { noticeBar: {
@ -2670,7 +2670,7 @@ var noticeBar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/notify.js
var notify_default = { var notify_default = {
// notify组件 // notify组件
notify: { notify: {
@ -2685,7 +2685,7 @@ var notify_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberBox.js
var numberBox_default = { var numberBox_default = {
// 步进器组件 // 步进器组件
numberBox: { numberBox: {
@ -2713,7 +2713,7 @@ var numberBox_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/numberKeyboard.js
var numberKeyboard_default = { var numberKeyboard_default = {
// 数字键盘 // 数字键盘
numberKeyboard: { numberKeyboard: {
@ -2723,7 +2723,7 @@ var numberKeyboard_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/overlay.js
var overlay_default = { var overlay_default = {
// overlay组件 // overlay组件
overlay: { overlay: {
@ -2734,7 +2734,7 @@ var overlay_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/parse.js
var parse_default = { var parse_default = {
// parse // parse
parse: { parse: {
@ -2749,7 +2749,7 @@ var parse_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/picker.js
var picker_default = { var picker_default = {
// picker // picker
picker: { picker: {
@ -2771,7 +2771,7 @@ var picker_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/popup.js
var popup_default = { var popup_default = {
// popup组件 // popup组件
popup: { popup: {
@ -2794,7 +2794,7 @@ var popup_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radio.js
var radio_default = { var radio_default = {
// radio组件 // radio组件
radio: { radio: {
@ -2814,7 +2814,7 @@ var radio_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/radioGroup.js
var radioGroup_default = { var radioGroup_default = {
// radio-group组件 // radio-group组件
radioGroup: { radioGroup: {
@ -2837,7 +2837,7 @@ var radioGroup_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rate.js
var rate_default = { var rate_default = {
// rate组件 // rate组件
rate: { rate: {
@ -2856,7 +2856,7 @@ var rate_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/readMore.js
var readMore_default = { var readMore_default = {
// readMore // readMore
readMore: { readMore: {
@ -2871,7 +2871,7 @@ var readMore_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/row.js
var row_default = { var row_default = {
// row // row
row: { row: {
@ -2881,7 +2881,7 @@ var row_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/rowNotice.js
var rowNotice_default = { var rowNotice_default = {
// rowNotice // rowNotice
rowNotice: { rowNotice: {
@ -2895,7 +2895,7 @@ var rowNotice_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/scrollList.js
var scrollList_default = { var scrollList_default = {
// scrollList // scrollList
scrollList: { scrollList: {
@ -2908,7 +2908,7 @@ var scrollList_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/search.js
var search_default = { var search_default = {
// search // search
search: { search: {
@ -2938,7 +2938,7 @@ var search_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/section.js
var section_default = { var section_default = {
// u-section组件 // u-section组件
section: { section: {
@ -2955,7 +2955,7 @@ var section_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/skeleton.js
var skeleton_default = { var skeleton_default = {
// skeleton // skeleton
skeleton: { skeleton: {
@ -2973,7 +2973,7 @@ var skeleton_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/slider.js
var slider_default = { var slider_default = {
// slider组件 // slider组件
slider: { slider: {
@ -2992,7 +2992,7 @@ var slider_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/statusBar.js
var statusBar_default = { var statusBar_default = {
// statusBar // statusBar
statusBar: { statusBar: {
@ -3000,7 +3000,7 @@ var statusBar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/steps.js
var steps_default = { var steps_default = {
// steps组件 // steps组件
steps: { steps: {
@ -3014,7 +3014,7 @@ var steps_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/stepsItem.js
var stepsItem_default = { var stepsItem_default = {
// steps-item组件 // steps-item组件
stepsItem: { stepsItem: {
@ -3025,7 +3025,7 @@ var stepsItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/sticky.js
var sticky_default = { var sticky_default = {
// sticky组件 // sticky组件
sticky: { sticky: {
@ -3038,7 +3038,7 @@ var sticky_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/subsection.js
var subsection_default = { var subsection_default = {
// subsection组件 // subsection组件
subsection: { subsection: {
@ -3054,7 +3054,7 @@ var subsection_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeAction.js
var swipeAction_default = { var swipeAction_default = {
// swipe-action组件 // swipe-action组件
swipeAction: { swipeAction: {
@ -3062,7 +3062,7 @@ var swipeAction_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipeActionItem.js
var swipeActionItem_default = { var swipeActionItem_default = {
// swipeActionItem 组件 // swipeActionItem 组件
swipeActionItem: { swipeActionItem: {
@ -3076,7 +3076,7 @@ var swipeActionItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swiper.js
var swiper_default = { var swiper_default = {
// swiper 组件 // swiper 组件
swiper: { swiper: {
@ -3107,7 +3107,7 @@ var swiper_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/swipterIndicator.js
var swipterIndicator_default = { var swipterIndicator_default = {
// swiperIndicator 组件 // swiperIndicator 组件
swiperIndicator: { swiperIndicator: {
@ -3119,7 +3119,7 @@ var swipterIndicator_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/switch.js
var switch_default = { var switch_default = {
// switch // switch
switch: { switch: {
@ -3136,7 +3136,7 @@ var switch_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbar.js
var tabbar_default = { var tabbar_default = {
// tabbar // tabbar
tabbar: { tabbar: {
@ -3151,7 +3151,7 @@ var tabbar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabbarItem.js
var tabbarItem_default = { var tabbarItem_default = {
// //
tabbarItem: { tabbarItem: {
@ -3164,7 +3164,7 @@ var tabbarItem_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tabs.js
var tabs_default = { var tabs_default = {
// //
tabs: { tabs: {
@ -3189,7 +3189,7 @@ var tabs_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tag.js
var tag_default = { var tag_default = {
// tag 组件 // tag 组件
tag: { tag: {
@ -3211,7 +3211,7 @@ var tag_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/text.js
var text_default = { var text_default = {
// text 组件 // text 组件
text: { text: {
@ -3241,7 +3241,7 @@ var text_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/textarea.js
var textarea_default = { var textarea_default = {
// textarea 组件 // textarea 组件
textarea: { textarea: {
@ -3270,7 +3270,7 @@ var textarea_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toast.js
var toast_default = { var toast_default = {
// toast组件 // toast组件
toast: { toast: {
@ -3293,7 +3293,7 @@ var toast_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/toolbar.js
var toolbar_default = { var toolbar_default = {
// toolbar 组件 // toolbar 组件
toolbar: { toolbar: {
@ -3306,7 +3306,7 @@ var toolbar_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/tooltip.js
var tooltip_default = { var tooltip_default = {
// tooltip 组件 // tooltip 组件
tooltip: { tooltip: {
@ -3324,7 +3324,7 @@ var tooltip_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/transition.js
var transition_default = { var transition_default = {
// transition动画组件的props // transition动画组件的props
transition: { transition: {
@ -3335,7 +3335,7 @@ var transition_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props/upload.js
var upload_default = { var upload_default = {
// upload组件 // upload组件
upload: { upload: {
@ -3364,7 +3364,7 @@ var upload_default = {
} }
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/props.js
var { var {
color: color5 color: color5
} = config_default; } = config_default;
@ -3459,7 +3459,7 @@ var props_default = {
...upload_default ...upload_default
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/config/zIndex.js
var zIndex_default = { var zIndex_default = {
toast: 10090, toast: 10090,
noNetwork: 10080, noNetwork: 10080,
@ -3472,13 +3472,13 @@ var zIndex_default = {
indexListSticky: 965 indexListSticky: 965
}; };
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/libs/function/platform.js
var platform = "none"; var platform = "none";
platform = "vue3"; platform = "vue3";
platform = "h5"; platform = "h5";
var platform_default = platform; var platform_default = platform;
// ../../../../../books/apps/LiHai/TraceabilityAPP/node_modules/uview-plus/index.js // ../../../../zmj/uniapp/TraceabilityAPP/node_modules/uview-plus/index.js
var pleaseSetTranspileDependencies = {}; var pleaseSetTranspileDependencies = {};
var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test; var babelTest = pleaseSetTranspileDependencies == null ? void 0 : pleaseSetTranspileDependencies.test;
var $u = { var $u = {

File diff suppressed because one or more lines are too long

View File

@ -81,12 +81,14 @@
</view> </view>
<view class="ripe-btn" @click="showPop=true">
标记为成熟 <!-- {{landDeatil.ripe_time}} -->
</view> <view class="ripe-btn" v-if="landDeatil.ripe_time" @click="allripeFn">
<view class="ripe-btn" v-if="false" @click="navgo(allripeFn)">
标记为全部收获 标记为全部收获
</view> </view>
<view class="ripe-btn" v-else @click="showPop=true">
标记为成熟
</view>
<!-- 组件 --> <!-- 组件 -->
<!-- navgo('/pages/index/index' --> <!-- navgo('/pages/index/index' -->
<u-popup :show="showPop" :round="20" mode="bottom" @close="showPop=false" @open="showPop=true"> <u-popup :show="showPop" :round="20" mode="bottom" @close="showPop=false" @open="showPop=true">
@ -155,7 +157,8 @@
landCropRecordListAPI, landCropRecordListAPI,
landEnvDataCurrAPI, landEnvDataCurrAPI,
setLandCropRipeAPI, setLandCropRipeAPI,
ediLandCropRecordAPI ediLandCropRecordAPI,
landCropAllRipeAPI
} from "@/api/plant.js" } from "@/api/plant.js"
import myTable from "@/components/myTable/index.vue" import myTable from "@/components/myTable/index.vue"
import imgCard from "@/components/imgCard.vue" import imgCard from "@/components/imgCard.vue"
@ -302,9 +305,9 @@
} }
const allripeFn = () => { const allripeFn = () => {
landCropAllRipeAPI({
crop_id: crop_id.value
return })
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/index' url: '/pages/index/index'
}) })

View File

@ -1,9 +1,8 @@
<template> <template>
<view :class="{popupShow:showPop}"> <view :class="{popupShow:showPop}">
<view class="cont"> <view class="cont">
<!-- <landInfo :land_id='land_id'></landInfo> -->
<farmersCard></farmersCard> <farmersCard></farmersCard>
<view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index"> <view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index">
<view class="tit"> <view class="tit">
{{index}} {{index}}
@ -31,18 +30,22 @@
</view> </view>
</view> </view>
<view class="fertilize-li"> <view class="fertilize-li">
<view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" v-show="items.tit" <view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" :key="indexs"
:key="indexs"> v-show="items[0]?.tit">
<view class="" v-if="indexs=='pic'"> <!-- {{indexs}} -->
{{items.tit}}: <text style="color: #3274F9;" <view class="" v-for="item2 in items" :key="item2" v-show="item2.tit">
@click="previewImage(items.value)">图片</text>
</view>
<view class="" v-if="indexs=='serch'">
{{items.tit}}: 注射疫苗{{items.list.length}}
</view>
<view class="" v-if="indexs=='text'||indexs=='select'"> <view class="" v-if="indexs=='text'||indexs=='select'">
{{items.tit}}: {{items.value}} {{item2.tit}}: {{item2.value}}
</view> </view>
<view v-if="indexs=='pic'">
{{item2.tit}}: <text style="color: #3274F9;"
@click="previewImage(item2.value)">图片</text>
</view>
<view v-if="indexs=='serch'">
注射疫苗{{item2.list?.length}}
</view>
</view>
</view> </view>
</view> </view>
@ -61,40 +64,39 @@
<u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true"> <u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true">
<scroll-view scroll-y style="max-height: 90vh;"> <scroll-view scroll-y style="max-height: 90vh;">
<!-- 滚动内容 --> <!-- 滚动内容 -->
<view class="pop-content" v-for="item,index in popList" :key='index'>
<!-- 文本 --> <!-- 文本 -->
<view class="" v-if="item.type==1"> <view class="pop-content" v-for="item,index in popList.text" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入" border="surround" v-model="formData.text.value" <up-input placeholder="请输入" border="surround" v-model="formData1.text[index].value"
@change="change1(item.title)"></up-input> @change="change1(item.title,index)"></up-input>
</view> </view>
</view> </view>
<!-- 下拉 --> <!-- 下拉 -->
<view class="" v-if="item.type==4"> <view class="pop-content" v-for="item,index in popList.select" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="点击选择" @change="change2(item.title)" border="surround" <up-input placeholder="点击选择" @change="change2(item.title,index)" border="surround"
v-model="formData.select.value" @tap="showPicker=true"></up-input> v-model="formData1.select[index].value" @tap="choseSelect(item,index)"></up-input>
</view> </view>
</view> </view>
<!-- 上传图片 --> <!-- 图片 -->
<view class="" v-if="item.type==2"> <view class="pop-content" v-for="item,index in popList.pic" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li" @click="updateImgFn(item.title)"> <view class="pop-li" @click="updateImgFn(item.title,index)">
<view v-if="formData.pic.value"> <view v-if="formData1.pic[index]?.value">
<u--image :src="formData.pic.value" width="100%" height="196.26rpx"></u--image> <u--image :src="formData1.pic[index]?.value" width="100%" height="196.26rpx"></u--image>
</view> </view>
<view class="code-img" v-else> <view class="code-img" v-else>
<view class="carime-icon"> <view class="carime-icon">
<u--image src="/static/img/DJSC.png" width="91.12rpx" <u--image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u--image>
height="91.12rpx"></u--image>
<view class=""> <view class="">
点击上传图片 点击上传图片
</view> </view>
@ -102,49 +104,47 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 搜索框 --> <!-- 搜素 -->
<view class="" v-if="item.type==3"> <view class="pop-content" v-for="item,index in popList.serch" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.serch.value" <up-input placeholder="请输入品种" border="surround" v-model="formData1.serch[index].value"
@change="change4(item.title)"></up-input> @change="change4(item.title,index)"></up-input>
</view> </view>
<view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item"> <view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item">
<u-swipe-action> <u-swipe-action>
<u-swipe-action-item :options="options1" <u-swipe-action-item :options="options1"
style="border-radius: 20rpx;border: 1px solid #C7C6CD;" style="border-radius: 20rpx;border: 1px solid #C7C6CD;"
@click="swipeDel(index)"> @click="swipeDel(indexs,index)">
<view class="" style="padding: 20rpx 30rpx;"> <view class="" style="padding: 20rpx 30rpx;">
<view class="swipe-action-tit"> <view class="swipe-action-tit">
<view class=""> <view class="">
编号: {{item.animal_code}} 编号: {{item.code}}
</view> </view>
<view class="" style="color: #00A15E;" v-if="item.animal_status==1"> <view class="" style="color: #00A15E;" v-if="item.status==1">
健康 健康
</view> </view>
<view class="" style="color: #FFD736;" v-if="item.animal_status==2"> <view class="" style="color: #FFD736;" v-if="item.status==2">
怀孕中 怀孕中
</view> </view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==3"> <view class="" style="color: #3274F9;" v-if="item.status==3">
可出栏 可出栏
</view> </view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==5"> <view class="" style="color: #3274F9;" v-if="item.animal_status==5">
可出栏 可出栏
</view> </view>
</view> </view>
<view class="swipe-action-li"> <view class="swipe-action-li">
<view class=""> <view class="">
养殖品种:{{item.animal_kind}} 养殖品种:{{item.kind}}
</view> </view>
<view class=""> <view class="">
年龄: {{item.animal_age}}个月 年龄: {{item.age}}个月
</view> </view>
<view class=""> <view class="">
体重: {{item.animal_weight}}kg 体重: {{item.weight}}kg
</view> </view>
</view> </view>
</view> </view>
@ -153,7 +153,6 @@
</u-swipe-action> </u-swipe-action>
</view> </view>
</view> </view>
</view>
<view class="pop-confirm" @tap="confirm"> <view class="pop-confirm" @tap="confirm">
确认 确认
@ -163,7 +162,7 @@
</view> </view>
<!-- 组件 --> <!-- 组件 -->
<u-picker :show="showPicker" :columns="columns" @confirm="confirmFn" @close="showPicker=false" <u-picker :show="showPicker" :columns="columns" @confirm="confirmFn" @close="showPicker=false"
@cancel="showPicker=false"></u-picker> @cancel="showModal=false"></u-picker>
<u-modal :show="showModal" :showCancelButton='true' :closeOnClickOverlay="true" @close="showModal=false" <u-modal :show="showModal" :showCancelButton='true' :closeOnClickOverlay="true" @close="showModal=false"
content='确认删除吗?' @confirm="delFn" @cancel="showModal=false"></u-modal> content='确认删除吗?' @confirm="delFn" @cancel="showModal=false"></u-modal>
</view> </view>
@ -203,36 +202,33 @@
], ) ], )
const confirmFn = (e) => { const confirmFn = (e) => {
showPicker.value = false showPicker.value = false
formData.select.value = e.value[0] formData1.select[selectIndex.value].value = e.value[0]
} }
// const land_id = ref(0)
// const pond_id = ref(0)
// const crop_id = ref(0)
const type = ref(0) const type = ref(0)
const title = ref("")
const actionData = reactive({}) const actionData = reactive({})
const delIndex = ref(0) const delIndex = ref(0)
const title = ref('')
onLoad((options) => { onLoad((options) => {
type.value = options.type type.value = options.type
title.value = options.title title.value = options.title
// land_id.value = options.land_id
// pond_id.value = options.pond_id
// crop_id.value = options.crop_id
getAcyionListFn(options.type) getAcyionListFn(options.type)
}) })
const getAcyionListFn = (type) => { const getAcyionListFn = (type) => {
actionList.splice(0, actionList.length) actionList.splice(0, actionList.length)
actionsListAPI({ actionsListAPI({
type: type type: type,
}).then(res => { }).then(res => {
for (let key in res.data) { for (let key in res.data) {
if (key == title.value) {
actionData[key] = res.data[key] actionData[key] = res.data[key]
actionData[key].action_record.forEach(item => { actionData[key].action_record.forEach(item => {
item.action_content = JSON.parse(item.action_content) item.action_content = JSON.parse(item.action_content)
}) })
actionList.push(...(res.data[key].action_record)) actionList.push(...(res.data[key].action_record))
} }
}
console.log(actionList)
}) })
} }
const showPop = ref(false) const showPop = ref(false)
@ -256,10 +252,10 @@
}, },
}) })
let formData = reactive({ let formData = reactive({
text: { text: [{
value: "", value: "",
tit: "" tit: ""
}, }],
select: { select: {
value: "", value: "",
tit: "" tit: ""
@ -274,27 +270,32 @@
list: [], list: [],
}, },
}) })
let formData1 = reactive({
text: [],
select: [],
pic: [],
serch: []
})
// ,true,false // ,true,false
const actionType = ref(false) const actionType = ref(false)
const confirm = () => { const confirm = () => {
showPop.value = false showPop.value = false
// console.log(formData)
if (actionType.value) { if (actionType.value) {
addLandCropRecordAPI({ addLandCropRecordAPI({
user_id: 307, user_id: 307,
action_id: action_id.value, action_id: action_id.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}).then(res => { }).then(res => {
setPropertiesToNull(formData) setPropertiesToNull(formData1)
}) })
} else { } else {
ediLandCropRecordAPI({ ediLandCropRecordAPI({
record_id: delIndex.value, record_id: delIndex.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}) })
} }
objClear(popList)
objFn(baseData, formData)
getAcyionListFn(type.value) getAcyionListFn(type.value)
serchList.splice(0, serchList.length) serchList.splice(0, serchList.length)
@ -318,49 +319,85 @@
}) })
} }
const editFn = (item) => { const editFn = (item) => {
delIndex.value = item.id delIndex.value = item.id
showPopFn(item.action_id) showPopFn(item.action_id)
formData = deepCopy(item.action_content) formData1 = reactive(deepCopy(item.action_content))
if (item.action_content.serch[0]?.list?.length) {
if (item.action_content.serch.list.length) { item.action_content.serch.forEach(item => {
item.action_content.serch.list.forEach(item => { item.list.forEach(items => {
animalSearchByCodeAPI({ animalSearchByCodeAPI({
code: item code: items
}).then(res => { }).then(res => {
serchList.push(res.data) serchList.push(res.data)
}) })
}) })
})
} }
console.log(serchList)
actionType.value = false actionType.value = false
} }
const popList = reactive([]) const popList = reactive({
text: [],
serch: [],
select: [],
pic: []
})
const action_id = ref("") const action_id = ref("")
const showPopFn = (id) => { const showPopFn = (id) => {
actionType.value = true actionType.value = true
objFn(baseData, formData) // popList,
objClear(formData1)
objClear(popList)
action_id.value = id action_id.value = id
popList.splice(0, popList.length)
showPop.value = true
columns[0].splice(0, columns[0].length)
actionsDetailAPI({ actionsDetailAPI({
action_id: id action_id: id
}).then(res => { }).then(res => {
res.data.forEach(item => { res.data.forEach(item => {
popList.push(item) if (item.type == 1) {
formData1.text.push({
tit: "",
value: ""
})
popList.text.push(item)
}
if (item.type == 2) {
formData1.pic.push({
tit: "",
value: ""
})
popList.pic.push(item)
}
if (item.type == 4) { if (item.type == 4) {
columns[0] = item.options.split(',') formData1.select.push({
// console.log() tit: "",
value: ""
})
popList.select.push(item)
}
if (item.type == 3) {
formData1.serch.push({
value: "",
tit: "",
list: [],
})
popList.serch.push(item)
}
if (item.type == 4) {
} }
}) })
showPop.value = true
}) })
} }
const updateImgFn = (tit) => { const updateImgFn = (tit, index) => {
// const title = tit change3(tit, index)
change3(tit)
uplodeImg().then(res => { uplodeImg().then(res => {
formData.pic.value = res.data.image formData1.pic[index].value = res.data.image
}) })
} }
const previewImage = (src) => { const previewImage = (src) => {
@ -368,29 +405,36 @@
urls: [src], urls: [src],
}) })
} }
const change1 = (tit) => { const selectIndex = ref('')
formData.text.tit = tit const choseSelect = (item, index) => {
formData1.select[index].tit = item.title
selectIndex.value = index
columns[0] = item.options.split(',')
showPicker.value = true
}
const change1 = (tit, index) => {
formData1.text[index].tit = tit
} }
const change2 = (tit) => { const change2 = (tit) => {
formData.select.tit = tit formData.select.tit = tit
} }
const change3 = (tit) => { const change3 = (tit, index) => {
formData.pic.tit = tit formData1.pic[index].tit = tit
} }
const change4 = (tit) => { const change4 = (tit, index) => {
formData.serch.tit = tit formData1.serch[index].tit = tit
if (formData.serch.value) { if (formData1.serch[index].value) {
animalSearchByCodeAPI({ animalSearchByCodeAPI({
code: formData.serch.value code: formData1.serch[index].value
}).then(res => { }).then(res => {
if (res.data.id) { if (res.data.id) {
serchList.push(res.data) serchList.push(res.data)
console.log(formData.serch, 54554) formData1.serch[index].list.push(formData1.serch[index].value)
formData.serch.list.push(formData.serch.value)
} }
// formData.serch.list.push() formData1.serch[index].value = ''
formData.serch.value = ''
}) })
console.log(serchList)
} }
} }
@ -413,9 +457,14 @@
const objFn = (res, data) => { const objFn = (res, data) => {
for (let key in res) { for (let key in res) {
if (typeof res[key] === 'object') {
objFn(res[key], data[key]);
} else {
data[key] = res[key] data[key] = res[key]
} }
} }
}
const setPropertiesToNull = (obj) => { const setPropertiesToNull = (obj) => {
for (var prop in obj) { for (var prop in obj) {
if (obj.hasOwnProperty(prop)) { if (obj.hasOwnProperty(prop)) {
@ -427,24 +476,24 @@
} }
} }
} }
const arrFn = (res, data) => { const objClear = (obj) => {
res.forEach((item, index) => { for (let key in obj) {
data[index] = item obj[key].splice(0, obj[key].length)
}) }
} }
const popCloseFn = () => { const popCloseFn = () => {
showPop.value = false showPop.value = false
serchList.splice(0, serchList.length) serchList.splice(0, serchList.length)
setPropertiesToNull(formData) objClear(popList)
objClear(formData1)
} }
const swipeDel = (e) => { const swipeDel = (e, index) => {
serchList.splice(e, 1); serchList.splice(e, 1);
formData.serch.list.splice(e, 1) formData1.serch[index].list.splice(e, 1)
} }
const finshFn = () => { const finshFn = () => {
uni.navigateTo({ uni.navigateTo({
url: "/pages/index/index?index=3" url: "/pages/index/index"
}) })
} }
</script> </script>

View File

@ -1,6 +1,7 @@
<template> <template>
<view :class="{popupShow:showPop}"> <view :class="{popupShow:showPop}">
<view class="cont"> <view class="cont">
<!-- <landInfo :land_id='land_id'></landInfo> -->
<farmersCard></farmersCard> <farmersCard></farmersCard>
<view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index"> <view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index">
<view class="tit"> <view class="tit">
@ -29,18 +30,22 @@
</view> </view>
</view> </view>
<view class="fertilize-li"> <view class="fertilize-li">
<view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" v-show="items.tit" <view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" :key="indexs"
:key="indexs"> v-show="items[0]?.tit">
<view class="" v-if="indexs=='pic'"> <!-- {{indexs}} -->
{{items.tit}}: <text style="color: #3274F9;" <view class="" v-for="item2 in items" :key="item2" v-show="item2.tit">
@click="previewImage(items.value)">图片</text>
</view>
<view class="" v-if="indexs=='serch'">
{{items.tit}}: 注射疫苗{{items.list?.length}}
</view>
<view class="" v-if="indexs=='text'||indexs=='select'"> <view class="" v-if="indexs=='text'||indexs=='select'">
{{items.tit}}: {{items.value}} {{item2.tit}}: {{item2.value}}
</view> </view>
<view v-if="indexs=='pic'">
{{item2.tit}}: <text style="color: #3274F9;"
@click="previewImage(item2.value)">图片</text>
</view>
<view v-if="indexs=='serch'">
什么鸡蛋{{item2.list?.length}}
</view>
</view>
</view> </view>
</view> </view>
@ -51,7 +56,7 @@
</view> </view>
</view> </view>
<view class="ripe-btn"> <view class="ripe-btn" @click="finshFn">
完成今日操作 完成今日操作
</view> </view>
<!-- 组件 --> <!-- 组件 -->
@ -59,9 +64,9 @@
<u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true"> <u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true">
<scroll-view scroll-y style="max-height: 90vh;"> <scroll-view scroll-y style="max-height: 90vh;">
<!-- 滚动内容 --> <!-- 滚动内容 -->
<view class="pop-content" v-for="item,index in popList" :key='index'>
<!-- 文本 --> <!-- 文本 -->
<view class="" v-if="item.type==1"> <view class="pop-content" v-for="item,index in popList.text" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
@ -70,30 +75,28 @@
@change="change1(item.title,index)"></up-input> @change="change1(item.title,index)"></up-input>
</view> </view>
</view> </view>
<!-- 下拉 --> <!-- 下拉 -->
<view class="" v-if="item.type==4"> <view class="pop-content" v-for="item,index in popList.select" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="点击选择" @change="change2(item.title)" border="surround" <up-input placeholder="点击选择" @change="change2(item.title,index)" border="surround"
v-model="formData.select.value" @tap="showPicker=true"></up-input> v-model="formData1.select[index].value" @tap="choseSelect(item,index)"></up-input>
</view> </view>
</view> </view>
<!-- 上传图片 --> <!-- 图片 -->
<view class="" v-if="item.type==2"> <view class="pop-content" v-for="item,index in popList.pic" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li" @click="updateImgFn(item.title,index)"> <view class="pop-li" @click="updateImgFn(item.title,index)">
<view v-if="formData.pic[index]?.value"> <view v-if="formData1.pic[index]?.value">
<u--image :src="formData.pic[index]?.value" width="100%" <u--image :src="formData1.pic[index]?.value" width="100%" height="196.26rpx"></u--image>
height="196.26rpx"></u--image>
</view> </view>
<view class="code-img" v-else> <view class="code-img" v-else>
<view class="carime-icon"> <view class="carime-icon">
<u--image src="/static/img/DJSC.png" width="91.12rpx" <u--image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u--image>
height="91.12rpx"></u--image>
<view class=""> <view class="">
点击上传图片 点击上传图片
</view> </view>
@ -101,20 +104,20 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 搜索框 --> <!-- 搜素 -->
<view class="" v-if="item.type==3"> <view class="pop-content" v-for="item,index in popList.serch" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.serch.value" <up-input placeholder="请输入品种" border="surround" v-model="formData1.serch[index].value"
@change="change4(item.title)"></up-input> @change="change4(item.title,index)"></up-input>
</view> </view>
<view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item"> <view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item">
<u-swipe-action> <u-swipe-action>
<u-swipe-action-item :options="options1" <u-swipe-action-item :options="options1"
style="border-radius: 20rpx;border: 1px solid #C7C6CD;" style="border-radius: 20rpx;border: 1px solid #C7C6CD;"
@click="swipeDel(index)"> @click="swipeDel(indexs,index)">
<view class="" style="padding: 20rpx 30rpx;"> <view class="" style="padding: 20rpx 30rpx;">
<view class="swipe-action-tit"> <view class="swipe-action-tit">
<view class=""> <view class="">
@ -132,7 +135,6 @@
<view class="" style="color: #3274F9;" v-if="item.animal_status==5"> <view class="" style="color: #3274F9;" v-if="item.animal_status==5">
可出栏 可出栏
</view> </view>
</view> </view>
<view class="swipe-action-li"> <view class="swipe-action-li">
<view class=""> <view class="">
@ -151,7 +153,6 @@
</u-swipe-action> </u-swipe-action>
</view> </view>
</view> </view>
</view>
<view class="pop-confirm" @tap="confirm"> <view class="pop-confirm" @tap="confirm">
确认 确认
@ -201,11 +202,10 @@
], ) ], )
const confirmFn = (e) => { const confirmFn = (e) => {
showPicker.value = false showPicker.value = false
formData.select.value = e.value[0] formData1.select[selectIndex.value].value = e.value[0]
} }
const crop_id = ref(0) const crop_id = ref(0)
const land_id = ref(0)
const type = ref(0) const type = ref(0)
const actionData = reactive({}) const actionData = reactive({})
const delIndex = ref(0) const delIndex = ref(0)
@ -214,12 +214,12 @@
type.value = options.type type.value = options.type
title.value = options.title title.value = options.title
getAcyionListFn(options.type) getAcyionListFn(options.type)
}) })
const getAcyionListFn = (type) => { const getAcyionListFn = (type) => {
actionList.splice(0, actionList.length) actionList.splice(0, actionList.length)
actionsListAPI({ actionsListAPI({
type: type type: type,
}).then(res => { }).then(res => {
for (let key in res.data) { for (let key in res.data) {
if (key == title.value) { if (key == title.value) {
@ -229,8 +229,8 @@
}) })
actionList.push(...(res.data[key].action_record)) actionList.push(...(res.data[key].action_record))
} }
} }
console.log(actionList)
}) })
} }
const showPop = ref(false) const showPop = ref(false)
@ -272,7 +272,7 @@
list: [], list: [],
}, },
}) })
const formData1 = reactive({ let formData1 = reactive({
text: [], text: [],
select: [], select: [],
pic: [], pic: [],
@ -283,24 +283,21 @@
const actionType = ref(false) const actionType = ref(false)
const confirm = () => { const confirm = () => {
showPop.value = false showPop.value = false
console.log(formData1)
return
if (actionType.value) { if (actionType.value) {
addLandCropRecordAPI({ addLandCropRecordAPI({
user_id: 307, user_id: 307,
action_id: action_id.value, action_id: action_id.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}).then(res => { }).then(res => {
setPropertiesToNull(formData) setPropertiesToNull(formData1)
}) })
} else { } else {
ediLandCropRecordAPI({ ediLandCropRecordAPI({
record_id: delIndex.value, record_id: delIndex.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}) })
} }
objClear(popList)
objFn(baseData, formData)
getAcyionListFn(type.value) getAcyionListFn(type.value)
serchList.splice(0, serchList.length) serchList.splice(0, serchList.length)
@ -326,29 +323,35 @@
const editFn = (item) => { const editFn = (item) => {
delIndex.value = item.id delIndex.value = item.id
showPopFn(item.action_id) showPopFn(item.action_id)
formData = deepCopy(item.action_content) formData1 = reactive(deepCopy(item.action_content))
if (item.action_content.serch[0]?.list?.length) {
if (item.action_content.serch.list.length) { item.action_content.serch.forEach(item => {
item.action_content.serch.list.forEach(item => { item.list.forEach(items => {
animalSearchByCodeAPI({ animalSearchByCodeAPI({
code: item code: items
}).then(res => { }).then(res => {
serchList.push(res.data) serchList.push(res.data)
}) })
}) })
})
} }
console.log(serchList)
actionType.value = false actionType.value = false
} }
const popList = reactive([]) const popList = reactive({
text: [],
serch: [],
select: [],
pic: []
})
const action_id = ref("") const action_id = ref("")
const showPopFn = (id) => { const showPopFn = (id) => {
actionType.value = true actionType.value = true
objFn(baseData, formData) // popList,
columns[0].splice(0, columns[0].length) objClear(formData1)
objClear(popList)
action_id.value = id action_id.value = id
popList.splice(0, popList.length)
showPop.value = true
actionsDetailAPI({ actionsDetailAPI({
action_id: id action_id: id
}).then(res => { }).then(res => {
@ -358,6 +361,7 @@
tit: "", tit: "",
value: "" value: ""
}) })
popList.text.push(item)
} }
if (item.type == 2) { if (item.type == 2) {
@ -365,31 +369,30 @@
tit: "", tit: "",
value: "" value: ""
}) })
popList.pic.push(item)
} }
if (item.type == 3) { if (item.type == 4) {
formData1.select.push({ formData1.select.push({
tit: "", tit: "",
value: "" value: ""
}) })
popList.select.push(item)
} }
if (item.type == 4) { if (item.type == 3) {
formData1.serch.push({ formData1.serch.push({
value: "", value: "",
tit: "", tit: "",
list: [], list: [],
}) })
popList.serch.push(item)
} }
popList.push(item)
if (item.type == 4) { if (item.type == 4) {
columns[0] = item.options.split(',')
} }
}) })
showPop.value = true
console.log(formData1)
}) })
} }
@ -404,6 +407,14 @@
urls: [src], urls: [src],
}) })
} }
const selectIndex = ref('')
const choseSelect = (item, index) => {
formData1.select[index].tit = item.title
selectIndex.value = index
columns[0] = item.options.split(',')
showPicker.value = true
}
const change1 = (tit, index) => { const change1 = (tit, index) => {
formData1.text[index].tit = tit formData1.text[index].tit = tit
} }
@ -411,23 +422,19 @@
formData.select.tit = tit formData.select.tit = tit
} }
const change3 = (tit, index) => { const change3 = (tit, index) => {
console.log(index)
formData1.pic[index].tit = tit formData1.pic[index].tit = tit
} }
const change4 = (tit) => { const change4 = (tit, index) => {
formData.serch.tit = tit formData1.serch[index].tit = tit
if (formData.serch.value) { if (formData1.serch[index].value) {
animalSearchByCodeAPI({ animalSearchByCodeAPI({
code: formData.serch.value code: formData1.serch[index].value
}).then(res => { }).then(res => {
if (res.data.id) { if (res.data.id) {
serchList.push(res.data) serchList.push(res.data)
console.log(formData.serch, 54554) formData1.serch[index].list.push(formData1.serch[index].value)
formData.serch.list.push(formData.serch.value)
} }
// formData.serch.list.push() formData1.serch[index].value = ''
formData.serch.value = ''
}) })
} }
@ -451,9 +458,14 @@
const objFn = (res, data) => { const objFn = (res, data) => {
for (let key in res) { for (let key in res) {
if (typeof res[key] === 'object') {
objFn(res[key], data[key]);
} else {
data[key] = res[key] data[key] = res[key]
} }
} }
}
const setPropertiesToNull = (obj) => { const setPropertiesToNull = (obj) => {
for (var prop in obj) { for (var prop in obj) {
if (obj.hasOwnProperty(prop)) { if (obj.hasOwnProperty(prop)) {
@ -465,20 +477,25 @@
} }
} }
} }
const arrFn = (res, data) => { const objClear = (obj) => {
res.forEach((item, index) => { for (let key in obj) {
data[index] = item obj[key].splice(0, obj[key].length)
}) }
} }
const popCloseFn = () => { const popCloseFn = () => {
showPop.value = false showPop.value = false
serchList.splice(0, serchList.length) serchList.splice(0, serchList.length)
setPropertiesToNull(formData) objClear(popList)
objClear(formData1)
} }
const swipeDel = (e) => { const swipeDel = (e, index) => {
serchList.splice(e, 1); serchList.splice(e, 1);
formData.serch.list.splice(e, 1) formData1.serch[index].list.splice(e, 1)
}
const finshFn = () => {
uni.navigateTo({
url: "/pages/index/index"
})
} }
</script> </script>

View File

@ -1,6 +1,7 @@
<template> <template>
<view :class="{popupShow:showPop}"> <view :class="{popupShow:showPop}">
<view class="cont"> <view class="cont">
<!-- <landInfo :land_id='land_id'></landInfo> -->
<pondCard :id='pond_id'></pondCard> <pondCard :id='pond_id'></pondCard>
<view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index"> <view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index">
<view class="tit"> <view class="tit">
@ -27,71 +28,71 @@
编辑 编辑
</view> </view>
</view> </view>
</view> </view>
<view class="fertilize-li"> <view class="fertilize-li">
<view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" v-show="items.value" <view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" :key="indexs"
:key="indexs"> v-show="items[0]?.tit">
<view class="" v-if="indexs=='pic'"> <view class="" v-for="item2 in items" :key="item2" v-show="item2.tit">
{{items.tit}}: <text style="color: #3274F9;" <view class="" v-if="indexs=='text'||indexs=='select'">
@click="previewImage(items.value)">图片</text> {{item2.tit}}: {{item2.value}}
</view> </view>
<view class="" v-else> <view v-if="indexs=='pic'">
<view class="" v-if="items.value"> {{item2.tit}}: <text style="color: #3274F9;"
{{items.tit}}: {{items.value}} @click="previewImage(item2.value)">图片</text>
</view> </view>
</view> </view>
</view> </view>
</view>
</view> </view>
</view> </view>
</view> </view>
<view class="ripe-btn" @click="navgo(`/pages/detail/plant?land_id=${land_id}`)"> <view class="" style="height: 100px">
</view>
</view>
<view class="ripe-btn" @click="finshFn">
完成今日操作 完成今日操作
</view> </view>
<!-- 组件 --> <!-- 组件 -->
<view class=""> <view class="">
<u-popup :show="showPop" :round="10" :closeable='true' @close="showPop=false" @open="showPop=true"> <u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true">
<scroll-view scroll-y style="max-height: 90vh;"> <scroll-view scroll-y style="max-height: 90vh;">
<!-- 滚动内容 --> <!-- 滚动内容 -->
<view class="pop-content" v-for="item,index in popList" :key='index'>
<!-- 文本 --> <!-- 文本 -->
<view class="" v-if="item.type==1"> <view class="pop-content" v-for="item,index in popList.text" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入" border="surround" v-model="formData.text.value" <up-input placeholder="请输入" border="surround" v-model="formData1.text[index].value"
@change="change1(item.title)"></up-input> @change="change1(item.title,index)"></up-input>
</view> </view>
</view> </view>
<!-- 下拉 --> <!-- 下拉 -->
<view class="" v-if="item.type==4"> <view class="pop-content" v-for="item,index in popList.select" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="点击选择" @change="change2(item.title)" border="surround" <up-input placeholder="点击选择" @change="change2(item.title,index)" border="surround"
v-model="formData.select.value" @tap="showPicker=true"></up-input> v-model="formData1.select[index].value" @tap="choseSelect(item,index)"></up-input>
</view> </view>
</view> </view>
<!-- 上传图片 --> <!-- 图片 -->
<view class="" v-if="item.type==2"> <view class="pop-content" v-for="item,index in popList.pic" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li" @click="updateImgFn(item.title)"> <view class="pop-li" @click="updateImgFn(item.title,index)">
<view v-if="formData.pic.value"> <view v-if="formData1.pic[index]?.value">
<u--image :src="formData.pic.value" width="100%" height="196.26rpx"></u--image> <u--image :src="formData1.pic[index]?.value" width="100%" height="196.26rpx"></u--image>
</view> </view>
<view class="code-img" v-else> <view class="code-img" v-else>
<view class="carime-icon"> <view class="carime-icon">
<u--image src="/static/img/DJSC.png" width="91.12rpx" <u--image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u--image>
height="91.12rpx"></u--image>
<view class=""> <view class="">
点击上传图片 点击上传图片
</view> </view>
@ -99,19 +100,52 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 搜索框 --> <!-- 搜素 -->
<view class="" v-if="item.type==3"> <view class="pop-content" v-for="item,index in popList.serch" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.serch.value" <up-input placeholder="请输入品种" border="surround" v-model="formData1.serch[index].value"
@change="change4(item.title)"></up-input> @change="change4(item.title,index)"></up-input>
</view>
<view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item">
<u-swipe-action>
<u-swipe-action-item :options="options1"
style="border-radius: 20rpx;border: 1px solid #C7C6CD;" @click="swipeDel(index)">
<view class="" style="padding: 20rpx 30rpx;">
<view class="swipe-action-tit">
<view class="">
编号: {{item.animal_code}}
</view>
<view class="" style="color: #00A15E;" v-if="item.animal_status==1">
健康
</view>
<view class="" style="color: #FFD736;" v-if="item.animal_status==2">
怀孕中
</view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==3">
可出栏
</view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==5">
可出栏
</view>
</view>
<view class="swipe-action-li">
<view class="">
养殖品种:{{item.animal_kind}}
</view>
<view class="">
年龄: {{item.animal_age}}个月
</view>
<view class="">
体重: {{item.animal_weight}}kg
</view>
</view>
</view> </view>
<view style="margin-bottom: 20rpx;" v-for="item in [1]" :key="item"> </u-swipe-action-item>
</u-swipe-action>
</view>
</view> </view>
</view> </view>
@ -154,6 +188,7 @@
addFishRecordAPI addFishRecordAPI
} from "@/api/aquatic.js" } from "@/api/aquatic.js"
import uplodeImg from "@/utils/uplodeImg.js" import uplodeImg from "@/utils/uplodeImg.js"
const serchList = reactive([])
const actionList = reactive([]) const actionList = reactive([])
const options1 = reactive([{ const options1 = reactive([{
text: '删除' text: '删除'
@ -164,9 +199,8 @@
], ) ], )
const confirmFn = (e) => { const confirmFn = (e) => {
showPicker.value = false showPicker.value = false
formData.select.value = e.value[0] formData1.select[selectIndex.value].value = e.value[0]
} }
const pond_id = ref(0) const pond_id = ref(0)
const type = ref(0) const type = ref(0)
const title = ref('') const title = ref('')
@ -177,29 +211,22 @@
title.value = options.title title.value = options.title
getAcyionListFn() getAcyionListFn()
}) })
const getAcyionListFn = () => { const getAcyionListFn = (type) => {
actionList.splice(0, actionList.length) actionList.splice(0, actionList.length)
actionsListAPI({ actionsListAPI({
type: 4, type: 4,
pond_id: pond_id.value pond_id: pond_id.value
}).then(res => { }).then(res => {
for (let key in res.data) { for (let key in res.data) {
if (key == title.value) {
actionData[key] = res.data[key] actionData[key] = res.data[key]
actionData[key].action_record.forEach(item => { actionData[key].action_record.forEach(item => {
item.action_content = JSON.parse(item.action_content) item.action_content = JSON.parse(item.action_content)
}) })
actionList.push(...(res.data[key].action_record)) actionList.push(...(res.data[key].action_record))
} }
}
}) })
// actionList.splice(0, actionList.length)
// landCropRecordListAPI({
// crop_id: crop_id.value,
// action_type_id: 1
// }).then(res => {
// res.data.forEach(item => {
// actionList.push(item)
// })
// })
} }
const showPop = ref(false) const showPop = ref(false)
const baseData = reactive({ const baseData = reactive({
@ -217,14 +244,15 @@
}, },
serch: { serch: {
value: "", value: "",
tit: "" tit: "",
list: [],
}, },
}) })
const formData = reactive({ let formData = reactive({
text: { text: [{
value: "", value: "",
tit: "" tit: ""
}, }],
select: { select: {
value: "", value: "",
tit: "" tit: ""
@ -235,31 +263,39 @@
}, },
serch: { serch: {
value: "", value: "",
tit: "" tit: "",
list: [],
}, },
}) })
let formData1 = reactive({
text: [],
select: [],
pic: [],
serch: []
})
// ,true,false // ,true,false
const actionType = ref(false) const actionType = ref(false)
const confirm = () => { const confirm = () => {
showPop.value = false showPop.value = false
// console.log(formData)
if (actionType.value) { if (actionType.value) {
console.log(544)
addLandCropRecordAPI({ addLandCropRecordAPI({
pond_id: Number(pond_id.value), pond_id: Number(pond_id.value),
action_id: action_id.value, action_id: action_id.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}).then(res => { }).then(res => {
setPropertiesToNull(formData) setPropertiesToNull(formData1)
getAcyionListFn()
}) })
} else { } else {
ediLandCropRecordAPI({ ediLandCropRecordAPI({
record_id: delIndex.value, record_id: delIndex.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}) })
} }
console.log(baseData) objClear(popList)
objFn(baseData, formData) getAcyionListFn(type.value)
serchList.splice(0, serchList.length)
} }
const navgo = (url) => { const navgo = (url) => {
@ -277,63 +313,152 @@
delLandCropRecordAPI({ delLandCropRecordAPI({
record_id: delIndex.value record_id: delIndex.value
}).then(res => { }).then(res => {
getAcyionListFn() getAcyionListFn(type.value)
}) })
} }
const editFn = (item) => { const editFn = (item) => {
delIndex.value = item.id delIndex.value = item.id
showPopFn(item.action_id) showPopFn(item.action_id)
objFn(item.action_content, formData) formData1 = reactive(deepCopy(item.action_content))
if (item.action_content.serch?.list?.length) {
item.action_content.serch.list.forEach(item => {
animalSearchByCodeAPI({
code: item
}).then(res => {
serchList.push(res.data)
})
})
}
actionType.value = false actionType.value = false
} }
const popList = reactive([]) const popList = reactive({
text: [],
serch: [],
select: [],
pic: []
})
const action_id = ref("") const action_id = ref("")
const showPopFn = (id) => { const showPopFn = (id) => {
actionType.value = true actionType.value = true
objFn(baseData, formData) // popList,
objClear(formData1)
objClear(popList)
action_id.value = id action_id.value = id
popList.splice(0, popList.length)
showPop.value = true
columns[0].splice(0, columns[0].length)
actionsDetailAPI({ actionsDetailAPI({
action_id: id action_id: id
}).then(res => { }).then(res => {
res.data.forEach(item => { res.data.forEach(item => {
popList.push(item) if (item.type == 1) {
formData1.text.push({
tit: "",
value: ""
})
popList.text.push(item)
}
if (item.type == 2) {
formData1.pic.push({
tit: "",
value: ""
})
popList.pic.push(item)
}
if (item.type == 4) { if (item.type == 4) {
columns[0] = item.options.split(',') formData1.select.push({
// console.log() tit: "",
value: ""
})
popList.select.push(item)
}
if (item.type == 3) {
formData1.serch.push({
value: "",
tit: "",
list: [],
})
popList.serch.push(item)
}
if (item.type == 4) {
} }
}) })
showPop.value = true
}) })
} }
const updateImgFn = (tit) => { const updateImgFn = (tit, index) => {
// const title = tit change3(tit, index)
change3(tit)
uplodeImg().then(res => { uplodeImg().then(res => {
formData.pic.value = res.data.image formData1.pic[index].value = res.data.image
}) })
} }
const previewImage = (src) => { const previewImage = (src) => {
uni.previewImage({ uni.previewImage({
urls: [src], urls: [src],
}) })
} }
const change1 = (tit) => { const selectIndex = ref('')
formData.text.tit = tit const choseSelect = (item, index) => {
formData1.select[index].tit = item.title
selectIndex.value = index
columns[0] = item.options.split(',')
showPicker.value = true
}
const change1 = (tit, index) => {
formData1.text[index].tit = tit
} }
const change2 = (tit) => { const change2 = (tit) => {
formData.select.tit = tit formData.select.tit = tit
} }
const change3 = (tit) => { const change3 = (tit, index) => {
formData.pic.tit = tit formData1.pic[index].tit = tit
} }
const change4 = (tit) => { const change4 = (tit) => {
formData.serch.tit = tit formData.serch.tit = tit
if (formData.serch.value) {
animalSearchByCodeAPI({
code: formData.serch.value
}).then(res => {
if (res.data.id) {
serchList.push(res.data)
console.log(formData.serch, 54554)
formData.serch.list.push(formData.serch.value)
}
formData.serch.value = ''
})
}
}
function deepCopy(obj) {
if (typeof obj !== 'object' || obj === null) {
return obj;
}
var newObj = Array.isArray(obj) ? [] : {};
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
newObj[key] = deepCopy(obj[key]);
}
}
return newObj;
}
const objFn = (res, data) => {
for (let key in res) {
if (typeof res[key] === 'object') {
objFn(res[key], data[key]);
} else {
data[key] = res[key]
}
}
} }
const setPropertiesToNull = (obj) => { const setPropertiesToNull = (obj) => {
for (var prop in obj) { for (var prop in obj) {
@ -346,27 +471,27 @@
} }
} }
} }
const objFn = (res, data, clear) => { const objClear = (obj) => {
// if (clear) { for (let key in obj) {
// for (let key in data) { obj[key].splice(0, obj[key].length)
// data[key] = ''
// }
// } else {
// for (let key in res) {
// data[key] = res[key]
// }
// }
for (let key in res) {
data[key] = res[key]
} }
} }
const arrFn = (res, data) => { const popCloseFn = () => {
res.forEach((item, index) => { showPop.value = false
data[index] = item serchList.splice(0, serchList.length)
objClear(popList)
objClear(formData1)
// setPropertiesToNull(formData)
}
const swipeDel = (e) => {
serchList.splice(e, 1);
formData1.serch.list.splice(e, 1)
}
const finshFn = () => {
uni.navigateTo({
url: "/pages/index/index"
}) })
} }
</script> </script>

View File

@ -2,7 +2,7 @@
<view :class="{popupShow:showPop}"> <view :class="{popupShow:showPop}">
<view class="cont"> <view class="cont">
<landInfo :land_id='land_id'></landInfo> <landInfo :land_id='land_id'></landInfo>
<view class="operate" v-for="(item,index) in actionData" :key="index"> <view class="operate" v-for="(item,index) in actionData" :key="index" v-show="title==index">
<view class="tit"> <view class="tit">
{{index}} {{index}}
</view> </view>
@ -13,8 +13,9 @@
</view> </view>
</view> </view>
</view> </view>
<!-- {{actionList}} -->
<view class="fertilize" v-for="(item,index) in actionList" :key="index"> <view class="fertilize" v-for="(item,index) in actionList" :key="index">
<!-- {{actionList}} -->
<view class="card" style="padding-bottom: 0;"> <view class="card" style="padding-bottom: 0;">
<view class="fertilize-tit"> <view class="fertilize-tit">
<view class=""> <view class="">
@ -28,68 +29,72 @@
编辑 编辑
</view> </view>
</view> </view>
</view> </view>
<view class="fertilize-li"> <view class="fertilize-li">
<view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" v-show="items.value" <view class="fertilize-li-a" v-for="(items,indexs) in item.action_content" :key="indexs"
:key="indexs"> v-show="items[0]?.tit">
<view class="" v-if="indexs=='pic'"> <!-- {{indexs}} -->
{{items.tit}}: <text style="color: #3274F9;" <view class="" v-for="item2 in items" :key="item2" v-show="item2.tit">
@click="previewImage(items.value)">图片</text> <view class="" v-if="indexs=='text'||indexs=='select'">
</view> {{item2.tit}}: {{item2.value}}
<view class="" v-else>
<view class="" v-if="items.value">
{{items.tit}}: {{items.value}}
</view>
</view>
</view>
</view>
</view> </view>
<view v-if="indexs=='pic'">
{{item2.tit}}: <text style="color: #3274F9;"
@click="previewImage(item2.value)">图片</text>
</view> </view>
</view> </view>
<view class="ripe-btn" @click="navgo(`/pages/detail/plant?land_id=${land_id}`)"> </view>
</view>
</view>
</view>
<view class="" style="height: 100px">
</view>
</view>
<view class="ripe-btn" @click="finshFn">
完成今日操作 完成今日操作
</view> </view>
<!-- 组件 --> <!-- 组件 -->
<view class=""> <view class="">
<u-popup :show="showPop" :round="10" :closeable='true' @close="showPop=false" @open="showPop=true"> <u-popup :show="showPop" :round="10" :closeable='true' @close="popCloseFn" @open="showPop=true">
<scroll-view scroll-y style="max-height: 90vh;"> <scroll-view scroll-y style="max-height: 90vh;">
<!-- 滚动内容 --> <!-- 滚动内容 -->
<view class="pop-content" v-for="item,index in popList" :key='index'>
<!-- 文本框 --> <!-- 文本 -->
<view class="" v-if="item.type==1"> <view class="pop-content" v-for="item,index in popList.text" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入" border="surround" v-model="formData.text.value" <up-input placeholder="请输入" border="surround" v-model="formData1.text[index].value"
@change="change1(item.title)"></up-input> @change="change1(item.title,index)"></up-input>
</view> </view>
</view> </view>
<!-- 下拉 --> <!-- 下拉 -->
<view class="" v-if="item.type==4"> <view class="pop-content" v-for="item,index in popList.select" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="点击选择" @change="change2(item.title)" border="surround" <up-input placeholder="点击选择" @change="change2(item.title,index)" border="surround"
v-model="formData.select.value" @tap="showPicker=true"></up-input> v-model="formData1.select[index].value" @tap="choseSelect(item,index)"></up-input>
</view> </view>
</view> </view>
<!-- 上传图片 --> <!-- 图片 -->
<view class="" v-if="item.type==2"> <view class="pop-content" v-for="item,index in popList.pic" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li" @click="updateImgFn(item.title)"> <view class="pop-li" @click="updateImgFn(item.title,index)">
<view v-if="formData.pic.value"> <view v-if="formData1.pic[index]?.value">
<u--image :src="formData.pic.value" width="100%" height="196.26rpx"></u--image> <u--image :src="formData1.pic[index]?.value" width="100%" height="196.26rpx"></u--image>
</view> </view>
<view class="code-img" v-else> <view class="code-img" v-else>
<view class="carime-icon"> <view class="carime-icon">
<u--image src="/static/img/DJSC.png" width="91.12rpx" <u--image src="/static/img/DJSC.png" width="91.12rpx" height="91.12rpx"></u--image>
height="91.12rpx"></u--image>
<view class=""> <view class="">
点击上传图片 点击上传图片
</view> </view>
@ -97,19 +102,52 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 搜索框 --> <!-- 搜素 -->
<view class="" v-if="item.type==3"> <view class="pop-content" v-for="item,index in popList.serch" :key='index'>
<view class=""> <view class="">
{{item.title}} {{item.title}}
</view> </view>
<view class="pop-li"> <view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.serch.value" <up-input placeholder="请输入品种" border="surround" v-model="formData1.serch[index].value"
@change="change4(item.title)"></up-input> @change="change4(item.title,index)"></up-input>
</view>
<view style="margin-bottom: 20rpx;" v-for="(item,index) in serchList" :key="item">
<u-swipe-action>
<u-swipe-action-item :options="options1"
style="border-radius: 20rpx;border: 1px solid #C7C6CD;" @click="swipeDel(index)">
<view class="" style="padding: 20rpx 30rpx;">
<view class="swipe-action-tit">
<view class="">
编号: {{item.animal_code}}
</view>
<view class="" style="color: #00A15E;" v-if="item.animal_status==1">
健康
</view>
<view class="" style="color: #FFD736;" v-if="item.animal_status==2">
怀孕中
</view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==3">
可出栏
</view>
<view class="" style="color: #3274F9;" v-if="item.animal_status==5">
可出栏
</view>
</view>
<view class="swipe-action-li">
<view class="">
养殖品种:{{item.animal_kind}}
</view>
<view class="">
年龄: {{item.animal_age}}个月
</view>
<view class="">
体重: {{item.animal_weight}}kg
</view>
</view>
</view> </view>
<view style="margin-bottom: 20rpx;" v-for="item in [1]" :key="item"> </u-swipe-action-item>
</u-swipe-action>
</view>
</view> </view>
</view> </view>
@ -151,6 +189,7 @@
addFishRecordAPI addFishRecordAPI
} from "@/api/aquatic.js" } from "@/api/aquatic.js"
import uplodeImg from "@/utils/uplodeImg.js" import uplodeImg from "@/utils/uplodeImg.js"
const serchList = reactive([])
const actionList = reactive([]) const actionList = reactive([])
const options1 = reactive([{ const options1 = reactive([{
text: '删除' text: '删除'
@ -161,22 +200,21 @@
], ) ], )
const confirmFn = (e) => { const confirmFn = (e) => {
showPicker.value = false showPicker.value = false
formData.select.value = e.value[0] formData1.select[selectIndex.value].value = e.value[0]
} }
const land_id = ref(0)
const title = ref('')
const crop_id = ref(0) const crop_id = ref(0)
const land_id = ref(0)
const type = ref(0) const type = ref(0)
const actionData = reactive({}) const actionData = reactive({})
const delIndex = ref(0) const delIndex = ref(0)
const actionIdList = reactive([]) const title = ref('')
onLoad((options) => { onLoad((options) => {
title.value = options.title title.value = options.title
land_id.value = options.land_id land_id.value = options.land_id
crop_id.value = options.crop_id crop_id.value = options.crop_id
getAcyionListFn() getAcyionListFn()
}) })
const getAcyionListFn = () => { const getAcyionListFn = (type) => {
actionList.splice(0, actionList.length) actionList.splice(0, actionList.length)
actionsListAPI({ actionsListAPI({
type: 1, type: 1,
@ -190,8 +228,8 @@
}) })
actionList.push(...(res.data[key].action_record)) actionList.push(...(res.data[key].action_record))
} }
} }
console.log(actionList)
}) })
} }
const showPop = ref(false) const showPop = ref(false)
@ -210,14 +248,15 @@
}, },
serch: { serch: {
value: "", value: "",
tit: "" tit: "",
list: [],
}, },
}) })
const formData = reactive({ let formData = reactive({
text: { text: [{
value: "", value: "",
tit: "" tit: ""
}, }],
select: { select: {
value: "", value: "",
tit: "" tit: ""
@ -228,31 +267,38 @@
}, },
serch: { serch: {
value: "", value: "",
tit: "" tit: "",
list: [],
}, },
}) })
let formData1 = reactive({
text: [],
select: [],
pic: [],
serch: []
})
// ,true,false // ,true,false
const actionType = ref(false) const actionType = ref(false)
const confirm = () => { const confirm = () => {
showPop.value = false showPop.value = false
// console.log(formData)
if (actionType.value) { if (actionType.value) {
addLandCropRecordAPI({ addLandCropRecordAPI({
crop_id: Number(crop_id.value), crop_id: Number(crop_id.value),
action_id: action_id.value, action_id: action_id.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}).then(res => { }).then(res => {
setPropertiesToNull(formData) setPropertiesToNull(formData1)
getAcyionListFn()
}) })
} else { } else {
ediLandCropRecordAPI({ ediLandCropRecordAPI({
record_id: delIndex.value, record_id: delIndex.value,
action_content: JSON.stringify(formData) action_content: JSON.stringify(formData1)
}) })
} }
console.log(baseData) objClear(popList)
objFn(baseData, formData) getAcyionListFn(type.value)
serchList.splice(0, serchList.length)
} }
const navgo = (url) => { const navgo = (url) => {
@ -270,62 +316,152 @@
delLandCropRecordAPI({ delLandCropRecordAPI({
record_id: delIndex.value record_id: delIndex.value
}).then(res => { }).then(res => {
getAcyionListFn() getAcyionListFn(type.value)
}) })
} }
const editFn = (item) => { const editFn = (item) => {
delIndex.value = item.id delIndex.value = item.id
showPopFn(item.action_id) showPopFn(item.action_id)
objFn(item.action_content, formData) formData1 = reactive(deepCopy(item.action_content))
if (item.action_content.serch?.list?.length) {
item.action_content.serch.list.forEach(item => {
animalSearchByCodeAPI({
code: item
}).then(res => {
serchList.push(res.data)
})
})
}
actionType.value = false actionType.value = false
} }
const popList = reactive([]) const popList = reactive({
text: [],
serch: [],
select: [],
pic: []
})
const action_id = ref("") const action_id = ref("")
const showPopFn = (id) => { const showPopFn = (id) => {
actionType.value = true actionType.value = true
objFn(baseData, formData) // popList,
objClear(formData1)
objClear(popList)
action_id.value = id action_id.value = id
popList.splice(0, popList.length)
showPop.value = true
columns[0].splice(0, columns[0].length)
actionsDetailAPI({ actionsDetailAPI({
action_id: id action_id: id
}).then(res => { }).then(res => {
res.data.forEach(item => { res.data.forEach(item => {
popList.push(item) if (item.type == 1) {
formData1.text.push({
tit: "",
value: ""
})
popList.text.push(item)
}
if (item.type == 2) {
formData1.pic.push({
tit: "",
value: ""
})
popList.pic.push(item)
}
if (item.type == 4) { if (item.type == 4) {
columns[0] = item.options.split(',') formData1.select.push({
// console.log() tit: "",
value: ""
})
popList.select.push(item)
}
if (item.type == 3) {
formData1.serch.push({
value: "",
tit: "",
list: [],
})
popList.serch.push(item)
}
if (item.type == 4) {
} }
}) })
showPop.value = true
}) })
} }
const updateImgFn = (tit) => { const updateImgFn = (tit, index) => {
change3(tit) change3(tit, index)
uplodeImg().then(res => { uplodeImg().then(res => {
formData.pic.value = res.data.image formData1.pic[index].value = res.data.image
}) })
} }
const previewImage = (src) => { const previewImage = (src) => {
uni.previewImage({ uni.previewImage({
urls: [src], urls: [src],
}) })
} }
const change1 = (tit) => { const selectIndex = ref('')
formData.text.tit = tit const choseSelect = (item, index) => {
formData1.select[index].tit = item.title
selectIndex.value = index
columns[0] = item.options.split(',')
showPicker.value = true
}
const change1 = (tit, index) => {
formData1.text[index].tit = tit
} }
const change2 = (tit) => { const change2 = (tit) => {
formData.select.tit = tit formData.select.tit = tit
} }
const change3 = (tit) => { const change3 = (tit, index) => {
formData.pic.tit = tit formData1.pic[index].tit = tit
} }
const change4 = (tit) => { const change4 = (tit) => {
formData.serch.tit = tit formData.serch.tit = tit
if (formData.serch.value) {
animalSearchByCodeAPI({
code: formData.serch.value
}).then(res => {
if (res.data.id) {
serchList.push(res.data)
console.log(formData.serch, 54554)
formData.serch.list.push(formData.serch.value)
}
formData.serch.value = ''
})
}
}
function deepCopy(obj) {
if (typeof obj !== 'object' || obj === null) {
return obj;
}
var newObj = Array.isArray(obj) ? [] : {};
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
newObj[key] = deepCopy(obj[key]);
}
}
return newObj;
}
const objFn = (res, data) => {
for (let key in res) {
if (typeof res[key] === 'object') {
objFn(res[key], data[key]);
} else {
data[key] = res[key]
}
}
} }
const setPropertiesToNull = (obj) => { const setPropertiesToNull = (obj) => {
for (var prop in obj) { for (var prop in obj) {
@ -338,16 +474,27 @@
} }
} }
} }
const objFn = (res, data, clear) => { const objClear = (obj) => {
for (let key in res) { for (let key in obj) {
data[key] = res[key] obj[key].splice(0, obj[key].length)
} }
} }
const arrFn = (res, data) => { const popCloseFn = () => {
res.forEach((item, index) => { showPop.value = false
data[index] = item serchList.splice(0, serchList.length)
}) objClear(popList)
objClear(formData1)
// setPropertiesToNull(formData)
}
const swipeDel = (e) => {
serchList.splice(e, 1);
formData1.serch.list.splice(e, 1)
}
const finshFn = () => {
uni.navigateTo({
url: "/pages/index/index"
})
} }
</script> </script>

View File

@ -24,7 +24,7 @@
土地检测数据 土地检测数据
</view> </view>
<view class="charts-box" v-for="(item,index) in baseData " :key="index"> <view class="charts-box" v-for="(item,index) in baseData " :key="index">
<qiun-data-charts type="line" :opts="opts" :chartData="chartData[index]" /> <qiun-data-charts type="line" :opts="opts[index]" :chartData="chartData[index]" />
</view> </view>
</view> </view>
@ -32,9 +32,7 @@
</view> </view>
</view> </view>
<!-- 组件 -->
<!-- <up-calendar minDate='2000-10-10' maxDate="2023-10-30" :show="showPicker" mode="range"
@confirm="confirm"></up-calendar> -->
<uni-calendar :insert="false" ref="calendar" :range='true' :lunar="true" @confirm="confirm" /> <uni-calendar :insert="false" ref="calendar" :range='true' :lunar="true" @confirm="confirm" />
</template> </template>
@ -73,9 +71,16 @@
], ],
chartData: [], chartData: [],
opts: []
// config-ucharts.js ['mix'] opts opts };
opts: { },
onReady() {
// console.log(this.getFiveDay())
this.initCharts(this.getFiveDay()[4], this.getFiveDay()[0])
},
methods: {
getOptFn() {
return {
dataLabel: false, dataLabel: false,
color: ["#1890FF"], color: ["#1890FF"],
padding: [15, 15, 0, 15], padding: [15, 15, 0, 15],
@ -88,12 +93,12 @@
position: "left", position: "left",
title: "", title: "",
min: 0, min: 0,
max: 10, max: 100,
}, },
{ {
position: "right", position: "right",
min: 0, min: 0,
max: 10, max: 110,
title: "", title: "",
textAlign: "left" textAlign: "left"
}, },
@ -110,14 +115,8 @@
} }
} }
}
}, },
};
},
onReady() {
// console.log(this.getFiveDay())
this.initCharts(this.getFiveDay()[4], this.getFiveDay()[0])
},
methods: {
getFiveDay() { getFiveDay() {
const today = new Date(); const today = new Date();
const lastFiveDays = []; const lastFiveDays = [];
@ -138,19 +137,30 @@
}, },
confirm(e) { confirm(e) {
// console.log(e) // console.log(e)
this.opts.xAxis.disabled = true this.opts.forEach(item => {
console.log(item)
item.xAxis.disabled = true
})
this.initCharts(e.range.before, e.range.after) this.initCharts(e.range.before, e.range.after)
}, },
changeDate(type) { changeDate(type) {
if (type == 'day') { if (type == 'day') {
this.opts.forEach(item => {
console.log(item)
item.xAxis.disabled = false
})
this.opts.xAxis.disabled = false this.opts.xAxis.disabled = false
this.leftNum = 10 this.leftNum = 10
this.initCharts(this.getFiveDay()[4], this.getFiveDay()[0]) this.initCharts(this.getFiveDay()[4], this.getFiveDay()[0])
} else { } else {
this.leftNum = 160 this.leftNum = 160
let date = new Date().getFullYear() + '-' + new Date().getMonth() + '-' let date = new Date().getFullYear() + '-' + (new Date().getMonth() + 1) + '-'
this.initCharts(date + '01', date + '30') this.initCharts(date + '01', date + '30')
this.opts.xAxis.disabled = true // this.opts.xAxis.disabled = true
this.opts.forEach(item => {
console.log(item)
item.xAxis.disabled = true
})
} }
// this.initCharts('2023-10-23', '2023-10-27') // this.initCharts('2023-10-23', '2023-10-27')
@ -169,8 +179,14 @@
start_time, start_time,
end_time end_time
}).then(res => { }).then(res => {
res.data.forEach((item, index) => {
this.opts.push(this.getOptFn())
// console.log()
this.opts[index].yAxis.data[0].max = item.max
this.opts[index].yAxis.data[1].max = item.max
})
// console.log(res.data[0].max)
this.baseData = res.data this.baseData = res.data
// this.baseData = this.aaa
let datas = this.baseData let datas = this.baseData
this.baseData.forEach((item, index) => { this.baseData.forEach((item, index) => {
this.getServerData(item, index) this.getServerData(item, index)

View File

@ -1,48 +1,5 @@
<template> <template>
<view class="content"> <view class="content">
<!-- <view class="card">
<view class="tit">
<view class="">
1号土地
</view>
<view class="">
溯源码: 12302
</view>
</view>
<view class="card-li">
<view class="">
当前种植: 土豆
</view>
<view class="">
种植品牌: 的划分等级
</view>
</view>
<view class="card-li">
<view class="">
土地面积: 20
</view>
<view class="">
种子品牌: 的划分等级
</view>
</view>
<view class="card-li">
<view class="">
预计产量: 20
</view>
<view class="">
已出售: 的划分等级
</view>
</view>
<view class="card-li">
<view class="">
播种时间: 2020.12.01
</view>
</view>
</view> -->
<landInfo :land_id='land_id'></landInfo> <landInfo :land_id='land_id'></landInfo>
<view class="histroy"> <view class="histroy">
<view class="tit" style="margin-bottom: 40rpx;"> <view class="tit" style="margin-bottom: 40rpx;">
@ -50,7 +7,8 @@
</view> </view>
<myTable :dataList='dataList'></myTable> <myTable :dataList='dataList'></myTable>
</view> </view>
<view class="btn" @click="navgo(`/pages/growRecord/index?land_id=${land_id}&crop_id=${crop_id}&type=1`)"> <view class="btn"
@click="navgo(`/pages/growRecord/index?land_id=${land_id}&crop_id=${crop_id}&type=1&title=${title}`)">
记录今日操作 记录今日操作
</view> </view>
</view> </view>
@ -83,9 +41,11 @@
const land_id = ref(0) const land_id = ref(0)
const crop_id = ref(0) const crop_id = ref(0)
const dataList = reactive({}) const dataList = reactive({})
const title = ref('')
onLoad((option) => { onLoad((option) => {
land_id.value = option.land_id land_id.value = option.land_id
crop_id.value = option.crop_id crop_id.value = option.crop_id
title.value = option.index
actionsAPI({ actionsAPI({
type: 1, type: 1,
crop_id: crop_id.value crop_id: crop_id.value

View File

@ -1,26 +1,26 @@
<template> <template>
<view class="content"> <view class="content">
<!-- {{userInfoData}} -->
<view class="card"> <view class="card">
<view class="card-tit"> <view class="card-tit">
<view class="" style="display: flex; align-items: center;"> <view class="" style="display: flex; align-items: center;">
<u--image src="/static/img/bg1.png" shape="circle" style="margin: 0 5rpx;" width="84.11rpx" <u--image :src="userInfoData.avatar" shape="circle" style="margin: 0 5rpx;" width="84.11rpx"
height="84.11rpx"></u--image> height="84.11rpx"></u--image>
<view class="" style="margin-left: 20rpx;"> <view class="" style="margin-left: 20rpx;">
张队长 {{userInfoData.name}}
</view> </view>
</view> </view>
<view class=""> <view class="">
管辖: 会发生肯德基回复 管辖: {{userInfoData.address}}
</view> </view>
</view> </view>
<view class="card-li" v-if="!showMore"> <view class="card-li" v-if="!showMore">
<view class=""> <view class="">
监管农户: 100hu1 监管农户: {{userInfoData.farmer_total}}
</view> </view>
<view class=""> <view class="">
涉及土地面积: 100hu1 涉及土地面积: {{userInfoData.farmer_area}}
</view> </view>
</view> </view>
<view class="border"> <view class="border">
@ -29,42 +29,42 @@
<view class="" v-if="showMore"> <view class="" v-if="showMore">
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
监管农户: 100hu1 监管农户: {{userInfoData.farmer_total}}
</view> </view>
<view class=""> <view class="">
涉及土地面积: 100hu1 涉及土地面积: {{userInfoData.farmer_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
种植户: 100hu1 种植户: {{userInfoData.farmer_zz_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{userInfoData.farmer_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-大型动物: 100hu1 养殖户-大型动物: {{userInfoData.farmer_jc_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{userInfoData.farmer_jc_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-禽类: 100hu1 养殖户-禽类: {{userInfoData.farmer_jq_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{userInfoData.farmer_jq_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-水产: 100hu1 养殖户-水产: {{userInfoData.farmer_sc_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{userInfoData.farmer_sc_area}}
</view> </view>
</view> </view>
<view class="border"> <view class="border">
@ -88,35 +88,36 @@
<u--image src="/static/img/CKGD.png" width="35.04rpx" height="35.04rpx"></u--image> <u--image src="/static/img/CKGD.png" width="35.04rpx" height="35.04rpx"></u--image>
</view> </view>
<view class="card"> <view class="card" v-for="(item,index) in userInfoData.farmer_list" :key="index">
<view class="card-tit"> <view class="card-tit">
<view class="" style="display: flex; align-items: center;"> <view class="" style="display: flex; align-items: center;">
<u--image src="/static/img/bg1.png" shape="circle" style="margin: 0 5rpx;" width="84.11rpx" <u--image src="/static/img/bg1.png" shape="circle" style="margin: 0 5rpx;" width="84.11rpx"
height="84.11rpx"></u--image> height="84.11rpx"></u--image>
<view class="" style="margin-left: 20rpx;"> <view class="" style="margin-left: 20rpx;">
张队长 {{item.name}}
</view> </view>
</view> </view>
<view class=""> <view class="">
地址: 会发生肯德基回复 地址: {{item.address}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="" style="margin-bottom: 20rpx;">
种养殖类别: 100 土地面积: {{item.total_area}}
</view> </view>
<view class=""> <view class="">
土地面积: 100 种养殖类别: {{farmerTypeFn(item)}}
</view>
</view> </view>
<view class="border"> </view>
<!-- <view class="border">
</view> </view>
<view class=""> <view class="">
更新时间: 2023-10-11 更新时间: 2023-10-11
</view> </view> -->
</view> </view>
@ -133,6 +134,43 @@
ref, ref,
reactive reactive
} from "vue" } from "vue"
import {
onLoad
} from "@dcloudio/uni-app"
import {
userInfoAPI
} from "@/api/plant.js"
const userInfoData = reactive({})
onLoad((option) => {
userInfoAPI({
user_id: option.id,
user_type: 2
}).then(res => {
for (let key in res.data) {
userInfoData[key] = res.data[key]
}
})
})
const farmerTypeFn = (data) => {
let arr = ['is_zz_user', 'is_sz_user', 'is_jc_user', 'is_jq_user']
let identity = ''
arr.forEach(item => {
if (data[item]) {
identity = identity + typeFn(item)
}
})
return identity.substr(0, identity.length - 1)
}
const typeFn = (type) => {
if (type == 'is_zz_user') return "种植户,"
if (type == 'is_sz_user') return "水产户,"
if (type == 'is_jc_user') return "家畜户,"
if (type == 'is_jq_user') return "家禽户,"
}
const showMore = ref(false) const showMore = ref(false)
const showPicker = ref(false) const showPicker = ref(false)
const columns = reactive([ const columns = reactive([
@ -172,7 +210,9 @@
.card-li { .card-li {
display: flex; display: flex;
// margin: ; // margin: ;
flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} }
.border { .border {

View File

@ -61,9 +61,9 @@
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="add-btn" @click="navgo('/pages/growRecord/index')"> <!-- <view class="add-btn" @click="navgo('/pages/growRecord/index')">
批量处理 批量处理
</view> </view> -->
<view class="add-btn add" @click="navgo('/pages/InformationAdd/index')"> <view class="add-btn add" @click="navgo('/pages/InformationAdd/index')">
增加种植 增加种植
</view> </view>

View File

@ -1,14 +1,16 @@
<template> <template>
<view class="content"> <view class="content">
<view class="card"> <view class="card">
<view class="card-herd"> <view class="card-herd">
<u--image src="/static/img/bg1.png" shape="circle" style="margin: 0 5rpx;" width="84.11rpx" <u--image :src="userInfoDetail.avatar" shape="circle" style="margin: 0 5rpx;" width="84.11rpx"
height="84.11rpx"></u--image> height="84.11rpx"></u--image>
<view class=""> <view class="">
1号小组 {{userInfoDetail.name}}
</view> </view>
<view class=""> <view class="">
通滩指导养殖合作服务公司 {{userInfoDetail.company_name}}
<!-- 通滩指导养殖合作服务公司 -->
</view> </view>
</view> </view>
</view> </view>
@ -17,28 +19,28 @@
<view class="" style="margin-right: 61rpx;"> <view class="" style="margin-right: 61rpx;">
监管土地 监管土地
</view> </view>
<u-search placeholder="搜索基地名称" :show-action="false" bgColor='white' v-model="keyword"></u-search> <!-- <u-search placeholder="搜索基地名称" :show-action="false" bgColor='white' v-model="keyword"></u-search> -->
</view> </view>
<view class="card"> <view class="card" v-for="(item,index) in userInfoDetail.captain_list" :key="index" @click="navgo(item.id)">
<view class="card-tit"> <view class="card-tit">
<view class="" style="display: flex; align-items: center;"> <view class="" style="display: flex; align-items: center;">
<u--image src="/static/img/bg1.png" shape="circle" style="margin: 0 5rpx;" width="84.11rpx" <u--image :src="item.avatar" shape="circle" style="margin: 0 5rpx;" width="84.11rpx"
height="84.11rpx"></u--image> height="84.11rpx"></u--image>
<view class="" style="margin-left: 20rpx;"> <view class="" style="margin-left: 20rpx;">
张队长 {{item.name}}
</view> </view>
</view> </view>
<view class=""> <view class="">
管辖: 会发生肯德基回复 管辖: {{item.address}}
</view> </view>
</view> </view>
<view class="card-li" v-if="!showMore"> <view class="card-li" v-if="!showMore">
<view class=""> <view class="">
监管农户: 100hu1 监管农户: {{item.farmer_total}}
</view> </view>
<view class=""> <view class="">
涉及土地面积: 100hu1 涉及土地面积: {{item.farmer_area}}
</view> </view>
</view> </view>
<view class="border"> <view class="border">
@ -47,42 +49,42 @@
<view class="" v-if="showMore"> <view class="" v-if="showMore">
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
监管农户: 100hu1 监管农户:{{item.farmer_total}}
</view> </view>
<view class=""> <view class="">
涉及土地面积: 100hu1 涉及土地面积: {{item.farmer_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
种植户: 100hu1 种植户:{{item.farmer_zz_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{item.farmer_zz_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-大型动物: 100hu1 养殖户-大型动物: {{item.farmer_jc_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{item.farmer_jc_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-禽类: 100hu1 养殖户-禽类: {{item.farmer_jq_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{item.farmer_jq_area}}
</view> </view>
</view> </view>
<view class="card-li"> <view class="card-li">
<view class=""> <view class="">
养殖户-水产: 100hu1 养殖户-水产: {{item.farmer_sc_total}}
</view> </view>
<view class=""> <view class="">
占地面积: 100hu1 占地面积: {{item.farmer_sc_area}}
</view> </view>
</view> </view>
<view class="border"> <view class="border">
@ -113,7 +115,25 @@
ref, ref,
reactive reactive
} from "vue" } from "vue"
import {
userInfoAPI
} from "@/api/plant.js"
const showMore = ref(true) const showMore = ref(true)
const userInfoDetail = reactive({})
userInfoAPI({
user_id: 25,
user_type: 1
}).then(res => {
for (let key in res.data) {
userInfoDetail[key] = res.data[key]
}
})
const navgo = (id) => {
uni.navigateTo({
url: `/pages/supervision/captain?id=${id}`
})
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>