소스 검색

Merge branch 'master' of http://139.196.39.194:9021/chenc/sen-yu-new-web

huxy 2 년 전
부모
커밋
d44d20fa58

+ 9 - 8
src/views/book/book-list.vue

@@ -13,10 +13,10 @@
             </a-col>
 
             <a-col :md="5" :sm="8">
-              <a-form-item label="单据日期" has-feedback>
-                <a-date-picker style="width: 100%" v-model="queryParam.shippingOrderDate" @change="orderDataChange" > </a-date-picker>
-              </a-form-item>
-            </a-col>
+                <a-form-item label="托书号">
+                  <a-input placeholder="请输入托书号" v-model="queryParam.shippingOrderNumber"></a-input>
+                </a-form-item>
+              </a-col>
             
             <a-col :md="5" :sm="8">
               <a-form-item label="客户简称">
@@ -60,10 +60,11 @@
               </a-col>
 
               <a-col :md="5" :sm="8">
-                <a-form-item label="托书号">
-                  <a-input placeholder="请输入托书号" v-model="queryParam.shippingOrderNumber"></a-input>
-                </a-form-item>
-              </a-col>
+              <a-form-item label="单据日期" has-feedback>
+                <a-date-picker style="width: 100%" v-model="queryParam.shippingOrderDate" @change="orderDataChange" > </a-date-picker>
+              </a-form-item>
+            </a-col>
+            
               <a-col :md="5" :sm="8">
                 <a-form-item label="外销发票">
                   <a-input placeholder="请输入外销发票" v-model="queryParam.exportInvoiceNo"></a-input>

+ 9 - 6
src/views/packing-list/clothes-list.vue

@@ -18,10 +18,12 @@
             </a-col>
 
             <a-col :md="6" :sm="8">
-              <a-form-item label="号">
-                <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>
+              <a-form-item label="预托书号">
+                <a-input placeholder="请输入预托书号" v-model="queryParam.depositaryReceiptNo"></a-input>
               </a-form-item>
-            </a-col>
+            </a-col> 
+
+            
             <a-col :md="6" :sm="8">
               <a-form-item label="分销点">
                 <!-- <a-input placeholder="请输入分销点" v-model="queryParam.distributionPoint"></a-input> -->
@@ -70,10 +72,11 @@
             </a-col>
             
             <a-col :md="6" :sm="8">
-              <a-form-item label="预托书号">
-                <a-input placeholder="请输入预托书号" v-model="queryParam.depositaryReceiptNo"></a-input>
+              <a-form-item label="号">
+                <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>
               </a-form-item>
-            </a-col> 
+            </a-col>
+            
             <a-col :md="6" :sm="8">
               <a-form-item label="供应商">
                 <!-- <a-input placeholder="请输入供应商" v-model="queryParam.garmentFactory"></a-input> -->

+ 7 - 6
src/views/pre-book/advancePackingListModal.vue

@@ -41,12 +41,6 @@
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="8">
-              <a-form-item label="小PO">
-                <a-input placeholder="请输入小PO" v-model="queryParam.smallPo"></a-input>
-              </a-form-item>
-            </a-col>
-            <template v-if="toggleSearchStatus">
-               <a-col :md="6" :sm="8">
               <a-form-item label="分销点">
                 <!-- <a-input placeholder="请输入分销点" v-model="queryParam.distributionPoint"></a-input> -->
                  <j-search-select-tag
@@ -56,6 +50,13 @@
                 </j-search-select-tag>
               </a-form-item>
             </a-col>
+            
+            <template v-if="toggleSearchStatus">
+              <a-col :md="6" :sm="8">
+              <a-form-item label="小PO">
+                <a-input placeholder="请输入小PO" v-model="queryParam.smallPo"></a-input>
+              </a-form-item>
+            </a-col>
             <a-col :md="6" :sm="8">
               <a-form-item label="款号">
                 <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>

+ 42 - 34
src/views/reportForms/cost-allocation-table.vue

@@ -302,8 +302,11 @@ export default {
           scopedSlots: { customRender: 'accidentNum' }
         },
         { title: '事故承担方', width: 120, dataIndex: 'accidentUndertaker', className: 'replacecolor' },
-        { title: '金额', width: 120, dataIndex: 'amount', className: 'replacecolor' },
-        { title: '币种', width: 120, dataIndex: 'moneyType', className: 'replacecolor' },
+        { title: '美元金额', width: 120, dataIndex: 'amount', className: 'replacecolor' },
+        { title: '人民币金额', width: 120, dataIndex: 'amountrmb', className: 'replacecolor' },
+        { title: '事故单主题', width: 120, dataIndex: 'accidentTheme', className: 'replacecolor' },
+        { title: '责任人', width: 120, dataIndex: 'responsibilityPerson1', className: 'replacecolor' },
+        // { title: '币种', width: 120, dataIndex: 'moneyType', className: 'replacecolor' },
         // { title: '金额', dataIndex: 'amount', width: 120, className: 'replacecolor' }
       ],
       accidentListData: [],
@@ -313,8 +316,10 @@ export default {
         { title: '账套号', width: 120, dataIndex: 'setNo', className: 'replacecolor' },
         { title: '支出单号', width: 120, dataIndex: 'disbursementSlipNo', className: 'replacecolor' },
         { title: '费用项目', dataIndex: 'expenseItem', width: 120, className: 'replacecolor' },
-        { title: ' 支出本币金额', dataIndex: 'disbursedLocalmoney', width: 120, className: 'replacecolor' },
-        { title: '支出原币金额', dataIndex: 'disbursedOriginalmoney', width: 120, className: 'replacecolor' },
+        { title: '人民币(不含税)', dataIndex: 'disbursedLocalmoney', width: 120, className: 'replacecolor' },
+        { title: '美元', dataIndex: 'disbursedOriginalmoney', width: 120, className: 'replacecolor' },
+        { title: '人民币(税额)', dataIndex: 'shuiemoney', width: 120, className: 'replacecolor' },
+        { title: '人民币(加税合计)', dataIndex: 'totalTaxIncrease', width: 120, className: 'replacecolor' },
         { title: '发票号', dataIndex: 'invoicenum', width: 120, className: 'replacecolor' },
         { title: '制单人', dataIndex: 'preparedBy', width: 120, className: 'replacecolor' }
       ],
@@ -434,9 +439,11 @@ export default {
     calculation(val){
       var  average = 0
        val.map(item=>{
-         average += item.exportUnitPrice
+        if(item.outdata !=='合计'){
+          average += (Number(item.exportUnitPrice)*Number(item.shipQuantity)*Number(item.exchangeRate))
+        }
        })
-       this.detailsPlanNum.shortvalue = Number(this.detailsPlanNum.shortseveral*average).toFixed(2)
+       this.detailsPlanNum.shortvalue = average.toFixed(2)
        var shipQuantityAll =0,
         exportUnitPriceALll = 0,
         exportPriceAll =0,
@@ -445,6 +452,7 @@ export default {
         procesUnitPriceusdAll = 0,
         processCostAll = 0
         val.map(item=>{
+          if(item.outdata !=='合计'){
           shipQuantityAll+=Number(item.shipQuantity)
           exportUnitPriceALll+=Number(item.exportUnitPrice)
           exportPriceAll+=Number(item.exportPrice)
@@ -452,6 +460,7 @@ export default {
           procesUnitPricermbAll+=Number(item.procesUnitPricermb)
           procesUnitPriceusdAll+=Number(item.procesUnitPriceusd)
           processCostAll+=Number(item.processCost)
+          }
         })
         var allObj ={
           outdata:'合计',
@@ -464,7 +473,10 @@ export default {
           processCost:processCostAll.toFixed(3)
         }
         //发运明细-合计行
-        if(this.$refs.unitTabs.shipData.length!==0){this.$refs.unitTabs.shipData.push(allObj)}
+        if(this.$refs.unitTabs.shipData[this.$refs.unitTabs.shipData.length-1].outdata=='合计'){
+          this.$refs.unitTabs.shipData.pop()
+        }
+        if(this.$refs.unitTabs.shipData.length!==0 ){this.$refs.unitTabs.shipData.push(allObj)}
         this.$refs.unitTabs.shipData.map(item=>{
           item.shipQuantity = Number(item.shipQuantity).toFixed(0)
           item.exportUnitPrice = Number(item.exportUnitPrice).toFixed(4)
@@ -488,6 +500,7 @@ export default {
       priceExcludingtaxAll = 0,
       dosageAll = 0
         val.map(item=>{
+          if(item.goodsName!=='合计'){
           ingredientsTransferQuantityALll+=Number(item.ingredientsTransferQuantity)
           transferCostAll+=Number(item.transferCost)
           usageQuantityAll+=Number(item.usageQuantity)
@@ -498,6 +511,7 @@ export default {
           usdAmountAll+=Number(item.usdAmount)
           priceExcludingtaxAll+=Number(item.priceExcludingtax)
           dosageAll+=Number(item.dosage)
+          }
         })
       var allObj ={
           goodsName:'合计',
@@ -512,44 +526,32 @@ export default {
           priceExcludingtax:priceExcludingtaxAll.toFixed(3),
           dosage:dosageAll.toFixed(3)
         }
-        if(this.$refs.unitTabs.ingData.length!==0){  this.$refs.unitTabs.ingData.push(allObj)}
+     if(this.$refs.unitTabs.ingData[this.$refs.unitTabs.ingData.length-1].goodsName=='合计'){this.$refs.unitTabs.ingData.pop()}
+        if(this.$refs.unitTabs.ingData.length!==0 ){  this.$refs.unitTabs.ingData.push(allObj)}
     },
     //费用支出合计行
     addAmountCostPay(val){
       var disbursedLocalmoneyALL=0,
-      disbursedOriginalmoneyALL=0
+      disbursedOriginalmoneyALL=0,
+      shuiemoneyAll = 0
      val.map(item=>{
+      if(item.setNo!=='合计'){
       disbursedLocalmoneyALL+=Number(item.disbursedLocalmoney) 
       disbursedOriginalmoneyALL+=Number(item.disbursedOriginalmoney) 
+      shuiemoneyAll+=Number(item.shuiemoney) 
+      }
      })
      var obj={
       setNo:'合计',
       disbursedLocalmoney:disbursedLocalmoneyALL.toFixed(3),
-      disbursedOriginalmoney:disbursedOriginalmoneyALL.toFixed(3)
+      disbursedOriginalmoney:disbursedOriginalmoneyALL.toFixed(3),
+      shuiemoney:shuiemoneyAll.toFixed(3),
+      totalTaxIncrease:(disbursedLocalmoneyALL+shuiemoneyAll).toFixed(3)
      }
+     if(this.costPayData[this.costPayData.length-1].setNo=='合计'){this.costPayData.pop()}
      if(this.costPayData.length!==0){ this.costPayData.push(obj)}
     },
     daYin(){
-      //  printJS({
-	    //      printable:this.fabricLoss.fabricOMOrderList1,
-	    //      properties:[
-      //        {field:'cvcname',displayName:'制造工艺',columnSize:1},
-      //        {field:'cvenAbbName',displayName:'工厂',columnSize:1},
-      //        {field:'iquantityOut',displayName:'材料出库数量',columnSize:1},
-      //        {field:'iquantity', displayName:'计划数量',columnSize:1},
-      //        {field:'iquantityIn', displayName:'采购入库数量',columnSize:1},
-      //        {field:'cinvCode', displayName:'物料编码',columnSize:1},
-      //        {field:'cinvName', displayName:'货物名称',columnSize:1},
-      //        {field:'ccolor', displayName:'颜色',columnSize:1},
-      //        {field:'cquantityLoss', displayName:'损耗',columnSize:1},
-      //        {field:'iquantityMoreLess', displayName:'多发少发',columnSize:1},
-      //        ],
-	    //      type:'json',
-	    //      header:'C001',
-	         //样式设置
-	        //  gridStyle:'border:2px solid #3971A5;text-align: center',
-	        //  gridHeaderStyle:'color:red; border:2px solid #3971A5;'
-	    //  })
          this.showSelect = 1
          this.$nextTick(() => {
           const html = window.document.getElementById('costAllocationTable').innerHTML 
@@ -588,11 +590,16 @@ export default {
       var usaMoney = 0,
           rmbMoney = 0
       val.map(item=>{
-        usaMoney += item.amount,
-        rmbMoney+=item.rmbAmount
+        if(item.accidentType=='应补' && item.amount!==''&&item.amount&&item.amount!=='0'){
+           item.amount=Number(item.amount)*(-1)
+        }else if(item.accidentType=='应补' && item.amountrmb!==''&&item.amountrmb&&item.amountrmb!=='0'){
+          item.amountrmb = Number(item.amountrmb)*(-1)
+        }
+        usaMoney += Number(item.amount),
+        rmbMoney+=Number(item.amountrmb)
       })
-      this.detailsPlanNum.accidentUsdamount = usaMoney
-      this.detailsPlanNum.accidentcnyAmount = usaMoney
+      this.detailsPlanNum.accidentUsdamount = usaMoney.toFixed(2)
+      this.detailsPlanNum.accidentcnyAmount = rmbMoney.toFixed(2)
     },
 
     // 页面 保存
@@ -614,6 +621,7 @@ export default {
         // console.log(halfInfo.planNum, halfInfo.remarks, halfInfo.billstatus)
         // var planNum = this.detailsPlanNum.planNum,
          var json = this.detailsPlanNum
+         json.outdata=moment(json.outdata).format('YYYY-MM-DD hh:mm:ss')
         addHalfInfo(json).then(res => {
           if (res.success) {
             console.log('保存的部分信息', halfInfo)

+ 50 - 20
src/views/reportForms/cost-allocation-table/tabs.vue

@@ -32,6 +32,11 @@
             <span slot="fabRemaQuaSlot" slot-scope="text">
               <a>{{ text }}</a>
             </span>
+            <!-- 备注 -->
+            <span slot="remarks" slot-scope="text,record">
+              <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/>
+              <span v-show='showSelect==1'>{{ text }}</span>
+            </span>
           </a-table>
         </div>
 
@@ -39,7 +44,7 @@
         <div style="margin:30px 0" :class="[(ingData.length==0?'noprint': '')]">
           <h6 class="table-title">辅料</h6>
           <a-table
-            rowKey="(item)=>item.id"
+            rowKey="(item)=>item.goodsName"
             :loading="loading"
             :columns="ingColumns"
             :data-source="ingData"
@@ -59,6 +64,11 @@
             <span slot="ingRemQuaSlot" slot-scope="text">
               <a>{{ text }}</a>
             </span>
+            <!-- 备注 -->
+            <span slot="remarks" slot-scope="text,record">
+              <a-input placeholder="请输入" v-model="record.remarks" v-show='showSelect==0'/>
+              <span v-show='showSelect==1'>{{ text }}</span>
+            </span>
           </a-table>
         </div>
 
@@ -206,7 +216,7 @@ export default {
         {
           title: '转入数量',
           dataIndex: 'fabrictransferQuantity',
-          width: '10%',
+          width: '8%',
           className: 'replacecolor',
           customCell: this.fabQuaCustomCell,
           scopedSlots: { customRender: 'fabInQuaSlot' },
@@ -214,18 +224,18 @@ export default {
         {
           title: '转入成本',
           dataIndex: 'transferCost',
-          width: '10%',
+          width: '8%',
           className: 'replacecolor',
           // slots:{title:'transferCostTitle'} ,
         },
 
-        { title: '单耗/件', dataIndex: 'unitConsumption', width: '10%', className: 'replacecolor' },
-        { title: '使用数量', dataIndex: 'usageQuantity', width: '10%', className: 'replacecolor' },
-        { title: '计划数量', dataIndex: 'planQuantity', width: '10%', className: 'replacecolor' },
+        { title: '单耗/件', dataIndex: 'unitConsumption', width: '9%', className: 'replacecolor' },
+        { title: '使用数量', dataIndex: 'usageQuantity', width: '9%', className: 'replacecolor' },
+        { title: '计划数量', dataIndex: 'planQuantity', width: '9%', className: 'replacecolor' },
         {
           title: '购入数量',
           dataIndex: 'purchaseQuantity',
-          width: '10%',
+          width: '9%',
           className: 'replacecolor'
         },
         {
@@ -239,16 +249,23 @@ export default {
         {
           title: '损耗',
           dataIndex: 'loss',
-          width: '10%',
+          width: '9%',
           className: 'replacecolor'
         },
         {
           title: '余下数量的成本',
           dataIndex: 'remainingQuantitycost',
-          width: '10%',
+          width: '9%',
           className: 'replacecolor',
           // slots:{title:'remainingQuantitycostTitle'} ,
 
+        },
+        {
+          title: '备注',
+          dataIndex: 'remarks',
+          scopedSlots: { customRender: 'remarks' },
+          width: '8%',
+          className: 'replacecolor'
         }
       ],
       fabData: [],
@@ -260,7 +277,7 @@ export default {
           width: '6%',
           dataIndex: 'index',
           key: 'index',
-          fixed: 'left',
+          // fixed: 'left',
           customRender: (text, record, index) =>{
             if(record.goodsName!=='合计'){
               return index + 1
@@ -270,11 +287,11 @@ export default {
           },
           className: 'replacecolor'
         },
-        { title: '货物名称', width: '12%', dataIndex: 'goodsName', fixed: 'left', className: 'replacecolor' },
+        { title: '货物名称', width: '12%', dataIndex: 'goodsName', className: 'replacecolor' },
         {
           title: '转入数量',
           dataIndex: 'ingredientsTransferQuantity',
-          width: '10%',
+          width: '6%',
           className: 'replacecolor',
           customCell: this.ingInQuaCustomCell,
           scopedSlots: { customRender: 'ingInQuaSlot' }
@@ -282,7 +299,7 @@ export default {
         {
           title: '转入成本',
           dataIndex: 'transferCost',
-          width: '10%',
+          width: '6%',
           className: 'replacecolor',
           // slots:{title:'transferCostTitle'} ,
         },
@@ -291,13 +308,13 @@ export default {
         {
           title: '购入数量',
           dataIndex: 'purchaseQuantity',
-          width: '10%',
+          width: '8%',
           className: 'replacecolor'
         },
         {
           title: '余下数量',
           dataIndex: 'ingredientsRemainingQuantity',
-          width: '9%',
+          width: '6%',
           className: 'replacecolor',
           customCell: this.ingRemQuaCustomCell,
           scopedSlots: { customRender: 'ingRemQuaSlot' }
@@ -305,19 +322,19 @@ export default {
         {
           title: '损耗',
           dataIndex: 'loss',
-          width: '8%',
+          width: '6%',
           className: 'replacecolor'
         },
         {
           title: '人民币金额',
           dataIndex: 'rmbAmount',
-          width: '8%',
+          width: '6%',
           className: 'replacecolor'
         },
         {
           title: '美元金额',
           dataIndex: 'usdAmount',
-          width: '8%',
+          width: '6%',
           className: 'replacecolor',
           customRender: (text, record, index) => {
             if (record.rmbAmount == record.usdAmount)
@@ -329,7 +346,7 @@ export default {
         {
           title: '不含税金额',
           dataIndex: 'priceExcludingtax',
-          width: '8%',
+          width: '6%',
           className: 'replacecolor'
         },
         // {
@@ -347,6 +364,19 @@ export default {
         {
           title: '用量',
           dataIndex: 'dosage',
+          width: '6%',
+          className: 'replacecolor'
+        },
+        {
+          title: '供应商',
+          dataIndex: 'supper',
+          width: '8%',
+          className: 'replacecolor'
+        },
+        {
+          title: '备注',
+          dataIndex: 'remarks',
+          scopedSlots: { customRender: 'remarks' },
           width: '8%',
           className: 'replacecolor'
         }
@@ -506,7 +536,7 @@ export default {
     },
 
     // 辅料-转入数量 弹框
-    ingInQuaCustomCell(record) {
+    ingInQuaCustomCell(record) {console.log('辅料 - 转入数量')
       return {
         on: {
           click: event => {

+ 6 - 0
src/views/reportForms/supply-capacity-table.vue

@@ -24,6 +24,7 @@
                   :placeholder="['开始时间', '结束时间']"
                   @panelChange="handlePanelChange2"
                   @openChange="onDateChange"
+                  @change="changeData"
                 />
               </a-form-item>
             </a-col>
@@ -385,6 +386,11 @@ export default {
     onDateOk(value) {
       console.log('value', value)
     },
+    changeData(value){
+      this.timeRange = value
+      this.queryParam.startDate = this.timeRange[0]
+      this.queryParam.endDate = this.timeRange[1]
+    },
     // 分页变化时触发
     handleTableChange(pagination, filters, sorter) {
       console.log('分页器信息', pagination)