浏览代码

前端 更新 sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
a412ec4613

+ 16 - 4
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -99,7 +99,7 @@
 							placeholder="请输入水分占比" maxlength="120" size="small" class="huom" />
 					</el-form-item>
 					<!--单价(元/吨)-->
-					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
+					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
 						<el-input disabled @input="unitPricechange" v-model="dataList.unitPrice" placeholder="请输入单价"
 							maxlength="120" size="small" class="huom" />
 					</el-form-item>
@@ -204,7 +204,7 @@
 							class="huom" />
 					</el-form-item>
 					<!--单价(元/吨)-->
-					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
+					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype1">
 						<el-input @input="unitPricechange" :disabled="dataList.taskTypeKey == 3"
 							v-model="dataList1.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
 							class="huom" />
@@ -312,7 +312,7 @@
 							class="huom" />
 					</el-form-item>
 					<!--单价(元/吨)-->
-					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)">
+					<el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
 						<el-input :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
 							v-model="dataList.unitPrice" placeholder="请输入单价" maxlength="120" size="small"
 							class="huom" />
@@ -488,7 +488,9 @@
 						return time.getTime() > Date.now()
 					}
 				},
-				accessoryTFs: false
+				accessoryTFs: false,
+				Pricetype:true,//价格类型为随行就市隐藏单价
+				Pricetype1:true,//价格类型为随行就市隐藏单价
 			}
 		},
 		activated() {
@@ -626,6 +628,11 @@
 				if (this.dataList.taskTypeKey != 3) {
 					for (let i = 0; i < this.contractNoList.length; i++) {
 						if (this.contractNoList[i].contractNo == e) {
+							if(this.contractNoList[i].priceType == "随行就市"){
+								this.Pricetype = false
+							}else{
+								this.Pricetype = true
+							}
 							getGoodsName({
 									contractId: this.contractNoList[i].id,
 									contractNo: this.contractNoList[i].contractNo
@@ -689,6 +696,11 @@
 				if (this.dataList1.taskTypeKey != 3) {
 					for (let i = 0; i < this.contractNoList.length; i++) {
 						if (this.contractNoList[i].contractNo == e) {
+							if(this.contractNoList[i].priceType == "随行就市"){
+								this.Pricetype1 = false
+							}else{
+								this.Pricetype1 = true
+							}
 							getGoodsName({
 									contractId: this.contractNoList[i].id,
 									contractNo: this.contractNoList[i].contractNo

+ 1 - 1
src/views/tranManagement/tranManagementShippingArrangemen.vue

@@ -139,7 +139,7 @@
               </el-col>
               <el-col :span="8">
                 <el-form-item label="航次" prop="shipNo" class="">
-                  <el-input v-model="item.shipNo" placeholder="请选择航次" maxlength="100" size="small" class=""></el-input>
+                  <el-input v-model="item.shipNo" placeholder="请输入航次" maxlength="100" size="small" class=""></el-input>
                 </el-form-item>
               </el-col>
               <el-col :span="8">