Merge branch 'master' of http://121.40.234.130:8899/root/lanzhouhailiang_one
This commit is contained in:
@@ -53,10 +53,12 @@ public class StructivtServiceImpl implements StructivtService {
|
||||
String sap_pcsn = MapUtil.getStr(whereJson, "sap_pcsn");
|
||||
String package_box_sn = MapUtil.getStr(whereJson, "package_box_sn");
|
||||
String sale_order_name = MapUtil.getStr(whereJson, "sale_order_name");
|
||||
String ivt_status = MapUtil.getStr(whereJson, "ivt_status");
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("flag", "1");
|
||||
map.put("stor_id", stor_id);
|
||||
map.put("sect_id", sect_id);
|
||||
map.put("ivt_status", ivt_status);
|
||||
if (StrUtil.isNotEmpty(material)) {
|
||||
map.put("material", "%" + material + "%");
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
输入.sect_id TYPEAS s_string
|
||||
输入.pcsn TYPEAS s_string
|
||||
输入.sap_pcsn TYPEAS s_string
|
||||
输入.ivt_status TYPEAS s_string
|
||||
输入.sale_order_name TYPEAS s_string
|
||||
输入.package_box_sn TYPEAS s_string
|
||||
输入.in_stor_id TYPEAS f_string
|
||||
@@ -108,6 +109,18 @@
|
||||
sub.sale_order_name like 输入.sale_order_name
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.ivt_status = "canuse_qty"
|
||||
ivt.canuse_qty > 0
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.ivt_status = "warehousing_qty"
|
||||
ivt.warehousing_qty > 0
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.ivt_status = "frozen_qty"
|
||||
ivt.frozen_qty > 0
|
||||
ENDOPTION
|
||||
|
||||
ENDSELECT
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
@@ -229,4 +229,14 @@ public interface CheckOutBillService {
|
||||
* @param whereJson /
|
||||
*/
|
||||
void outReturn(JSONObject whereJson);
|
||||
|
||||
|
||||
/**
|
||||
* 导出数据
|
||||
*
|
||||
* @param map 待导出的数据
|
||||
* @param response /
|
||||
* @throws IOException /
|
||||
*/
|
||||
void download(Map map, HttpServletResponse response) throws IOException;
|
||||
}
|
||||
|
||||
@@ -274,4 +274,11 @@ public class CheckOutBillController {
|
||||
checkOutBillService.outReturn(whereJson);
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@Log("导出数据")
|
||||
@ApiOperation("导出数据")
|
||||
@GetMapping(value = "/download")
|
||||
public void download(@RequestParam Map map,HttpServletResponse response) throws IOException {
|
||||
checkOutBillService.download(map, response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import org.apache.commons.lang.text.StrBuilder;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
import org.nl.common.utils.SecurityUtils;
|
||||
|
||||
import org.nl.modules.common.utils.FileUtil;
|
||||
import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.modules.wql.WQL;
|
||||
import org.nl.modules.wql.core.bean.WQLObject;
|
||||
@@ -669,6 +670,75 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
bean.uploadMES(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void download(Map whereJson, HttpServletResponse response) throws IOException {
|
||||
HashMap<String, String> map = new HashMap<>(whereJson);
|
||||
map.put("flag", "111");
|
||||
|
||||
if (StrUtil.isNotEmpty(map.get("bill_code"))) {
|
||||
map.put("bill_code", "%" + map.get("bill_code") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("buss_type"))) {
|
||||
map.put("buss_type", whereJson.get("buss_type") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("io_type"))) {
|
||||
map.put("io_type", map.get("io_type"));
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("is_upload"))) {
|
||||
map.put("is_upload", map.get("is_upload"));
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("pcsn"))) {
|
||||
map.put("pcsn", "%" + map.get("pcsn") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("material_code"))) {
|
||||
map.put("material_code", "%" + map.get("material_code") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("vbeln"))) {
|
||||
map.put("vbeln", "%" + map.get("vbeln") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("width"))) {
|
||||
map.put("width", "%" + map.get("width") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("pcsn"))) {
|
||||
map.put("pcsn", "%" + map.get("pcsn") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("sap_pcsn"))) {
|
||||
map.put("sap_pcsn", "%" + map.get("sap_pcsn") + "%");
|
||||
}
|
||||
if (StrUtil.isNotEmpty(map.get("cust_code"))) {
|
||||
map.put("cust_code", "%" + map.get("cust_code") + "%");
|
||||
}
|
||||
|
||||
JSONArray resultJSONArray = WQL.getWO("QST_IVT_CHECKOUTBILL").addParamMap(map).process().getResultJSONArray(0);
|
||||
|
||||
List<Map<String, Object>> list = new ArrayList<>();
|
||||
|
||||
for (int i = 0; i < resultJSONArray.size(); i++) {
|
||||
JSONObject jsonObject = resultJSONArray.getJSONObject(i);
|
||||
Map<String, Object> mp = new LinkedHashMap<>();
|
||||
|
||||
mp.put("单据号", jsonObject.getString("bill_code"));
|
||||
mp.put("仓库", jsonObject.getString("stor_name"));
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1001")) mp.put("业务类型", "发货出库");
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1002")) mp.put("业务类型", "报废出库");
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1003")) mp.put("业务类型", "改切出库");
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1004")) mp.put("业务类型", "调拨出库");
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1005")) mp.put("业务类型", "拆箱出库");
|
||||
if (StrUtil.equals(jsonObject.getString("bill_type"), "1009")) mp.put("业务类型", "手工出库");
|
||||
mp.put("业务日期", jsonObject.getString("biz_date"));
|
||||
mp.put("总重量", jsonObject.getString("qty"));
|
||||
mp.put("客户编码", jsonObject.getString("cust_code"));
|
||||
mp.put("客户名称", jsonObject.getString("cust_name"));
|
||||
mp.put("交货单号", jsonObject.getString("vbeln"));
|
||||
mp.put("订单及行号", jsonObject.getString("sale_order_name"));
|
||||
mp.put("规格", jsonObject.getString("spec"));
|
||||
mp.put("物流公司", jsonObject.getString("wl_cust_name"));
|
||||
mp.put("运费", jsonObject.getString("estimated_freight"));
|
||||
list.add(mp);
|
||||
}
|
||||
FileUtil.downloadExcel(list, response);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void update(JSONObject whereJson) {
|
||||
|
||||
@@ -154,6 +154,96 @@
|
||||
ENDPAGEQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "111"
|
||||
QUERY
|
||||
SELECT
|
||||
MAX(ios.bill_code) AS bill_code,
|
||||
MAX(ios.stor_name) AS stor_name,
|
||||
MAX(ios.bill_type) AS bill_type,
|
||||
MAX(ios.biz_date) AS biz_date,
|
||||
sum(dis.real_qty) AS qty,
|
||||
MAX(cu.cust_code) AS cust_code,
|
||||
MAX(cu.cust_name) AS cust_name,
|
||||
MAX(dtl.vbeln) AS vbeln,
|
||||
sub.sale_order_name,
|
||||
CONCAT(sub.thickness,'*',sub.width) AS spec,
|
||||
MAX(tr.cust_name) AS wl_cust_name,
|
||||
MAX(ios.estimated_freight) AS estimated_freight
|
||||
FROM
|
||||
st_ivt_iostorinvdis dis
|
||||
LEFT JOIN st_ivt_iostorinvdtl dtl ON dis.iostorinvdtl_id = dtl.iostorinvdtl_id
|
||||
LEFT JOIN ST_IVT_IOStorInv ios ON ios.iostorinv_id = dtl.iostorinv_id
|
||||
LEFT JOIN md_cs_customerbase cu ON ios.cust_code = cu.cust_code
|
||||
LEFT JOIN md_cs_transportationbase tr ON ios.trans_code = tr.cust_code
|
||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_sn = dis.box_no AND dis.pcsn = sub.container_name
|
||||
WHERE
|
||||
ios.io_type = '1'
|
||||
AND ios.is_delete = '0'
|
||||
|
||||
OPTION 输入.bill_code <> ""
|
||||
ios.bill_code like 输入.bill_code
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.sap_pcsn <> ""
|
||||
sub.sap_pcsn like 输入.sap_pcsn
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.cust_code <> ""
|
||||
(cu.cust_code like 输入.cust_code or
|
||||
cu.cust_simple_name like 输入.cust_code)
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.pcsn <> ""
|
||||
dis.pcsn like 输入.pcsn
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.is_upload <> ""
|
||||
ios.is_upload = 输入.is_upload
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.io_type <> ""
|
||||
ios.io_type = 输入.io_type
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.vbeln <> ""
|
||||
dtl.vbeln like 输入.vbeln
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.width <> ""
|
||||
dtl.width like 输入.width
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.bill_type <> ""
|
||||
ios.bill_type = 输入.bill_type
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.stor_id <> ""
|
||||
ios.stor_id = 输入.stor_id
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.create_mode <> ""
|
||||
ios.create_mode = 输入.create_mode
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.bill_status <> ""
|
||||
ios.bill_status = 输入.bill_status
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.begin_time <> ""
|
||||
ios.input_time >= 输入.begin_time
|
||||
ENDOPTION
|
||||
|
||||
OPTION 输入.end_time <> ""
|
||||
ios.input_time <= 输入.end_time
|
||||
ENDOPTION
|
||||
|
||||
GROUP BY sub.sale_order_name,spec
|
||||
|
||||
|
||||
ENDSELECT
|
||||
ENDQUERY
|
||||
ENDIF
|
||||
|
||||
IF 输入.flag = "2"
|
||||
QUERY
|
||||
SELECT
|
||||
|
||||
@@ -82,6 +82,23 @@
|
||||
class="filter-item"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存状态">
|
||||
<el-select
|
||||
v-model="query.ivt_status"
|
||||
clearable
|
||||
size="mini"
|
||||
placeholder="全部"
|
||||
class="filter-item"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in ivtStatusList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<rrOperation :crud="crud" />
|
||||
</el-form>
|
||||
</div>
|
||||
@@ -160,6 +177,11 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
sects: [],
|
||||
ivtStatusList: [
|
||||
{ 'value': 'canuse_qty', 'label': '可用数' },
|
||||
{ 'value': 'warehousing_qty', 'label': '待入数' },
|
||||
{ 'value': 'frozen_qty', 'label': '冻结数' }
|
||||
],
|
||||
permission: {
|
||||
},
|
||||
rules: {
|
||||
|
||||
@@ -185,144 +185,144 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱唯一码" prop="package_box_sn">
|
||||
<el-input v-model="form.package_box_sn" style="width: 300px;"/>
|
||||
<el-input v-model="form.package_box_sn" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="箱内子卷数量">
|
||||
<el-input v-model="form.quanlity_in_box" style="width: 300px;"/>
|
||||
<el-input v-model="form.quanlity_in_box" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱自身重量">
|
||||
<el-input v-model="form.box_weight" style="width: 300px;"/>
|
||||
<el-input v-model="form.box_weight" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="保质期">
|
||||
<el-input v-model="form.quality_guaran_period" style="width: 300px;"/>
|
||||
<el-input v-model="form.quality_guaran_period" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户编码" prop="customer_name">
|
||||
<el-input v-model="form.customer_name" style="width: 300px;"/>
|
||||
<el-input v-model="form.customer_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户名称" prop="customer_description">
|
||||
<el-input v-model="form.customer_description" style="width: 300px;"/>
|
||||
<el-input v-model="form.customer_description" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品编码" prop="product_name">
|
||||
<el-input v-model="form.product_name" style="width: 300px;"/>
|
||||
<el-input v-model="form.product_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品描述" prop="product_description">
|
||||
<el-input v-model="form.product_description" style="width: 300px;"/>
|
||||
<el-input v-model="form.product_description" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="入库日期">
|
||||
<el-input v-model="form.date_of_fg_inbound" style="width: 300px;"/>
|
||||
<el-input v-model="form.date_of_fg_inbound" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷号" prop="container_name">
|
||||
<el-input v-model="form.container_name" style="width: 300px;"/>
|
||||
<el-input v-model="form.container_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品规格(幅宽)" prop="width">
|
||||
<el-input v-model="form.width" style="width: 300px;"/>
|
||||
<el-input v-model="form.width" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品厚度" prop="thickness">
|
||||
<el-input v-model="form.thickness" style="width: 300px;"/>
|
||||
<el-input v-model="form.thickness" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="单位面积质量" prop="mass_per_unit_area">
|
||||
<el-input v-model="form.mass_per_unit_area" style="width: 300px;"/>
|
||||
<el-input v-model="form.mass_per_unit_area" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="净重" prop="net_weight">
|
||||
<el-input v-model="form.net_weight" style="width: 300px;"/>
|
||||
<el-input v-model="form.net_weight" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="长度" prop="length">
|
||||
<el-input v-model="form.length" style="width: 300px;"/>
|
||||
<el-input v-model="form.length" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="制造完成日期" prop="date_of_production">
|
||||
<el-input v-model="form.date_of_production" style="width: 300px;"/>
|
||||
<el-input v-model="form.date_of_production" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="计划外分切的子卷" prop="is_un_plan_production">
|
||||
<el-input v-model="form.is_un_plan_production" style="width: 300px;"/>
|
||||
<el-input v-model="form.is_un_plan_production" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值1">
|
||||
<el-input v-model="form.un_plan_product_property1" style="width: 300px;"/>
|
||||
<el-input v-model="form.un_plan_product_property1" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值2">
|
||||
<el-input v-model="form.un_plan_product_property2" style="width: 300px;"/>
|
||||
<el-input v-model="form.un_plan_product_property2" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="子卷的物性值3">
|
||||
<el-input v-model="form.un_plan_product_property3" style="width: 300px;"/>
|
||||
<el-input v-model="form.un_plan_product_property3" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="木箱料号">
|
||||
<el-input v-model="form.box_type" style="width: 300px;"/>
|
||||
<el-input v-model="form.box_type" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="SAP批次" prop="sap_pcsn">
|
||||
<el-input v-model="form.sap_pcsn" style="width: 300px;"/>
|
||||
<el-input v-model="form.sap_pcsn" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否重打外包装标签">
|
||||
<el-input v-model="form.isreprintpackageboxlabel" style="width: 300px;"/>
|
||||
<el-input v-model="form.isreprintpackageboxlabel" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否拆包重打子卷标签">
|
||||
<el-input v-model="form.isunpackbox" style="width: 300px;"/>
|
||||
<el-input v-model="form.isunpackbox" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -349,26 +349,26 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="销售订单及行号" prop="sale_order_name">
|
||||
<el-input v-model="form.sale_order_name" style="width: 300px;"/>
|
||||
<el-input v-model="form.sale_order_name" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="物料主数据厚度" prop="thickness_request">
|
||||
<el-input v-model="form.thickness_request" :controls="false" style="width: 300px;"/>
|
||||
<el-input v-model="form.thickness_request" :disabled="crud.status.edit > 0 && form.status !== '0'" :controls="false" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="要求幅宽" prop="width_standard">
|
||||
<el-input v-model="form.width_standard" style="width: 300px;"/>
|
||||
<el-input v-model="form.width_standard" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 300px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="备注">
|
||||
<el-input type="textarea" :rows="2" v-model="form.remark" style="width: 750px;"/>
|
||||
<el-input type="textarea" :rows="2" v-model="form.remark" :disabled="crud.status.edit > 0 && form.status !== '0'" style="width: 750px;"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@@ -216,6 +216,16 @@
|
||||
>
|
||||
质量报告回传
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@click="downdtl"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -511,6 +521,28 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
downdtl() {
|
||||
/* const data = {
|
||||
'bill_code': this.crud.query.bill_code,
|
||||
'buss_type': this.crud.query.buss_type,
|
||||
'io_type': this.crud.query.io_type,
|
||||
'is_upload': this.crud.query.is_upload,
|
||||
'pcsn': this.crud.query.pcsn,
|
||||
'material_code': this.crud.query.material_code,
|
||||
}*/
|
||||
if (this.crud.query.createTime !== undefined) {
|
||||
this.query.begin_time = this.crud.query.createTime[0]
|
||||
this.query.end_time = this.crud.query.createTime[1]
|
||||
}
|
||||
crud.downloadLoading = true
|
||||
download('/api/checkoutbill/download', this.crud.query).then(result => {
|
||||
debugger
|
||||
downloadFile(result, '发货', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user