fix: 更新版本号至2.7.3并修复代码格式问题
修复watchGoods.vue和goodsdetail.vue中的代码格式问题,包括缩进和换行 更新manifest.json中的版本号至2.7.3
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
"name" : "上海干巷涂装PDA",
|
||||
"appid" : "__UNI__A67E78B",
|
||||
"description" : "",
|
||||
"versionName" : "2.7.2",
|
||||
"versionCode" : 272,
|
||||
"versionName" : "2.7.3",
|
||||
"versionCode" : 273,
|
||||
"transformPx" : false,
|
||||
"sassImplementationName" : "node-sass",
|
||||
"app-plus" : {
|
||||
|
||||
@@ -4,15 +4,10 @@
|
||||
<view class="search-container">
|
||||
<view class="search-input-wrapper">
|
||||
<uni-icons type="search" size="24" color="#999"></uni-icons>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="请填写流水号如401"
|
||||
class="search-input"
|
||||
: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>
|
||||
<input type="text" placeholder="请填写流水号如401" class="search-input" :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>
|
||||
<button class="search-button" @click="getList()">搜索</button>
|
||||
</view>
|
||||
@@ -77,27 +72,27 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as watchGoodsApi from '@/api/watchGoods/watchGoods.js';
|
||||
export default {
|
||||
onLoad: function(option) {
|
||||
this.shortpatchcode = option.shortpatchcode;
|
||||
this.locationCode = option.locationCode;
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
formData: {
|
||||
query: ''
|
||||
},
|
||||
shortpatchcode: '',
|
||||
locationCode:'',
|
||||
dataList: [],
|
||||
total: 0
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
import * as watchGoodsApi from '@/api/watchGoods/watchGoods.js';
|
||||
export default {
|
||||
onLoad: function (option) {
|
||||
this.shortpatchcode = option.shortpatchcode;
|
||||
this.locationCode = option.locationCode;
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
formData: {
|
||||
query: ''
|
||||
},
|
||||
shortpatchcode: '',
|
||||
locationCode: '',
|
||||
dataList: [],
|
||||
total: 0
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
// 处理输入变化
|
||||
handleInput(event) {
|
||||
this.formData.query = event.target.value;
|
||||
@@ -110,7 +105,7 @@
|
||||
getList() {
|
||||
const query = {
|
||||
packageCodeClient: this.shortpatchcode + '_' + this.formData.query,
|
||||
locationCode:this.locationCode
|
||||
locationCode: this.locationCode
|
||||
};
|
||||
watchGoodsApi.GetGoodsNowProduction_detail(query).then((res) => {
|
||||
if (res.code == 200) {
|
||||
@@ -120,7 +115,7 @@
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@@ -3,10 +3,12 @@
|
||||
<!-- 原生搜索框 -->
|
||||
<view class="search-container">
|
||||
<view class="search-input-wrapper">
|
||||
<uni-icons type="search" size="24" color="#999"></uni-icons>
|
||||
<input type="text" placeholder="标签/零件号/批次号/库位号" class="search-input" :value="formData.query" @input="queryChange" @confirm="getList()" />
|
||||
<uni-icons v-if="formData.query" type="clear" size="24" color="#999" @click="clearInput" class="clear-icon"></uni-icons>
|
||||
</view>
|
||||
<uni-icons type="search" size="24" color="#999"></uni-icons>
|
||||
<input type="text" placeholder="标签/零件号/批次号/库位号" class="search-input" :value="formData.query"
|
||||
@input="queryChange" @confirm="getList()" />
|
||||
<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>
|
||||
</view>
|
||||
|
||||
@@ -163,7 +165,7 @@ export default {
|
||||
},
|
||||
// 扫标签码时,自动进行翻译
|
||||
async queryChange(event) {
|
||||
const _value = event.target.value;
|
||||
const _value = event.target.value;
|
||||
if (_value === null || _value === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user