作者 雷海东

不能预览此文件类型
@@ -26,7 +26,8 @@ @@ -26,7 +26,8 @@
26 </a-col> 26 </a-col>
27 <a-col :span="24"> 27 <a-col :span="24">
28 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> 28 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
29 - <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> 29 + <!-- <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> -->
  30 + <a-input v-model="model.unit" placeholder="请输入单位"></a-input>
30 </a-form-model-item> 31 </a-form-model-item>
31 </a-col> 32 </a-col>
32 </a-row> 33 </a-row>
@@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
27 </a-col> 27 </a-col>
28 <a-col :span="24"> 28 <a-col :span="24">
29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> 29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
30 - <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> 30 + <!-- <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> -->
  31 + <a-input v-model="model.unit" placeholder="请输入单位"></a-input>
31 </a-form-model-item> 32 </a-form-model-item>
32 </a-col> 33 </a-col>
33 <a-col :span="24"> 34 <a-col :span="24">
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 </a-col> 27 </a-col>
28 <a-col :span="24"> 28 <a-col :span="24">
29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> 29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
30 - <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit"/> 30 + <a-input v-model="model.unit" placeholder="请输入单位"></a-input>
31 </a-form-model-item> 31 </a-form-model-item>
32 </a-col> 32 </a-col>
33 <a-col :span="24"> 33 <a-col :span="24">
@@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
27 </a-col> 27 </a-col>
28 <a-col :span="24"> 28 <a-col :span="24">
29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> 29 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
30 - <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> 30 + <!-- <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> -->
  31 + <a-input v-model="model.unit" placeholder="请输入单位"></a-input>
31 </a-form-model-item> 32 </a-form-model-item>
32 </a-col> 33 </a-col>
33 <a-col :span="24"> 34 <a-col :span="24">
@@ -26,7 +26,8 @@ @@ -26,7 +26,8 @@
26 </a-col> 26 </a-col>
27 <a-col :span="24"> 27 <a-col :span="24">
28 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit"> 28 <a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
29 - <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> 29 + <!-- <j-dict-select-tag type="selectUnit" placeholder="请选择单位" v-model="model.unit" /> -->
  30 + <a-input v-model="model.unit" placeholder="请输入单位"></a-input>
30 </a-form-model-item> 31 </a-form-model-item>
31 </a-col> 32 </a-col>
32 <a-col :span="24"> 33 <a-col :span="24">
@@ -148,7 +148,7 @@ export default { @@ -148,7 +148,7 @@ export default {
148 dataIndex: 'ling' 148 dataIndex: 'ling'
149 }, 149 },
150 { 150 {
151 - title: '领料人所属部门', 151 + title: '领料环节',
152 align: "center", 152 align: "center",
153 dataIndex: 'lingSysOrgCode' 153 dataIndex: 'lingSysOrgCode'
154 }, 154 },
@@ -9,8 +9,8 @@ @@ -9,8 +9,8 @@
9 </a-form-model-item> 9 </a-form-model-item>
10 </a-col> 10 </a-col>
11 <a-col :span="24"> 11 <a-col :span="24">
12 - <a-form-model-item label="领料人所属部门" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lingSysOrgCode">  
13 - <a-input v-model="model.lingSysOrgCode" placeholder="请输入领料人所属部门"></a-input> 12 + <a-form-model-item label="领料环节" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="lingSysOrgCode">
  13 + <a-input v-model="model.lingSysOrgCode" placeholder="请输入领料环节"></a-input>
14 </a-form-model-item> 14 </a-form-model-item>
15 </a-col> 15 </a-col>
16 <a-col :span="24"> 16 <a-col :span="24">
@@ -110,6 +110,7 @@ export default { @@ -110,6 +110,7 @@ export default {
110 operNumber: [{ required: true, message: '请输入数量!' }], 110 operNumber: [{ required: true, message: '请输入数量!' }],
111 workOrder: [{ required: true, message: '请输入工作令!' }], 111 workOrder: [{ required: true, message: '请输入工作令!' }],
112 ling:[{ required: true, message: '请输入领料人!' }], 112 ling:[{ required: true, message: '请输入领料人!' }],
  113 + lingSysOrgCode:[{ required: true, message: '请输入领料环节!' }],
113 }, 114 },
114 url: { 115 url: {
115 add: '/depot/tblDepot/add', 116 add: '/depot/tblDepot/add',
@@ -125,7 +125,7 @@ export default { @@ -125,7 +125,7 @@ export default {
125 socialCompany: [{ required: true, message: '请输入社保公司!' }], 125 socialCompany: [{ required: true, message: '请输入社保公司!' }],
126 socialPerson: [{ required: true, message: '请输入社保个人!' }], 126 socialPerson: [{ required: true, message: '请输入社保个人!' }],
127 workingPrice: [{ required: true, message: '请输入工时单价!' }], 127 workingPrice: [{ required: true, message: '请输入工时单价!' }],
128 - proportion: [{ required: true, message: '请输入比例!' }], 128 + // proportion: [{ required: true, message: '请输入比例!' }],
129 }, 129 },
130 url: { 130 url: {
131 add: '/salary/base/add', 131 add: '/salary/base/add',
@@ -112,7 +112,7 @@ @@ -112,7 +112,7 @@
112 // 表头 112 // 表头
113 columns: [ 113 columns: [
114 { 114 {
115 - title: '#', 115 + title: '序号',
116 dataIndex: '', 116 dataIndex: '',
117 key:'rowIndex', 117 key:'rowIndex',
118 width:60, 118 width:60,
  1 +<template>
  2 + <a-card :bordered="false">
  3 + <!-- 查询区域 -->
  4 + <div class="table-page-search-wrapper">
  5 + <a-form layout="inline" @keyup.enter.native="searchQuery">
  6 + <a-row :gutter="24">
  7 + </a-row>
  8 + </a-form>
  9 + </div>
  10 + <!-- 查询区域-END -->
  11 +
  12 + <!-- 操作按钮区域 -->
  13 + <div class="table-operator">
  14 + <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  15 + <a-button type="primary" icon="download" @click="handleExportXls('tbl_trad_zong')">导出</a-button>
  16 + <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  17 + <a-button type="primary" icon="import">导入</a-button>
  18 + </a-upload>
  19 + <!-- 高级查询区域 -->
  20 + <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  21 + <a-dropdown v-if="selectedRowKeys.length > 0">
  22 + <a-menu slot="overlay">
  23 + <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  24 + </a-menu>
  25 + <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  26 + </a-dropdown>
  27 + </div>
  28 +
  29 + <!-- table区域-begin -->
  30 + <div>
  31 + <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  32 + <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  33 + <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  34 + </div>
  35 +
  36 + <a-table
  37 + ref="table"
  38 + size="middle"
  39 + :scroll="{x:true}"
  40 + bordered
  41 + rowKey="id"
  42 + :columns="columns"
  43 + :dataSource="dataSource"
  44 + :pagination="ipagination"
  45 + :loading="loading"
  46 + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  47 + class="j-table-force-nowrap"
  48 + @change="handleTableChange">
  49 +
  50 + <template slot="htmlSlot" slot-scope="text">
  51 + <div v-html="text"></div>
  52 + </template>
  53 + <template slot="imgSlot" slot-scope="text,record">
  54 + <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  55 + <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  56 + </template>
  57 + <template slot="fileSlot" slot-scope="text">
  58 + <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  59 + <a-button
  60 + v-else
  61 + :ghost="true"
  62 + type="primary"
  63 + icon="download"
  64 + size="small"
  65 + @click="downloadFile(text)">
  66 + 下载
  67 + </a-button>
  68 + </template>
  69 +
  70 + <span slot="action" slot-scope="text, record">
  71 + <a @click="handleEdit(record)">编辑</a>
  72 +
  73 + <a-divider type="vertical" />
  74 + <a-dropdown>
  75 + <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  76 + <a-menu slot="overlay">
  77 + <a-menu-item>
  78 + <a @click="handleDetail(record)">详情</a>
  79 + </a-menu-item>
  80 + <a-menu-item>
  81 + <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  82 + <a>删除</a>
  83 + </a-popconfirm>
  84 + </a-menu-item>
  85 + </a-menu>
  86 + </a-dropdown>
  87 + </span>
  88 +
  89 + </a-table>
  90 + </div>
  91 +
  92 + <tbl-trad-zong-modal ref="modalForm" @ok="modalFormOk"></tbl-trad-zong-modal>
  93 + </a-card>
  94 +</template>
  95 +
  96 +<script>
  97 +
  98 + import '@/assets/less/TableExpand.less'
  99 + import { mixinDevice } from '@/utils/mixin'
  100 + import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  101 + import TblTradZongModal from './modules/zong/TblTradZongModal'
  102 +
  103 + export default {
  104 + name: 'TblTradZongList',
  105 + mixins:[JeecgListMixin, mixinDevice],
  106 + components: {
  107 + TblTradZongModal
  108 + },
  109 + data () {
  110 + return {
  111 + description: 'tbl_trad_zong管理页面',
  112 + // 表头
  113 + columns: [
  114 + {
  115 + title: '序号',
  116 + dataIndex: '',
  117 + key:'rowIndex',
  118 + width:60,
  119 + fixed:"left",
  120 + align:"center",
  121 + customRender:function (t,r,index) {
  122 + return parseInt(index)+1;
  123 + }
  124 + },
  125 + {
  126 + title:'招标号',
  127 + align:"center",
  128 + dataIndex: 'tenderNumber',
  129 + width:100,
  130 + fixed:"left",
  131 + },
  132 + {
  133 + title:'客户',
  134 + align:"center",
  135 + dataIndex: 'customer'
  136 + },
  137 + {
  138 + title:'客户采购',
  139 + align:"center",
  140 + dataIndex: 'procurement'
  141 + },
  142 + {
  143 + title:'客户料号',
  144 + align:"center",
  145 + dataIndex: 'partNumber'
  146 + },
  147 + {
  148 + title:'物料描述',
  149 + align:"center",
  150 + dataIndex: 'description'
  151 + },
  152 + {
  153 + title:'品名',
  154 + align:"center",
  155 + dataIndex: 'productname'
  156 + },
  157 + {
  158 + title:'规格',
  159 + align:"center",
  160 + dataIndex: 'specifications'
  161 + },
  162 + {
  163 + title:'申请数量',
  164 + align:"center",
  165 + dataIndex: 'num'
  166 + },
  167 + {
  168 + title:'计量单位',
  169 + align:"center",
  170 + dataIndex: 'danwei'
  171 + },
  172 + {
  173 + title:'客户需求单位',
  174 + align:"center",
  175 + dataIndex: 'company'
  176 + },
  177 + {
  178 + title:'交货日期',
  179 + align:"center",
  180 + dataIndex: 'jiaohuoTime',
  181 + customRender:function (text) {
  182 + return !text?"":(text.length>10?text.substr(0,10):text)
  183 + }
  184 + },
  185 + {
  186 + title:'备注(品牌要求)',
  187 + align:"center",
  188 + dataIndex: 'notes'
  189 + },
  190 + {
  191 + title:'客户设计',
  192 + align:"center",
  193 + dataIndex: 'design'
  194 + },
  195 + {
  196 + title:'联系方式',
  197 + align:"center",
  198 + dataIndex: 'phone'
  199 + },
  200 + {
  201 + title:'图纸',
  202 + align:"center",
  203 + dataIndex: 'picture'
  204 + },
  205 + {
  206 + title:'厂商',
  207 + align:"center",
  208 + dataIndex: 'chang'
  209 + },
  210 + {
  211 + title:'价格',
  212 + align:"center",
  213 + dataIndex: 'price'
  214 + },
  215 + {
  216 + title:'含税运',
  217 + align:"center",
  218 + dataIndex: 'taxIncluded'
  219 + },
  220 + {
  221 + title:'货期',
  222 + align:"center",
  223 + dataIndex: 'huoqiTime'
  224 + },
  225 + {
  226 + title:'对接人员',
  227 + align:"center",
  228 + dataIndex: 'contactPerson'
  229 + },
  230 + {
  231 + title:'询价人',
  232 + align:"center",
  233 + dataIndex: 'inquirer'
  234 + },
  235 + {
  236 + title:'投标价格(不含税)',
  237 + align:"center",
  238 + dataIndex: 'bidPrice'
  239 + },
  240 + {
  241 + title:'中标单价',
  242 + align:"center",
  243 + dataIndex: 'zhongPrice'
  244 + },
  245 + {
  246 + title:'中标数量',
  247 + align:"center",
  248 + dataIndex: 'zhongNum'
  249 + },
  250 + {
  251 + title:'中标总价',
  252 + align:"center",
  253 + dataIndex: 'totalPrice'
  254 + },
  255 + {
  256 + title:'合同编号',
  257 + align:"center",
  258 + dataIndex: 'bianhao'
  259 + },
  260 + {
  261 + title:'合同交货日期',
  262 + align:"center",
  263 + dataIndex: 'hetongjiaohuoTime',
  264 + customRender:function (text) {
  265 + return !text?"":(text.length>10?text.substr(0,10):text)
  266 + }
  267 + },
  268 + {
  269 + title:'采购厂商',
  270 + align:"center",
  271 + dataIndex: 'cgManufacturer'
  272 + },
  273 + {
  274 + title:'采购品名',
  275 + align:"center",
  276 + dataIndex: 'cgProductname'
  277 + },
  278 + {
  279 + title:'采购数量',
  280 + align:"center",
  281 + dataIndex: 'cgNum'
  282 + },
  283 + {
  284 + title:'采购时间',
  285 + align:"center",
  286 + dataIndex: 'cgTime',
  287 + customRender:function (text) {
  288 + return !text?"":(text.length>10?text.substr(0,10):text)
  289 + }
  290 + },
  291 + {
  292 + title:'到货时间',
  293 + align:"center",
  294 + dataIndex: 'daohuoTime',
  295 + customRender:function (text) {
  296 + return !text?"":(text.length>10?text.substr(0,10):text)
  297 + }
  298 + },
  299 + {
  300 + title:'采购单价',
  301 + align:"center",
  302 + dataIndex: 'cgPrice'
  303 + },
  304 + {
  305 + title:'含税运否',
  306 + align:"center",
  307 + dataIndex: 'hanshuiIncluded'
  308 + },
  309 + {
  310 + title:'含税总价',
  311 + align:"center",
  312 + dataIndex: 'taxTotalPrice'
  313 + },
  314 + {
  315 + title:'发票类型',
  316 + align:"center",
  317 + dataIndex: 'invoiceType'
  318 + },
  319 + {
  320 + title:'发票号',
  321 + align:"center",
  322 + dataIndex: 'fapiaoNum'
  323 + },
  324 + {
  325 + title:'发票金额',
  326 + align:"center",
  327 + dataIndex: 'invoicePrice'
  328 + },
  329 + {
  330 + title:'备注',
  331 + align:"center",
  332 + dataIndex: 'beizhu'
  333 + },
  334 + {
  335 + title:'送货单扫描件',
  336 + align:"center",
  337 + dataIndex: 'scannedCopies'
  338 + },
  339 + {
  340 + title:'送货时间',
  341 + align:"center",
  342 + dataIndex: 'songTime',
  343 + customRender:function (text) {
  344 + return !text?"":(text.length>10?text.substr(0,10):text)
  345 + }
  346 + },
  347 + {
  348 + title:'交接人',
  349 + align:"center",
  350 + dataIndex: 'jiaojieren'
  351 + },
  352 +
  353 + {
  354 + title:'开票时间',
  355 + align:"center",
  356 + dataIndex: 'invoicingTime',
  357 + customRender:function (text) {
  358 + return !text?"":(text.length>10?text.substr(0,10):text)
  359 + }
  360 + },
  361 + {
  362 + title:'发票号',
  363 + align:"center",
  364 + dataIndex: 'invoiceNum'
  365 + },
  366 + {
  367 + title:'挂票时间',
  368 + align:"center",
  369 + dataIndex: 'gpTime',
  370 + customRender:function (text) {
  371 + return !text?"":(text.length>10?text.substr(0,10):text)
  372 + }
  373 + },
  374 + {
  375 + title:'回款金额',
  376 + align:"center",
  377 + dataIndex: 'hkPrice'
  378 + },
  379 + {
  380 + title:'回款时间',
  381 + align:"center",
  382 + dataIndex: 'hkTime',
  383 + customRender:function (text) {
  384 + return !text?"":(text.length>10?text.substr(0,10):text)
  385 + }
  386 + },
  387 + {
  388 + title:'质保金回款金额',
  389 + align:"center",
  390 + dataIndex: 'zbhkPrice'
  391 + },
  392 + {
  393 + title:'质保金回款时间',
  394 + align:"center",
  395 + dataIndex: 'zbhkTime',
  396 + customRender:function (text) {
  397 + return !text?"":(text.length>10?text.substr(0,10):text)
  398 + }
  399 + },
  400 + {
  401 + title:'毛利润',
  402 + align:"center",
  403 + dataIndex: 'profit',
  404 + fixed:'right',
  405 + width:60
  406 + },
  407 + {
  408 + title: '操作',
  409 + dataIndex: 'action',
  410 + align:"center",
  411 + fixed:"right",
  412 + width:147,
  413 + scopedSlots: { customRender: 'action' }
  414 + }
  415 + ],
  416 + url: {
  417 + list: "/trad/tblTradZong/list",
  418 + delete: "/trad/tblTradZong/delete",
  419 + deleteBatch: "/trad/tblTradZong/deleteBatch",
  420 + exportXlsUrl: "/trad/tblTradZong/exportXls",
  421 + importExcelUrl: "trad/tblTradZong/importExcel",
  422 +
  423 + },
  424 + dictOptions:{},
  425 + superFieldList:[],
  426 + }
  427 + },
  428 + created() {
  429 + this.getSuperFieldList();
  430 + },
  431 + computed: {
  432 + importExcelUrl: function(){
  433 + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  434 + },
  435 + },
  436 + methods: {
  437 + initDictConfig(){
  438 + },
  439 + getSuperFieldList(){
  440 + let fieldList=[];
  441 + fieldList.push({type:'string',value:'tenderNumber',text:'招标号'})
  442 + fieldList.push({type:'string',value:'customer',text:'客户'})
  443 + fieldList.push({type:'string',value:'procurement',text:'客户采购'})
  444 + fieldList.push({type:'string',value:'partNumber',text:'客户料号'})
  445 + fieldList.push({type:'string',value:'description',text:'物料描述'})
  446 + fieldList.push({type:'string',value:'productname',text:'品名'})
  447 + fieldList.push({type:'string',value:'specifications',text:'规格'})
  448 + fieldList.push({type:'number',value:'num',text:'申请数量'})
  449 + fieldList.push({type:'string',value:'danwei',text:'计量单位'})
  450 + fieldList.push({type:'string',value:'company',text:'客户需求单位'})
  451 + fieldList.push({type:'date',value:'jiaohuoTime',text:'交货日期'})
  452 + fieldList.push({type:'string',value:'notes',text:'备注(品牌要求)'})
  453 + fieldList.push({type:'string',value:'design',text:'客户设计'})
  454 + fieldList.push({type:'string',value:'phone',text:'联系方式'})
  455 + fieldList.push({type:'string',value:'picture',text:'图纸'})
  456 + fieldList.push({type:'string',value:'chang',text:'厂商'})
  457 + fieldList.push({type:'number',value:'price',text:'价格'})
  458 + fieldList.push({type:'number',value:'taxIncluded',text:'含税运'})
  459 + fieldList.push({type:'string',value:'huoqiTime',text:'货期'})
  460 + fieldList.push({type:'string',value:'contactPerson',text:'对接人员'})
  461 + fieldList.push({type:'string',value:'inquirer',text:'询价人'})
  462 + fieldList.push({type:'number',value:'bidPrice',text:'投标价格(不含税)'})
  463 + fieldList.push({type:'number',value:'zhongPrice',text:'中标单价'})
  464 + fieldList.push({type:'int',value:'zhongNum',text:'中标数量'})
  465 + fieldList.push({type:'number',value:'totalPrice',text:'中标总价'})
  466 + fieldList.push({type:'string',value:'bianhao',text:'合同编号'})
  467 + fieldList.push({type:'date',value:'hetongjiaohuoTime',text:'合同交货日期'})
  468 + fieldList.push({type:'string',value:'cgManufacturer',text:'采购厂商'})
  469 + fieldList.push({type:'string',value:'cgProductname',text:'采购品名'})
  470 + fieldList.push({type:'int',value:'cgNum',text:'采购数量'})
  471 + fieldList.push({type:'date',value:'cgTime',text:'采购时间'})
  472 + fieldList.push({type:'date',value:'daohuoTime',text:'到货时间'})
  473 + fieldList.push({type:'number',value:'cgPrice',text:'采购单价'})
  474 + fieldList.push({type:'number',value:'hanshuiIncluded',text:'含税运否'})
  475 + fieldList.push({type:'number',value:'taxTotalPrice',text:'含税总价'})
  476 + fieldList.push({type:'string',value:'invoiceType',text:'发票类型'})
  477 + fieldList.push({type:'string',value:'fapiaoNum',text:'发票号'})
  478 + fieldList.push({type:'number',value:'invoicePrice',text:'发票金额'})
  479 + fieldList.push({type:'string',value:'beizhu',text:'备注'})
  480 + fieldList.push({type:'string',value:'scannedCopies',text:'送货单扫描件'})
  481 + fieldList.push({type:'date',value:'songTime',text:'送货时间'})
  482 + fieldList.push({type:'string',value:'jiaojieren',text:'交接人'})
  483 + fieldList.push({type:'number',value:'profit',text:'毛利润'})
  484 + fieldList.push({type:'date',value:'invoicingTime',text:'开票时间'})
  485 + fieldList.push({type:'string',value:'invoiceNum',text:'发票号'})
  486 + fieldList.push({type:'date',value:'gpTime',text:'挂票时间'})
  487 + fieldList.push({type:'number',value:'hkPrice',text:'回款金额'})
  488 + fieldList.push({type:'date',value:'hkTime',text:'回款时间'})
  489 + fieldList.push({type:'number',value:'zbhkPrice',text:'质保金回款金额'})
  490 + fieldList.push({type:'date',value:'zbhkTime',text:'质保金回款时间'})
  491 + this.superFieldList = fieldList
  492 + }
  493 + }
  494 + }
  495 +</script>
  496 +<style scoped>
  497 + @import '~@assets/less/common.less';
  498 +</style>
  1 +<template>
  2 + <a-spin :spinning="confirmLoading">
  3 + <j-form-container :disabled="formDisabled">
  4 + <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
  5 + <a-row>
  6 + <a-col :span="24">
  7 + <a-form-model-item label="招标号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="tenderNumber">
  8 + <a-input v-model="model.tenderNumber" placeholder="请输入招标号" ></a-input>
  9 + </a-form-model-item>
  10 + </a-col>
  11 + <a-col :span="24">
  12 + <a-form-model-item label="客户" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="customer">
  13 + <a-input v-model="model.customer" placeholder="请输入客户" ></a-input>
  14 + </a-form-model-item>
  15 + </a-col>
  16 + <a-col :span="24">
  17 + <a-form-model-item label="客户采购" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="procurement">
  18 + <a-input v-model="model.procurement" placeholder="请输入客户采购" ></a-input>
  19 + </a-form-model-item>
  20 + </a-col>
  21 + <a-col :span="24">
  22 + <a-form-model-item label="客户料号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partNumber">
  23 + <a-input v-model="model.partNumber" placeholder="请输入客户料号" ></a-input>
  24 + </a-form-model-item>
  25 + </a-col>
  26 + <a-col :span="24">
  27 + <a-form-model-item label="物料描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description">
  28 + <a-input v-model="model.description" placeholder="请输入物料描述" ></a-input>
  29 + </a-form-model-item>
  30 + </a-col>
  31 + <a-col :span="24">
  32 + <a-form-model-item label="品名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productname">
  33 + <a-input v-model="model.productname" placeholder="请输入品名" ></a-input>
  34 + </a-form-model-item>
  35 + </a-col>
  36 + <a-col :span="24">
  37 + <a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specifications">
  38 + <a-input v-model="model.specifications" placeholder="请输入规格" ></a-input>
  39 + </a-form-model-item>
  40 + </a-col>
  41 + <a-col :span="24">
  42 + <a-form-model-item label="申请数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num">
  43 + <a-input-number v-model="model.num" placeholder="请输入申请数量" style="width: 100%" />
  44 + </a-form-model-item>
  45 + </a-col>
  46 + <a-col :span="24">
  47 + <a-form-model-item label="计量单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="danwei">
  48 + <a-input v-model="model.danwei" placeholder="请输入计量单位" ></a-input>
  49 + </a-form-model-item>
  50 + </a-col>
  51 + <a-col :span="24">
  52 + <a-form-model-item label="客户需求单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="company">
  53 + <a-input v-model="model.company" placeholder="请输入客户需求单位" ></a-input>
  54 + </a-form-model-item>
  55 + </a-col>
  56 + <a-col :span="24">
  57 + <a-form-model-item label="交货日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jiaohuoTime">
  58 + <j-date placeholder="请选择交货日期" v-model="model.jiaohuoTime" style="width: 100%" />
  59 + </a-form-model-item>
  60 + </a-col>
  61 + <a-col :span="24">
  62 + <a-form-model-item label="备注(品牌要求)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="notes">
  63 + <a-input v-model="model.notes" placeholder="请输入备注(品牌要求)" ></a-input>
  64 + </a-form-model-item>
  65 + </a-col>
  66 + <a-col :span="24">
  67 + <a-form-model-item label="客户设计" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="design">
  68 + <a-input v-model="model.design" placeholder="请输入客户设计" ></a-input>
  69 + </a-form-model-item>
  70 + </a-col>
  71 + <a-col :span="24">
  72 + <a-form-model-item label="联系方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="phone">
  73 + <a-input v-model="model.phone" placeholder="请输入联系方式" ></a-input>
  74 + </a-form-model-item>
  75 + </a-col>
  76 + <a-col :span="24">
  77 + <a-form-model-item label="图纸" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="picture">
  78 + <a-input v-model="model.picture" placeholder="请输入图纸" ></a-input>
  79 + </a-form-model-item>
  80 + </a-col>
  81 + <a-col :span="24">
  82 + <a-form-model-item label="厂商" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="chang">
  83 + <a-input v-model="model.chang" placeholder="请输入厂商" ></a-input>
  84 + </a-form-model-item>
  85 + </a-col>
  86 + <a-col :span="24">
  87 + <a-form-model-item label="价格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="price">
  88 + <a-input-number v-model="model.price" placeholder="请输入价格" style="width: 100%" />
  89 + </a-form-model-item>
  90 + </a-col>
  91 + <a-col :span="24">
  92 + <a-form-model-item label="含税运" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taxIncluded">
  93 + <a-input-number v-model="model.taxIncluded" placeholder="请输入含税运" style="width: 100%" />
  94 + </a-form-model-item>
  95 + </a-col>
  96 + <a-col :span="24">
  97 + <a-form-model-item label="货期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="huoqiTime">
  98 + <a-input v-model="model.huoqiTime" placeholder="请输入货期" ></a-input>
  99 + </a-form-model-item>
  100 + </a-col>
  101 + <a-col :span="24">
  102 + <a-form-model-item label="对接人员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="contactPerson">
  103 + <a-input v-model="model.contactPerson" placeholder="请输入对接人员" ></a-input>
  104 + </a-form-model-item>
  105 + </a-col>
  106 + <a-col :span="24">
  107 + <a-form-model-item label="询价人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inquirer">
  108 + <a-input v-model="model.inquirer" placeholder="请输入询价人" ></a-input>
  109 + </a-form-model-item>
  110 + </a-col>
  111 + <a-col :span="24">
  112 + <a-form-model-item label="投标价格(不含税)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bidPrice">
  113 + <a-input-number v-model="model.bidPrice" placeholder="请输入投标价格(不含税)" style="width: 100%" />
  114 + </a-form-model-item>
  115 + </a-col>
  116 + <a-col :span="24">
  117 + <a-form-model-item label="中标单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zhongPrice">
  118 + <a-input-number v-model="model.zhongPrice" placeholder="请输入中标单价" style="width: 100%" />
  119 + </a-form-model-item>
  120 + </a-col>
  121 + <a-col :span="24">
  122 + <a-form-model-item label="中标数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zhongNum">
  123 + <a-input-number v-model="model.zhongNum" placeholder="请输入中标数量" style="width: 100%" />
  124 + </a-form-model-item>
  125 + </a-col>
  126 + <a-col :span="24">
  127 + <a-form-model-item label="中标总价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="totalPrice">
  128 + <a-input-number v-model="model.totalPrice" placeholder="请输入中标总价" style="width: 100%" />
  129 + </a-form-model-item>
  130 + </a-col>
  131 + <a-col :span="24">
  132 + <a-form-model-item label="合同编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bianhao">
  133 + <a-input v-model="model.bianhao" placeholder="请输入合同编号" ></a-input>
  134 + </a-form-model-item>
  135 + </a-col>
  136 + <a-col :span="24">
  137 + <a-form-model-item label="合同交货日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hetongjiaohuoTime">
  138 + <j-date placeholder="请选择合同交货日期" v-model="model.hetongjiaohuoTime" style="width: 100%" />
  139 + </a-form-model-item>
  140 + </a-col>
  141 + <a-col :span="24">
  142 + <a-form-model-item label="采购厂商" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgManufacturer">
  143 + <a-input v-model="model.cgManufacturer" placeholder="请输入采购厂商" ></a-input>
  144 + </a-form-model-item>
  145 + </a-col>
  146 + <a-col :span="24">
  147 + <a-form-model-item label="采购品名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgProductname">
  148 + <a-input v-model="model.cgProductname" placeholder="请输入采购品名" ></a-input>
  149 + </a-form-model-item>
  150 + </a-col>
  151 + <a-col :span="24">
  152 + <a-form-model-item label="采购数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgNum">
  153 + <a-input-number v-model="model.cgNum" placeholder="请输入采购数量" style="width: 100%" />
  154 + </a-form-model-item>
  155 + </a-col>
  156 + <a-col :span="24">
  157 + <a-form-model-item label="采购时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgTime">
  158 + <j-date placeholder="请选择采购时间" v-model="model.cgTime" style="width: 100%" />
  159 + </a-form-model-item>
  160 + </a-col>
  161 + <a-col :span="24">
  162 + <a-form-model-item label="到货时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="daohuoTime">
  163 + <j-date placeholder="请选择到货时间" v-model="model.daohuoTime" style="width: 100%" />
  164 + </a-form-model-item>
  165 + </a-col>
  166 + <a-col :span="24">
  167 + <a-form-model-item label="采购单价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="cgPrice">
  168 + <a-input-number v-model="model.cgPrice" placeholder="请输入采购单价" style="width: 100%" />
  169 + </a-form-model-item>
  170 + </a-col>
  171 + <a-col :span="24">
  172 + <a-form-model-item label="含税运否" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hanshuiIncluded">
  173 + <a-input-number v-model="model.hanshuiIncluded" placeholder="请输入含税运否" style="width: 100%" />
  174 + </a-form-model-item>
  175 + </a-col>
  176 + <a-col :span="24">
  177 + <a-form-model-item label="含税总价" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="taxTotalPrice">
  178 + <a-input-number v-model="model.taxTotalPrice" placeholder="请输入含税总价" style="width: 100%" />
  179 + </a-form-model-item>
  180 + </a-col>
  181 + <a-col :span="24">
  182 + <a-form-model-item label="发票类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="invoiceType">
  183 + <a-input v-model="model.invoiceType" placeholder="请输入发票类型" ></a-input>
  184 + </a-form-model-item>
  185 + </a-col>
  186 + <a-col :span="24">
  187 + <a-form-model-item label="发票号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fapiaoNum">
  188 + <a-input v-model="model.fapiaoNum" placeholder="请输入发票号" ></a-input>
  189 + </a-form-model-item>
  190 + </a-col>
  191 + <a-col :span="24">
  192 + <a-form-model-item label="发票金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="invoicePrice">
  193 + <a-input-number v-model="model.invoicePrice" placeholder="请输入发票金额" style="width: 100%" />
  194 + </a-form-model-item>
  195 + </a-col>
  196 + <a-col :span="24">
  197 + <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="beizhu">
  198 + <a-input v-model="model.beizhu" placeholder="请输入备注" ></a-input>
  199 + </a-form-model-item>
  200 + </a-col>
  201 + <a-col :span="24">
  202 + <a-form-model-item label="送货单扫描件" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="scannedCopies">
  203 + <a-input v-model="model.scannedCopies" placeholder="请输入送货单扫描件" ></a-input>
  204 + </a-form-model-item>
  205 + </a-col>
  206 + <a-col :span="24">
  207 + <a-form-model-item label="送货时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="songTime">
  208 + <j-date placeholder="请选择送货时间" v-model="model.songTime" style="width: 100%" />
  209 + </a-form-model-item>
  210 + </a-col>
  211 + <a-col :span="24">
  212 + <a-form-model-item label="交接人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="jiaojieren">
  213 + <a-input v-model="model.jiaojieren" placeholder="请输入交接人" ></a-input>
  214 + </a-form-model-item>
  215 + </a-col>
  216 + <a-col :span="24">
  217 + <a-form-model-item label="毛利润" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="profit">
  218 + <a-input-number v-model="model.profit" placeholder="请输入毛利润" style="width: 100%" />
  219 + </a-form-model-item>
  220 + </a-col>
  221 + <a-col :span="24">
  222 + <a-form-model-item label="开票时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="invoicingTime">
  223 + <j-date placeholder="请选择开票时间" v-model="model.invoicingTime" style="width: 100%" />
  224 + </a-form-model-item>
  225 + </a-col>
  226 + <a-col :span="24">
  227 + <a-form-model-item label="发票号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="invoiceNum">
  228 + <a-input v-model="model.invoiceNum" placeholder="请输入发票号" ></a-input>
  229 + </a-form-model-item>
  230 + </a-col>
  231 + <a-col :span="24">
  232 + <a-form-model-item label="挂票时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gpTime">
  233 + <j-date placeholder="请选择挂票时间" v-model="model.gpTime" style="width: 100%" />
  234 + </a-form-model-item>
  235 + </a-col>
  236 + <a-col :span="24">
  237 + <a-form-model-item label="回款金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hkPrice">
  238 + <a-input-number v-model="model.hkPrice" placeholder="请输入回款金额" style="width: 100%" />
  239 + </a-form-model-item>
  240 + </a-col>
  241 + <a-col :span="24">
  242 + <a-form-model-item label="回款时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hkTime">
  243 + <j-date placeholder="请选择回款时间" v-model="model.hkTime" style="width: 100%" />
  244 + </a-form-model-item>
  245 + </a-col>
  246 + <a-col :span="24">
  247 + <a-form-model-item label="质保金回款金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbhkPrice">
  248 + <a-input-number v-model="model.zbhkPrice" placeholder="请输入质保金回款金额" style="width: 100%" />
  249 + </a-form-model-item>
  250 + </a-col>
  251 + <a-col :span="24">
  252 + <a-form-model-item label="质保金回款时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="zbhkTime">
  253 + <j-date placeholder="请选择质保金回款时间" v-model="model.zbhkTime" style="width: 100%" />
  254 + </a-form-model-item>
  255 + </a-col>
  256 + </a-row>
  257 + </a-form-model>
  258 + </j-form-container>
  259 + </a-spin>
  260 +</template>
  261 +
  262 +<script>
  263 +
  264 + import { httpAction, getAction } from '@/api/manage'
  265 + import { validateDuplicateValue } from '@/utils/util'
  266 +
  267 + export default {
  268 + name: 'TblTradZongForm',
  269 + components: {
  270 + },
  271 + props: {
  272 + //表单禁用
  273 + disabled: {
  274 + type: Boolean,
  275 + default: false,
  276 + required: false
  277 + }
  278 + },
  279 + data () {
  280 + return {
  281 + model:{
  282 + },
  283 + labelCol: {
  284 + xs: { span: 24 },
  285 + sm: { span: 5 },
  286 + },
  287 + wrapperCol: {
  288 + xs: { span: 24 },
  289 + sm: { span: 16 },
  290 + },
  291 + confirmLoading: false,
  292 + validatorRules: {
  293 + },
  294 + url: {
  295 + add: "/trad/tblTradZong/add",
  296 + edit: "/trad/tblTradZong/edit",
  297 + queryById: "/trad/tblTradZong/queryById"
  298 + }
  299 + }
  300 + },
  301 + computed: {
  302 + formDisabled(){
  303 + return this.disabled
  304 + },
  305 + },
  306 + created () {
  307 + //备份model原始值
  308 + this.modelDefault = JSON.parse(JSON.stringify(this.model));
  309 + },
  310 + methods: {
  311 + add () {
  312 + this.edit(this.modelDefault);
  313 + },
  314 + edit (record) {
  315 + this.model = Object.assign({}, record);
  316 + this.visible = true;
  317 + },
  318 + submitForm () {
  319 + const that = this;
  320 + // 触发表单验证
  321 + this.$refs.form.validate(valid => {
  322 + if (valid) {
  323 + that.confirmLoading = true;
  324 + let httpurl = '';
  325 + let method = '';
  326 + if(!this.model.id){
  327 + httpurl+=this.url.add;
  328 + method = 'post';
  329 + }else{
  330 + httpurl+=this.url.edit;
  331 + method = 'put';
  332 + }
  333 + httpAction(httpurl,this.model,method).then((res)=>{
  334 + if(res.success){
  335 + that.$message.success(res.message);
  336 + that.$emit('ok');
  337 + }else{
  338 + that.$message.warning(res.message);
  339 + }
  340 + }).finally(() => {
  341 + that.confirmLoading = false;
  342 + })
  343 + }
  344 +
  345 + })
  346 + },
  347 + }
  348 + }
  349 +</script>
  1 +<template>
  2 + <a-drawer
  3 + :title="title"
  4 + :width="width"
  5 + placement="right"
  6 + :closable="false"
  7 + @close="close"
  8 + destroyOnClose
  9 + :visible="visible">
  10 + <tbl-trad-zong-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></tbl-trad-zong-form>
  11 + <div class="drawer-footer">
  12 + <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
  13 + <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
  14 + </div>
  15 + </a-drawer>
  16 +</template>
  17 +
  18 +<script>
  19 +
  20 + import TblTradZongForm from './TblTradZongForm'
  21 +
  22 + export default {
  23 + name: 'TblTradZongModal',
  24 + components: {
  25 + TblTradZongForm
  26 + },
  27 + data () {
  28 + return {
  29 + title:"操作",
  30 + width:800,
  31 + visible: false,
  32 + disableSubmit: false
  33 + }
  34 + },
  35 + methods: {
  36 + add () {
  37 + this.visible=true
  38 + this.$nextTick(()=>{
  39 + this.$refs.realForm.add();
  40 + })
  41 + },
  42 + edit (record) {
  43 + this.visible=true
  44 + this.$nextTick(()=>{
  45 + this.$refs.realForm.edit(record);
  46 + });
  47 + },
  48 + close () {
  49 + this.$emit('close');
  50 + this.visible = false;
  51 + },
  52 + submitCallback(){
  53 + this.$emit('ok');
  54 + this.visible = false;
  55 + },
  56 + handleOk () {
  57 + this.$refs.realForm.submitForm();
  58 + },
  59 + handleCancel () {
  60 + this.close()
  61 + }
  62 + }
  63 + }
  64 +</script>
  65 +
  66 +<style lang="less" scoped>
  67 +/** Button按钮间距 */
  68 + .ant-btn {
  69 + margin-left: 30px;
  70 + margin-bottom: 30px;
  71 + float: right;
  72 + }
  73 + .drawer-footer{
  74 + position: absolute;
  75 + bottom: -8px;
  76 + width: 100%;
  77 + border-top: 1px solid #e8e8e8;
  78 + padding: 10px 16px;
  79 + text-align: right;
  80 + left: 0;
  81 + background: #fff;
  82 + border-radius: 0 0 2px 2px;
  83 + }
  84 +</style>
  1 +<template>
  2 + <j-modal
  3 + :title="title"
  4 + :width="width"
  5 + :visible="visible"
  6 + switchFullscreen
  7 + @ok="handleOk"
  8 + :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
  9 + @cancel="handleCancel"
  10 + cancelText="关闭">
  11 + <tbl-trad-zong-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></tbl-trad-zong-form>
  12 + </j-modal>
  13 +</template>
  14 +
  15 +<script>
  16 +
  17 + import TblTradZongForm from './TblTradZongForm'
  18 + export default {
  19 + name: 'TblTradZongModal',
  20 + components: {
  21 + TblTradZongForm
  22 + },
  23 + data () {
  24 + return {
  25 + title:'',
  26 + width:800,
  27 + visible: false,
  28 + disableSubmit: false
  29 + }
  30 + },
  31 + methods: {
  32 + add () {
  33 + this.visible=true
  34 + this.$nextTick(()=>{
  35 + this.$refs.realForm.add();
  36 + })
  37 + },
  38 + edit (record) {
  39 + this.visible=true
  40 + this.$nextTick(()=>{
  41 + this.$refs.realForm.edit(record);
  42 + })
  43 + },
  44 + close () {
  45 + this.$emit('close');
  46 + this.visible = false;
  47 + },
  48 + handleOk () {
  49 + this.$refs.realForm.submitForm();
  50 + },
  51 + submitCallback(){
  52 + this.$emit('ok');
  53 + this.visible = false;
  54 + },
  55 + handleCancel () {
  56 + this.close()
  57 + }
  58 + }
  59 + }
  60 +</script>