fix: 更新版本号至2.7.3并修复代码格式问题

修复watchGoods.vue和goodsdetail.vue中的代码格式问题,包括缩进和换行
更新manifest.json中的版本号至2.7.3
This commit is contained in:
2025-10-22 14:20:43 +08:00
parent 10bc8314d7
commit b04c565b1c
3 changed files with 36 additions and 39 deletions

View File

@@ -2,8 +2,8 @@
"name" : "上海干巷涂装PDA", "name" : "上海干巷涂装PDA",
"appid" : "__UNI__A67E78B", "appid" : "__UNI__A67E78B",
"description" : "", "description" : "",
"versionName" : "2.7.2", "versionName" : "2.7.3",
"versionCode" : 272, "versionCode" : 273,
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
"app-plus" : { "app-plus" : {

View File

@@ -4,15 +4,10 @@
<view class="search-container"> <view class="search-container">
<view class="search-input-wrapper"> <view class="search-input-wrapper">
<uni-icons type="search" size="24" color="#999"></uni-icons> <uni-icons type="search" size="24" color="#999"></uni-icons>
<input <input type="text" placeholder="请填写流水号如401" class="search-input" :value="formData.query"
type="text" @input="handleInput" @confirm="getList()">
placeholder="请填写流水号如401" <uni-icons v-if="formData.query" type="clear" size="24" color="#999" @click="clearInput"
class="search-input" class="clear-icon"></uni-icons>
:value="formData.query"
@input="handleInput"
@confirm="getList()"
>
<uni-icons v-if="formData.query" type="clear" size="24" color="#999" @click="clearInput" class="clear-icon"></uni-icons>
</view> </view>
<button class="search-button" @click="getList()">搜索</button> <button class="search-button" @click="getList()">搜索</button>
</view> </view>
@@ -77,27 +72,27 @@
</template> </template>
<script> <script>
import * as watchGoodsApi from '@/api/watchGoods/watchGoods.js'; import * as watchGoodsApi from '@/api/watchGoods/watchGoods.js';
export default { export default {
onLoad: function(option) { onLoad: function (option) {
this.shortpatchcode = option.shortpatchcode; this.shortpatchcode = option.shortpatchcode;
this.locationCode = option.locationCode; this.locationCode = option.locationCode;
}, },
data() { data() {
return { return {
formData: { formData: {
query: '' query: ''
}, },
shortpatchcode: '', shortpatchcode: '',
locationCode:'', locationCode: '',
dataList: [], dataList: [],
total: 0 total: 0
}; };
}, },
mounted() { mounted() {
this.getList(); this.getList();
}, },
methods: { methods: {
// 处理输入变化 // 处理输入变化
handleInput(event) { handleInput(event) {
this.formData.query = event.target.value; this.formData.query = event.target.value;
@@ -110,7 +105,7 @@
getList() { getList() {
const query = { const query = {
packageCodeClient: this.shortpatchcode + '_' + this.formData.query, packageCodeClient: this.shortpatchcode + '_' + this.formData.query,
locationCode:this.locationCode locationCode: this.locationCode
}; };
watchGoodsApi.GetGoodsNowProduction_detail(query).then((res) => { watchGoodsApi.GetGoodsNowProduction_detail(query).then((res) => {
if (res.code == 200) { if (res.code == 200) {
@@ -120,7 +115,7 @@
}); });
} }
} }
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

View File

@@ -3,10 +3,12 @@
<!-- 原生搜索框 --> <!-- 原生搜索框 -->
<view class="search-container"> <view class="search-container">
<view class="search-input-wrapper"> <view class="search-input-wrapper">
<uni-icons type="search" size="24" color="#999"></uni-icons> <uni-icons type="search" size="24" color="#999"></uni-icons>
<input type="text" placeholder="标签/零件号/批次号/库位号" class="search-input" :value="formData.query" @input="queryChange" @confirm="getList()" /> <input type="text" placeholder="标签/零件号/批次号/库位号" class="search-input" :value="formData.query"
<uni-icons v-if="formData.query" type="clear" size="24" color="#999" @click="clearInput" class="clear-icon"></uni-icons> @input="queryChange" @confirm="getList()" />
</view> <uni-icons v-if="formData.query" type="clear" size="24" color="#999" @click="clearInput"
class="clear-icon"></uni-icons>
</view>
<button class="search-button" :disabled="loading" @click="getList()">搜索</button> <button class="search-button" :disabled="loading" @click="getList()">搜索</button>
</view> </view>
@@ -163,7 +165,7 @@ export default {
}, },
// 扫标签码时,自动进行翻译 // 扫标签码时,自动进行翻译
async queryChange(event) { async queryChange(event) {
const _value = event.target.value; const _value = event.target.value;
if (_value === null || _value === '') { if (_value === null || _value === '') {
return; return;
} }