|
@@ -521,6 +521,74 @@
|
|
<input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
|
|
<input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'"
|
|
|
|
+ class="c-row">
|
|
|
|
+ <view class="title">规格(公斤)</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <u-radio-group active-color='#22C572' v-model="gridList.specifications" @change="radioGroupChange">
|
|
|
|
+ <u-radio name="850">850</u-radio>
|
|
|
|
+ <u-radio name="830">830</u-radio>
|
|
|
|
+ </u-radio-group>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'"
|
|
|
|
+ class="c-row">
|
|
|
|
+ <view class="title">工厂</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='gridList.factory' :disabled='disabled1' maxlength="30"
|
|
|
|
+ placeholder="请输入工厂" name="input" type="digit"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'" class="c-row">
|
|
|
|
+ <view class="title">污染件数</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='gridList.polluteNum' :disabled='disabled1'
|
|
|
|
+ placeholder="请输入污染件数" name="input" type="digit"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'" style='padding:20rpx 30rpx;'>
|
|
|
|
+ <view class="title">污染附件</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <u-upload :custom-btn='true' class="upload" ref="upload" name='fileName' :form-data="{companyId: pcUserInfo.compId,
|
|
|
|
+ modelId: '',
|
|
|
|
+ vesselId: ''}" :file-list="fileList" :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"
|
|
|
|
+ @on-remove="onRemove" @on-uploaded="isAdd = true"
|
|
|
|
+ :limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
|
|
+ <view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
|
|
+ hover-stay-time="150">
|
|
|
|
+ <image style="width:23px;height:23px;" src="../../static/img/liangmai/xiangji-2.png"
|
|
|
|
+ mode=""></image>
|
|
|
|
+ <view>选择图片</view>
|
|
|
|
+ </view>
|
|
|
|
+ </u-upload>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'" class="c-row">
|
|
|
|
+ <view class="title">破损件数</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='gridList.wornNum' :disabled='disabled1'
|
|
|
|
+ placeholder="请输入破损件数" name="input" type="digit"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="compName=='辽宁佳屹农商贸有限公司'" style='padding:20rpx 30rpx;'>
|
|
|
|
+ <view class="title">破损附件</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <u-upload :custom-btn='true' :file-list="fileList1" class="upload" ref="upload" name='fileName' :form-data="{companyId: pcUserInfo.compId,
|
|
|
|
+ modelId: '',
|
|
|
|
+ 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"
|
|
|
|
+ @on-remove="onRemove" @on-uploaded="isAdd = true"
|
|
|
|
+ :limitType="['png', 'jpg', 'jpeg', 'webp', 'gif']" @on-progress="onProgress">
|
|
|
|
+ <view slot="addBtn" class="slot-btn u-list-item" hover-class="slot-btn__hover"
|
|
|
|
+ hover-stay-time="150">
|
|
|
|
+ <image style="width:23px;height:23px;" src="../../static/img/liangmai/xiangji-2.png"
|
|
|
|
+ mode=""></image>
|
|
|
|
+ <view>选择图片</view>
|
|
|
|
+ </view>
|
|
|
|
+ </u-upload>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -634,8 +702,12 @@
|
|
dryGrainPrice: '',
|
|
dryGrainPrice: '',
|
|
carNumber: '',
|
|
carNumber: '',
|
|
carModel: '',
|
|
carModel: '',
|
|
- serviceManagementType:'3'
|
|
|
|
|
|
+ serviceManagementType:'3',
|
|
|
|
+ specifications:830
|
|
},
|
|
},
|
|
|
|
+ action: this.$uploadUrl,
|
|
|
|
+ pcUserInfo: uni.getStorageSync('pcUserInfo'),
|
|
|
|
+ maxSize: 50 * 1024 * 1024,
|
|
managementType: '',
|
|
managementType: '',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
@@ -675,7 +747,12 @@
|
|
transgeneShow:false,
|
|
transgeneShow:false,
|
|
transgeneList:[{value:'非转基因'},{value:'转基因'}],
|
|
transgeneList:[{value:'非转基因'},{value:'转基因'}],
|
|
colorLustreShow : false,
|
|
colorLustreShow : false,
|
|
- colorLustreList:[{value:'正常'},{value:'异常'}]
|
|
|
|
|
|
+ colorLustreList:[{value:'正常'},{value:'异常'}],
|
|
|
|
+ imglist:[],
|
|
|
|
+ imglist1:[],
|
|
|
|
+ fileList:[],
|
|
|
|
+ fileList1:[],
|
|
|
|
+ compName: "",
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// #ifndef MP
|
|
// #ifndef MP
|
|
@@ -721,6 +798,7 @@
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title:"加载中"
|
|
title:"加载中"
|
|
})
|
|
})
|
|
|
|
+ var that = this
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
|
|
this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
|
|
id: this.id
|
|
id: this.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -732,6 +810,28 @@
|
|
} else {
|
|
} else {
|
|
that.value = false
|
|
that.value = false
|
|
}
|
|
}
|
|
|
|
+ if(data.polluteUrl){
|
|
|
|
+ this.imglist=data.polluteUrl.split(',')
|
|
|
|
+ this.$api.doRequest('get', 'appendix/query/getFileList', {
|
|
|
|
+ appendixIds: data.polluteUrl
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ for (var i = 0; i < res1.data.data.length; i++) {
|
|
|
|
+ res1.data.data[i].url=res1.data.data[i].appendixPath
|
|
|
|
+ }
|
|
|
|
+ this.fileList=res1.data.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ if(data.wornUrl){
|
|
|
|
+ this.imglist1=data.wornUrl.split(',')
|
|
|
|
+ this.$api.doRequest('get', 'appendix/query/getFileList', {
|
|
|
|
+ appendixIds: data.wornUrl
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ for (var i = 0; i < res1.data.data.length; i++) {
|
|
|
|
+ res1.data.data[i].url=res1.data.data[i].appendixPath
|
|
|
|
+ }
|
|
|
|
+ this.fileList1=res1.data.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
that.gridList = data
|
|
that.gridList = data
|
|
|
|
|
|
if(that.gridList.type=='干粮'){
|
|
if(that.gridList.type=='干粮'){
|
|
@@ -856,6 +956,10 @@
|
|
this.gridList.gradeKey = this.gradeList[2].key
|
|
this.gridList.gradeKey = this.gradeList[2].key
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ var that = this
|
|
|
|
+ if(uni.getStorageSync('compName1')){
|
|
|
|
+ that.compName = uni.getStorageSync('compName1').company
|
|
|
|
+ }
|
|
this.multiSelector1=[{name:'他运',value:'他运'}]
|
|
this.multiSelector1=[{name:'他运',value:'他运'}]
|
|
this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
|
|
this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
|
|
warehouseName:this.warehouseName
|
|
warehouseName:this.warehouseName
|
|
@@ -901,6 +1005,23 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getImgUrl(res,status) {
|
|
|
|
+ var that = this
|
|
|
|
+ this.$api.doRequest('post', '/appendix/api/saveFilesApp', {
|
|
|
|
+ newAppendixs: [res.data],
|
|
|
|
+ oldAppendixIds: ""
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ if(status==0){
|
|
|
|
+ that.imglist.push(res1.data.data[0])
|
|
|
|
+ that.gridList.polluteUrl=that.imglist.toString()
|
|
|
|
+ }else{
|
|
|
|
+ that.imglist1.push(res1.data.data[0])
|
|
|
|
+ that.gridList.wornUrl=that.imglist1.toString()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.log(res)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
colorLustreClick(e){
|
|
colorLustreClick(e){
|
|
this.gridList.colorLustre = this.colorLustreList[e[0]].value
|
|
this.gridList.colorLustre = this.colorLustreList[e[0]].value
|
|
},
|
|
},
|
|
@@ -1738,4 +1859,20 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
}
|
|
|
|
+ /deep/.u-radio-group {
|
|
|
|
+ flex-direction: row-reverse;
|
|
|
|
+ }
|
|
|
|
+ /deep/.u-upload .u-list-item {
|
|
|
|
+ background: #fff;
|
|
|
|
+ border: 1px dashed #ccc;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+ height: 190rpx !important;
|
|
|
|
+ width: 190rpx !important;
|
|
|
|
+ margin: 10rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|