|
@@ -15,13 +15,13 @@
|
|
|
{{gridList.warehouseName}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
|
|
|
+ <view class="c-row ">
|
|
|
<view class="title">任务编号</view>
|
|
|
<view class="con-list">
|
|
|
<view >{{gridList.inOutTaskNo}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if='gridList.serviceManagementType==1&&gridList.inOutType!="移库入库"&&flag!=3' class="c-row ">
|
|
|
+ <view v-if='gridList.serviceManagementType==1&&gridList.inOutType!="移库入库"&&flag!=3||gridList.serviceManagementType==3' class="c-row ">
|
|
|
<view class="title">合同编号</view>
|
|
|
<view class="con-list">
|
|
|
{{gridList.contractNo}}
|
|
@@ -47,7 +47,7 @@
|
|
|
<input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <button class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
|
|
|
+ <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
|
|
|
</view>
|
|
|
<view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
|
|
|
<view class="title">运费</view>
|
|
@@ -57,12 +57,12 @@
|
|
|
<input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <button class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
|
|
|
+ <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
|
|
|
</view>
|
|
|
<view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
|
|
|
<view class="title">扣款</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
|
|
|
+ <input v-if='flag==4||flag==0' v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
|
|
@@ -74,7 +74,8 @@
|
|
|
<view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
|
|
|
<view class="title">入库日期</view>
|
|
|
<view class="con-list">
|
|
|
- <view @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
|
|
|
+ <view v-if='flag==4||flag==0' @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
|
|
|
+ <view v-else @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
|
|
|
<u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5"
|
|
|
mode="time">
|
|
|
</u-picker>
|
|
@@ -84,7 +85,10 @@
|
|
|
<view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
|
|
|
<view class="title">客户</view>
|
|
|
<view class="con-list">
|
|
|
- <view @click='gocustomer'>
|
|
|
+ <view v-if='flag==4||flag==3' @click='gocustomer'>
|
|
|
+ {{gridList.customerName}}({{gridList.customerPhone}})
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
{{gridList.customerName}}({{gridList.customerPhone}})
|
|
|
</view>
|
|
|
</view>
|
|
@@ -92,7 +96,7 @@
|
|
|
<view v-if='flag!=0' class="c-row ">
|
|
|
<view class="title">车牌号</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.carNumber' @click.stop="handleShowKeyboard" placeholder="请输入车牌号"
|
|
|
+ <input :disabled="flag!=4&&flag!=3" v-model='gridList.carNumber' @click.stop="handleShowKeyboard" placeholder="请输入车牌号"
|
|
|
name="input"></input>
|
|
|
<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
|
|
|
:defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
|
|
@@ -133,7 +137,7 @@
|
|
|
<view v-if='flag!=3' class="c-row ">
|
|
|
<view class="title">囤位号</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
|
|
|
+ <input :disabled="flag!=4&&flag!=0" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if='flag!=3' class="c-row ">
|
|
@@ -142,7 +146,8 @@
|
|
|
<!-- <view v-if="flag != '0'">
|
|
|
{{gridList.goodsName}}
|
|
|
</view> -->
|
|
|
- <view @click='goodsName = true'>{{gridList.goodsName}}</view>
|
|
|
+ <view v-if='flag==4||flag==0' @click='goodsName = true'>{{gridList.goodsName}}</view>
|
|
|
+ <view v-else>{{gridList.goodsName}}</view>
|
|
|
<u-picker :range="goodsList" range-key="goodsName" @confirm='goodsPicker($event)'
|
|
|
v-model="goodsName" mode="selector">
|
|
|
</u-picker>
|
|
@@ -157,7 +162,8 @@
|
|
|
<view v-if='gridList.serviceManagementType==1' class="c-row ">
|
|
|
<view class="title">运输方式</view>
|
|
|
<view class="con-list">
|
|
|
- <view @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
|
|
|
+ <view v-if='flag==4||flag==0' @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
|
|
|
+ <view v-else>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
|
|
|
<u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
|
|
|
mode="selector">
|
|
|
</u-picker>
|
|
@@ -166,7 +172,8 @@
|
|
|
<view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
|
|
|
<view class="title">运输方式</view>
|
|
|
<view class="con-list">
|
|
|
- <view @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
|
|
|
+ <view v-if='flag==4||flag==3' @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
|
|
|
+ <view v-else>{{outType?outType:'请选择运输方式'}}</view>
|
|
|
<u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)' v-model="show8"
|
|
|
mode="selector">
|
|
|
</u-picker>
|
|
@@ -175,7 +182,8 @@
|
|
|
<view v-if='gridList.serviceManagementType==1&&flag!=3||gridList.serviceManagementType==3&&gridList.outType=="自运"&&flag!=3' class="c-row ">
|
|
|
<view class="title">车队</view>
|
|
|
<view class="con-list">
|
|
|
- <view @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
|
|
|
+ <view v-if='flag==4||flag==0' @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
|
|
|
+ <view v-else>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
|
|
|
<u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName" v-model="show5"
|
|
|
mode="selector">
|
|
|
</u-picker>
|
|
@@ -184,49 +192,49 @@
|
|
|
<view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
|
|
|
<view class="title">箱号-1</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
|
|
|
<view class="title">封号-1</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
|
|
|
<view class="title">箱号-2</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
|
|
|
<view class="title">封号-2</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
|
|
|
<view class="title">箱号-1</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
|
|
|
<view class="title">封号-1</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
|
|
|
<view class="title">箱号-2</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
|
|
|
<view class="title">封号-2</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
+ <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
|
|
@@ -261,7 +269,7 @@
|
|
|
</view>
|
|
|
<view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
|
|
|
<view class="title">干粮单价(元/公斤)</view>
|
|
|
- <view class="con-list" @click="setPrice">
|
|
|
+ <view class="con-list">
|
|
|
{{gridList.dryGrainPrice}}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -427,6 +435,7 @@
|
|
|
coverTransition: '0s',
|
|
|
moving: false,
|
|
|
footprintList: [],
|
|
|
+ zjid:'',
|
|
|
searchKeyWord: '',
|
|
|
isVip: false,
|
|
|
flag: 0,
|
|
@@ -733,12 +742,23 @@
|
|
|
this.isShowAlert = true
|
|
|
},
|
|
|
alertBtn() {
|
|
|
+ this.gridList.agent=this.userInfo.userName;
|
|
|
var that = this
|
|
|
that.gridList.reWaterContent = that.gridList.waterContent
|
|
|
if (that.gridList.buckleMiscellaneous) {
|
|
|
that.gridList.reBuckleMiscellaneous = that.gridList.buckleMiscellaneous
|
|
|
}
|
|
|
that.gridList.flag = 1
|
|
|
+ if(this.flag==3){
|
|
|
+ this.gridList.statusFlag=7
|
|
|
+ }else if(this.flag==4||this.flag==0){
|
|
|
+ this.gridList.statusFlag=0
|
|
|
+ }
|
|
|
+ else if(this.flag==1){
|
|
|
+ this.gridList.statusFlag=1
|
|
|
+ }else if(this.flag==2){
|
|
|
+ this.gridList.statusFlag=2
|
|
|
+ }
|
|
|
this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(
|
|
|
res => {
|
|
|
if (res.data.code == "200") {
|
|
@@ -749,7 +769,7 @@
|
|
|
if (res.data.code == "200") {
|
|
|
that.$api.msg('提交成功!')
|
|
|
setTimeout(function() {
|
|
|
- uni.navigateBack({})
|
|
|
+ uni.navigateBack({delta:Int16Array})
|
|
|
}, 1000)
|
|
|
} else {
|
|
|
that.$api.msg('提交失败')
|
|
@@ -813,7 +833,18 @@
|
|
|
this.gridList.goodsName = this.goodsList[e[0]].goodsName
|
|
|
},
|
|
|
submit() {
|
|
|
- this.gridList.statusFlag=1
|
|
|
+ this.gridList.agent=this.userInfo.userName;
|
|
|
+ if(this.flag==3){
|
|
|
+ this.gridList.statusFlag=7
|
|
|
+ }else if(this.flag==4||this.flag==0){
|
|
|
+ this.gridList.statusFlag=0
|
|
|
+ }
|
|
|
+ else if(this.flag==1){
|
|
|
+ this.gridList.statusFlag=1
|
|
|
+ }else if(this.flag==2){
|
|
|
+ this.gridList.statusFlag=2
|
|
|
+ }
|
|
|
+
|
|
|
if(this.gridList.serviceManagementType==3){
|
|
|
if(this.outType){
|
|
|
this.gridList.outType=this.outType
|
|
@@ -844,15 +875,19 @@
|
|
|
// if(this.flag==2){
|
|
|
// this.gridList.reInspector=this.userInfo.userName
|
|
|
// }
|
|
|
- var that = this
|
|
|
if (!this.gridList.qualityNo) {
|
|
|
this.$api.msg('编号不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.gridList.binNumber) {
|
|
|
- this.$api.msg('仓位不能为空')
|
|
|
- return
|
|
|
+ var that = this
|
|
|
+ if(this.flag==4||this.flag==0){
|
|
|
+ if (!this.gridList.binNumber) {
|
|
|
+ this.$api.msg('仓位不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
if(this.gridList.serviceManagementType==3){
|
|
|
if (!this.gridList.customerName) {
|
|
|
this.$api.msg('客户不能为空')
|
|
@@ -906,7 +941,7 @@
|
|
|
this.$api.msg('类型不能为空')
|
|
|
return
|
|
|
}
|
|
|
- if (this.value == false || this.flag == 2) {
|
|
|
+ if (this.value == false&&this.flag!=3 || this.flag == 2) {
|
|
|
if (!this.gridList.grade) {
|
|
|
this.$api.msg('等级不能为空')
|
|
|
return
|
|
@@ -941,6 +976,8 @@
|
|
|
}
|
|
|
}
|
|
|
this.gridList.storageNumber = this.gridList.storageTagNo
|
|
|
+ var kid=JSON.parse(JSON.stringify(this.gridList.warehouseInOutId))
|
|
|
+ this.zjid=JSON.parse(JSON.stringify(this.gridList.id))
|
|
|
that.gridList.warehouseInOutDetail={
|
|
|
id:that.gridList.warehouseInOutId,
|
|
|
grade:that.gridList.grade,
|
|
@@ -958,7 +995,7 @@
|
|
|
mildewGrain:that.gridList.mildewGrain,
|
|
|
reMildewGrain:that.gridList.reMildewGrain,
|
|
|
}
|
|
|
-
|
|
|
+ console.log(this.gridList)
|
|
|
uni.showModal({
|
|
|
content: text,
|
|
|
showCancel: true,
|
|
@@ -968,6 +1005,8 @@
|
|
|
that.$api.doRequest('post',
|
|
|
'/qualityInspectionManagement/api/editQualityInspection', that.gridList)
|
|
|
.then(res => {
|
|
|
+ that.gridList.id=kid
|
|
|
+ that.gridList.statusFlag=1
|
|
|
that.$api.doRequest('post',
|
|
|
'/warehouseInOutInfo/InOutWarehouse',
|
|
|
that.gridList)
|
|
@@ -979,6 +1018,8 @@
|
|
|
console.log('that.gridList', that.gridList)
|
|
|
if(that.utils.getCurrectRoles('acquisitionQuality.initial')){
|
|
|
that.isShowPrint = true
|
|
|
+ }else{
|
|
|
+ uni.navigateBack({delta:1})
|
|
|
}
|
|
|
// uni.getStorageSync("depotAcquisition_warehouseName")
|
|
|
// uni.navigateBack({})
|