diff --git a/package1/AI/AIHangOrderList.vue b/package1/AI/AIHangOrderList.vue
index a6edd2f..0fea9ce 100644
--- a/package1/AI/AIHangOrderList.vue
+++ b/package1/AI/AIHangOrderList.vue
@@ -179,10 +179,10 @@
实际价格
-
+
+ style="position: absolute;top: 110rpx;right: 20rpx;color: #088FEB;text-decoration: underline;">
保存已选
@@ -1540,7 +1540,7 @@
.shop-title-fur {
width: 95%;
- height: 70rpx;
+ height: 50rpx;
margin: 0 auto;
}
@@ -1548,7 +1548,7 @@
font-size: 30rpx;
width: 50%;
float: left;
- height: 70rpx;
+ height: 50rpx;
line-height: 70rpx;
}
@@ -1557,6 +1557,8 @@
display: inline-block;
border: 1px solid #5fd9ee;
margin: 20rpx;
+ margin-bottom: 0;
+ margin-left: 0;
background-color: #fff;
color: #5fd9ee;
min-width: 100rpx;
diff --git a/package1/AI/AIInventoryList.vue b/package1/AI/AIInventoryList.vue
index f8e9ed3..3379551 100644
--- a/package1/AI/AIInventoryList.vue
+++ b/package1/AI/AIInventoryList.vue
@@ -43,7 +43,7 @@
识别中...
识别完成
识别失败
- 去入库
+ 去入库
删除
@@ -185,8 +185,8 @@
if (res2.confirm) {
that.tui.request("/app/purchase/delById", "POST", {
id:id
- }, false, false).then((res) => {
- if(res.code == 200){
+ }, false, true).then((res) => {
+ if(res.code == 500 && res.message == '删除成功!'){
that.pageNum = 1
that.aiList = []
that.getList()
diff --git a/package1/AI/AIPicture.vue b/package1/AI/AIPicture.vue
index 460885b..26cb7a8 100644
--- a/package1/AI/AIPicture.vue
+++ b/package1/AI/AIPicture.vue
@@ -190,7 +190,10 @@
}
});
},
- upLoadImg(type) {
+ upLoadImg(type) {
+ uni.showLoading({
+ title: '加载中...'
+ })
let that = this;
if(type == 'ios'){
uni.chooseMedia({
@@ -209,14 +212,18 @@
sourceType: ['camera'],
camera: 'back',
success(res) {
- uni.chooseMedia({
- count: 1,
- mediaType: ['image'],
- sourceType: ['album'],
- success(res1) {
- that.upLoadFile(res1.tempFiles[0].tempFilePath)
- }
- })
+ console.log('拍照',res)
+ setTimeout(res=>{
+ uni.chooseMedia({
+ count: 1,
+ mediaType: ['image'],
+ sourceType: ['album'],
+ success(res1) {
+ console.log('选图',res1)
+ that.upLoadFile(res1.tempFiles[0].tempFilePath)
+ }
+ })
+ },300)
}
})
}else if(type == 'xuan'){
@@ -229,10 +236,14 @@
}
})
}
- this.$refs.popup.close()
+ this.$refs.popup.close()
+ uni.hideLoading();
},
upLoadFile(path){
let that = this;
+ uni.showLoading({
+ title: '加载中...'
+ })
let hiver_token = uni.getStorageSync("hiver_token")
uni.uploadFile({
url: 'https://dev.xenjoyou.com/hiver/upload/file',
@@ -280,6 +291,9 @@
})
}
});
+ setTimeout(res=>{
+ uni.hideLoading();
+ },500)
},
delImage(index) {
let that = this;
diff --git a/package1/inventory/batchPrint.vue b/package1/inventory/batchPrint.vue
index fd2c33d..2ce03d4 100644
--- a/package1/inventory/batchPrint.vue
+++ b/package1/inventory/batchPrint.vue
@@ -13,13 +13,13 @@
{{item.productName}}
{{item.productSn}}
-
+
- {{item.wholesalePrice}}
+ {{item.wholesalePrice == null ?'暂无':item.wholesalePrice}}
批发价
- {{item.lsprice}}
+ {{item.lsprice || item.price}}
零售价
@@ -153,11 +153,9 @@
if(options.purchase){
this.purchase = JSON.parse(options.purchase)
this.goodsList = JSON.parse(options.purchaseDetails)
-
-
-
+ console.log(JSON.parse(options.purchase))
+ console.log(JSON.parse(options.purchaseDetails))
}else{
-
this.type = uni.getStorageSync('type')
this.getGategoryList()
}
diff --git a/package1/inventory/inventoryConfirm.vue b/package1/inventory/inventoryConfirm.vue
index 4840f22..87c4f73 100644
--- a/package1/inventory/inventoryConfirm.vue
+++ b/package1/inventory/inventoryConfirm.vue
@@ -103,6 +103,9 @@
})
if(this.aiinventory == 1){
url = '/app/stock/putInPriceOfAi'
+ for(let i=0;i
-
-
+
联系拉包工
联系店铺
+
+ 转单
+
{{item.orderAddress}}
@@ -121,6 +124,32 @@
+
+
+
+
@@ -131,17 +160,20 @@
export default {
data() {
return {
- list: ['待接单', '待取货', '待送达','店铺自送'],
+ list: ['待接单', '待取货', '待送达','店铺自送'],
+ logistics:['长途物流','短途物流'],
modalShow: false,
content:'地址',
orderStatus:0,
status: 'loadmore',
- endDate: '',
+ endDate: '',
+ saleId:'',
startDate: '',
transCompany: '',
totalPages:0,
pages:1,
- bList: [],
+ bList: [],
+ logisticsList:[],
horizontal: 'right',
content: [{
iconPath: '/static/images/tabbar/home.png',
@@ -168,10 +200,12 @@
type:'',
companyName:'',
current:0,
+ logisticsCurrent:0,
waitUpDoorNum:0,
upDoorList:[],
copyType:'',
- copyItem:[]
+ copyItem:[],
+ searchName:''
}
},
created() {
@@ -235,8 +269,14 @@
}
})
},
- toggle(){
- this.$refs.popup.open()
+ toggle(type,saleId){
+ if(type=='zhuan'){
+ this.logisticsChange(0)
+ this.saleId = saleId
+ this.$refs.zhuanPopup.open()
+ }else{
+ this.$refs.popup.open()
+ }
},
getSale(item){
uni.request({
@@ -346,6 +386,46 @@
uni.makePhoneCall({
phoneNumber: phone
});
+ },
+ logisticsChange(index){
+ let that = this
+ this.logisticsCurrent = index
+ this.logisticsList = []
+ this.pages = 1
+ let data = {}
+ if(index == 0){
+ data = {
+ pageNumber: 1,
+ pageSize: 100,
+ signCompany: 0,
+ companyName: this.searchName
+ }
+ }else if(index == 1){
+ data = {
+ pageNumber: 1,
+ pageSize: 100,
+ signCompany: 4,
+ companyName: this.searchName
+ }
+ }
+ uni.request({
+ url: that.tui.interfaceUrl() + '/app/logitics/getByCondition',
+ data: data,
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded',
+ 'appWLToken': that.tui.getToken()
+ },
+ method: 'GET', //'GET','POST'
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 200){
+ that.logisticsList = res.data.result.content
+ }
+ },
+ fail: (res) => {
+ that.tui.toast("网络不给力,请稍后再试~")
+ }
+ })
},
sectionChange(index) {
this.current = index
@@ -360,6 +440,44 @@
this.orderStatus = index
this.getList()
}
+ },
+ zhuandan(item){
+ let that = this;
+ uni.request({
+ url: that.tui.interfaceUrl() + '/app/sale/changeCompany',
+ data: {
+ saleId:that.saleId,
+ companyId:item.id
+ },
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded',
+ 'appWLToken': that.tui.getToken()
+ },
+ method: 'POST', //'GET','POST'
+ dataType: 'json',
+ success: (res) => {
+ if (res.data.code == 200){
+ that.$refs.zhuanPopup.close()
+ that.getList()
+ setTimeout(res=>{
+ that.tui.toast("转单成功")
+ },500)
+
+ }
+ },
+ fail: (res) => {
+ that.tui.toast("网络不给力,请稍后再试~")
+ }
+ })
+ },
+ //顶部搜索框
+ search(res) {
+ this.searchName = res.value
+ this.logisticsChange(this.logisticsCurrent)
+ },
+ clearSearch(){
+ this.searchName = ''
+ this.logisticsChange(this.logisticsCurrent)
},
trigger(e) {
let that = this;
@@ -367,7 +485,6 @@
uni.navigateTo({
url: `/package1/other/logisticsAddress`
})
- // that.tui.toast("线路配置暂不可用")
}else if(e.index == 1){
uni.navigateTo({
url: `/package1/other/companyLog`
diff --git a/package1/other/logisticsAddress.vue b/package1/other/logisticsAddress.vue
index 0e5ce8f..25ded06 100644
--- a/package1/other/logisticsAddress.vue
+++ b/package1/other/logisticsAddress.vue
@@ -1,8 +1,8 @@
-
+
{{item.province +'-'+ item.city+'-'+item.area}}
@@ -16,10 +16,10 @@
费用说明
-
+
diff --git a/package1/staff/addStaff.vue b/package1/staff/addStaff.vue
index 16b07be..ae71d66 100644
--- a/package1/staff/addStaff.vue
+++ b/package1/staff/addStaff.vue
@@ -23,12 +23,12 @@
data() {
return {
addForm: {
- nickname: '',
- username:'',
+ nickname: '',
mobile: '',
type: '',
password:'123456'
- },
+ },
+ username:'',
id: '',
typeList: [{
value: 0,
@@ -66,8 +66,7 @@
const item = JSON.parse(options.item)
this.type = options.type
if (type === 'edit') {
- this.addForm.nickname = item.nickname
- this.addForm.username = item.mobile
+ this.addForm.nickname = item.nickname
this.addForm.mobile = item.mobile
this.addForm.type = Number(item.type)
this.id = item.id
@@ -82,6 +81,7 @@
let url;
if(this.type=='edit'){
url = '/app/common/user/edit'
+ this.addForm.username = this.mobile
this.addForm.id = this.id
}else{
url = '/app/common/user/add'