|
@@ -509,7 +509,7 @@
|
|
<view class="title">规格(公斤)</view>
|
|
<view class="title">规格(公斤)</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<u-radio-group active-color='#22C572' v-model="gridList.specifications" @change="radioGroupChange">
|
|
<u-radio-group active-color='#22C572' v-model="gridList.specifications" @change="radioGroupChange">
|
|
- <u-radio name="850">850</u-radio>
|
|
|
|
|
|
+ <u-radio class='radio' name="850">850</u-radio>
|
|
<u-radio name="830">830</u-radio>
|
|
<u-radio name="830">830</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</view>
|
|
</view>
|
|
@@ -519,7 +519,17 @@
|
|
<view class="title">工厂</view>
|
|
<view class="title">工厂</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input v-model='gridList.factory' :disabled='disabled1' maxlength="30"
|
|
<input v-model='gridList.factory' :disabled='disabled1' maxlength="30"
|
|
- placeholder="请输入工厂" name="input" type="digit"></input>
|
|
|
|
|
|
+ placeholder="请输入工厂" name="input" type="text"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'"
|
|
|
|
+ class="c-row">
|
|
|
|
+ <view class="title">生产日期</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <u-calendar v-model="show3" @change="change1" :mode="mode"></u-calendar>
|
|
|
|
+ <view :style='gridList.produceDate?"color:#000;":"color:#999;"' @click="show3 = true">{{gridList.produceDate?gridList.produceDate:'选择生产日期'}}</view>
|
|
|
|
+ <!-- <input v-model='gridList.factory' :disabled='disabled1' maxlength="30"
|
|
|
|
+ placeholder="请输入工厂" name="input" type="digit"></input> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-show="compName=='辽宁佳屹农商贸有限公司'" class="c-row">
|
|
<view v-show="compName=='辽宁佳屹农商贸有限公司'" class="c-row">
|
|
@@ -536,7 +546,7 @@
|
|
modelId: '',
|
|
modelId: '',
|
|
vesselId: ''}" :action="action" :show-progress='false' :show-tips="false" :max-size="maxSize" :max-count="9"
|
|
vesselId: ''}" :action="action" :show-progress='false' :show-tips="false" :max-size="maxSize" :max-count="9"
|
|
:size-type="['compressed']" @on-success="getImgUrl($event,0)" @on-error="onError"
|
|
:size-type="['compressed']" @on-success="getImgUrl($event,0)" @on-error="onError"
|
|
- @on-remove="onRemove" @on-uploaded="isAdd = true"
|
|
|
|
|
|
+ @on-remove="onRemove($event,0)" @on-uploaded="isAdd = true"
|
|
:limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
:limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
<view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
<view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
hover-stay-time="150">
|
|
hover-stay-time="150">
|
|
@@ -561,7 +571,7 @@
|
|
modelId: '',
|
|
modelId: '',
|
|
vesselId: ''}" :action="action" :show-progress='false' :show-tips="false" :max-size="maxSize" :max-count="9"
|
|
vesselId: ''}" :action="action" :show-progress='false' :show-tips="false" :max-size="maxSize" :max-count="9"
|
|
:size-type="['compressed']" @on-success="getImgUrl($event,1)" @on-error="onError"
|
|
:size-type="['compressed']" @on-success="getImgUrl($event,1)" @on-error="onError"
|
|
- @on-remove="onRemove" @on-uploaded="isAdd = true"
|
|
|
|
|
|
+ @on-remove="onRemove($event,1)" @on-uploaded="isAdd = true"
|
|
:limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
:limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
<view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
<view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
hover-stay-time="150">
|
|
hover-stay-time="150">
|
|
@@ -683,6 +693,7 @@
|
|
show3: false,
|
|
show3: false,
|
|
show2: false,
|
|
show2: false,
|
|
goodsList: [],
|
|
goodsList: [],
|
|
|
|
+ mode: 'date',
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
value: false,
|
|
value: false,
|
|
gridBorder: false,
|
|
gridBorder: false,
|
|
@@ -936,7 +947,7 @@
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
that = this
|
|
that = this
|
|
- console.log(that)
|
|
|
|
|
|
+ var date = new Date()
|
|
console.log(this.cangid)
|
|
console.log(this.cangid)
|
|
this.commonWarehouseNo = options.commonWarehouseNo
|
|
this.commonWarehouseNo = options.commonWarehouseNo
|
|
this.warehouseCount = Number(options.warehouseCount) + 1
|
|
this.warehouseCount = Number(options.warehouseCount) + 1
|
|
@@ -958,6 +969,7 @@
|
|
this.gridList.person = options.personCharge
|
|
this.gridList.person = options.personCharge
|
|
this.gridList.personPhone = options.personPhone
|
|
this.gridList.personPhone = options.personPhone
|
|
this.gridList.qualityInspector = uni.getStorageSync("userInfo").userName
|
|
this.gridList.qualityInspector = uni.getStorageSync("userInfo").userName
|
|
|
|
+ this.gridList.produceDate = date.getFullYear()+'-'+((date.getMonth()+1)>=10?(date.getMonth()+1):'0'+(date.getMonth()+1))+'-'+((date.getDate())>=10?date.getDate():'0'+date.getDate())
|
|
// this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
// this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
|
|
// warehouseId: this.cangid
|
|
// warehouseId: this.cangid
|
|
// }).then(res => {
|
|
// }).then(res => {
|
|
@@ -1017,14 +1029,16 @@
|
|
}
|
|
}
|
|
this.isQY = this.utils.getCurrectRoles('acquisitionQuality.qview')
|
|
this.isQY = this.utils.getCurrectRoles('acquisitionQuality.qview')
|
|
this.isZJ = this.utils.getCurrectRoles('acquisitionQuality.initial')
|
|
this.isZJ = this.utils.getCurrectRoles('acquisitionQuality.initial')
|
|
-
|
|
|
|
- if (this.isZJ && !this.isQY) {
|
|
|
|
- this.typevalue = '1'
|
|
|
|
- this.contractFlag = 7
|
|
|
|
- } else {
|
|
|
|
- this.typevalue = '3'
|
|
|
|
- this.contractFlag = 10
|
|
|
|
|
|
+ if(this.compName!='辽宁佳屹农商贸有限公司'){
|
|
|
|
+ if (this.isZJ && !this.isQY) {
|
|
|
|
+ this.typevalue = '1'
|
|
|
|
+ this.contractFlag = 7
|
|
|
|
+ } else {
|
|
|
|
+ this.typevalue = '3'
|
|
|
|
+ this.contractFlag = 10
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中',
|
|
title: '加载中',
|
|
mask: true
|
|
mask: true
|
|
@@ -1039,13 +1053,11 @@
|
|
flag: this.flag,
|
|
flag: this.flag,
|
|
warehouseName: this.gridList.warehouseName
|
|
warehouseName: this.gridList.warehouseName
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(1)
|
|
|
|
- console.log(res)
|
|
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
for (let i = 0; i < res.data.data.length; i++) {
|
|
this.$set(res.data.data[i], 'inOutTaskNo1', res.data.data[i].inOutTaskNo + (res.data.data[
|
|
this.$set(res.data.data[i], 'inOutTaskNo1', res.data.data[i].inOutTaskNo + (res.data.data[
|
|
i].taskFlag ? '(' + res.data.data[i].taskFlag + ')' : ''))
|
|
i].taskFlag ? '(' + res.data.data[i].taskFlag + ')' : ''))
|
|
}
|
|
}
|
|
- console.log(res.data.data, 22222)
|
|
|
|
|
|
+ // console.log(res.data.data, 22222)
|
|
this.taskNolist = res.data.data
|
|
this.taskNolist = res.data.data
|
|
})
|
|
})
|
|
this.multiSelector1 = [{
|
|
this.multiSelector1 = [{
|
|
@@ -1056,7 +1068,7 @@
|
|
warehouseName: this.gridList.warehouseName
|
|
warehouseName: this.gridList.warehouseName
|
|
}).then(res => {
|
|
}).then(res => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
- console.log(2)
|
|
|
|
|
|
+ // console.log(2)
|
|
// console.log(res)
|
|
// console.log(res)
|
|
if (res.data.data.contractManagementInfoList) {
|
|
if (res.data.data.contractManagementInfoList) {
|
|
for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
|
|
for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
|
|
@@ -1122,13 +1134,47 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(uni.getStorageSync('carNo')&&uni.getStorageSync('gridList')&&this.typevalue==1){
|
|
|
|
|
|
+ if(uni.getStorageSync('gridList')&&this.typevalue==1&&this.compName=='辽宁佳屹农商贸有限公司'){
|
|
|
|
+
|
|
|
|
+ if(uni.getStorageSync('typevalue')){
|
|
|
|
+ this.typevalue=uni.getStorageSync('typevalue')
|
|
|
|
+ }
|
|
this.gridList=uni.getStorageSync('gridList')
|
|
this.gridList=uni.getStorageSync('gridList')
|
|
- this.gridList.carNumber=uni.getStorageSync('carNo')
|
|
|
|
|
|
+ if(uni.getStorageSync('carNo')){
|
|
|
|
+ this.gridList.carNumber=uni.getStorageSync('carNo')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onError(error) {
|
|
|
|
+ alert(error)
|
|
|
|
+ console.log('------------error-----------')
|
|
|
|
+ console.log(error)
|
|
|
|
+ },
|
|
|
|
+ onProgress(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ },
|
|
|
|
+ radioGroupChange(e){
|
|
|
|
+ console.log(e)
|
|
|
|
+ this.gridList.specifications=e
|
|
|
|
+ },
|
|
|
|
+ change1(e) {
|
|
|
|
+ this.gridList.produceDate=e.result
|
|
|
|
+ console.log(e);
|
|
|
|
+ },
|
|
|
|
+ onRemove(index,i) {
|
|
|
|
+ console.log(index,i)
|
|
|
|
+ if(i==0){
|
|
|
|
+ this.imglist.splice(index, 1)
|
|
|
|
+ this.gridList.polluteUrl=this.imglist.toString()
|
|
|
|
+ }else{
|
|
|
|
+ this.imglist1.splice(index, 1)
|
|
|
|
+ this.gridList.wornUrl=this.imglist1.toString()
|
|
|
|
+ }
|
|
|
|
+ console.log(this.imglist,this.imglist1)
|
|
|
|
+ },
|
|
carchange(){
|
|
carchange(){
|
|
|
|
+ uni.setStorageSync('typevalue', this.typevalue)
|
|
uni.setStorageSync('gridList', this.gridList)
|
|
uni.setStorageSync('gridList', this.gridList)
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pages/erpbusiness/customercar?cangid=' + this.cangid + '&warehouseName=' + this.gridList
|
|
url: '/pages/erpbusiness/customercar?cangid=' + this.cangid + '&warehouseName=' + this.gridList
|
|
@@ -1841,6 +1887,8 @@
|
|
this.gridList.compId = uni.getStorageSync(
|
|
this.gridList.compId = uni.getStorageSync(
|
|
'pcUserInfo').compId
|
|
'pcUserInfo').compId
|
|
uni.setStorageSync("quality_print", this.gridList)
|
|
uni.setStorageSync("quality_print", this.gridList)
|
|
|
|
+ uni.setStorageSync('typevalue', 3)
|
|
|
|
+ uni.setStorageSync('gridList', {})
|
|
if (this.isZJ) {
|
|
if (this.isZJ) {
|
|
this.isShowPrint = true
|
|
this.isShowPrint = true
|
|
} else {
|
|
} else {
|
|
@@ -1884,6 +1932,8 @@
|
|
uni.setStorageSync(
|
|
uni.setStorageSync(
|
|
'checkcustomer', {}
|
|
'checkcustomer', {}
|
|
)
|
|
)
|
|
|
|
+ uni.setStorageSync('typevalue', 3)
|
|
|
|
+ uni.setStorageSync('gridList', {})
|
|
console.log('that.gridList', this.gridList)
|
|
console.log('that.gridList', this.gridList)
|
|
// uni.navigateBack({})
|
|
// uni.navigateBack({})
|
|
} else if(res.data.message == '货物种类与类型不符,请确认!'){
|
|
} else if(res.data.message == '货物种类与类型不符,请确认!'){
|
|
@@ -2439,4 +2489,7 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
+ /deep/.radio .u-radio__label{
|
|
|
|
+ margin-right:0;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|