Browse Source

前端gjy

18513069273 4 years ago
parent
commit
807268cf0e

BIN
public/img/lujing.png


+ 1 - 1
src/components/WsUpload/index.vue

@@ -635,7 +635,7 @@ $ctrl-margin-left: 10px;
   padding-bottom: 10px;
   .trigger-group {
     margin-bottom: 10px;
-
+    margin-top: 10px;
     .upload-btn {
       display: inline-block;
       border-radius: 4px;

+ 7 - 1
src/views/contractManagement/purchaseContractAdd.vue

@@ -170,7 +170,13 @@
             </el-option>
             <!-- 新增按钮 -->
             <el-option value="" label="">
-              <div style="text-align: center">
+              <div
+                style="
+                  text-align: right;
+                  border-top: 1px solid #dcdfe6;
+                  padding: 5px;
+                "
+              >
                 <ws-button type="primary" @click.stop="addClick">{{
                   $t('button.add')
                 }}</ws-button>

+ 55 - 14
src/views/contractManagement/purchaseContractEdit.vue

@@ -4,7 +4,7 @@
   <div class='container'>
     <el-row>
       <el-col :span="12">
-        <h2 class="bg-left">查看合同详情</h2>
+        <h2 class="bg-left title">修改合同信息</h2>
       </el-col>
       <el-col :span="12" class="bg-right">
         <el-button
@@ -12,7 +12,7 @@
           type="primary"
           size="small"
           @click="returnsales()"
-          >返回</el-button
+          ><img width='6' height='10' style='vertical-align: bottom;' src="../../../public/img/lujing.png" alt=""> 返回</el-button
         >
       </el-col>
     </el-row>
@@ -26,12 +26,11 @@
       <h3>基本信息</h3>
       </div>
         <ws-info-table>
-          <ws-form-item
+          <ws-form-item class='readonly'
             label="合同编号"
             span="1"
             prop="contractNo"
           >
-          
           {{deptBudgetList.contractNo}}
           </ws-form-item>
           <ws-form-item
@@ -45,7 +44,7 @@
               size="small"
             />
           </ws-form-item>
-          <ws-form-item
+          <ws-form-item  class='readonly'
             label="买方"
             span="1"
             prop="buyer"
@@ -63,7 +62,7 @@
               size="small"
             />
           </ws-form-item>
-          <ws-form-item
+          <ws-form-item  class='readonly'
             label="卖方"
             span="1"
             prop="seller"
@@ -169,7 +168,9 @@
               </el-option>
               <!-- 新增按钮 -->
               <el-option value="" label="">
-                <div style="text-align: center">
+                <div style="text-align: right;
+    border-top: 1px solid #DCDFE6;
+    padding: 5px;">
                   <ws-button type="primary" @click.stop="addClick">{{$t('button.add')}}</ws-button>
                 </div>
               </el-option>
@@ -199,7 +200,7 @@
           value-format="yyyy-MM-dd"
         />
           </ws-form-item>
-          <ws-form-item
+          <ws-form-item class='readonly'
             label="合同单价(元/吨)"
             span="1"
             prop="unitContractPrice"
@@ -252,7 +253,7 @@
       <h3>货物信息</h3>
     </div>
         <ws-info-table>
-          <ws-form-item
+          <ws-form-item class='readonly'
             label="货名"
             span="1"
             prop="waterContent"
@@ -544,10 +545,19 @@ export default {
       examineList({ id: this.$route.query.id })
         .toPromise()
         .then((response) => {
-          response.weight = String(response.weight)
-          response.overShort = String(response.overShort)
-          response.totalContractPrice = String(response.totalContractPrice)
-          response.unitContractPrice = String(response.unitContractPrice)
+          if (response.weight) {
+            response.weight = String(response.weight)
+          }
+          if (response.overShort) {
+            response.overShort = String(response.overShort)
+          }
+          if (response.totalContractPrice) {
+            response.totalContractPrice = String(response.totalContractPrice)
+          }
+          if (response.unitContractPrice) {
+            response.unitContractPrice = String(response.unitContractPrice)
+          }
+
           this.deptBudgetList = response
         })
       // 包装方式
@@ -671,6 +681,37 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
+.readonly {
+  position: relative;
+}
+.readonly:after {
+  content: '*';
+  color: #ff2727;
+  position: absolute;
+  right: 8px;
+  z-index: 10;
+  top: 26%;
+  font-size: 20px;
+}
+.title {
+  position: relative;
+}
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+.el-col {
+  background: #f6f7fc;
+}
 /deep/.ws-info-table .el-form-item .el-form-item__label {
   width: 140px;
   text-align: center;
@@ -752,7 +793,7 @@ export default {
   text-align: right;
 }
 .bg-bottom {
-  margin: 20px 0px;
+  margin: 15px 0px;
 }
 .remark h3 {
   display: inline-block;