This commit is contained in:
Vinjor 2024-10-30 18:14:19 +08:00
parent 412e4e7157
commit bb2439d392
10 changed files with 91 additions and 29 deletions

View File

@ -1,16 +1,20 @@
{ // launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ {
// launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote // launchtypelocalremote, localremote
"version" : "0.0", "version" : "0.0",
"configurations": [{ "configurations" : [
"app-plus" :
{ {
"app-plus" : {
"launchtype" : "local" "launchtype" : "local"
}, },
"default" : "default" : {
{
"launchtype" : "local" "launchtype" : "local"
}, },
"type" : "uniCloud" "type" : "uniCloud"
},
{
"playground" : "standard",
"type" : "uni-app:app-android"
} }
] ]
} }

View File

@ -12,7 +12,7 @@
<image mode="aspectFit" src="@/static/icons/tabbar/order.png" v-show="aindex != 2"></image> <image mode="aspectFit" src="@/static/icons/tabbar/order.png" v-show="aindex != 2"></image>
<image mode="aspectFit" src="@/static/icons/tabbar/order-checked.png" v-show="aindex == 2"></image> <image mode="aspectFit" src="@/static/icons/tabbar/order-checked.png" v-show="aindex == 2"></image>
</view> </view>
<view class="">工单</view> <view class="">{{ title }}</view>
</view> </view>
<!-- <view class="box" :class="{active: aindex == 3}" @click="getgogo(3)">--> <!-- <view class="box" :class="{active: aindex == 3}" @click="getgogo(3)">-->
<!-- <view class="imgs">--> <!-- <view class="imgs">-->
@ -57,7 +57,14 @@
} }
}, },
props: { props: {
msg: String|Number msg: {
type: String|Number,
default: ''
},
title: {
type: String,
default: '工单'
},
}, },
onLoad() { onLoad() {
this.userInfo = getUserInfo(); this.userInfo = getUserInfo();

View File

@ -1,12 +1,14 @@
// 应用全局配置 // 应用全局配置
module.exports = { module.exports = {
// baseUrl: 'https://www.nuoyunr.com', // baseUrl: 'https://www.nuoyunr.com',
// baseUrl: 'http://192.168.1.17:48080', // baseUrl: 'http://124.222.105.7:48080',
baseUrl: "http://localhost:48080", baseUrl: 'http://192.168.1.17:48080',
// baseUrl: "http://localhost:48080",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/', imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/', baseImageUrl: 'https://www.nuoyunr.com/minio/',
shareUrl: 'https://www.lighting-it.cn/share?inviteId=', shareUrl: 'https://www.lighting-it.cn/share?inviteId=',
wsUrl: 'ws://192.168.1.17:48080', wsUrl: 'ws://192.168.1.17:48080',
//com.carService.qx
// 应用信息 // 应用信息
appInfo: { appInfo: {
// 应用名称 // 应用名称

View File

@ -41,9 +41,27 @@
] ]
}, },
/* ios */ /* ios */
"ios" : {}, "ios" : {
"dSYMs" : false
},
/* SDK */ /* SDK */
"sdkConfigs" : {} "sdkConfigs" : {}
},
"nativePlugins" : {
"Ba-KeepAlive" : {
"__plugin_info__" : {
"name" : "安卓保活(采用多种主流技术) Ba-KeepAlive",
"description" : "原生保活插件支持市面上大部分机型Android4.4到13.0 。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms" : "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=9423",
"android_package_name" : "com.carService.qx",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
"pid" : "9423",
"parameters" : {}
}
}
} }
}, },
/* */ /* */

View File

@ -34,7 +34,8 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<tabBarVue msg="2"></tabBarVue> <tabBarVue v-if="isRepairWarehouse" title="采购单" msg="2"></tabBarVue>
<tabBarVue v-else msg="2"></tabBarVue>
</view> </view>
</template> </template>

View File

@ -58,7 +58,7 @@
<text class="formValue"></text> <text class="formValue"></text>
</view> </view>
<view style="padding-bottom: 60rpx;border-bottom: 1px solid #ddd;" class="formItem"> <view style="padding-bottom: 60rpx;border-bottom: 1px solid #ddd;" class="formItem">
<checkbox-group v-model="checkedCorpIdList"> <checkbox-group v-model="checkedCorpIdList" @change="cs">
<checkbox v-for="(item, index) in allCompanyList" :key="index" :value="item.id" :checked="item.checked">{{ item.corpName }}</checkbox> <checkbox v-for="(item, index) in allCompanyList" :key="index" :value="item.id" :checked="item.checked">{{ item.corpName }}</checkbox>
</checkbox-group> </checkbox-group>
</view> </view>
@ -153,6 +153,9 @@ export default {
}, },
methods: { methods: {
cs(e){
this.checkedCorpIdList =e.detail.value
},
/** /**
* 初始化配件数据 * 初始化配件数据
*/ */
@ -290,10 +293,14 @@ export default {
return return
} }
// //
console.log(this.allCompanyList,"this.checkedCorpIdList")
debugger
if(this.checkedCorpIdList.length>0){ if(this.checkedCorpIdList.length>0){
this.formData.corpId = this.checkedCorpIdList.join() this.formData.corpId = this.checkedCorpIdList.join()
} }
// //
this.formData.status = "01"
this.formData.type = this.allTypeList[this.typeIndex].id this.formData.type = this.allTypeList[this.typeIndex].id
this.formData.unit = this.allUnitList[this.unitIndex].value this.formData.unit = this.allUnitList[this.unitIndex].value
this.formData.dataForm = this.allFromList[this.fromIndex].value this.formData.dataForm = this.allFromList[this.fromIndex].value

View File

@ -88,7 +88,7 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<tabBarVue msg="1"></tabBarVue> <tabBarVue msg="1" title="采购单"></tabBarVue>
</view> </view>
</template> </template>

View File

@ -38,7 +38,7 @@
<view class="footer" v-if="isToBeReviewed"> <view class="footer" v-if="isToBeReviewed">
<text class="label"></text> <text class="label"></text>
<text class="repairNum"></text> <text class="repairNum"></text>
<!-- <view class="submit" @click="toPart">采购</view>--> <view class="submit" @click="toPart">采购</view>
<view class="submit" @click="submit">{{isReceive?'通知领料':'通知退料'}}</view> <view class="submit" @click="submit">{{isReceive?'通知领料':'通知退料'}}</view>
</view> </view>
</view> </view>

View File

@ -5,7 +5,7 @@
<view class="list"> <view class="list">
<view class="formItem" v-if="!isInput"> <view class="formItem" v-if="!isInput">
<text class="formLabel">供应商</text> <text class="formLabel">供应商</text>
<input type="text" style="text-align: right" v-model="serviceName" placeholder="请选择供应商"/> <input type="text" style="text-align: right" v-model="serviceName" placeholder="请输入供应商名称"/>
<view @click="searchService">查询</view> <view @click="searchService">查询</view>
</view> </view>
<view class="formItem" v-if="!isInput"> <view class="formItem" v-if="!isInput">
@ -17,11 +17,11 @@
</view> </view>
<uni-card v-for="(item, index) in partList" :key="index" :title="item.name" :extra="'上次价格:'+item.purPrice"> <uni-card v-for="(item, index) in partList" :key="index" :title="item.name" :extra="'上次价格:'+item.purPrice">
<view class="formItem"> <view class="formItem">
<text class="formLabel">单价</text> <view class="formLabel">单价</view>
<input type="number" style="text-align: right" v-model="item.newPrice" placeholder="请输入单价"/> <input type="number" style="text-align: right" v-model="item.newPrice" placeholder="请输入单价"/>
</view> </view>
<view class="formItem"> <view class="formItem">
<text class="formLabel">数量</text> <view class="formLabel">数量</view>
<input type="number" style="text-align: right" v-model="item.count" placeholder="请输入数量"/> <input type="number" style="text-align: right" v-model="item.count" placeholder="请输入数量"/>
</view> </view>
</uni-card> </uni-card>
@ -325,6 +325,7 @@ export default {
.formLabel { .formLabel {
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
width: 50px;
} }
.formValue { .formValue {

View File

@ -10,10 +10,21 @@
export default { export default {
data() { data() {
return { return {
keepLive: {
channelId: 'Ba-KeepAlive',
channelName: "Ba-KeepAlive",
title: "汽修小助手正在运行",
content: "汽修小助手正在运行",
dataResult: "",
type: undefined
}
} }
}, },
onLoad() { onLoad() {
// #ifdef APP
//
this.register()
// #endif
if(getToken()){ if(getToken()){
// //
// //
@ -35,7 +46,18 @@
} }
}, },
methods: { methods: {
register() { //
console.log(keepAlivePlugin, 'keepAlive');
keepAlivePlugin.register({
channelId: this.keepLive.channelId,
channelName: this.keepLive.channelName,
title: this.keepLive.title,
content: this.keepLive.content,
},
(res) => {
console.log('保活注册', res);
});
},
} }
} }
</script> </script>